/* ═══════════════════════════════════════
   NYALA VILLAS — Luxury UI Overlay
   Only targets .nv-* classes
   Never touches #viewer or #preloadContainer
   ═══════════════════════════════════════ */

:root {
  /* ── Nyala Villas Brand Palette ──────────────────────────────
     Inspired by villa's warm terracotta architecture,
     earthy plaster walls, and Moroccan-influenced warmth.
  ──────────────────────────────────────────────────────────── */
  --bg:         #14100C;   /* deep warm dark — villa shadow tones    */
  --bg2:        #1C1812;   /* slightly lighter warm dark             */
  --bg3:        #251F17;   /* card / hover                           */
  --bg4:        #2E271E;   /* deeper hover                           */
  --line:       #2A2218;   /* subtle warm border                     */
  --line2:      #382E22;   /* secondary border                       */
  --text:       #EDE5D8;   /* warm cream — like villa plaster walls  */
  --text2:      #9C8A76;   /* warm secondary text                    */
  --text3:      #5C4E40;   /* tertiary                               */
  --accent:     #C4906B;   /* terracotta — main villa wall color     */
  --accent2:    #DEB48A;   /* lighter terracotta                     */
  --accent-dim: rgba(196,144,107,0.14);
  --panel-w:    320px;
  --bar-h:      50px;
  --ease:       cubic-bezier(.4,0,.2,1);
  --fast:       cubic-bezier(.2,0,0,1);
}

/* ─────────────────────────────────────────
   LEFT PANEL
   bottom = var(--bar-h) so footer is visible
   ───────────────────────────────────────── */
.nv-panel {
  position: fixed;
  top: 0; left: 0;
  bottom: var(--bar-h);
  width: var(--panel-w);
  z-index: 20;
  /* WHITE/LIGHT base — higher opacity for visual consistency */
  background: rgba(255, 245, 228, 0.45);
  backdrop-filter: blur(20px) brightness(0.88) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) brightness(0.88) saturate(1.3);
  border-right: 1px solid rgba(255,255,255,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .3s var(--ease);
}
.nv-panel.nv-hidden {
  transform: translateX(calc(-1 * var(--panel-w)));
}

/* ─────────────────────────────────────────────────────────────
   GLASS PANEL — ALL internals consistent
   transparent backgrounds + white text + shadow for readability
   ───────────────────────────────────────────────────────────── */
.nv-hero,
.nv-tabs,
.nv-content,
.nv-location-box,
.nv-rooms,
.nv-group,
.nv-panel-foot {
  background: transparent !important;
}

/* Interactive elements — subtle white tint */
.nv-collapse-btn  { background: rgba(255,255,255,0.10) !important; border-color: rgba(255,255,255,0.15) !important; }
.nv-tab-btn       { background: transparent !important; }
.nv-room          { background: transparent !important; }
.nv-room:hover    { background: rgba(150, 95, 50, 0.18) !important; }
.nv-room.nv-active { background: rgba(150, 95, 50, 0.28) !important; }
.nv-floor-btn     { background: rgba(255,255,255,0.08) !important; border-color: rgba(255,255,255,0.15) !important; }
.nv-floor-active  { background: rgba(255,255,255,0.18) !important; border-color: rgba(255,255,255,0.3) !important; }
.nv-enquire-btn            { background: transparent !important; border-color: var(--accent) !important; color: var(--accent) !important; transition: background .2s, border-color .2s !important; }
.nv-enquire-btn:hover      { background: rgba(150, 95, 50, 0.22) !important; border-color: var(--accent2) !important; }
.nv-tab-btn:hover          { background: rgba(150, 95, 50, 0.18) !important; }

/* TEXT — original earthy tones, no shadow */
.nv-panel * {
  text-shadow: none;
}

/* Divider — subtle white, not black */
.nv-section-divider {
  background: rgba(255,255,255,0.18) !important;
}
.nv-hero {
  border-bottom-color: rgba(255,255,255,0.10) !important;
}
.nv-tabs {
  border-bottom-color: rgba(255,255,255,0.10) !important;
}
.nv-panel-foot {
  border-top: none !important;
  background: rgba(255, 248, 235, 0.22) !important;
}

/* HIDE button — subtle, not dark */
.nv-collapse-btn {
  color: rgba(255,255,255,0.7) !important;
}
.nv-collapse-btn:hover { color: #fff !important; }

/* ─── HERO ─────────────────────────────── */
.nv-hero {
  position: relative;
  padding: 22px 18px 22px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: transparent; /* inherit glassmorphism from panel */
}

.nv-collapse-btn {
  position: absolute;
  top: 14px; right: 14px;
  height: 28px;
  padding: 0 10px;
  background: var(--bg3);
  border: 1px solid var(--line2);
  border-radius: 5px;
  color: var(--text2);
  cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all .2s;
  z-index: 2;
}
.nv-collapse-btn:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent2);
}

/* Logo — full width, rata kiri, turun agar tidak mepet hide button */
.nv-hero-logo-wrap {
  margin-top: 36px;    /* turun lebih jauh agar clear dari tombol HIDE */
  margin-bottom: 16px;
}
.nv-hero-logo {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Text below logo: LEFT-ALIGNED */
.nv-hero-tag {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: .6rem;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 5px;
  text-align: left;
}

.nv-hero-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text3);
  text-align: left;
}
.nv-dot {
  color: var(--line2);
  font-size: .45rem;
}

/* ─── TABS ─────────────────────────────── */
.nv-tabs {
  display: flex;
  border-bottom: 1px solid var(--line2);
  flex-shrink: 0;
}
.nv-tab-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 8px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: .7rem; font-weight: 600;
  letter-spacing: 1px;
  color: var(--text3);
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.nv-tab-btn:hover { color: var(--text2); }
.nv-tab-active {
  color: var(--accent) !important;
  border-bottom-color: var(--accent) !important;
}

/* ─── CONTENT PANELS ───────────────────── */
.nv-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.nv-hidden { display: none !important; }

/* ─── LOCATION BOX ─────────────────────── */
.nv-location-box {
  padding: 16px 20px 14px;
  flex-shrink: 0;
}
.nv-location-label {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: .58rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 7px;
}
.nv-location-name {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 1.05rem; font-weight: 300;
  letter-spacing: .3px;
  color: var(--text);
  margin-bottom: 5px;
  transition: color .25s;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.nv-location-desc {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: .73rem;
  color: var(--text2);
  line-height: 1.55;
}

.nv-section-divider {
  height: 1px;
  background: var(--line2);
  margin: 0 20px;
  flex-shrink: 0;
}

/* ─── ROOMS ────────────────────────────── */
.nv-rooms-label {
  padding: 14px 20px 6px;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: .58rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--text3);
  flex-shrink: 0;
}

.nv-rooms {
  flex: 1;
  overflow-y: auto;
  padding: 0 10px 8px;
}
.nv-rooms::-webkit-scrollbar { width: 3px; }
.nv-rooms::-webkit-scrollbar-track { background: transparent; }
.nv-rooms::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 2px; }

.nv-group { margin-bottom: 2px; }
.nv-group-name {
  padding: 10px 10px 5px;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: .58rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text3);
}

.nv-room {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: background .18s var(--ease), border-color .18s;
  position: relative;
}
.nv-room:hover { background: var(--bg3); }
.nv-room.nv-active {
  background: var(--accent-dim);
  border-color: rgba(184,151,106,.25);
}
.nv-room.nv-active::before {
  content: '';
  position: absolute;
  left: 0; top: 25%; bottom: 25%;
  width: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nv-room-num {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: .62rem; font-weight: 500;
  letter-spacing: 1px;
  color: var(--text3);
  min-width: 18px;
  flex-shrink: 0;
  transition: color .18s;
}
.nv-room.nv-active .nv-room-num { color: var(--accent); }

.nv-room-name {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: .82rem;
  color: var(--text2);
  flex: 1;
  transition: color .18s;
}
.nv-room:hover .nv-room-name,
.nv-room.nv-active .nv-room-name { color: var(--text); }

.nv-room-arrow {
  color: var(--text3);
  opacity: 0;
  flex-shrink: 0;
  transition: opacity .18s, transform .18s;
}
.nv-room:hover .nv-room-arrow {
  opacity: 1;
  transform: translateX(2px);
}

/* ─── FLOORPLAN CONTENT ────────────────── */
.nv-floor-label {
  padding: 14px 20px 8px;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: .58rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--text3);
  flex-shrink: 0;
}

.nv-floor-btns {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 14px;
  flex-shrink: 0;
}

.nv-floor-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  background: var(--bg2);
  border: 1px solid var(--line2);
  border-radius: 7px;
  cursor: pointer;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: .82rem;
  color: var(--text2);
  text-align: left;
  transition: all .18s var(--ease);
}
.nv-floor-btn:hover { background: var(--bg3); color: var(--text); }
.nv-floor-active {
  background: var(--accent-dim) !important;
  border-color: rgba(184,151,106,.3) !important;
  color: var(--text) !important;
}
.nv-floor-active svg { color: var(--accent); }

.nv-floor-hint {
  padding: 10px 20px 6px;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: .68rem;
  color: var(--text3);
  flex-shrink: 0;
}

.nv-floor-viewer {
  flex: 1;
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

#nvFloorImg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid var(--line2);
  opacity: 0;
  transition: opacity .35s ease;
}
#nvFloorImg.nv-loaded { opacity: 1; }

.nv-floor-img-label {
  position: absolute;
  bottom: 12px;
  left: 50%; transform: translateX(-50%);
  background: rgba(10,10,10,.85);
  border: 1px solid var(--line2);
  border-radius: 4px;
  padding: 4px 10px;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: .68rem;
  letter-spacing: 1px;
  color: var(--text2);
}

/* ─── PANEL FOOTER ─────────────────────── */
.nv-panel-foot {
  padding: 12px 16px;
  border-top: none;
  flex-shrink: 0;
  background: transparent !important;
}

.nv-enquire-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 11px 0;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 5px;
  color: var(--accent);
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: .72rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.nv-enquire-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ─── OPEN TAB (when panel hidden) ────── */
.nv-open-tab {
  position: fixed;
  top: 50%; left: 0;
  transform: translateY(-50%);
  z-index: 21;
  width: 28px; height: 80px;
  background: var(--bg2);
  border: 1px solid var(--line2);
  border-left: none;
  border-radius: 0 8px 8px 0;
  display: none;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  color: var(--text2);
  cursor: pointer;
  transition: all .2s;
}
.nv-open-tab.nv-visible { display: flex; }
.nv-open-tab:hover {
  color: var(--accent2);
  background: var(--bg3);
  border-color: var(--accent);
  width: 32px;
}
/* Vertical text inside open tab */
.nv-open-tab span {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: .48rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  color: var(--text3);
}
.nv-open-tab:hover span { color: var(--accent); }

/* ─── BOTTOM TOOLBAR ────────────────────
   pointer-events:none on background so
   3DVista hotspots near bottom are tappable.
   Only actual buttons are interactive.
   ─────────────────────────────────────── */
.nv-toolbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bar-h);
  z-index: 20;
  background: var(--bg);
  border-top: 1px solid var(--line2);
  display: flex; align-items: center;
  padding: 0 16px;
  pointer-events: none;
}
/* Only actual interactive elements capture events */
.nv-toolbar .nv-tbtn,
.nv-toolbar .nv-360-badge,
.nv-toolbar .nv-tb-brand {
  pointer-events: auto;
}


.nv-tb-left  { display: flex; align-items: center; gap: 10px; flex: 1; }
.nv-tb-center { display: flex; align-items: center; gap: 2px; }
.nv-tb-right { display: flex; justify-content: flex-end; flex: 1; }

.nv-360-badge {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: .72rem; font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent);
  border: 1px solid rgba(184,151,106,.3);
  border-radius: 4px;
  padding: 3px 7px;
}
.nv-tb-hint {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: .67rem;
  color: var(--text3);
}

.nv-tbtn {
  width: 34px; height: 34px;
  background: transparent;
  border: none; border-radius: 6px;
  color: var(--text3);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color .18s, background .18s;
}
.nv-tbtn:hover { color: var(--text2); background: var(--bg3); }
.nv-tbtn.nv-on { color: var(--accent); }

.nv-tb-brand {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: .58rem; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(255,255,255,.12);
}

/* ─── MODAL ─────────────────────────────── */
.nv-modal {
  position: fixed; inset: 0;
  z-index: 100;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center; justify-content: center;
}
.nv-modal.nv-open {
  display: flex;
  animation: nvFade .22s ease;
}
.nv-modal-card {
  background: var(--bg2);
  border: 1px solid var(--line2);
  border-radius: 14px;
  padding: 30px;
  max-width: 380px; width: 90%;
  position: relative;
  animation: nvUp .28s var(--ease);
  max-height: 88vh; overflow-y: auto;
}
.nv-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 28px; height: 28px;
  background: var(--bg3);
  border: 1px solid var(--line2);
  border-radius: 6px;
  color: var(--text2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color .2s;
}
.nv-modal-close:hover { color: var(--text); }
.nv-modal-logo {
  height: 42px; width: auto;
  display: block; margin-bottom: 18px;
}
.nv-modal-title {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 1.3rem; font-weight: 300;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--text); margin-bottom: 5px;
}
.nv-modal-sub {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: .73rem; color: var(--text2);
  margin-bottom: 22px; line-height: 1.5;
}
.nv-modal-links { display: flex; flex-direction: column; gap: 8px; }
.nv-mlink {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  background: var(--bg3);
  border: 1px solid var(--line2);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color .2s, background .2s;
}
.nv-mlink:hover { background: var(--bg4); border-color: var(--line2); }
.nv-mlink-icon { color: var(--text2); flex-shrink: 0; }
.nv-mlink-wa .nv-mlink-icon { color: #25D366; }
.nv-mlink-wa:hover { border-color: rgba(37,211,102,.3); }
.nv-mlink-info {
  display: flex; flex-direction: column;
  font-family: 'Segoe UI', Arial, sans-serif;
}
.nv-mlink-info span {
  font-size: .6rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text3); margin-bottom: 2px;
}
.nv-mlink-info {
  font-size: .82rem; color: var(--text);
}

/* ─── TOAST ─────────────────────────────── */
.nv-toast {
  position: fixed;
  bottom: calc(var(--bar-h) + 14px);
  left: 50%; transform: translateX(-50%) translateY(10px);
  background: var(--bg3);
  border: 1px solid var(--line2);
  border-radius: 6px;
  padding: 9px 18px;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: .78rem; color: var(--text);
  z-index: 90; opacity: 0;
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.nv-toast.nv-show {
  opacity: 1; transform: translateX(-50%) translateY(0);
}

/* ══════════════════════════════════════════════
   NYALA LUXURY LOADING SCREEN
   Completely separate from 3DVista's preloader
   ══════════════════════════════════════════════ */
#nvLoader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #14100C;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1.4s cubic-bezier(0.4,0,0.2,1),
              visibility 1.4s cubic-bezier(0.4,0,0.2,1);
}
#nvLoader.nvl-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.nvl-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 40px;
  width: 100%;
  max-width: 520px;
}

/* Logo — same width as progress bar */
.nvl-logo-wrap {
  width: 100%;         /* matches progress bar width exactly */
  opacity: 0;
  transform: scale(0.96) translateY(10px);
  animation: nvlLogoIn 1.4s cubic-bezier(0.2,0,0.2,1) 0.6s forwards;
  margin-bottom: 28px;
}
.nvl-logo {
  width: 100%;         /* fill container = same as bar */
  height: auto;        /* maintain aspect ratio — no stretch */
  display: block;
  object-fit: contain;
  object-position: left center;
}

/* Thin divider line */
.nvl-divider {
  width: 0;
  height: 1px;
  background: rgba(184,151,106,0.4);
  margin-bottom: 20px;
  animation: nvlLineGrow 1s cubic-bezier(0.4,0,0.2,1) 1.8s forwards;
}

/* Tagline */
.nvl-tag {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  opacity: 0;
  transform: translateY(8px);
  animation: nvlFadeUp 1s ease 2s forwards;
  margin-bottom: 8px;
}

/* Location */
.nvl-loc {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 0.55rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  opacity: 0;
  animation: nvlFadeUp 1s ease 2.3s forwards;
  margin-bottom: 36px;
}

/* Progress bar */
.nvl-progress-wrap {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  opacity: 0;
  animation: nvlFadeIn 0.5s ease 2.6s forwards;
}
.nvl-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #C4906B, #DEB48A, #C4906B);
  background-size: 200% 100%;
  animation:
    nvlBarFill 2.4s cubic-bezier(0.4,0,0.6,1) 2.8s forwards,
    nvlBarShimmer 2s linear 2.8s infinite;
}

/* Hint text */
.nvl-hint {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 0.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.12);
  margin-top: 12px;
  opacity: 0;
  animation: nvlFadeIn 1s ease 3.2s forwards;
}

/* Keyframes */
@keyframes nvlLogoIn {
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes nvlLineGrow {
  to { width: 48px; }
}
@keyframes nvlFadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes nvlFadeIn {
  to { opacity: 1; }
}
@keyframes nvlBarFill {
  to { width: 100%; }
}
@keyframes nvlBarShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ══════════════════════════════════════════════
   STORY MODE — INTRO SCREEN
   ══════════════════════════════════════════════ */
.nvi-screen {
  position: fixed; inset: 0;
  z-index: 9998;
  background: rgba(20,16,12,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s ease, visibility 1s ease;
}
.nvi-screen.nvi-hidden {
  opacity: 0; visibility: hidden; pointer-events: none;
}

.nvi-inner {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: 40px 32px;
  max-width: 460px; width: 90%;
  animation: nviFadeUp .8s ease .2s both;
}

.nvi-logo img {
  height: 70px; width: auto;
  margin-bottom: 18px;
  opacity: 0;
  animation: nviFadeUp .8s ease .4s forwards;
}

.nvi-title {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: .65rem; font-weight: 700;
  letter-spacing: 5px; text-transform: uppercase;
  color: var(--accent2);
  opacity: 0;
  animation: nviFadeUp .7s ease .7s forwards;
}

.nvi-sub {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: .72rem; color: var(--text2);
  letter-spacing: 1px; margin-top: 6px;
  opacity: 0;
  animation: nviFadeUp .7s ease .9s forwards;
}

.nvi-divider {
  width: 40px; height: 1px;
  background: var(--accent);
  margin: 22px auto;
  opacity: 0;
  animation: nviFadeUp .5s ease 1.1s forwards;
}

.nvi-question {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: .75rem; color: var(--text2);
  letter-spacing: 1.5px; margin-bottom: 24px;
  opacity: 0;
  animation: nviFadeUp .7s ease 1.2s forwards;
}

.nvi-btns {
  display: flex; flex-direction: column;
  gap: 12px; width: 100%;
  opacity: 0;
  animation: nviFadeUp .8s ease 1.4s forwards;
}

.nvi-btn {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 22px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: all .25s var(--ease);
  width: 100%;
}

.nvi-btn-journey {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #14100C;
}
.nvi-btn-journey:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196,144,107,.35);
}

.nvi-btn-free {
  background: transparent;
  border: 1px solid var(--line2);
  color: var(--text2);
}
.nvi-btn-free:hover {
  background: var(--bg3);
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
}

.nvi-btn-icon {
  flex-shrink: 0; width: 36px; height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.nvi-btn-journey .nvi-btn-icon { background: rgba(20,16,12,.2); }

.nvi-btn-text { display: flex; flex-direction: column; gap: 2px; }
.nvi-btn-text strong {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: .82rem; font-weight: 700;
  letter-spacing: .5px;
}
.nvi-btn-text small {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: .65rem; opacity: .75;
  letter-spacing: .5px;
}

.nvi-hint {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: .55rem; letter-spacing: 3px;
  text-transform: uppercase; color: var(--text3);
  margin-top: 28px;
  opacity: 0;
  animation: nviFadeUp .6s ease 1.8s forwards;
}

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

/* ══════════════════════════════════════════════
   STORY MODE — NARRATION OVERLAY
   ══════════════════════════════════════════════ */
.nvs-overlay {
  position: fixed; inset: 0;
  z-index: 15;
  pointer-events: none;
}

/* Progress dots */
.nvs-progress {
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px;
  align-items: center;
}
.nvs-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  transition: all .35s ease;
  cursor: pointer;
  pointer-events: auto;
}
.nvs-dot.nvs-done  { background: rgba(196,144,107,.6); }
.nvs-dot.nvs-active {
  background: var(--accent);
  width: 20px; border-radius: 3px;
  box-shadow: 0 0 8px rgba(196,144,107,.5);
}

/* ── CINEMATIC SUBTITLE NARRATION ─────────────────────────────
   No background box. Pure text with shadow — like movie subtitles.
─────────────────────────────────────────────────────────────── */
.nvs-narration {
  position: absolute;
  bottom: 90px; left: 50%;
  transform: translateX(-50%);
  width: 88%; max-width: 700px;
  background: none;           /* NO background */
  border: none;               /* NO border */
  backdrop-filter: none;
  padding: 0;
  text-align: center;
  animation: nvsSlideUp .6s ease;
}

.nvs-room-tag {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: .58rem; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 12px;
  /* Cinematic text shadow */
  text-shadow:
    0 1px 8px rgba(0,0,0,.95),
    0 2px 20px rgba(0,0,0,.8);
}

.nvs-text {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 1.05rem; font-weight: 300;
  line-height: 1.75;
  color: #FFFFFF;
  letter-spacing: .3px;
  /* Strong cinematic shadow for readability on any background */
  text-shadow:
    0 1px 4px rgba(0,0,0,1),
    0 2px 12px rgba(0,0,0,.9),
    0 4px 30px rgba(0,0,0,.7);
}

/* Controls bar — minimal cinematic style */
.nvs-controls {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  pointer-events: auto;
  background: rgba(10,8,6,.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(196,144,107,.15);
  border-radius: 30px;
  padding: 8px 18px;
}

.nvs-btn {
  width: 32px; height: 32px;
  background: transparent;
  border: none;
  color: var(--text2);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: all .2s;
}
.nvs-btn:hover { color: var(--text); background: var(--bg3); }

.nvs-btn-pause { color: var(--accent); }
.nvs-btn-exit {
  width: auto; padding: 0 12px; gap: 5px;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: .62rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text3);
  border-left: 1px solid var(--line2);
  border-radius: 0; margin-left: 4px;
}
.nvs-btn-exit:hover { color: var(--text); background: transparent; }

@keyframes nvsSlideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(15px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── STORY MODE ACTIVE ─────────────────────────────────────────
   3DVista built-in panel has been removed from skin.
   So panel & toolbar can now be fully hidden during story mode
   to give full panorama experience.
────────────────────────────────────────────────────────────── */
body.nvs-active .nv-panel {
  opacity: 0 !important;
  transform: translateX(calc(-1 * var(--panel-w))) !important;
  pointer-events: none !important;
  transition: opacity .4s ease, transform .4s ease !important;
}

body.nvs-active .nv-toolbar {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity .4s ease !important;
}

body.nvs-active .nv-open-tab {
  display: none !important;
}

/* ─── FULLSCREEN COMPATIBILITY ───────────────
   When browser enters fullscreen, our elements
   get re-parented inside. Ensure they stay
   visible and positioned correctly.
   ──────────────────────────────────────────── */
:fullscreen .nv-panel,
:-webkit-full-screen .nv-panel,
:-moz-full-screen .nv-panel {
  position: fixed;
  z-index: 2147483640;
}
:fullscreen .nv-toolbar,
:-webkit-full-screen .nv-toolbar,
:-moz-full-screen .nv-toolbar {
  position: fixed;
  z-index: 2147483640;
}
:fullscreen .nv-open-tab,
:-webkit-full-screen .nv-open-tab,
:-moz-full-screen .nv-open-tab {
  position: fixed;
  z-index: 2147483641;
}
:fullscreen .nv-modal,
:-webkit-full-screen .nv-modal,
:-moz-full-screen .nv-modal {
  position: fixed;
  z-index: 2147483645;
}
:fullscreen .nv-toast,
:-webkit-full-screen .nv-toast,
:-moz-full-screen .nv-toast {
  position: fixed;
  z-index: 2147483644;
}

/* ─── HIDE VIDEO PANORAMA CONTROLS ─────────
   Hides the blue progress bar / loader
   that appears on video panoramas
   ──────────────────────────────────────── */
#viewer video {
  pointer-events: none !important;
}
#viewer video::-webkit-media-controls,
#viewer video::-webkit-media-controls-panel,
#viewer video::-webkit-media-controls-play-button,
#viewer video::-webkit-media-controls-timeline,
#viewer video::-webkit-media-controls-current-time-display,
#viewer video::-webkit-media-controls-time-remaining-display,
#viewer video::-webkit-media-controls-mute-button,
#viewer video::-webkit-media-controls-volume-slider,
#viewer video::-webkit-media-controls-fullscreen-button {
  display: none !important;
  opacity: 0 !important;
}
/* Hide any 3DVista video loader/progress */
#viewer [class*="loader"],
#viewer [class*="progress"],
#viewer [class*="video-bar"],
#viewer [class*="videoBar"],
#viewer [class*="VideoBar"] {
  display: none !important;
  opacity: 0 !important;
}

/* ─── HIDE VIDEO PANORAMA CONTROLS ─────────
   Prevents browser/3DVista video controls
   from appearing over the panorama
   ──────────────────────────────────────── */
#viewer video { pointer-events: none !important; }
#viewer video::-webkit-media-controls,
#viewer video::-webkit-media-controls-panel,
#viewer video::-webkit-media-controls-play-button,
#viewer video::-webkit-media-controls-timeline,
#viewer video::-webkit-media-controls-current-time-display,
#viewer video::-webkit-media-controls-time-remaining-display,
#viewer video::-webkit-media-controls-mute-button,
#viewer video::-webkit-media-controls-volume-slider,
#viewer video::-webkit-media-controls-fullscreen-button { display: none !important; opacity: 0 !important; }
#viewer [class*="loader"],
#viewer [class*="progress"],
#viewer [class*="video-bar"],
#viewer [class*="videoBar"],
#viewer [class*="VideoBar"] { display: none !important; opacity: 0 !important; }

/* ─── ANIMATIONS ─────────────────────────── */
@keyframes nvFade { from{opacity:0} to{opacity:1} }
@keyframes nvUp { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 900px) { :root { --panel-w: 300px; } }

@media (max-width: 768px) {
  :root { --panel-w: 260px; }

  /* On mobile: panel starts HIDDEN */
  .nv-panel {
    width: var(--panel-w);
    transform: translateX(calc(-1 * var(--panel-w)));
    box-shadow: none;
    transition: transform .3s var(--ease);
  }
  .nv-panel:not(.nv-hidden) {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,.5);
  }

  /* Compact hero on mobile */
  .nv-hero { padding: 14px 16px 14px; }
  .nv-hero-logo-wrap { margin-top: 18px; margin-bottom: 10px; }
  .nv-hero-logo { width: 85%; }
  .nv-hero-tag { font-size: .55rem; margin-bottom: 3px; }
  .nv-hero-meta { font-size: .58rem; }

  /* Compact tabs */
  .nv-tabs { }
  .nv-tab-btn { padding: 10px 6px; font-size: .62rem; }

  /* Compact location box */
  .nv-location-box { padding: 12px 16px 10px; }
  .nv-location-name { font-size: .95rem; }
  .nv-location-desc { font-size: .7rem; }

  /* Open tab visible */
  .nv-open-tab { display: flex !important; }

  .nv-toolbar { padding-left: 16px; }
  .nv-tb-hint { display: none; }
}

@media (max-width: 480px) {
  :root { --panel-w: 240px; }
  .nv-hero { padding: 12px 14px 12px; }
  .nv-hero-logo-wrap { margin-top: 20px; margin-bottom: 8px; }
  .nv-hero-logo { width: 80%; }
}
