/* ============================================
   1136 RESIDENCE — VIRTUAL TOUR
   Premium Design System
   ============================================ */

:root {
    --charcoal: #0d0d0d;
    --charcoal-mid: #161616;
    --charcoal-soft: #1e1e1e;
    --charcoal-glass: rgba(13, 13, 13, 0.65);
    --gold: #c9a96e;
    --gold-bright: #e0c590;
    --gold-soft: #d3b378;
    --gold-dim: rgba(201, 169, 110, 0.25);
    --gold-glow: rgba(201, 169, 110, 0.12);
    --cream: #f5f0e8;
    --cream-soft: rgba(245, 240, 232, 0.65);
    --cream-muted: rgba(245, 240, 232, 0.35);
    --white: #ffffff;
    --line: rgba(255, 255, 255, 0.08);
    --line-light: rgba(255, 255, 255, 0.15);
    --shadow-deep: 0 24px 80px rgba(0, 0, 0, 0.7);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.4);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 100px;
    --serif: "Cormorant Garamond", "Georgia", serif;
    --sans: "Manrope", "Helvetica Neue", sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.6s var(--ease-out-expo);
    --transition-fast: 0.3s var(--ease-out-quart);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--charcoal);
    color: var(--cream);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hidden {
    display: none !important;
}

/* ============================================
   LOADER
   ============================================ */

.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--charcoal);
    transition: opacity 1.2s var(--ease-out-expo), visibility 1.2s;
}

.loader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.45;
    filter: saturate(0.6) contrast(1.1) brightness(0.65);
    transform: scale(1.05);
    animation: loaderZoom 25s ease-in-out infinite alternate;
}

@keyframes loaderZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.18); }
}

/* Static poster image — shown instantly while video loads, then fades out */
.loader-bg-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.5;
    filter: saturate(0.6) contrast(1.1) brightness(0.65);
    transform: scale(1.05);
    transition: opacity 1.2s ease-out;
}

/* Hide poster once video is playing to prevent ghosting */
.loader-bg-poster.fade-out {
    opacity: 0;
}

.loader-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 20%, rgba(13,13,13,0.6) 80%),
        linear-gradient(180deg, rgba(13,13,13,0.2) 0%, rgba(13,13,13,0.85) 100%);
    z-index: 2;
}

.loader-vignette {
    position: absolute;
    inset: 0;
    z-index: 3;
    box-shadow: inset 0 0 250px rgba(0,0,0,0.85);
    pointer-events: none;
}

.loader-content {
    position: relative;
    z-index: 4;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.loader-badge {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--charcoal);
    background: var(--gold);
    padding: 5px 18px;
    border-radius: var(--radius-pill);
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeSlideUp 1s var(--ease-out-expo) 0.1s forwards;
}

.loader-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.loader-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    animation: fadeIn 1.5s var(--ease-out-expo) 0.2s forwards;
}

.loader .brand-num {
    font-family: var(--serif);
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 400;
    letter-spacing: 0.12em;
    color: var(--gold);
    text-shadow: 0 0 80px var(--gold-glow);
    opacity: 0;
    animation: fadeSlideUp 1.2s var(--ease-out-expo) 0.3s forwards;
}

.loader .brand-text {
    font-family: var(--sans);
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
    font-weight: 300;
    letter-spacing: 0.55em;
    color: var(--cream-soft);
    opacity: 0;
    animation: fadeSlideUp 1.2s var(--ease-out-expo) 0.5s forwards;
}

.loader-tagline {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    color: var(--cream-muted);
    margin-top: 24px;
    opacity: 0;
    animation: fadeIn 1.5s ease 0.9s forwards;
}

.loader-subtitle {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cream-muted);
    margin-top: 8px;
    opacity: 0;
    animation: fadeIn 1.5s ease 1.1s forwards;
}

.loader-features {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 36px;
    opacity: 0;
    animation: fadeSlideUp 1s var(--ease-out-expo) 1.3s forwards;
}

.loader-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.loader-feature-num {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--gold);
}

.loader-feature-label {
    font-size: 0.58rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cream-muted);
}

.loader-feature-divider {
    width: 1px;
    height: 34px;
    background: var(--line-light);
}

.progress-bar {
    width: 200px;
    height: 1px;
    background: var(--line);
    margin-top: 40px;
    position: relative;
    overflow: hidden;
    border-radius: 1px;
    opacity: 0;
    animation: fadeIn 1.5s ease 0.8s forwards;
}

.progress {
    position: absolute;
    inset: 0;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), var(--gold-bright));
    border-radius: 1px;
    transition: width 0.15s linear;
    box-shadow: 0 0 10px var(--gold-dim);
}

.enter-btn {
    margin-top: 36px;
    background: transparent;
    border: 1px solid var(--gold-dim);
    color: var(--gold);
    padding: 16px 44px;
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.5s var(--ease-out-expo);
    opacity: 0;
    transform: translateY(15px);
    animation: fadeSlideUp 0.8s var(--ease-out-expo) forwards;
}

.enter-btn:hover {
    background: var(--gold);
    color: var(--charcoal);
    border-color: var(--gold);
    box-shadow: 0 0 40px var(--gold-dim), 0 8px 30px rgba(0,0,0,0.5);
    transform: translateY(-2px);
}

.loader-cta-hint {
    font-size: 0.62rem;
    color: var(--cream-muted);
    margin-top: 14px;
    letter-spacing: 0.1em;
    opacity: 0;
    animation: fadeIn 1s ease 0.5s forwards;
}

.loader-footer {
    position: absolute;
    bottom: 28px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 4;
    font-size: 0.6rem;
    color: var(--cream-muted);
    letter-spacing: 0.08em;
    opacity: 0;
    animation: fadeIn 2s ease 1.5s forwards;
}

.loader-footer-sep {
    margin: 0 8px;
    opacity: 0.4;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   MAIN APP
   ============================================ */

.app-container {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    position: relative;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: fadeIn 1.5s var(--ease-out-expo) forwards;
}

/* Transition overlay for scene crossfades */
.transition-overlay {
    position: fixed;
    inset: 0;
    background: var(--charcoal);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s var(--ease-in-out);
}

.transition-overlay.active {
    opacity: 1;
}

/* ============================================
   HEADER
   ============================================ */

.tour-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 40px;
    padding-top: calc(24px + env(safe-area-inset-top, 0px));
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(180deg, rgba(13,13,13,0.7) 0%, rgba(13,13,13,0.3) 60%, transparent 100%);
    pointer-events: none;
    transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.tour-header.ui-hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    pointer-events: auto;
    text-decoration: none;
    color: inherit;
}

.brand .num {
    font-family: var(--serif);
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.08em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.brand .divider {
    width: 1.5px;
    height: 28px;
    background: var(--gold);
    opacity: 0.5;
}

.brand .text {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.45em;
    color: var(--gold);
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.nav-controls {
    display: flex;
    gap: 10px;
    pointer-events: auto;
}

.nav-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--cream-soft);
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    font-family: var(--sans);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all var(--transition-fast);
}

.nav-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--gold-dim);
    color: var(--gold);
}

.nav-btn span {
    display: inline;
}

/* ============================================
   SCENE VIEWER
   ============================================ */

.scene-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: var(--charcoal);
    background-color: #0d0d0d; /* explicit fallback for all browsers */
}

.scene-image-wrapper {
    position: absolute;
    inset: 0;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    transform-origin: center center;
    transition: transform 0.4s var(--ease-out-expo);
    background: var(--charcoal);
    background-color: #0d0d0d;
}

.scene-image-wrapper.zoomed {
    cursor: move;
}

/* Zoom hint overlay */
.zoom-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(13, 13, 13, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 16;
    pointer-events: none;
    opacity: 0;
    transition: transform 0.35s var(--ease-out-expo), opacity 0.35s var(--ease-out-expo);
}

.zoom-indicator.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.zoom-indicator.hide {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
}

.zoom-indicator svg {
    width: 24px;
    height: 24px;
    color: var(--gold);
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.scene-image-wrapper:active {
    cursor: grabbing;
}

.scene-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.7s var(--ease-in-out);
    will-change: opacity;
    background: var(--charcoal);
    background-color: #0d0d0d; /* prevents white flash in Firefox */
    /* Sharper image rendering — reduces blur on non-native resolutions */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: bicubic;
}

.scene-bg.active {
    opacity: 1;
}

/* ============================================
   SCENE TRANSITION LOADER
   ============================================ */

.scene-loader {
    position: absolute;
    inset: 0;
    z-index: 12;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(13, 13, 13, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out-expo), visibility 0.4s;
}

.scene-loader.active {
    opacity: 1;
    visibility: visible;
}

.scene-loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.scene-loader-ring {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(201, 169, 110, 0.15);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: sceneLoaderSpin 0.9s linear infinite;
}

@keyframes sceneLoaderSpin {
    to { transform: rotate(360deg); }
}

.scene-loader-text {
    font-family: var(--sans);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.8;
}

/* ============================================
   MOBILE AUTO-TOUR PAN ANIMATION
   ============================================ */

.scene-image-wrapper.auto-pan {
    animation: autoPanMobile 6s ease-in-out forwards;
}

@keyframes autoPanMobile {
    0%   { transform: scale(1.3) translateX(12%); }
    100% { transform: scale(1.3) translateX(-12%); }
}

/* ============================================
   HOTSPOTS
   ============================================ */

.hotspots-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.hotspot {
    position: absolute;
    width: 68px;
    height: 68px;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: hotspotAppear 0.6s var(--ease-out-expo) forwards;
}

.hotspot:nth-child(1) { animation-delay: 0.4s; }
.hotspot:nth-child(2) { animation-delay: 0.55s; }
.hotspot:nth-child(3) { animation-delay: 0.7s; }

@keyframes hotspotAppear {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.hotspot-inner {
    position: relative;
    width: 58px;
    height: 58px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(201, 169, 110, 0.18);
    border-radius: 50%;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1.5px solid rgba(201, 169, 110, 0.5);
    transition: all var(--transition-fast);
    box-shadow: 0 0 24px rgba(201, 169, 110, 0.2);
}

.hotspot:hover .hotspot-inner {
    background: rgba(201, 169, 110, 0.25);
    border-color: var(--gold);
    transform: scale(1.1);
}

.hotspot-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    opacity: 0.7;
    animation: hotspotPulse 2.5s ease-in-out infinite;
}

.hotspot-ring:nth-child(2) {
    animation-delay: 0.8s;
}

@keyframes hotspotPulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(2); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

.hotspot-dot {
    width: 16px;
    height: 16px;
    background: var(--gold);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 24px rgba(201, 169, 110, 0.7), 0 0 48px rgba(201, 169, 110, 0.35);
    transition: all var(--transition-fast);
}

.hotspot:hover .hotspot-dot {
    transform: scale(1.2);
    background: var(--gold-bright);
    box-shadow: 0 0 30px rgba(201, 169, 110, 0.8), 0 0 60px rgba(201, 169, 110, 0.4);
}

/* Always-visible hotspot label */
.hotspot-label {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(13, 13, 13, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(201, 169, 110, 0.25);
    color: var(--cream);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    font-family: var(--sans);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.hotspot-label::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-bottom-color: rgba(13, 13, 13, 0.75);
}

.hotspot:hover .hotspot-label {
    background: rgba(13, 13, 13, 0.9);
    border-color: var(--gold);
    color: var(--gold-bright);
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.2), 0 4px 16px rgba(0, 0, 0, 0.5);
    transform: translateX(-50%) translateY(2px);
}

/* ============================================
   FLOATING SCENE TITLE (always visible, no bg)
   ============================================ */

.scene-title-float {
    position: absolute;
    bottom: 130px;
    left: 50px;
    z-index: 10;
    pointer-events: auto;
    display: flex;
    align-items: flex-end;
    gap: 14px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.scene-title-float.visible {
    opacity: 1;
    transform: translateY(0);
}

.scene-title-float-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.scene-title-float .scene-counter {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--gold);
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.5);
}

.scene-title-float h2 {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 500;
    color: var(--white);
    line-height: 1.1;
    margin: 0;
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.7),
        0 4px 30px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(0, 0, 0, 0.4);
}

/* "i" Info Button */
.scene-info-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--gold);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
    margin-bottom: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.scene-info-btn:hover {
    background: rgba(201, 169, 110, 0.2);
    border-color: var(--gold);
    color: var(--gold-bright);
    transform: scale(1.1);
    box-shadow: 0 4px 24px rgba(201, 169, 110, 0.25), 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* ============================================
   SLIDE-UP DETAILS PANEL
   ============================================ */

.scene-details-panel {
    position: absolute;
    bottom: 115px;
    left: 0;
    right: 0;
    z-index: 110;
    pointer-events: auto;
    /* Glassmorphism */
    background: linear-gradient(
        180deg,
        rgba(18, 18, 28, 0.52) 0%,
        rgba(12, 12, 20, 0.58) 100%
    );
    backdrop-filter: blur(44px) saturate(1.6) brightness(0.95);
    -webkit-backdrop-filter: blur(44px) saturate(1.6) brightness(0.95);
    border-top: 1px solid rgba(201, 169, 110, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 -8px 40px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition:
        transform 0.5s var(--ease-out-expo),
        opacity 0.4s var(--ease-out-expo),
        max-height 0.5s var(--ease-out-expo);
}

.scene-details-panel.open {
    max-height: 280px;
    opacity: 1;
    transform: translateY(0);
}

.scene-details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 40px 0 40px;
}

.scene-details-header-left {
    flex: 1;
    min-width: 0;
}

.scene-counter-detail {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--gold);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.scene-details-panel h2 {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 500;
    color: var(--white);
    line-height: 1.1;
    margin: 0;
}

.scene-details-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--cream-soft);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.scene-details-close:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--gold);
    transform: scale(1.1);
}

.scene-details-body {
    padding: 12px 40px 26px 40px;
    max-height: 190px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dim) transparent;
}

.scene-details-body::-webkit-scrollbar {
    width: 4px;
}

.scene-details-body::-webkit-scrollbar-track {
    background: transparent;
}

.scene-details-body::-webkit-scrollbar-thumb {
    background: var(--gold-dim);
    border-radius: 4px;
}

.scene-details-panel p {
    font-size: 0.78rem;
    font-weight: 300;
    color: var(--cream-soft);
    line-height: 1.6;
    margin-bottom: 10px;
    max-width: 640px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.scene-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.scene-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 2px;
    padding-bottom: 6px;
}

.amenity-tag {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    background: rgba(201, 169, 110, 0.1);
    border: 1px solid rgba(201, 169, 110, 0.2);
    color: var(--gold-bright);
    white-space: nowrap;
}

.play-video-btn {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--cream);
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-family: var(--sans);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.play-video-btn:hover {
    background: var(--gold);
    color: var(--charcoal);
    border-color: var(--gold);
    box-shadow: 0 4px 20px var(--gold-dim);
    transform: translateY(-2px);
}

/* Drag hint */
.drag-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 15;
    pointer-events: none;
    opacity: 0;
    animation: hintAppear 1s var(--ease-out-expo) 1.5s forwards;
    /* Glassmorphism capsule background */
    background: linear-gradient(
        135deg,
        rgba(13, 13, 20, 0.65) 0%,
        rgba(13, 13, 20, 0.50) 100%
    );
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    padding: 18px 36px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.drag-hint.hide {
    animation: hintDisappear 0.6s var(--ease-out-expo) forwards !important;
}

@keyframes hintAppear {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes hintDisappear {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}

.drag-hint-icon {
    color: var(--gold);
    animation: hintSway 2s ease-in-out infinite;
}

@keyframes hintSway {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.drag-hint span {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cream-soft);
    text-shadow: none;
}

/* ============================================
   SCENE NAV ARROWS
   ============================================ */

.scene-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--cream-soft);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    transition: all var(--transition-fast);
    opacity: 0;
    animation: fadeIn 0.8s var(--ease-out-expo) 1s forwards;
}

.scene-nav-prev { left: 24px; }
.scene-nav-next { right: 24px; }

.scene-nav-arrow:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--gold-dim);
    color: var(--gold);
    transform: translateY(-50%) scale(1.08);
}

/* ============================================
   VIDEO OVERLAY
   ============================================ */

.video-overlay {
    position: absolute;
    inset: 0;
    z-index: 80;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s var(--ease-out-expo), visibility 0.5s;
}

.video-overlay.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.video-overlay-bg {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.close-video-btn {
    position: absolute;
    top: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--cream);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 81;
    transition: all var(--transition-fast);
}

.close-video-btn:hover {
    background: rgba(255,255,255,0.15);
    color: var(--gold);
    transform: scale(1.1);
}

.yt-player-wrap {
    position: relative;
    z-index: 1;
    width: 88%;
    max-width: 1100px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-deep);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.5s var(--ease-out-expo);
}

.video-overlay.visible .yt-player-wrap {
    transform: scale(1);
}

.yt-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-md);
}

/* ============================================
   BOTTOM THUMBNAIL NAV
   ============================================ */

.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: linear-gradient(0deg, rgba(13,13,13,0.9) 0%, rgba(13,13,13,0.5) 60%, transparent 100%);
    padding: 0 0 20px 0;
    transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.bottom-nav.ui-hidden {
    transform: translateY(100%);
    opacity: 0;
}

.bottom-nav-inner {
    padding: 0 20px;
}

.thumbnails-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 10px 0;
}

.thumbnails-container::-webkit-scrollbar {
    display: none;
}

.thumbnail {
    width: 120px;
    min-width: 120px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.4s var(--ease-out-expo);
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(10px);
    animation: thumbAppear 0.5s var(--ease-out-expo) forwards;
    /* Shimmer skeleton background */
    background: var(--charcoal-soft);
}

/* Shimmer overlay — visible while image is loading */
.thumbnail::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        110deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0) 35%,
        rgba(201, 169, 110, 0.08) 45%,
        rgba(201, 169, 110, 0.15) 50%,
        rgba(201, 169, 110, 0.08) 55%,
        rgba(255,255,255,0) 65%,
        rgba(255,255,255,0) 100%
    );
    background-size: 250% 100%;
    animation: thumbShimmer 1.8s ease-in-out infinite;
    border-radius: inherit;
    transition: opacity 0.5s ease;
}

.thumbnail.loaded::before {
    opacity: 0;
    pointer-events: none;
}

@keyframes thumbShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -50% 0; }
}

.thumbnail:nth-child(1) { animation-delay: 0.1s; }
.thumbnail:nth-child(2) { animation-delay: 0.15s; }
.thumbnail:nth-child(3) { animation-delay: 0.2s; }
.thumbnail:nth-child(4) { animation-delay: 0.25s; }
.thumbnail:nth-child(5) { animation-delay: 0.3s; }
.thumbnail:nth-child(6) { animation-delay: 0.35s; }
.thumbnail:nth-child(7) { animation-delay: 0.4s; }
.thumbnail:nth-child(8) { animation-delay: 0.45s; }
.thumbnail:nth-child(9) { animation-delay: 0.5s; }
.thumbnail:nth-child(10) { animation-delay: 0.55s; }

@keyframes thumbAppear {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease-out-expo), opacity 0.6s var(--ease-out-expo);
    opacity: 0;
}

.thumbnail.loaded img {
    opacity: 1;
}

.thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7) 100%);
    transition: opacity 0.4s ease;
}

.thumbnail .thumb-title {
    position: absolute;
    bottom: 6px;
    left: 8px;
    right: 8px;
    color: var(--cream-soft);
    font-size: 0.58rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    z-index: 2;
    text-shadow: 0 1px 6px rgba(0,0,0,0.8);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thumbnail:hover {
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

.thumbnail:hover img {
    transform: scale(1.12);
}

.thumbnail:hover::after {
    opacity: 0.6;
}

.thumbnail.active {
    border-color: var(--gold) !important;
    opacity: 1 !important;
    transform: translateY(-2px);
    box-shadow: 0 0 12px var(--gold-glow), 0 0 24px var(--gold-dim);
    animation: thumbAppear 0.5s var(--ease-out-expo) forwards, thumbnailGlow 2s ease-in-out 0.5s infinite;
}

@keyframes thumbnailGlow {
    0%, 100% { box-shadow: 0 0 10px var(--gold-glow), 0 0 20px rgba(201,169,110,0.15); border-color: var(--gold); }
    50%      { box-shadow: 0 0 18px var(--gold-glow), 0 0 36px rgba(201,169,110,0.35); border-color: var(--gold-bright); }
}

.thumbnail.active::after {
    opacity: 0.15;
}

.thumbnail.active .thumb-title {
    color: var(--gold-bright);
    text-shadow: 0 0 8px rgba(201,169,110,0.4), 0 1px 6px rgba(0,0,0,0.8);
}

/* Loading spinner on active thumbnail during scene transition */
.thumbnail.active.thumb-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 5;
    background: rgba(13, 13, 13, 0.6);
    border-radius: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.thumbnail.active.thumb-loading .thumb-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(201, 169, 110, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    z-index: 6;
    animation: sceneLoaderSpin 0.8s linear infinite;
}

/* Play button active state (when auto-tour is running) */
.scene-info-btn.auto-playing {
    background: rgba(201, 169, 110, 0.2);
    border-color: var(--gold);
    color: var(--gold-bright);
    box-shadow: 0 4px 24px rgba(201, 169, 110, 0.25), 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* ============================================
   MODALS
   ============================================ */

.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out-expo), visibility 0.4s;
}

.modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.modal-content {
    position: relative;
    z-index: 1;
    background: var(--charcoal-mid);
    border: 1px solid var(--line);
    padding: 40px;
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 900px;
    box-shadow: var(--shadow-deep);
    transform: translateY(30px) scale(0.97);
    transition: transform 0.5s var(--ease-out-expo);
}

.modal:not(.hidden) .modal-content {
    transform: translateY(0) scale(1);
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--line);
    color: var(--cream-soft);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-fast);
}

.close-btn:hover {
    background: rgba(255,255,255,0.12);
    color: var(--gold);
    transform: scale(1.1);
}

.modal-content h3 {
    font-family: var(--serif);
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 24px;
    font-weight: 400;
}

.floorplan-viewer {
    position: relative;
    width: 100%;
    background: rgba(255,255,255,0.95);
    border-radius: var(--radius-sm);
    padding: 20px;
}

.floorplan-viewer img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.fp-hotspot {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(201, 169, 110, 0.7);
    animation: pulseFp 2s infinite;
    transition: transform var(--transition-fast);
}

.fp-hotspot:hover {
    transform: translate(-50%, -50%) scale(1.4);
}

.fp-hotspot span {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--charcoal);
    color: var(--cream);
    padding: 4px 12px;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.fp-hotspot:hover span {
    opacity: 1;
}

@keyframes pulseFp {
    0% { box-shadow: 0 0 0 0 rgba(201, 169, 110, 0.6); }
    70% { box-shadow: 0 0 0 14px rgba(201, 169, 110, 0); }
    100% { box-shadow: 0 0 0 0 rgba(201, 169, 110, 0); }
}

/* Floor Plan Tabs */
.floorplan-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.floorplan-tab {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--cream-soft);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-family: var(--sans);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.floorplan-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold-dim);
}

.floorplan-tab.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    border-color: var(--gold);
    color: var(--charcoal);
    font-weight: 600;
}

.floorplan-loading {
    text-align: center;
    color: var(--cream-muted);
    font-size: 0.8rem;
    padding: 40px 0;
}

.floorplan-modal-content {
    max-width: 960px;
    max-height: 85vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dim) transparent;
}

/* ============================================
   INFO / ABOUT MODAL
   ============================================ */

.info-modal .modal-content {
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dim) transparent;
    padding: 0;
}

.info-modal-content::-webkit-scrollbar {
    width: 4px;
}

.info-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.info-modal-content::-webkit-scrollbar-thumb {
    background: var(--gold-dim);
    border-radius: 4px;
}

.info-modal-header {
    text-align: center;
    padding: 44px 40px 28px 40px;
    border-bottom: 1px solid var(--line);
}

.info-badge {
    display: inline-block;
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--charcoal);
    background: var(--gold);
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 16px;
}

.info-modal-header h3 {
    font-family: var(--serif);
    font-size: 2.2rem;
    color: var(--gold);
    font-weight: 400;
    margin-bottom: 6px;
}

.info-tagline {
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.9rem;
    color: var(--cream-muted);
    margin: 0;
}

.info-sections {
    padding: 28px 40px 8px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-section {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.info-section-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: rgba(201, 169, 110, 0.1);
    border: 1px solid rgba(201, 169, 110, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--gold);
    margin-top: 2px;
}

.info-section-content {
    flex: 1;
    min-width: 0;
}

.info-section-content h4 {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

.info-section-content p {
    font-size: 0.82rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--cream-soft);
}

.info-address {
    line-height: 1.8 !important;
    font-weight: 400 !important;
}

.info-directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    color: var(--charcoal);
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-family: var(--sans);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all var(--transition-fast);
}

.info-directions-btn:hover {
    box-shadow: 0 4px 20px var(--gold-dim);
    transform: translateY(-2px);
}

.info-map-wrapper {
    margin: 24px 24px 0 24px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--charcoal-soft);
}

.info-map-wrapper iframe {
    display: block;
    width: 100%;
    height: 220px;
    border: none;
    filter: contrast(1.05) brightness(0.85) saturate(0.8);
    transition: filter var(--transition-fast);
}

.info-map-wrapper:hover iframe {
    filter: contrast(1) brightness(1) saturate(1);
}

.info-footer {
    text-align: center;
    padding: 20px 40px 28px 40px;
    border-top: 1px solid var(--line);
    margin-top: 24px;
}

.info-footer p {
    font-size: 0.62rem;
    color: var(--cream-muted);
    letter-spacing: 0.08em;
}

/* Countdown Timer */
.countdown-grid {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    min-width: 56px;
}

.countdown-num {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--gold);
    line-height: 1;
    letter-spacing: 0.02em;
}

.countdown-label {
    font-size: 0.52rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cream-muted);
    margin-top: 4px;
}

.countdown-sep {
    font-family: var(--serif);
    font-size: 1.4rem;
    color: var(--gold-dim);
    font-weight: 300;
    margin-bottom: 14px;
}

.countdown-progress {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.countdown-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), var(--gold-bright));
    border-radius: 4px;
    transition: width 1s var(--ease-out-expo);
}

.countdown-note {
    font-size: 0.62rem !important;
    color: var(--cream-muted) !important;
    font-style: italic;
}

/* Social Links */
.info-socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.info-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    color: var(--cream-soft);
    text-decoration: none;
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    transition: all var(--transition-fast);
}

.info-social-link:hover {
    background: rgba(201, 169, 110, 0.12);
    border-color: var(--gold-dim);
    color: var(--gold);
}

.info-social-link svg {
    flex-shrink: 0;
}

/* ============================================
   MOBILE HAMBURGER MENU
   ============================================ */

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    cursor: pointer;
    z-index: 202;
    padding: 0;
    pointer-events: auto;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all var(--transition-fast);
}

.nav-hamburger span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--cream-soft);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out-expo);
    transform-origin: center;
}

.nav-hamburger:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--gold-dim);
}

.nav-hamburger:hover span {
    background: var(--gold);
}

/* Hamburger → X animation */
.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4.5px, 4.5px);
}
.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* Mobile nav overlay backdrop */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 199;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-overlay {
        display: block;
    }

    .nav-controls {
        position: fixed;
        top: 0;
        right: -280px;
        width: 260px;
        height: 100vh;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: rgba(13, 13, 13, 0.96);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border-left: 1px solid var(--line);
        padding: 80px 20px 30px 20px;
        z-index: 200;
        transition: right 0.4s var(--ease-out-expo);
        overflow-y: auto;
    }

    .nav-controls.open {
        right: 0;
    }

    .nav-controls .nav-btn {
        padding: 14px 18px;
        border-radius: var(--radius-sm);
        justify-content: flex-start;
        width: 100%;
        font-size: 0.74rem;
    }

    .nav-controls .nav-btn span {
        display: inline !important;
    }

    .nav-controls .nav-btn svg {
        width: 20px;
        height: 20px;
    }

    /* Info modal mobile */
    .info-modal-header { padding: 36px 24px 22px 24px; }
    .info-modal-header h3 { font-size: 1.6rem; }
    .info-sections { padding: 20px 24px 8px 24px; }
    .info-section { gap: 12px; }
    .info-section-icon { width: 34px; height: 34px; min-width: 34px; }
    .info-section-icon svg { width: 16px; height: 16px; }
    .info-section-content p { font-size: 0.76rem; }
    .info-map-wrapper { margin: 20px 16px 0 16px; }
    .info-footer { padding: 16px 24px 22px 24px; }
    .countdown-unit { padding: 8px 10px; min-width: 46px; }
    .countdown-num { font-size: 1.3rem; }
    .info-modal .modal-content { max-width: none; width: 94%; }
}

/* ============================================
   INQUIRY / BOOKING NAV BUTTON
   ============================================ */

.nav-btn.nav-btn-accent {
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    border: none;
    color: var(--charcoal);
    font-weight: 600;
}

.nav-btn.nav-btn-accent:hover {
    background: linear-gradient(135deg, var(--gold-bright), #f0d8a0);
    color: var(--charcoal);
    box-shadow: 0 4px 24px var(--gold-dim);
    transform: translateY(-1px);
}

/* ============================================
   INQUIRY MODAL
   ============================================ */

.inquiry-modal .modal-content {
    max-width: 520px;
}

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cream-soft);
}

.form-group input,
.form-group textarea,
.form-group select {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--line-light);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 300;
    color: var(--cream);
    outline: none;
    transition: border-color var(--transition-fast), background var(--transition-fast);
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--gold);
    background: rgba(255,255,255,0.07);
}

.form-group textarea {
    min-height: 90px;
    resize: vertical;
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--charcoal-mid);
    color: var(--cream);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.submit-btn {
    margin-top: 8px;
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    color: var(--charcoal);
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.submit-btn:hover {
    box-shadow: 0 6px 24px var(--gold-dim);
    transform: translateY(-2px);
}

.form-note {
    font-size: 0.68rem;
    color: var(--cream-muted);
    text-align: center;
    margin-top: 4px;
    line-height: 1.5;
}

.required {
    color: #e85d5d;
    font-weight: 600;
}

.optional {
    color: var(--cream-muted);
    font-weight: 300;
    font-style: italic;
    text-transform: none;
    letter-spacing: 0;
}

/* ============================================
   TOUR PROGRESS BAR
   ============================================ */

.tour-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.05);
    z-index: 150;
}

.tour-progress-fill {
    height: 100%;
    width: 10%;
    background: linear-gradient(90deg, var(--gold), var(--gold-bright));
    border-radius: 0 2px 2px 0;
    transition: width 0.8s var(--ease-out-expo);
    box-shadow: 0 0 8px var(--gold-dim);
}

/* ============================================
   SHARE TOAST
   ============================================ */

.share-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: rgba(13,13,13,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--cream);
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 300;
    transition: transform 0.5s var(--ease-out-expo);
    pointer-events: none;
    box-shadow: var(--shadow-soft);
}

.share-toast.visible {
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   WHATSAPP FAB
   ============================================ */

.whatsapp-fab {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 14px rgba(37, 211, 102, 0.25);
    z-index: 95;
    transition: all var(--transition-fast);
    text-decoration: none;
    opacity: 0.85;
}

.whatsapp-fab svg {
    width: 22px;
    height: 22px;
}

.whatsapp-fab:hover {
    opacity: 1;
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
}

/* ============================================
   MUSIC TOGGLE FAB
   ============================================ */

.music-fab {
    position: fixed;
    bottom: 156px;
    right: 24px;
    z-index: 1000;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(13, 13, 20, 0.6);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid rgba(201, 169, 110, 0.2);
    color: var(--gold);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s var(--ease-out-expo);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    opacity: 0;
    transform: scale(0.8) translateY(10px);
    animation: musicFabAppear 0.6s var(--ease-out-expo) 1s forwards;
}

@keyframes musicFabAppear {
    to {
        opacity: 0.85;
        transform: scale(1) translateY(0);
    }
}

.music-fab:hover {
    opacity: 1 !important;
    border-color: var(--gold);
    background: rgba(201, 169, 110, 0.15);
    transform: scale(1.08) translateY(-2px);
    box-shadow:
        0 6px 28px rgba(201, 169, 110, 0.25),
        0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Playing state glow */
.music-fab.playing {
    border-color: rgba(201, 169, 110, 0.4);
    box-shadow:
        0 4px 20px rgba(201, 169, 110, 0.15),
        0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Equalizer bars (visible when playing) */
.music-eq {
    display: flex;
    align-items: flex-end;
    gap: 2.5px;
    height: 16px;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.3s ease, transform 0.3s var(--ease-out-expo);
    position: absolute;
}

.music-fab.playing .music-eq {
    opacity: 1;
    transform: scale(1);
}

.music-eq span {
    display: block;
    width: 3px;
    border-radius: 1.5px;
    background: var(--gold);
    animation: none;
}

.music-fab.playing .music-eq span {
    animation: eqBounce 0.8s ease-in-out infinite alternate;
}

.music-eq span:nth-child(1) {
    height: 6px;
    animation-delay: 0s !important;
}
.music-eq span:nth-child(2) {
    height: 12px;
    animation-delay: 0.15s !important;
}
.music-eq span:nth-child(3) {
    height: 8px;
    animation-delay: 0.3s !important;
}
.music-eq span:nth-child(4) {
    height: 14px;
    animation-delay: 0.45s !important;
}

@keyframes eqBounce {
    0%   { height: 4px; }
    100% { height: 16px; }
}

/* Muted icon (visible when not playing) */
.music-icon-muted {
    position: absolute;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s var(--ease-out-expo);
}

.music-fab.playing .music-icon-muted {
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
}

/* Tooltip on hover */
.music-fab::after {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--cream);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--sans);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s var(--ease-out-expo);
}

.music-fab:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ============================================
   AUTO TOUR INDICATOR
   ============================================ */

.nav-btn.auto-active {
    background: rgba(201, 169, 110, 0.15);
    border-color: var(--gold);
    color: var(--gold);
}

.nav-btn.auto-active span::after {
    content: ' ●';
    animation: autoPulse 1.5s infinite;
}

@keyframes autoPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .tour-header {
        padding: 12px 16px;
        padding-top: calc(12px + env(safe-area-inset-top, 0px));
    }
    .scene-title-float { left: 20px; bottom: 110px; }
    .scene-title-float h2 { font-size: 1.6rem; }
    .scene-details-panel { bottom: 95px; }
    .scene-details-panel.open { max-height: 240px; }
    .scene-details-header { padding: 14px 20px 0 20px; }
    .scene-details-body { padding: 10px 20px 20px 20px; max-height: 160px; }
    .bottom-nav-inner { padding: 0 12px; }
    .thumbnail { width: 100px; min-width: 100px; height: 60px; }
    .scene-nav-prev { left: 12px; }
    .scene-nav-next { right: 12px; }
    .scene-nav-arrow { width: 40px; height: 40px; }
    .modal-content { padding: 24px; width: 95%; }
    .form-row { grid-template-columns: 1fr; }
    .whatsapp-fab { width: 40px; height: 40px; bottom: 80px; right: 12px; }
    .whatsapp-fab svg { width: 20px; height: 20px; }
    .music-fab { width: 40px; height: 40px; bottom: 128px; right: 12px; }
    .loader-features { gap: 16px; }
    .loader-feature-num { font-size: 1.3rem; }
    .loader-feature-divider { height: 24px; }

    /* Mobile-friendly hotspots — 56px tap target */
    .hotspot { width: 56px; height: 56px; }
    .hotspot-inner { width: 50px; height: 50px; }
    .hotspot-dot { width: 16px; height: 16px; }
    .hotspot-label { font-size: 0.58rem; padding: 4px 10px; }

    /* Floor plan tabs */
    .floorplan-tab { padding: 7px 16px; font-size: 0.62rem; }
    .fp-hotspot { width: 16px; height: 16px; }

    /* Drag hint */
    .drag-hint { padding: 14px 28px; }
}

@media (max-width: 480px) {
    .scene-title-float { bottom: 90px; left: 12px; }
    .scene-title-float h2 { font-size: 1.3rem; }
    .scene-info-btn { width: 34px; height: 34px; }
    .scene-details-panel { bottom: 85px; }
    .scene-details-panel.open { max-height: 220px; }
    .scene-details-body { max-height: 140px; }
    .thumbnail { width: 85px; min-width: 85px; height: 52px; }
    .thumbnail .thumb-title { font-size: 0.5rem; }

    /* Mobile-friendly hotspots — 48px minimum tap target */
    .hotspot { width: 52px; height: 52px; }
    .hotspot-inner { width: 46px; height: 46px; }
    .hotspot-dot { width: 14px; height: 14px; }
    .hotspot-label { font-size: 0.52rem; padding: 3px 8px; letter-spacing: 0.06em; }

    /* Floor plan tabs */
    .floorplan-tab { padding: 6px 14px; font-size: 0.58rem; }
    .fp-hotspot { width: 18px; height: 18px; }
    .fp-hotspot span { font-size: 0.55rem; }

    /* Drag hint */
    .drag-hint { padding: 12px 22px; }
    .drag-hint span { font-size: 0.62rem; letter-spacing: 0.12em; }

    .loader-features { flex-direction: column; gap: 10px; }
    .loader-feature-divider { width: 30px; height: 1px; }
    .loader-badge { font-size: 0.52rem; padding: 4px 14px; }
}
