/* ───────────────────────────────────────────────────────────
   3D EXPLORE — full-screen cinematic stage
   Dark luxury aesthetic. Uses the site's gold (#c19a4b)
   and display serif for continuity with the home page.
   ─────────────────────────────────────────────────────────── */

:root {
  --explore-bg:        #0b0c0e;
  --explore-bg-2:      #131418;
  --explore-ink:       #f1ece1;
  --explore-ink-soft:  rgba(241, 236, 225, 0.72);
  --explore-ink-faint: rgba(241, 236, 225, 0.42);
  --explore-line:      rgba(193, 154, 75, 0.32);
  --explore-line-soft: rgba(241, 236, 225, 0.10);
  --explore-gold:      #c19a4b;
  --explore-gold-soft: #d8b96a;
  --rail-bg:           rgba(11, 12, 14, 0.55);
  --rail-bg-strong:    rgba(11, 12, 14, 0.78);
}

/* Override header colors on the dark page */
.explore-body {
  background: var(--explore-bg);
  color: var(--explore-ink);
  overflow: hidden; /* stage is fixed; lightbox handles its own scroll */
  min-height: 100vh;
  min-height: 100dvh;
}
.explore-body .site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background: linear-gradient(to bottom, rgba(11,12,14,0.85), rgba(11,12,14,0));
  border-bottom: none;
  color: var(--explore-ink);
  padding-inline: clamp(var(--space-5), 3vw, var(--space-12));
}
.explore-body .site-header .nav a { color: var(--explore-ink-soft); }
.explore-body .site-header .nav a:hover,
.explore-body .site-header .nav a[aria-current="page"] {
  color: var(--explore-ink);
}
.explore-body .site-header .nav a[aria-current="page"] {
  position: relative;
}
.explore-body .site-header .nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--explore-gold);
}
.explore-body .brand-name,
.explore-body .brand-divider,
.explore-body .brand-suffix { color: var(--explore-ink); }

/* ── STAGE ─────────────────────────────────────────────── */
.explore-stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  isolation: isolate;
}

.stage-canvas {
  position: absolute;
  inset: 0;
}
.stage-scene {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s cubic-bezier(0.22, 0.7, 0.25, 1),
              transform 6s cubic-bezier(0.22, 0.7, 0.25, 1);
  will-change: opacity, transform;
}
.stage-scene.is-active {
  opacity: 1;
  transform: scale(1);
}

/* Scrims for legibility over the photo */
.stage-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top,    rgba(11,12,14,0.78) 0%,   rgba(11,12,14,0.12) 32%, transparent 55%),
    linear-gradient(to right,  rgba(11,12,14,0.55) 0%,   rgba(11,12,14,0.05) 42%, transparent 60%),
    linear-gradient(to bottom, rgba(11,12,14,0.55) 0%,   rgba(11,12,14,0.00) 28%);
  z-index: 2;
}
.stage-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 80% at 50% 55%, transparent 55%, rgba(0,0,0,0.55) 100%);
  z-index: 3;
}
.ambient-glow {
  position: absolute;
  width: 480px; height: 480px;
  bottom: -200px; left: 30%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(193,154,75,0.12), transparent 65%);
  z-index: 2;
  animation: ambient-drift 14s ease-in-out infinite alternate;
}
@keyframes ambient-drift {
  from { transform: translate(-40px, 0) scale(1); opacity: 0.7; }
  to   { transform: translate(60px, -40px) scale(1.1); opacity: 1; }
}
.particle-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0.9;
}

/* ── EYEBROW (top center) ─────────────────────────────── */
.stage-eyebrow {
  position: absolute;
  top: clamp(82px, 9vh, 110px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-display, serif);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: var(--text-xs);
  color: var(--explore-ink-soft);
}
.eyebrow-label {
  padding-right: var(--space-4);
  border-right: 1px solid var(--explore-line);
}
.eyebrow-counter { color: var(--explore-gold); }
.eyebrow-divider { margin-inline: 0.4em; color: var(--explore-ink-faint); }

/* ── SCENE META (lower-left) ──────────────────────────── */
.scene-meta {
  position: absolute;
  bottom: clamp(110px, 14vh, 160px);
  left: clamp(var(--space-6), 4vw, var(--space-16));
  z-index: 10;
  max-width: 460px;
  color: var(--explore-ink);
}
.scene-meta-label {
  font-family: var(--font-display, serif);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: var(--text-xs);
  color: var(--explore-gold);
  margin-bottom: var(--space-3);
}
.scene-meta-title {
  font-family: var(--font-display, serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-4);
  text-shadow: 0 2px 18px rgba(0,0,0,0.55);
}
.scene-meta-mood {
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--explore-ink-soft);
  margin: 0 0 var(--space-6);
  font-style: italic;
  max-width: 38ch;
}
.scene-materials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}
.material-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--explore-line);
  background: var(--rail-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--explore-ink);
  font-family: var(--font-display, serif);
}
.material-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}

.scene-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.scene-action {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--rail-bg-strong);
  border: 1px solid var(--explore-line);
  color: var(--explore-ink);
  font-family: var(--font-display, serif);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease, color 0.4s ease;
}
.scene-action:hover {
  border-color: var(--explore-gold);
  color: var(--explore-gold-soft);
  transform: translateY(-1px);
}
.scene-action-primary {
  background: var(--explore-gold);
  color: var(--explore-bg);
  border-color: var(--explore-gold);
}
.scene-action-primary:hover {
  background: var(--explore-gold-soft);
  color: var(--explore-bg);
}
.scene-action-primary .action-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--explore-bg);
  box-shadow: 0 0 0 2px rgba(11,12,14,0.4);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.55; }
}
.action-icon { width: 14px; height: 16px; }

/* Saved-state styling on the Save button */
.scene-action.is-saved {
  background: rgba(193,154,75,0.18);
  border-color: var(--explore-gold);
  color: var(--explore-gold-soft);
}
.scene-action.is-saved .save-icon { fill: var(--explore-gold); stroke: var(--explore-gold); }
.scene-action[disabled] { opacity: 0.55; cursor: progress; }
.action-spinner {
  display: inline-block;
  width: 12px; height: 12px;
  border: 1.5px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── WORLD RAIL (right side) ──────────────────────────── */
.world-rail {
  position: absolute;
  top: 50%;
  right: clamp(var(--space-4), 3vw, var(--space-10));
  transform: translateY(-50%);
  z-index: 10;
  width: 280px;
  padding: var(--space-6) var(--space-5);
  background: var(--rail-bg-strong);
  border: 1px solid var(--explore-line-soft);
  border-radius: 4px;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.04);
}
.world-rail-eyebrow {
  font-family: var(--font-display, serif);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 10px;
  color: var(--explore-gold);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--explore-line);
}
.world-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.world-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  cursor: pointer;
  color: var(--explore-ink-soft);
  font-family: var(--font-display, serif);
  font-size: 14px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--explore-line-soft);
  transition: color 0.35s ease, padding 0.35s ease;
  text-align: left;
  width: 100%;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  appearance: none;
  -webkit-appearance: none;
}
.world-item:last-child { border-bottom: none; }
.world-item:hover {
  color: var(--explore-ink);
  padding-left: 8px;
}
.world-item.is-active {
  color: var(--explore-gold-soft);
  padding-left: 8px;
}
.world-item-mark {
  width: 6px;
  height: 6px;
  border: 1px solid var(--explore-line);
  background: transparent;
  flex-shrink: 0;
  transform: rotate(45deg);
  transition: background 0.35s ease, border-color 0.35s ease;
}
.world-item.is-active .world-item-mark,
.world-item:hover .world-item-mark {
  background: var(--explore-gold);
  border-color: var(--explore-gold);
}
.world-item-number {
  font-size: 10px;
  color: var(--explore-ink-faint);
  letter-spacing: 0.18em;
  margin-left: auto;
  font-feature-settings: "tnum";
}

/* ── BOTTOM CTA RAIL ──────────────────────────────────── */
.stage-cta {
  position: absolute;
  bottom: clamp(var(--space-5), 4vh, var(--space-8));
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--space-6);
  font-family: var(--font-display, serif);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
}
.cta-link {
  color: var(--explore-ink-soft);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.35s ease, border-color 0.35s ease, letter-spacing 0.35s ease;
}
.cta-link:hover {
  color: var(--explore-ink);
  border-bottom-color: var(--explore-gold);
}
.cta-link-primary {
  color: var(--explore-ink);
  border-bottom-color: var(--explore-gold);
}
.cta-link-board {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.board-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: var(--explore-gold);
  color: var(--explore-bg);
  font-size: 10px;
  letter-spacing: 0;
  border-radius: 999px;
  font-feature-settings: "tnum";
}

/* ── COMPARE MODE ───────────────────────────────────── */
.compare-canvas {
  position: absolute;
  inset: 0;
  z-index: 5;
  --split: 50%;
  overflow: hidden;
}
.compare-canvas[hidden] { display: none; }
.compare-half {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.compare-half-a {
  clip-path: polygon(0 0, var(--split) 0, var(--split) 100%, 0 100%);
}
.compare-half-b {
  clip-path: polygon(var(--split) 0, 100% 0, 100% 100%, var(--split) 100%);
}
.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  margin-left: -1px;
  background: var(--explore-gold);
  cursor: ew-resize;
  z-index: 6;
  touch-action: none;
}
.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--explore-bg);
  border: 1.5px solid var(--explore-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.55);
}
.compare-handle span {
  width: 2px; height: 14px;
  background: var(--explore-gold);
  border-radius: 1px;
}
.compare-handle span:nth-child(2) { height: 18px; }
.compare-label {
  position: absolute;
  top: clamp(82px, 12vh, 130px);
  z-index: 6;
  padding: 8px 16px;
  background: rgba(11,12,14,0.78);
  border: 1px solid var(--explore-line-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--explore-ink);
  font-family: var(--font-display, serif);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.compare-label-a { left: clamp(var(--space-5), 4vw, var(--space-12)); }
.compare-label-b { right: clamp(280px, 23vw, 340px); }
.compare-label.is-target {
  border-color: var(--explore-gold);
  color: var(--explore-gold-soft);
}
.compare-label.is-target::before {
  content: "• ";
  color: var(--explore-gold);
}
.compare-exit {
  position: absolute;
  top: clamp(82px, 12vh, 130px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--rail-bg-strong);
  border: 1px solid var(--explore-line-soft);
  color: var(--explore-ink);
  font-family: var(--font-display, serif);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.compare-exit:hover {
  border-color: var(--explore-gold);
  color: var(--explore-gold-soft);
}
.compare-exit[hidden] { display: none; }

/* Hide scene-meta + bottom cta in compare mode so the dual scenes breathe */
.is-comparing .scene-meta,
.is-comparing .stage-cta,
.is-comparing .stage-eyebrow {
  opacity: 0.05;
  pointer-events: none;
  filter: blur(3px);
  transition: opacity 0.4s ease, filter 0.4s ease;
}

/* ── LIGHTBOX ─────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8,9,11,0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  animation: lightbox-fade 0.4s ease;
}
@keyframes lightbox-fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-panel {
  position: relative;
  width: min(1200px, 100%);
  max-height: 90vh;
  background: var(--explore-bg-2);
  border: 1px solid var(--explore-line-soft);
  padding: var(--space-10) var(--space-10) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  animation: lightbox-rise 0.5s cubic-bezier(0.22, 0.7, 0.25, 1);
  overscroll-behavior: contain;
}
/* When a panorama is active, the panel itself shouldn't scroll — the user is dragging the view */
.lightbox.is-pano-active .lightbox-panel {
  overflow: hidden;
}
@keyframes lightbox-rise {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.lightbox-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--explore-line-soft);
  border-radius: 50%;
  color: var(--explore-ink);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.lightbox-close:hover {
  border-color: var(--explore-gold);
  color: var(--explore-gold);
}
.lightbox-eyebrow {
  font-family: var(--font-display, serif);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 11px;
  color: var(--explore-gold);
}
.lightbox-title {
  font-family: var(--font-display, serif);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 var(--space-2);
  color: var(--explore-ink);
}
.lightbox-frame {
  position: relative;
  flex: 1 1 auto;
  min-height: 540px;
  height: 60vh;
  background: #07080a;
  border: 1px solid var(--explore-line-soft);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-frame iframe {
  width: 100%; height: 100%; border: 0; display: block;
}
.lightbox-placeholder {
  text-align: center;
  padding: var(--space-10);
  max-width: 480px;
}
.placeholder-mark {
  display: flex; justify-content: center;
  margin-bottom: var(--space-5);
}
.placeholder-text {
  font-family: var(--font-display, serif);
  font-style: italic;
  font-size: var(--text-base);
  color: var(--explore-ink-soft);
  line-height: 1.65;
  margin: 0;
}
.placeholder-text a {
  color: var(--explore-gold);
  border-bottom: 1px solid var(--explore-gold);
  text-decoration: none;
  font-style: normal;
  letter-spacing: 0.05em;
}
.placeholder-text em { font-style: italic; color: var(--explore-ink); }
.placeholder-eyebrow {
  font-family: var(--font-display, serif);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 10px;
  color: var(--explore-gold);
  margin: 0 0 var(--space-3);
}
.placeholder-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-6);
  flex-wrap: wrap;
}
.placeholder-actions .scene-action { font-size: 11px; padding: 11px 18px; text-decoration: none; }
.placeholder-actions a.scene-action { text-decoration: none; }

/* In-walkthrough direction switcher inside lightbox */
.lb-switcher {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--explore-line-soft);
}
.lb-switcher-eyebrow {
  font-family: var(--font-display, serif);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 10px;
  color: var(--explore-gold);
  margin-bottom: var(--space-3);
  text-align: center;
}
.lb-switcher-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.lb-switch-pill {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--explore-line-soft);
  color: var(--explore-ink-soft);
  font-family: var(--font-display, serif);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.lb-switch-pill:hover {
  border-color: var(--explore-gold);
  color: var(--explore-gold-soft);
}
.lb-switch-pill.is-active {
  background: var(--explore-gold);
  border-color: var(--explore-gold);
  color: var(--explore-bg);
}

/* Panorama viewer (Pannellum host) */
.pano-stage {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  background: #000;
  cursor: grab;
  /* Critical: prevent browser from claiming touch as scroll — lets Pannellum receive drag */
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  overscroll-behavior: contain;
}
.pano-stage canvas { touch-action: none; }
/* When the lightbox-frame contains a pano-stage, override its centering */
.lightbox-frame.has-pano {
  display: block;
  padding: 0;
  touch-action: none;
  overscroll-behavior: contain;
}
.pano-stage:active { cursor: grabbing; }
.pano-instructions {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(11,12,14,0.78);
  border: 1px solid var(--explore-line-soft);
  border-radius: 999px;
  color: var(--explore-ink-soft);
  font-family: var(--font-display, serif);
  font-size: 11px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  max-width: calc(100% - 32px);
}
.pano-instructions svg { color: var(--explore-gold); flex-shrink: 0; }
.pano-instructions span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) {
  .pano-instructions { font-size: 10px; padding: 6px 10px; gap: 6px; }
}
.pano-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(11,12,14,0.9);
  color: var(--explore-ink);
  font-family: var(--font-display, serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.04em;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.pano-loading.is-hidden { opacity: 0; pointer-events: none; }
.pano-loading .action-spinner {
  width: 14px; height: 14px;
  border: 1.5px solid var(--explore-gold);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.pano-actions {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 0 12px;
  max-width: 100%;
}
.pano-actions .scene-action {
  background: rgba(11,12,14,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 11px;
  padding: 10px 16px;
  text-decoration: none;
}
.pano-actions a.scene-action { text-decoration: none; }
.pano-actions .scene-action-primary { background: var(--explore-gold); }
@media (max-width: 720px) {
  .pano-actions .scene-action { font-size: 10px; padding: 8px 12px; letter-spacing: 0.12em; }
}

/* Override Pannellum's default white hotspot tooltip to match our luxury aesthetic */
.pnlm-hotspot {
  width: 22px;
  height: 22px;
  background: rgba(193,154,75,0.85);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(193,154,75,0.18), 0 2px 12px rgba(0,0,0,0.55);
  cursor: pointer;
  animation: hotspot-pulse 2.4s ease-in-out infinite;
}
.pnlm-hotspot:hover { background: var(--explore-gold-soft); }
@keyframes hotspot-pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(193,154,75,0.20), 0 2px 12px rgba(0,0,0,0.55); }
  50%      { box-shadow: 0 0 0 14px rgba(193,154,75,0.05), 0 2px 12px rgba(0,0,0,0.55); }
}
div.pnlm-tooltip span {
  visibility: visible !important;
  background: rgba(11,12,14,0.95) !important;
  color: var(--explore-ink) !important;
  border: 1px solid var(--explore-gold) !important;
  font-family: var(--font-display, serif) !important;
  font-size: 11px !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  white-space: nowrap;
  text-shadow: none !important;
}
div.pnlm-tooltip span::after {
  border-color: var(--explore-gold) transparent transparent transparent !important;
}

/* Pannellum control container — make it match the dark luxury palette */
.pnlm-controls-container { display: flex; flex-direction: column; gap: 6px; right: 12px !important; top: 12px !important; }
.pnlm-controls { background: rgba(11,12,14,0.78) !important; border: 1px solid var(--explore-line-soft) !important; border-radius: 999px !important; backdrop-filter: blur(10px); }
.pnlm-control { filter: invert(85%) sepia(20%) saturate(400%) hue-rotate(5deg); }

/* VR badge */
.lb-iframe-wrap { position: relative; width: 100%; height: 100%; }

/* Reference-walkthrough credit overlay */
.lb-credit {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 14px;
  background: rgba(11,12,14,0.86);
  border: 1px solid var(--explore-line-soft);
  border-radius: 6px;
  color: var(--explore-ink);
  font-family: var(--font-display, serif);
  font-size: 11px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: calc(100% - 200px);
  pointer-events: none;
}
.lb-credit-eyebrow {
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--explore-gold);
}
.lb-credit-text {
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--explore-ink-soft);
}
.lb-credit-text em { font-style: italic; opacity: 0.85; }
.lb-credit-stats {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--explore-ink-faint);
  font-feature-settings: "tnum";
  margin-top: 2px;
}
.lb-credit-price {
  color: var(--explore-gold);
  font-weight: 500;
}
@media (max-width: 720px) {
  .lb-credit { left: 8px; bottom: 8px; padding: 6px 10px; max-width: calc(100% - 110px); }
  .lb-credit-eyebrow { font-size: 8px; letter-spacing: 0.2em; }
  .lb-credit-text { font-size: 10px; }
  .lb-credit-stats { font-size: 8.5px; letter-spacing: 0.14em; }
}

.lb-vr-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(11,12,14,0.86);
  border: 1px solid var(--explore-gold);
  border-radius: 999px;
  color: var(--explore-gold);
  font-family: var(--font-display, serif);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 5;
  pointer-events: none;
}

/* Deep link to direction page from scene meta */
.scene-meta-deep-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--explore-line);
  text-decoration: none;
  color: var(--explore-ink-soft);
  font-family: var(--font-display, serif);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 10px;
  transition: color 0.3s ease;
  vertical-align: middle;
}
.scene-meta-deep-link:hover { color: var(--explore-gold); }
@media (max-width: 820px) {
  .scene-meta-deep-link {
    display: block;
    margin-left: 0;
    margin-top: 4px;
    padding-left: 0;
    border-left: none;
  }
}

/* ── TOAST ────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 200;
  padding: 14px 22px;
  background: var(--explore-bg-2);
  border: 1px solid var(--explore-gold);
  color: var(--explore-ink);
  font-family: var(--font-display, serif);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast[hidden] { display: none; }
.toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--explore-gold);
  border-radius: 50%;
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .world-rail {
    width: 240px;
    padding: var(--space-5) var(--space-4);
  }
  .scene-meta { max-width: 380px; }
}

@media (max-width: 820px) {
  .explore-body { overflow: hidden; }

  /* Stage stays full-screen fixed. We use the world rail as a slide-up sheet
     toggled by a floating button so the scene image stays immersive. */
  .stage-eyebrow {
    top: clamp(72px, 11vh, 90px);
    font-size: 10px;
    letter-spacing: 0.26em;
  }

  .scene-meta {
    bottom: 100px;
    left: var(--space-5);
    right: var(--space-5);
    max-width: none;
  }
  .scene-meta-title { font-size: clamp(2rem, 9vw, 2.8rem); }
  .scene-meta-mood { font-size: 0.92rem; max-width: none; margin-bottom: var(--space-3); }
  .scene-materials { margin-bottom: var(--space-4); gap: 6px; }
  .material-chip { font-size: 9.5px; padding: 5px 10px; letter-spacing: 0.12em; }
  .scene-actions { flex-wrap: wrap; gap: 8px; }
  .scene-action {
    padding: 9px 14px;
    font-size: 10.5px;
    letter-spacing: 0.14em;
  }

  /* Bottom action bar fixed above the world-rail toggle */
  .stage-cta {
    bottom: 60px;
    left: 0;
    right: 0;
    transform: none;
    flex-direction: row;
    gap: var(--space-3);
    font-size: 9px;
    letter-spacing: 0.18em;
    width: 100%;
    padding: 0 var(--space-5);
    justify-content: center;
    box-sizing: border-box;
  }
  .cta-link { white-space: nowrap; }

  /* Convert the right rail into a bottom slide-up sheet */
  .world-rail {
    position: fixed;
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    transform: translateY(calc(100% - 48px));
    width: 100%;
    border: none;
    border-top: 1px solid var(--explore-line);
    border-radius: 14px 14px 0 0;
    padding: var(--space-3) var(--space-5) var(--space-6);
    background: rgba(11,12,14,0.96);
    transition: transform 0.55s cubic-bezier(0.22, 0.7, 0.25, 1);
    max-height: 80vh;
    overflow-y: auto;
    z-index: 20;
  }
  .world-rail::before {
    content: "";
    display: block;
    width: 44px; height: 3px;
    background: rgba(241,236,225,0.35);
    border-radius: 2px;
    margin: 4px auto 12px;
  }
  .world-rail.is-open { transform: translateY(0); }
  .world-rail-eyebrow {
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-2);
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .world-rail-eyebrow::after {
    content: "↑";
    color: var(--explore-gold);
    font-size: 14px;
    transition: transform 0.3s ease;
  }
  .world-rail.is-open .world-rail-eyebrow::after { transform: rotate(180deg); }
  .world-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 var(--space-4);
  }
  .world-item { padding: 9px 4px; font-size: 13px; }
  .world-item-name { line-height: 1.2; }

  .lightbox-panel { padding: var(--space-5) var(--space-3) var(--space-3); max-height: 100vh; max-height: 100dvh; overflow-y: auto; }
  .lightbox-title { font-size: 1.25rem; line-height: 1.2; margin-bottom: var(--space-2); padding-right: 40px; }
  .lightbox-eyebrow { font-size: 9px; letter-spacing: 0.26em; }
  .lightbox-frame { min-height: 320px; height: 50vh; }
  .pano-actions { gap: 5px; bottom: 8px; flex-wrap: wrap; padding: 0 6px; }
  .pano-actions .scene-action { font-size: 9px; padding: 6px 10px; letter-spacing: 0.1em; }
  .pano-actions .scene-action svg { width: 11px; height: 12px; }
  .pano-actions .action-dot { width: 5px; height: 5px; }
  /* Move VR badge to top-right on mobile so it doesn't fight the buttons */
  .lb-vr-badge { font-size: 8px; padding: 5px 9px; bottom: auto; top: 8px; right: 8px; letter-spacing: 0.14em; }
  .lb-vr-badge svg { width: 11px; height: 11px; }
  .pano-instructions { top: 44px; font-size: 9px; padding: 5px 9px; max-width: calc(100% - 100px); }
  .lightbox-placeholder { padding: var(--space-6) var(--space-3); }
  .placeholder-text { font-size: 14px; line-height: 1.6; }
  .lb-switcher { margin-top: var(--space-3); padding-top: var(--space-3); }
  .lb-switch-pill { font-size: 10px; padding: 6px 10px; letter-spacing: 0.1em; }
}

@media (max-width: 480px) {
  .explore-body .site-header .nav a:not(.btn-pill):not([aria-current]) { display: none; }
  .explore-body .site-header .brand-suffix { display: none; }
  .explore-body .site-header .brand-divider { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .stage-scene, .ambient-glow, .scene-action, .cta-link, .world-item, .action-dot {
    animation: none !important;
    transition: opacity 0.2s ease !important;
  }
}
