/* panorama.css - Visualiseur 360° (Pannellum) + sélecteur de cabines */

.pano-section {
    padding: 100px 0 80px;
    background: var(--color-forest);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.pano-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(153,204,51,0.12) 0%, transparent 55%);
    pointer-events: none;
}

.pano-section .section-header {
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 44px;
}

.pano-section .section-tag {
    color: var(--color-accent);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    margin-bottom: 10px;
    display: block;
}

.pano-section .section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: #fff;
    margin-bottom: 12px;
}

.pano-section .section-desc {
    color: rgba(255, 255, 255, 0.65);
    max-width: 620px;
    margin: 0 auto;
    font-size: 0.98rem;
    line-height: 1.7;
}

/* Barre de sélection des cabines */
.pano-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 2;
    margin-bottom: 36px;
}

.pano-tab {
    padding: 12px 26px;
    border-radius: 100px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pano-tab:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.pano-tab.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-forest);
}

/* Conteneur du viewer */
.pano-stage {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    border-radius: 20px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.pano-stage__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 320px;
    background: #0e1521;
}

.pano-stage__frame pannellum-viewer,
.pano-stage__frame .pnlm-container {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    inset: 0;
}

.pano-stage__empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    padding: 24px;
}

.pano-stage__empty i {
    font-size: 3rem;
    color: rgba(153, 204, 51, 0.5);
}

.pano-stage__empty p {
    font-size: 0.95rem;
    max-width: 420px;
    line-height: 1.6;
}

/* Badge info sous le viewer */
.pano-stage__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 26px;
    background: rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.pano-stage__title {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}

.pano-stage__title small {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    font-size: 0.82rem;
    margin-top: 3px;
}

.pano-stage__hint {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
}

.pano-stage__hint i {
    color: var(--color-accent);
    font-size: 1rem;
}

/* Bouton plein écran custom (Pannellum en fournit un déjà) */
.pano-loader {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    padding: 24px;
}

.spin {
    animation: pano-spin 1s linear infinite;
}
@keyframes pano-spin {
    from { transform: rotate(0); }
    to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
    .pano-stage__frame { min-height: 240px; }
    .pano-tab { padding: 10px 18px; font-size: 0.82rem; }
    .pano-stage__meta { flex-direction: column; align-items: flex-start; gap: 8px; }
}