/* Aurora Oasis Tour Virtual v4 — Neo Swiss | Feature Bottom Bar | Zero Italic */

/* ─── Fonts ─────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Britti Sans';
  src: url('/fonts/BrittiSansTrial-Light-BF6757bfd494951.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Britti Sans';
  src: url('/fonts/BrittiSansTrial-Regular-BF6757bfd47ffbf.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ─── CSS Vars ───────────────────────────────────────────────────────────── */
:root, :root[data-theme="light"] {
  --bg-main: #EFEDE2;
  --ink: #1A1A1A;
  --ink-soft: rgba(26,26,26,0.7);
  --ink-muted: rgba(26,26,26,0.55);
  --hairline: rgba(26,26,26,0.12);
  --hairline-strong: rgba(26,26,26,0.4);
  --panel: rgba(239,237,226,0.94);
  --panel-solid: #EFEDE2;
  --aurora-gold: #C9A84C;
  --modal-bg: #EFEDE2;
  --sand: #EFEDE2;
  --transition: 320ms cubic-bezier(0.4, 0, 0.15, 1);
}

:root[data-theme="dark"] {
  --bg-main: #0A0A0A;
  --ink: #FAFAFA;
  --ink-soft: rgba(250,250,250,0.78);
  --ink-muted: rgba(250,250,250,0.5);
  --hairline: rgba(250,250,250,0.12);
  --hairline-strong: rgba(250,250,250,0.4);
  --panel: rgba(14,14,14,0.92);
  --panel-solid: #141414;
  --aurora-gold: #D4B560;
  --modal-bg: #141414;
  --sand: #141414;
  --transition: 320ms cubic-bezier(0.4, 0, 0.15, 1);
}

/* ─── Reset / Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--bg-main);
  font-family: 'Britti Sans', sans-serif;
  font-weight: 400;
  font-style: normal;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ─── Viewer ─────────────────────────────────────────────────────────────── */
#viewer {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
}

/* ─── Depth of Field Overlay ─────────────────────────────────────────────── */
.dof-overlay { display: none; } /* desativado, futuro toggle no admin */

/* ─── Vignette ───────────────────────────────────────────────────────────── */
.vignette { display: none; }

/* ─── Icon Micro-animations (BB Premium) ────────────────────────────────── */

/* Home dot pulse */
.home-dot { transform-origin: 12px 15px; animation: pulse-dot 2.4s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: 0.5; } }

/* Hourglass sand */
.sand-line { stroke-dasharray: 4; animation: sand-drop 1.6s linear infinite; }
@keyframes sand-drop { 0% { stroke-dashoffset: -4; opacity: 0; } 30% { opacity: 1; } 100% { stroke-dashoffset: 4; opacity: 0; } }

/* Pin ripple */
.pin-ripple { transform-origin: 12px 9px; animation: ripple-pin 2s ease-out infinite; opacity: 0; }
@keyframes ripple-pin { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(2.6); opacity: 0; } }

/* Grid quadrant pulse on hover */
.grid-icon rect { transition: stroke 200ms; }
.bb-feat:hover .g-q1 { animation: q-pulse 1.6s 0s infinite; }
.bb-feat:hover .g-q2 { animation: q-pulse 1.6s 0.4s infinite; }
.bb-feat:hover .g-q4 { animation: q-pulse 1.6s 0.8s infinite; }
.bb-feat:hover .g-q3 { animation: q-pulse 1.6s 1.2s infinite; }
@keyframes q-pulse { 0%,100% { stroke: currentColor; } 50% { stroke: var(--aurora-gold); } }

/* Map check draw */
.check { stroke-dasharray: 12; stroke-dashoffset: 12; animation: check-draw 2.4s ease-in-out infinite; }
@keyframes check-draw { 0%,30% { stroke-dashoffset: 12; } 50%,80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -12; } }

/* Photo sun pulse */
.photo-sun { transform-origin: 9px 11px; transform-box: fill-box; animation: sun-pulse 2.4s ease-in-out infinite; }
@keyframes sun-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.35); } }

/* Book pages on hover */
.page-l, .page-r { transform-origin: 12px 4px; transform-box: fill-box; transition: transform 600ms cubic-bezier(0.25,0.1,0.25,1); }
.bb-feat:hover .page-l { transform: rotateY(-12deg); }
.bb-feat:hover .page-r { transform: rotateY(12deg); }

/* Video scan line — use transform for animation (SVG attributes can't be CSS-animated) */
.scan-line { transform-origin: 3px 12px; animation: scan-vid 2.4s linear infinite; opacity: 0; }
@keyframes scan-vid { 0% { transform: scaleX(0); opacity: 0; } 15% { opacity: 1; } 80% { transform: scaleX(6); opacity: 1; } 100% { transform: scaleX(6); opacity: 0; } }

/* Presentation icon — refined */
.pres-icon { width: 28px; height: 28px; overflow: visible; }
.pres-ring-outer {
  transform-origin: 14px 14px; transform-box: fill-box;
  animation: pres-breath 5.6s ease-in-out infinite;
  stroke: currentColor;
}
.pres-ring {
  transform-origin: 14px 14px; transform-box: fill-box;
  animation: pres-rot 18s linear infinite;
  stroke: currentColor;
  stroke-dasharray: 0.5 4;
  stroke-linecap: round;
}
.pres-ring-inner {
  transform-origin: 14px 14px; transform-box: fill-box;
  animation: pres-rot 26s linear infinite reverse;
  stroke: currentColor;
  stroke-dasharray: 0.5 3.6;
  stroke-linecap: round;
}
.pres-play {
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.4)) drop-shadow(0 1.5px 3px rgba(154,126,46,0.4));
  transition: transform 480ms cubic-bezier(0.25,0.1,0.25,1), filter 480ms;
}
.bb-feat-cta:hover .pres-play {
  transform: translateX(0.6px) scale(1.06);
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.55)) drop-shadow(0 3px 6px rgba(154,126,46,0.55));
}
.bb-feat-cta.is-running .pres-play {
  animation: pres-pulse 1.8s ease-in-out infinite;
}
@keyframes pres-rot { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pres-breath {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50%      { transform: scale(1.04); opacity: 0.7; }
}
@keyframes pres-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}

/* ─── Loading Screen ─────────────────────────────────────────────────────── */
#loading-screen {
  position: fixed; inset: 0;
  background: var(--bg-main);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  transition: opacity 0.6s ease;
}
#loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 16px;
}
.loading-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
}
.loading-sub {
  font-weight: 400; font-style: normal; font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-muted);
  margin-top: 6px;
}
.loading-bar-wrap {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; margin-top: 20px;
}
.loading-bar-track {
  width: 240px; height: 1px;
  background: var(--hairline);
}
.loading-bar-fill {
  height: 1px; background: #C9A84C;
  width: 0%; transition: width 0.3s ease;
}
.loading-percent {
  font-weight: 400; font-style: normal; font-size: 10px;
  letter-spacing: 0.1em; color: var(--ink-muted);
}

/* ─── Brand Logo (shared, SVG inline Cinzel serif) ───────────────────────── */
.brand-logo {
  height: 22px; width: auto; display: block;
  color: var(--ink);
}
.brand-svg { color: var(--ink); fill: currentColor; overflow: visible; }
.brand-svg text { font-family: 'Cinzel', Georgia, 'Times New Roman', serif; font-weight: 500; }
:root[data-theme="dark"] .brand-svg { color: var(--ink); }
/* Legacy classes kept as no-op for any leftover img */
.brand-logo-light, .brand-logo-dark { display: none; }
img.brand-logo-dark { display: none; }
img.brand-logo-light { display: none; }
.brand-meta {
  font: 400 10px/1 'Britti Sans', sans-serif;
  font-style: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-muted);
  margin-top: 4px;
}
.brand-slogan { display: none !important; }

/* ─── Header (minimal, just brand + scene) ───────────────────────────────── */
#header {
  position: fixed; top: 0; left: 0; right: 0;
  height: 52px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
  display: flex; align-items: center;
  padding: 0 20px;
  z-index: 50;
  gap: 16px;
}

.header-brand {
  display: flex; align-items: center;
  flex-shrink: 0;
}
.header-brand .brand-logo {
  height: 18px;
}

.header-scene-info {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  overflow: hidden;
}
.scene-number {
  font-weight: 300; font-style: normal; font-size: 22px;
  color: #C9A84C;
  line-height: 1;
  flex-shrink: 0;
}
.scene-hairline {
  display: block; width: 1px; height: 16px;
  background: rgba(26,26,26,0.2);
  flex-shrink: 0;
}
.scene-label {
  font-weight: 400; font-style: normal; font-size: 12px; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: 0.02em;
}

/* ─── Admin Bar ──────────────────────────────────────────────────────────── */
#admin-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 48px;
  background: #1A1A1A;
  color: #FAFAFA;
  display: none;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  z-index: 100;
  border-bottom: 1px solid rgba(201,168,76,0.3);
}
#admin-bar:not([hidden]) { display: flex; }
.admin-brand {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.admin-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ff3b30;
  flex-shrink: 0;
  animation: adminpulse 1.6s ease-in-out infinite;
}
@keyframes adminpulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.admin-label {
  font: 400 11px/1 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FAFAFA;
}
.admin-btn {
  font: 400 11px/1 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  letter-spacing: 0.1em;
  color: rgba(250,250,250,0.7);
  background: transparent;
  border: 1px solid rgba(250,250,250,0.15);
  padding: 6px 12px;
  cursor: pointer;
  transition: all 240ms;
}
.admin-btn:hover {
  color: #FAFAFA;
  border-color: rgba(201,168,76,0.6);
}
.admin-btn.is-active {
  color: var(--aurora-gold);
  border-color: rgba(201,168,76,0.6);
}
.admin-exit {
  margin-left: auto;
  color: rgba(255,59,48,0.8);
  border-color: rgba(255,59,48,0.3);
}
.admin-exit:hover {
  color: #ff3b30;
  border-color: rgba(255,59,48,0.7);
}
.admin-mode #viewer { top: 48px; }
.admin-mode #header { top: 48px; }

/* ─── Admin Panel ────────────────────────────────────────────────────────── */
.admin-panel {
  position: fixed;
  top: 48px; right: 0; bottom: 0;
  width: 420px;
  background: var(--modal-bg);
  border-left: 1px solid var(--hairline);
  z-index: 90;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.4,0,0.15,1);
}
.admin-panel:not([hidden]) {
  transform: translateX(0);
  display: flex;
}
.admin-panel[hidden] {
  display: flex !important;
  transform: translateX(100%);
  pointer-events: none;
}
.admin-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline);
  flex-shrink: 0;
}
.admin-panel-title {
  font: 300 16px/1 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  color: var(--ink);
}
.admin-panel-close {
  background: none; border: none; cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--ink-muted);
  padding: 4px; transition: color 200ms;
}
.admin-panel-close:hover { color: var(--aurora-gold); }
.admin-panel-body {
  flex: 1; overflow-y: auto; padding: 20px;
  font: 400 13px/1.55 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  color: var(--ink);
}
@media (max-width: 768px) {
  .admin-panel { width: 100vw; top: 48px; }
}

/* Admin panel inner components */
.admin-section { margin-bottom: 20px; }
.admin-section-title {
  font: 400 10px/1 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 10px;
}
.admin-status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font: 400 11px/1 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  padding: 4px 10px;
  border: 1px solid var(--hairline);
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.admin-status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-muted);
}
.admin-status-pill.active .admin-status-dot { background: #30d158; }
.admin-status-pill.active { border-color: rgba(48,209,88,0.4); color: #30d158; }
.admin-radio-group {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px;
}
.admin-radio-btn {
  font: 400 11px/1 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  padding: 6px 12px;
  border: 1px solid var(--hairline);
  background: transparent;
  cursor: pointer; transition: all 200ms;
  color: var(--ink-soft);
}
.admin-radio-btn.selected {
  border-color: var(--aurora-gold);
  color: var(--aurora-gold);
}
.admin-input {
  width: 100%;
  font: 400 13px/1 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  background: transparent;
  border: 1px solid var(--hairline);
  padding: 8px 12px;
  color: var(--ink);
  outline: none;
  transition: border-color 200ms;
  margin-bottom: 8px;
}
.admin-input:focus { border-color: var(--aurora-gold); }
.admin-action {
  font: 400 11px/1 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  border: 1px solid var(--hairline-strong);
  background: transparent;
  cursor: pointer; transition: all 200ms;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
}
.admin-action:hover { border-color: var(--aurora-gold); color: var(--aurora-gold); }
.admin-action.primary {
  background: var(--ink); color: var(--bg-main);
  border-color: var(--ink);
}
.admin-action.primary:hover {
  background: var(--aurora-gold); border-color: var(--aurora-gold); color: #1A1A1A;
}
.admin-action.danger { color: #ff3b30; border-color: rgba(255,59,48,0.3); }
.admin-action.danger:hover { border-color: #ff3b30; }
.admin-actions-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.admin-region-list { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.admin-region-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border: 1px solid var(--hairline);
}
.admin-region-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.admin-region-name {
  flex: 1;
  font: 400 12px/1 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  color: var(--ink);
}
.admin-region-meta {
  font: 400 10px/1 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  color: var(--ink-muted);
}
.admin-divider { height: 1px; background: var(--hairline); margin: 16px 0; }
.admin-textarea {
  width: 100%; min-height: 80px; resize: vertical;
  font: 400 12px/1.5 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  background: transparent;
  border: 1px solid var(--hairline);
  padding: 8px 12px;
  color: var(--ink);
  outline: none; transition: border-color 200ms;
  margin-bottom: 8px;
}
.admin-textarea:focus { border-color: var(--aurora-gold); }
.admin-select {
  width: 100%;
  font: 400 12px/1 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  background: var(--panel-solid);
  border: 1px solid var(--hairline);
  padding: 8px 12px;
  color: var(--ink);
  outline: none; cursor: pointer;
  margin-bottom: 12px;
}
.admin-select:focus { border-color: var(--aurora-gold); }
.admin-label-field {
  font: 400 10px/1 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-muted); display: block; margin-bottom: 4px;
}
.admin-note {
  font: 400 11px/1.5 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  color: var(--ink-muted);
  padding: 10px; border: 1px solid var(--hairline);
  background: rgba(201,168,76,0.04);
  margin: 10px 0;
}
.drawing-mode { cursor: crosshair !important; }
.drawing-mode * { cursor: crosshair !important; }

/* ─── Bottom Bar ─────────────────────────────────────────────────────────── */
#bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; gap: 32px;
  height: 100px;
  padding: 16px 32px;
  background: var(--panel);
  backdrop-filter: blur(18px) saturate(105%);
  -webkit-backdrop-filter: blur(18px) saturate(105%);
  border-top: 1px solid var(--hairline);
}

/* Brand section */
.bb-brand { display: flex; flex-direction: column; gap: 4px; min-width: 140px; flex-shrink: 0; }
.bb-brand .brand-logo { height: 20px; }

/* Features nav (center) */
.bb-features {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}
.bb-features::-webkit-scrollbar { display: none; }

.bb-feat {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  min-width: 84px;
  padding: 14px 16px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 380ms cubic-bezier(0.25, 0.1, 0.25, 1);
  font-style: normal;
}

/* Hairline top */
.bb-feat::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--aurora-gold), transparent);
  transform: translateX(-50%);
  transition: width 380ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Hairline bottom */
.bb-feat::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--aurora-gold), transparent);
  transform: translateX(-50%);
  transition: width 380ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.bb-feat .bb-icon {
  width: 22px; height: 22px;
  stroke-width: 1.4;
  transition: all 380ms cubic-bezier(0.25, 0.1, 0.25, 1);
  opacity: 0.8;
}

.bb-feat .bb-label {
  font: 400 10.5px/1 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: inherit;
  transition: all 380ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Hover hiper editorial */
.bb-feat:hover {
  color: var(--aurora-gold);
  background: rgba(255, 251, 240, 0.55);
}
.bb-feat:hover::before { width: 80%; }
.bb-feat:hover::after { width: 80%; }
.bb-feat:hover .bb-icon {
  opacity: 1;
  transform: translateY(-2px);
  filter: drop-shadow(0 1px 0 rgba(201,168,76,0.15));
}
.bb-feat:hover .bb-label {
  letter-spacing: 0.14em;
}

/* Active state (modal aberto) */
.bb-feat.is-active {
  color: var(--aurora-gold);
  background: rgba(201,168,76,0.06);
}
.bb-feat.is-active::before,
.bb-feat.is-active::after { width: 80%; }
.bb-feat.is-active .bb-icon { opacity: 1; }

.bb-feat:focus-visible {
  outline: 1px dashed var(--aurora-gold);
  outline-offset: 2px;
}

/* Aux buttons (right) */
.bb-aux { display: flex; align-items: center; gap: 4px; min-width: 200px; justify-content: flex-end; flex-shrink: 0; }

.bb-aux-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all var(--transition);
  font-style: normal;
}
.bb-aux-btn:hover {
  border-color: rgba(201,168,76,0.4);
  color: var(--aurora-gold);
}
.bb-aux-btn.is-active {
  border-color: var(--aurora-gold);
  color: var(--aurora-gold);
}
.bb-aux-btn .bb-icon-aux,
.bb-aux-btn svg { width: 16px; height: 16px; stroke-width: 1.5; }

/* Zoom group — hidden (zoom via scroll/pinch) */
.bb-zoom { display: none; }
#zoom-slider { display: none; }

/* Admin button */
.bb-admin { opacity: 0.35; margin-left: 8px; }
.bb-admin:hover { opacity: 1; }

/* Autorotate button — removed from UI, kept for JS */
#btn-autorotate { display: none; }

/* ─── Scene Picker (above bottom bar) ───────────────────────────────────── */
.scene-picker {
  position: fixed;
  bottom: 104px;
  left: 50%; transform: translateX(-50%) translateY(16px);
  z-index: 40;
  display: flex; gap: 8px;
  background: var(--sand);
  border: 1px solid var(--hairline);
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.scene-picker:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.scene-picker[hidden] {
  display: flex !important; /* keep layout but hidden via opacity */
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(16px);
}

.sp-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: transparent; border: 1px solid transparent;
  cursor: pointer; padding: 6px;
  transition: all var(--transition);
  min-width: 80px;
}
.sp-btn:hover { border-color: rgba(201,168,76,0.4); background: rgba(255,255,255,0.5); }
.sp-btn.active { border-color: var(--aurora-gold); }
.sp-btn img { width: 64px; height: 48px; object-fit: cover; display: block; border: 1px solid var(--hairline); }
.sp-btn span {
  font: 400 10px/1.3 'Britti Sans', sans-serif;
  font-style: normal;
  color: var(--ink);
  text-align: center;
  letter-spacing: 0.04em;
}
.sp-btn.active span { color: var(--aurora-gold); }

/* ─── Feature Modal (slide-in from right) ───────────────────────────────── */
.modal {
  position: fixed; inset: 0; z-index: 50;
  display: flex;
}
.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(26,26,26,0.18);
}
.modal-panel {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 60vw; max-width: 880px; min-width: 480px;
  background: var(--modal-bg);
  border-left: 1px solid var(--hairline);
  padding: 32px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.4,0,0.15,1);
  z-index: 1;
}
.modal:not([hidden]) .modal-panel { transform: translateX(0); }
@media (max-width: 768px) {
  .modal-panel { width: 100vw; max-width: none; min-width: 0; }
}

.modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 28px; padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
}
.modal-title {
  font: 300 22px/1.2 'Britti Sans', sans-serif;
  font-style: normal;
  color: var(--ink);
  margin: 0;
}
.modal-close-btn {
  background: transparent; border: 1px solid transparent;
  color: var(--ink); cursor: pointer;
  padding: 6px; transition: all 240ms;
  display: inline-flex; align-items: center; justify-content: center;
}
.modal-close-btn:hover { border-color: var(--aurora-gold); color: var(--aurora-gold); }

.modal-body { }

.modal-section { margin-bottom: 24px; }
.modal-mini {
  font: 400 10px/1 'Britti Sans', sans-serif;
  font-style: normal;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 8px;
}
.modal-line {
  font: 400 14px/1.5 'Britti Sans', sans-serif;
  font-style: normal;
  color: var(--ink);
}
.modal-mono { font-family: "SF Mono", "Courier New", monospace; font-size: 13px; }
.modal-actions {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 16px; border-top: 1px solid var(--hairline);
}
.modal-link {
  font: 400 13px/1 'Britti Sans', sans-serif;
  font-style: normal;
  color: var(--ink); text-decoration: none;
  padding: 12px 0; border-bottom: 1px solid var(--hairline);
  transition: all 240ms; display: block;
}
.modal-link:hover { color: var(--aurora-gold); padding-left: 8px; border-bottom-color: var(--aurora-gold); }

/* Map inside modal */
#map { height: 360px; width: 100%; border: 1px solid var(--hairline); }

/* ─── Menu Modal ─────────────────────────────────────────────────────────── */
.menu-modal {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  background: rgba(26,26,26,0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 20px;
}
.menu-modal[hidden] { display: none; }

.mm-box {
  background: var(--panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--hairline);
  padding: 28px;
  max-width: 360px;
  width: 100%;
  position: relative;
}

.mm-close {
  position: absolute; top: 14px; right: 14px;
  width: 28px; height: 28px;
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.4; transition: opacity 0.2s;
}
.mm-close:hover { opacity: 1; }

.mm-title {
  font-weight: 400; font-style: normal; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.mm-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(26,26,26,0.07);
}
.mm-toggle-row.sub {
  padding: 10px 0 10px 16px;
  border-bottom: 1px solid rgba(26,26,26,0.05);
}
.mm-label {
  font-weight: 400; font-style: normal; font-size: 13px; color: var(--ink);
}
.mm-label.sub {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ink-soft);
}

.mm-sub-group { padding-left: 0; }

.mm-divider {
  height: 1px; background: rgba(26,26,26,0.1);
  margin: 8px 0;
}

.mm-footer { margin-top: 16px; }
.mm-credit {
  font-weight: 400; font-style: normal; font-size: 11px; color: var(--ink-muted);
}
.mm-credit a {
  color: var(--ink-soft); text-decoration: none;
}
.mm-credit a:hover { color: var(--ink); }

/* ─── Switch Buttons ─────────────────────────────────────────────────────── */
.switch-btn {
  width: 32px; height: 16px;
  background: rgba(26,26,26,0.15);
  border: 1px solid rgba(26,26,26,0.2);
  border-radius: 0;
  position: relative; cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.switch-btn.active {
  background: var(--ink);
  border-color: var(--ink);
}
.switch-knob {
  position: absolute; top: 2px; left: 2px;
  width: 10px; height: 10px;
  background: var(--bg-main);
  transition: transform 0.2s;
}
.switch-btn.active .switch-knob {
  transform: translateX(16px);
}

.region-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 0;
  flex-shrink: 0;
}

/* ─── Info Modal (existing, kept) ────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(26,26,26,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay[hidden] { display: none; }

.modal-box {
  background: var(--modal-bg);
  width: 100%; max-width: 440px;
  padding: 40px 36px 36px;
  position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 28px; height: 28px;
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.4; transition: opacity 0.2s;
}
.modal-close:hover { opacity: 1; }
.modal-logo {
  height: 36px; object-fit: contain; margin-bottom: 16px;
}
.modal-box .modal-title {
  font-weight: 300; font-style: normal; font-size: 32px; color: var(--ink); line-height: 1;
}
.modal-sub {
  font-weight: 400; font-style: normal; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-muted); margin-top: 6px;
}
.modal-divider {
  height: 1px; background: rgba(26,26,26,0.12);
  margin: 20px 0;
}
.modal-box .modal-body {
  font-weight: 400; font-style: normal; font-size: 14px; color: var(--ink);
  line-height: 1.6;
}
.modal-stats {
  display: flex; align-items: center; gap: 0;
  margin-top: 24px;
}
.modal-stat {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.stat-n {
  font-weight: 300; font-style: normal; font-size: 28px; color: #C9A84C; line-height: 1;
}
.stat-l {
  font-weight: 400; font-style: normal; font-size: 10px; color: var(--ink-muted);
  text-align: center;
}
.modal-stat-sep {
  width: 1px; height: 36px; background: rgba(26,26,26,0.12);
}
.modal-footer-note {
  font-weight: 400; font-style: normal; font-size: 11px; color: var(--ink-muted);
  margin-top: 4px;
}
.modal-footer-note a {
  color: var(--ink-soft); text-decoration: none;
}
.modal-footer-note a:hover { color: var(--ink); }

/* ─── Share Toast ────────────────────────────────────────────────────────── */
.share-toast {
  position: fixed; bottom: 116px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--bg-main);
  font-weight: 400; font-style: normal; font-size: 12px; letter-spacing: 0.06em;
  padding: 8px 20px;
  z-index: 300;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.share-toast.show { opacity: 1; }

/* ─── Modal Rich Content Components ─────────────────────────────────────── */
.section-num {
  font: 400 11px/1 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--aurora-gold);
  margin-bottom: 8px;
}
.section-title {
  font: 300 28px/1.15 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  color: var(--ink);
  margin: 0 0 12px;
}
.section-lead {
  font: 300 18px/1.45 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  color: var(--ink);
  margin: 0 0 24px;
}
.section-body {
  font: 400 14px/1.65 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  color: var(--ink-soft);
  margin: 0 0 24px;
}
.section-divider {
  height: 1px;
  background: var(--hairline);
  margin: 32px 0;
  border: 0;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.compare-col {
  padding: 20px;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--hairline);
}
.compare-col.col-future {
  background: rgba(201,168,76,0.05);
  border-color: rgba(201,168,76,0.3);
}
.compare-mini {
  font: 400 10px/1 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.compare-title {
  font: 400 16px/1.2 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  color: var(--ink);
  margin-bottom: 12px;
}
.compare-list {
  list-style: none;
  padding: 0; margin: 0;
}
.compare-list li {
  font: 400 13px/1.55 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-soft);
}
.compare-list li:last-child { border-bottom: none; }

.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.metric {
  padding: 16px 20px;
  border: 1px solid var(--hairline);
}
.metric-num {
  font: 300 28px/1 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  color: var(--aurora-gold);
  margin-bottom: 6px;
}
.metric-label {
  font: 400 11px/1.4 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.layer-card {
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
}
.layer-num {
  font: 400 11px/1 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  letter-spacing: 0.18em;
  color: var(--aurora-gold);
  padding-top: 2px;
}
.layer-title {
  font: 400 15px/1.2 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  color: var(--ink);
  margin-bottom: 6px;
}
.layer-desc {
  font: 400 13px/1.55 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  color: var(--ink-soft);
}

.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.cost-table th {
  text-align: left;
  font: 400 10px/1 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 12px 8px;
  border-bottom: 1px solid var(--hairline);
}
.cost-table td {
  font: 400 13px/1.5 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  padding: 12px 8px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  vertical-align: top;
}
.cost-table td.cost-amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cost-table tr.cost-total td {
  font: 400 14px/1 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
  border-bottom: none;
}
.cost-table tr.cost-total td.cost-amount {
  color: var(--aurora-gold);
  font-size: 18px;
}

.timeline-step {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.timeline-week {
  font: 400 10px/1 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  letter-spacing: 0.18em;
  color: var(--aurora-gold);
  padding-top: 4px;
  text-transform: uppercase;
}
.timeline-title {
  font: 400 14px/1.3 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  color: var(--ink);
  margin-bottom: 4px;
}
.timeline-desc {
  font: 400 12.5px/1.5 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  color: var(--ink-soft);
}

.intangible-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.intangible-item {
  padding: 16px;
  border: 1px solid var(--hairline);
  background: rgba(201,168,76,0.03);
}
.intangible-title {
  font: 400 13px/1.3 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  color: var(--ink);
  margin-bottom: 6px;
}
.intangible-desc {
  font: 400 12px/1.5 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  color: var(--ink-soft);
}

.stop-card {
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
}
.stop-num {
  font: 300 22px/1 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  color: var(--aurora-gold);
  padding-top: 2px;
}
.stop-label {
  font: 400 14px/1.3 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  color: var(--ink);
  margin-bottom: 4px;
}
.stop-desc {
  font: 400 12.5px/1.5 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  color: var(--ink-soft);
}

.cta-block {
  margin-top: 32px;
  padding: 24px;
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.3);
}
.cta-title {
  font: 300 20px/1.2 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  color: var(--ink);
  margin-bottom: 8px;
}
.cta-body {
  font: 400 13px/1.55 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.cta-link {
  display: inline-block;
  font: 400 12px/1 "Britti Sans", system-ui, sans-serif;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aurora-gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,0.4);
  padding-bottom: 2px;
  transition: border-color 240ms;
}
.cta-link:hover { border-color: var(--aurora-gold); }

@media (max-width: 600px) {
  .compare-grid { grid-template-columns: 1fr; }
  .metrics-row { grid-template-columns: repeat(2, 1fr); }
  .intangible-row { grid-template-columns: 1fr; }
  .timeline-step { grid-template-columns: 64px 1fr; }
}

/* ─── MapLibre overrides ─────────────────────────────────────────────────── */
.maplibregl-ctrl-group { border-radius: 0 !important; }
.maplibregl-ctrl button { border-radius: 0 !important; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  #bottom-bar { height: auto; flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
  .bb-brand { min-width: 140px; flex: 0 0 auto; }
  .bb-aux { min-width: 0; flex: 0 0 auto; gap: 2px; }
  .bb-features { order: 2; flex: 1 0 100%; justify-content: flex-start; padding: 4px 0 0; }
  .bb-feat { min-width: 64px; padding: 8px 6px; }
  .bb-feat .bb-label { font-size: 9.5px; }
  .bb-zoom { display: none; }
  .scene-picker { bottom: 130px; }
}

@media (max-width: 480px) {
  .bb-feat .bb-label { display: none; }
  .bb-feat { min-width: 44px; padding: 6px; }
  .bb-feat .bb-icon { width: 20px; height: 20px; }
  .scene-number { font-size: 18px; }
  .scene-label { font-size: 11px; }
  #header { padding: 0 14px; }
  .modal-box { padding: 32px 24px 28px; }
  .modal-box .modal-title { font-size: 24px; }
  .share-toast { bottom: 140px; }
  .brand-logo { height: 18px; }
}

/* ─── Admin Mark (/// signature) ────────────────────────────────────────── */
.admin-mark {
  font: 400 16px/1 "Britti Sans", system-ui, sans-serif;
  color: currentColor;
  letter-spacing: -0.06em;
  font-style: normal;
  display: inline-block;
  padding-top: 2px;
}
.bb-admin:hover .admin-mark { color: var(--aurora-gold); }

/* ─── Theme Toggle ───────────────────────────────────────────────────────── */
.theme-icon { width: 16px; height: 16px; transition: opacity 240ms; }
.theme-icon-moon { display: none; }
:root[data-theme="dark"] .theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-icon-moon { display: inline-block; }

/* ─── Apresentação CTA ───────────────────────────────────────────────────── */
.bb-feat-cta {
  position: relative;
  background:
    linear-gradient(180deg, rgba(201,168,76,0.05) 0%, rgba(201,168,76,0.10) 100%);
  isolation: isolate;
}
.bb-feat-cta::before {
  width: 60% !important;
  background: linear-gradient(90deg, transparent 0%, rgba(201,168,76,0.55) 25%, var(--aurora-gold) 50%, rgba(201,168,76,0.55) 75%, transparent 100%) !important;
  height: 1px !important;
  opacity: 1;
}
.bb-feat-cta::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(201,168,76,0.18), transparent 70%);
  opacity: 0;
  transition: opacity 480ms cubic-bezier(0.25,0.1,0.25,1);
  pointer-events: none;
  z-index: -1;
}
.bb-feat-cta:hover::after { opacity: 1; }
.bb-feat-cta .bb-label {
  color: var(--aurora-gold);
  letter-spacing: 0.18em;
  font-weight: 400;
}
.bb-feat-cta:hover {
  background:
    linear-gradient(180deg, rgba(201,168,76,0.10) 0%, rgba(201,168,76,0.18) 100%);
}
.bb-feat-cta:hover::before { width: 80% !important; }
.bb-feat-cta:hover .bb-label { letter-spacing: 0.22em; }
.bb-feat-cta .bb-icon { color: var(--aurora-gold); }
.bb-feat-cta .bb-cta-mark {
  position: absolute; top: 6px; right: 8px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--aurora-gold);
  box-shadow: 0 0 0 2px rgba(201,168,76,0.18);
  animation: cta-mark-pulse 2.6s ease-in-out infinite;
}
@keyframes cta-mark-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(201,168,76,0.15); transform: scale(1); }
  50%      { box-shadow: 0 0 0 5px rgba(201,168,76,0); transform: scale(1.2); }
}

.bb-feat-cta.is-running .bb-icon { color: var(--aurora-gold); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ─── Presentation Overlay ───────────────────────────────────────────────── */
.pres-overlay {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%) translateY(-32px);
  z-index: 80; padding: 14px 22px; min-width: 360px;
  background: var(--panel); backdrop-filter: blur(18px);
  border: 1px solid var(--hairline);
  display: flex; align-items: center; gap: 18px;
  opacity: 0; pointer-events: none;
  transition: all 360ms cubic-bezier(0.25,0.1,0.25,1);
}
.pres-overlay.is-active {
  transform: translateX(-50%) translateY(0);
  opacity: 1; pointer-events: auto;
}
.pres-bar-track {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--hairline);
}
.pres-bar-fill {
  height: 100%; background: var(--aurora-gold);
  width: 0%; transition: width 380ms ease-out;
}
.pres-meta { display: flex; flex-direction: column; gap: 2px; }
.pres-mini { font: 400 9.5px/1 "Britti Sans"; letter-spacing: 0.18em; text-transform: uppercase; color: var(--aurora-gold); font-style: normal; }
.pres-caption { font: 300 14px/1 "Britti Sans"; color: var(--ink); font-style: normal; }
.pres-stop {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid var(--hairline-strong);
  padding: 6px 12px; cursor: pointer; color: var(--ink);
  font: 400 11px/1 "Britti Sans"; letter-spacing: 0.06em; text-transform: uppercase;
  transition: all 240ms;
  font-style: normal;
}
.pres-stop:hover { border-color: var(--aurora-gold); color: var(--aurora-gold); }
.pres-stop svg { stroke: currentColor; }

/* ─── Scroll Reveal ──────────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms cubic-bezier(0.16,1,0.3,1), transform 900ms cubic-bezier(0.16,1,0.3,1);
  transition-delay: var(--delay, 0ms);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-x] { opacity: 0; transform: translateX(-30px); transition: opacity 900ms cubic-bezier(0.16,1,0.3,1), transform 900ms cubic-bezier(0.16,1,0.3,1); }
[data-reveal-x].is-revealed { opacity: 1; transform: translateX(0); }

[data-reveal-scale] { opacity: 0; transform: scale(0.94); transition: opacity 900ms cubic-bezier(0.16,1,0.3,1), transform 900ms cubic-bezier(0.16,1,0.3,1); }
[data-reveal-scale].is-revealed { opacity: 1; transform: scale(1); }

[data-reveal-words] span {
  display: inline-block;
  opacity: 0; transform: translateY(8px);
  transition: opacity 600ms cubic-bezier(0.16,1,0.3,1), transform 600ms cubic-bezier(0.16,1,0.3,1);
}
[data-reveal-words].is-revealed span { opacity: 1; transform: translateY(0); }

/* ─── Modal Scroll Progress Bar ─────────────────────────────────────────── */
.modal-progress {
  position: sticky; top: 0; left: 0;
  width: 0%; height: 2px;
  background: var(--aurora-gold);
  z-index: 10;
  transition: width 200ms cubic-bezier(0.25,0.1,0.25,1);
  flex-shrink: 0;
}

/* ─── Pillars Grid ───────────────────────────────────────────────────────── */
.pillars-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 16px 0 24px; }
@media (max-width: 720px) { .pillars-grid { grid-template-columns: 1fr; } }
.pillar {
  --rx: 0deg; --ry: 0deg; --tx: 0px; --ty: 0px;
  padding: 24px; border: 1px solid var(--hairline);
  background: rgba(255,255,255,0.45); position: relative; overflow: hidden;
  transform: perspective(800px) rotateX(var(--rx)) rotateY(var(--ry)) translate3d(var(--tx), var(--ty), 0);
  transition: transform 360ms cubic-bezier(0.25,0.1,0.25,1), border-color 240ms, background 240ms;
}
:root[data-theme="dark"] .pillar { background: rgba(255,255,255,0.03); }
.pillar:hover { border-color: rgba(201,168,76,0.4); background: rgba(255,251,240,0.7); }
:root[data-theme="dark"] .pillar:hover { background: rgba(201,168,76,0.05); }
.pillar-num { font: 400 10px/1 "Britti Sans"; font-style: normal; letter-spacing: 0.18em; color: var(--aurora-gold); margin-bottom: 14px; }
.pillar-title { font: 300 22px/1.2 "Britti Sans"; font-style: normal; color: var(--ink); margin: 0 0 10px; }
.pillar-desc { font: 400 13px/1.55 "Britti Sans"; font-style: normal; color: var(--ink-soft); margin: 0; }
.pillar::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; background: radial-gradient(circle, rgba(201,168,76,0.15), transparent 70%); opacity: 0; transition: opacity 360ms; }
.pillar:hover::after { opacity: 1; }

/* ─── Distances Grid ─────────────────────────────────────────────────────── */
.distances-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 24px; }
@media (max-width: 600px) { .distances-grid { grid-template-columns: 1fr; } }
.dist-card {
  --rx: 0deg; --ry: 0deg; --tx: 0px; --ty: 0px;
  padding: 20px; border: 1px solid var(--hairline); text-align: left;
  background: rgba(255,255,255,0.45);
  transform: perspective(800px) rotateX(var(--rx)) rotateY(var(--ry)) translate3d(var(--tx), var(--ty), 0);
  transition: transform 360ms cubic-bezier(0.25,0.1,0.25,1), border-color 240ms, background 240ms;
}
:root[data-theme="dark"] .dist-card { background: rgba(255,255,255,0.03); }
.dist-card:hover { border-color: rgba(201,168,76,0.4); }
.dist-city { font: 300 18px/1.2 "Britti Sans"; font-style: normal; color: var(--ink); }
.dist-meta { font: 400 9px/1 "Britti Sans"; font-style: normal; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-muted); margin: 4px 0 14px; }
.dist-km { font: 300 28px/1 "Britti Sans"; font-style: normal; color: var(--aurora-gold); }
.dist-km span { font-size: 13px; color: var(--ink-soft); margin-left: 4px; }
.dist-time { font: 400 11px/1 "Britti Sans"; font-style: normal; color: var(--ink-soft); margin-top: 6px; letter-spacing: 0.04em; }

/* ─── Location Data Table ────────────────────────────────────────────────── */
.loc-data { display: flex; flex-direction: column; gap: 0; margin: 16px 0; }
.loc-row { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.loc-mini { font: 400 10px/1 "Britti Sans"; font-style: normal; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-muted); padding-top: 2px; }
.loc-val { font: 400 14px/1.4 "Britti Sans"; font-style: normal; color: var(--ink); }
.loc-mono { font-family: "SF Mono", Menlo, monospace; font-size: 13px; }

/* ─── Amenities Grid ─────────────────────────────────────────────────────── */
.amenities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 0; }
@media (max-width: 720px) { .amenities-grid { grid-template-columns: repeat(2, 1fr); } }
.amenity {
  --rx: 0deg; --ry: 0deg; --tx: 0px; --ty: 0px;
  padding: 18px 14px; border: 1px solid var(--hairline);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center; background: rgba(255,255,255,0.45);
  transform: perspective(800px) rotateX(var(--rx)) rotateY(var(--ry)) translate3d(var(--tx), var(--ty), 0);
  transition: transform 360ms cubic-bezier(0.25,0.1,0.25,1), border-color 240ms, background 240ms;
}
:root[data-theme="dark"] .amenity { background: rgba(255,255,255,0.03); }
.amenity:hover { border-color: rgba(201,168,76,0.4); background: rgba(255,251,240,0.65); }
:root[data-theme="dark"] .amenity:hover { background: rgba(201,168,76,0.05); }
.amenity-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.amen-icon { width: 36px; height: 36px; filter: none; transition: transform 480ms cubic-bezier(0.25,0.1,0.25,1); }
.amenity:hover .amen-icon { transform: scale(1.10) translateY(-2px); filter: none; }
@media (prefers-reduced-motion: reduce) { .amen-icon, .amenity:hover .amen-icon { transform: none !important; } }
.amenity-name { font: 400 11px/1.2 "Britti Sans"; font-style: normal; letter-spacing: 0.04em; color: var(--ink); }

/* ─── Map Markers ────────────────────────────────────────────────────────── */
.map-marker { display: flex; flex-direction: column; align-items: center; transform: translateY(-2px); }
.map-pin { width: 12px; height: 12px; background: var(--ink); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 3px rgba(26,26,26,0.15); }
.map-marker.is-primary .map-pin { background: var(--aurora-gold); border-color: var(--ink); box-shadow: 0 0 0 4px rgba(201,168,76,0.25); width: 14px; height: 14px; }
.map-tag { margin-top: 6px; padding: 4px 8px; background: rgba(255,255,255,0.92); backdrop-filter: blur(8px); border: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 1px; align-items: center; white-space: nowrap; }
:root[data-theme="dark"] .map-tag { background: rgba(20,20,20,0.92); }
.map-tag-label { font: 400 11px/1 "Britti Sans"; font-style: normal; color: var(--ink); letter-spacing: 0.04em; }
.map-tag-mini { font: 400 9px/1 "Britti Sans"; font-style: normal; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); }
.map-marker.is-primary .map-tag-label { color: var(--aurora-gold); }

/* ─── Gallery Grid ───────────────────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 768px) { .gallery-grid { grid-template-columns: 1fr; } }
.g-item { position: relative; margin: 0; overflow: hidden; aspect-ratio: 16/10; background: var(--hairline); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(0.25,0.1,0.25,1); display: block; }
.g-item:hover img { transform: scale(1.04); }
.g-cap { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px 14px; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); display: flex; flex-direction: column; gap: 2px; transform: translateY(8px); opacity: 0; transition: all 320ms; }
.g-item:hover .g-cap { transform: translateY(0); opacity: 1; }
.g-cat { font: 400 9px/1 "Britti Sans"; font-style: normal; letter-spacing: 0.18em; text-transform: uppercase; color: var(--aurora-gold); }
.g-label { font: 400 13px/1.2 "Britti Sans"; font-style: normal; color: #FAFAFA; }

/* ─── Gallery Filters ────────────────────────────────────────────────────── */
.gallery-filters { display: flex; gap: 4px; margin: 16px 0 24px; flex-wrap: wrap; }
.gf-btn { background: transparent; border: 1px solid var(--hairline); padding: 8px 14px; cursor: pointer; font: 400 10px/1 "Britti Sans"; font-style: normal; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); transition: all 280ms; }
.gf-btn:hover { border-color: var(--aurora-gold); color: var(--aurora-gold); }
.gf-btn.is-active { border-color: var(--aurora-gold); background: rgba(201,168,76,0.08); color: var(--aurora-gold); }

/* ─── Map Frame (hiper interativo) ──────────────────────────────────────── */
.map-frame { position: relative; width: 100%; height: 480px; border: 1px solid var(--hairline); overflow: hidden; }
@media (max-width: 720px) { .map-frame { height: 380px; } }
.map-canvas { position: absolute; inset: 0; }

.map-layers {
  position: absolute; bottom: 16px; left: 16px; z-index: 5;
  display: flex; gap: 6px; padding: 6px;
  background: var(--panel); backdrop-filter: blur(14px);
  border: 1px solid var(--hairline);
  max-width: calc(100% - 32px); overflow-x: auto; scrollbar-width: none;
}
.map-layers::-webkit-scrollbar { display: none; }
.map-layer-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 6px 10px; background: transparent;
  border: 1px solid transparent; cursor: pointer;
  transition: all 280ms cubic-bezier(0.25,0.1,0.25,1);
  min-width: 64px;
}
.map-layer-btn:hover { background: rgba(255,255,255,0.4); border-color: var(--hairline); }
:root[data-theme="dark"] .map-layer-btn:hover { background: rgba(255,255,255,0.04); }
.map-layer-btn.is-active { border-color: var(--aurora-gold); background: rgba(201,168,76,0.06); }
.ml-thumb {
  width: 40px; height: 28px; border: 1px solid var(--hairline);
  background-size: cover; background-position: center;
  transition: transform 280ms;
}
.map-layer-btn:hover .ml-thumb { transform: scale(1.04); }
.ml-sat { background: linear-gradient(135deg, #2d4a3e 0%, #5a8268 50%, #c8a878 100%); }
.ml-str { background: #EFEDE2; position: relative; }
.ml-str::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 30%, rgba(26,26,26,0.18) 30%, rgba(26,26,26,0.18) 32%, transparent 32%), linear-gradient(0deg, transparent 50%, rgba(26,26,26,0.12) 50%, rgba(26,26,26,0.12) 52%, transparent 52%); }
.ml-ter { background: linear-gradient(135deg, #d4c19a 0%, #8b6f47 50%, #4a5d3a 100%); }
.ml-drk { background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 60%, #2d3a4e 100%); }
.ml-label { font: 400 9.5px/1 "Britti Sans"; font-style: normal; letter-spacing: 0.06em; color: var(--ink-soft); }
.map-layer-btn.is-active .ml-label { color: var(--aurora-gold); }

.map-cities {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  display: flex; flex-direction: column; gap: 2px; padding: 6px;
  background: var(--panel); backdrop-filter: blur(14px);
  border: 1px solid var(--hairline); min-width: 140px;
}
.mc-btn {
  background: transparent; border: 0; padding: 8px 12px; text-align: left;
  cursor: pointer; transition: all 240ms;
  font: 400 11px/1 "Britti Sans"; font-style: normal; color: var(--ink); letter-spacing: 0.04em;
  position: relative;
}
.mc-btn::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 0; height: 1px; background: var(--aurora-gold); transition: width 280ms;
}
.mc-btn:hover { color: var(--aurora-gold); padding-left: 18px; }
.mc-btn:hover::before { width: 12px; }
.mc-btn.is-active { color: var(--aurora-gold); }
.mc-btn.is-active::before { width: 12px; }
.mc-divider { height: 1px; background: var(--hairline); margin: 4px 0; }
.mc-btn.mc-tour { color: var(--aurora-gold); }
.mc-btn.mc-overview { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-muted); }
@media (max-width: 600px) {
  .map-cities { left: 16px; right: auto; top: 16px; min-width: 0; flex-direction: row; flex-wrap: wrap; gap: 0; }
  .mc-btn { padding: 6px 10px; }
  .mc-divider { display: none; }
}

/* Map markers (new style) */
.map-marker { position: relative; width: 14px; height: 14px; cursor: pointer; }
.map-marker .pin {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ink); border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
  transition: transform 280ms;
}
.map-marker.is-primary .pin { background: var(--aurora-gold); border-color: var(--ink); width: 16px; height: 16px; }
.map-marker .ring {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--aurora-gold);
  animation: ringp 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes ringp { 0% { transform: translate(-50%,-50%) scale(0.8); opacity: 0.9; } 100% { transform: translate(-50%,-50%) scale(3.5); opacity: 0; } }
.map-marker:hover .pin { transform: translate(-50%,-50%) scale(1.3); }

/* Popup */
.map-popup { padding: 12px 14px; min-width: 200px; }
.map-popup .mp-cat { font: 400 9px/1 "Britti Sans"; font-style: normal; letter-spacing: 0.18em; text-transform: uppercase; color: var(--aurora-gold); margin-bottom: 4px; }
.map-popup .mp-title { font: 300 16px/1.2 "Britti Sans"; font-style: normal; color: var(--ink); margin-bottom: 8px; }
.map-popup .mp-meta { font: 400 11px/1.5 "Britti Sans"; font-style: normal; color: var(--ink-soft); }
.maplibregl-popup-content { background: var(--panel-solid) !important; border: 1px solid var(--hairline) !important; border-radius: 0 !important; box-shadow: 0 8px 24px rgba(0,0,0,0.18) !important; padding: 0 !important; }
.maplibregl-popup-tip { display: none !important; }
.maplibregl-popup-close-button { color: var(--ink) !important; font-size: 18px !important; padding: 4px 8px !important; right: 4px !important; top: 4px !important; }

/* ─── Scene Mini-map ─────────────────────────────────────────────────────── */
.scene-minimap {
  position: fixed; top: 70px; left: 16px; z-index: 8; padding: 10px;
  background: var(--panel); backdrop-filter: blur(14px);
  border: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 8px;
  transition: transform 320ms cubic-bezier(0.25,0.1,0.25,1);
}
.scene-minimap:hover { transform: translateX(2px); }
.sm-mini { font: 400 9px/1 "Britti Sans"; font-style: normal; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-muted); padding-left: 2px; }
.sm-thumbs { display: flex; gap: 4px; }
.sm-thumb {
  width: 28px; height: 28px; padding: 0; background: transparent;
  border: 1px solid var(--hairline); cursor: pointer;
  transition: all 280ms; display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
}
.sm-thumb span { font: 400 10px/1 "Britti Sans"; font-style: normal; }
.sm-thumb:hover { border-color: rgba(201,168,76,0.5); color: var(--aurora-gold); }
.sm-thumb.is-active { border-color: var(--aurora-gold); background: rgba(201,168,76,0.08); color: var(--aurora-gold); }
@media (max-width: 600px) { .scene-minimap { display: none; } }

/* ─── Toast ──────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 120px; left: 50%; transform: translate(-50%, 8px);
  padding: 10px 16px; background: var(--panel-solid);
  border: 1px solid var(--hairline-strong); color: var(--ink);
  font: 400 12px/1 "Britti Sans"; font-style: normal; letter-spacing: 0.04em;
  z-index: 200; opacity: 0; pointer-events: none;
  transition: all 320ms cubic-bezier(0.25,0.1,0.25,1);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ─── Panorama Hotspots ───────────────────────────────────────────────────── */
.pano-hotspot { position: relative; cursor: pointer; }
.ph-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--aurora-gold); border: 2px solid #fff;
  box-shadow: 0 0 0 4px rgba(201,168,76,0.25);
  animation: hpulse 2.4s ease-in-out infinite;
}
@keyframes hpulse { 0%,100% { box-shadow: 0 0 0 4px rgba(201,168,76,0.25); } 50% { box-shadow: 0 0 0 10px rgba(201,168,76,0); } }
.ph-card {
  position: absolute; left: 24px; top: 50%; transform: translateY(-50%) translateX(-8px);
  min-width: 220px; padding: 12px 14px;
  background: rgba(239,237,226,0.96); backdrop-filter: blur(14px);
  border: 1px solid rgba(26,26,26,0.18);
  opacity: 0; pointer-events: none;
  transition: all 320ms cubic-bezier(0.25,0.1,0.25,1);
}
:root[data-theme="dark"] .ph-card { background: rgba(20,20,20,0.92); border-color: rgba(250,250,250,0.18); }
.pano-hotspot:hover .ph-card { opacity: 1; transform: translateY(-50%) translateX(0); }
.ph-cat { font: 400 9px/1 "Britti Sans"; font-style: normal; letter-spacing: 0.18em; text-transform: uppercase; color: var(--aurora-gold); margin-bottom: 6px; }
.ph-label { font: 300 16px/1.2 "Britti Sans"; font-style: normal; color: var(--ink); margin-bottom: 6px; }
.ph-desc { font: 400 12px/1.45 "Britti Sans"; font-style: normal; color: var(--ink-soft); }

/* ─── Video Stack ────────────────────────────────────────────────────────── */
.video-stack { display: flex; flex-direction: column; gap: 24px; }
.v-item video { width: 100%; aspect-ratio: 16/9; background: #000; display: block; }
.v-meta { display: flex; flex-direction: column; gap: 2px; padding-top: 8px; }
.v-cat { font: 400 9px/1 "Britti Sans"; font-style: normal; letter-spacing: 0.18em; text-transform: uppercase; color: var(--aurora-gold); }
.v-label { font: 400 13px/1.2 "Britti Sans"; font-style: normal; color: var(--ink); }

/* ─── Book Viewer ────────────────────────────────────────────────────────── */
.book-viewer { position: relative; width: 100%; height: 600px; max-height: 80vh; perspective: 1600px; margin: 0 -24px; width: calc(100% + 48px); }
@media (max-width: 720px) { .book-viewer { height: 500px; margin: 0 -16px; width: calc(100% + 32px); } }
.book-stage { position: relative; width: 100%; height: 100%; overflow: hidden; transform-style: preserve-3d; }
.book-page {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 48px;
  opacity: 0;
  transform: translateX(40%) rotateY(-22deg) scale(0.95);
  transform-origin: left center;
  transition: opacity 800ms cubic-bezier(0.25,0.1,0.25,1), transform 800ms cubic-bezier(0.25,0.1,0.25,1), filter 800ms;
  pointer-events: none;
  filter: brightness(0.7);
}
@media (max-width: 720px) { .book-page { padding: 24px; } }
.book-page[data-active="true"] {
  opacity: 1; transform: translateX(0) rotateY(0) scale(1);
  pointer-events: auto; filter: brightness(1);
}
.book-page.is-prev { transform: translateX(-40%) rotateY(22deg) scale(0.95); }
.book-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 1200ms cubic-bezier(0.25,0.1,0.25,1);
}
.book-page[data-active="true"] .book-bg { transform: scale(1.04); }
.book-tint {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0) 30%, rgba(10,10,10,0.88) 100%);
}
.book-page.tone-cover .book-tint { background: linear-gradient(180deg, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.85) 100%); }
.book-page.tone-closing .book-tint { background: linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.92) 100%); }
.book-content { position: relative; z-index: 2; max-width: 720px; color: #FAFAFA; }
.book-mini {
  font: 400 10px/1 'Britti Sans'; font-style: normal; letter-spacing: 0.22em; text-transform: uppercase; color: var(--aurora-gold); margin-bottom: 14px;
  opacity: 0; transform: translateY(8px);
  animation: book-elem 620ms cubic-bezier(0.25,0.1,0.25,1) both 200ms;
}
.book-title {
  font-family: 'Cinzel', 'Cormorant Garamond', Georgia, serif; font-weight: 500; font-style: normal; font-size: 44px; line-height: 1.1; letter-spacing: 2px; color: #FAFAFA; margin: 0 0 16px;
  opacity: 0; transform: translateY(12px);
  animation: book-elem 720ms cubic-bezier(0.25,0.1,0.25,1) both 320ms;
}
@media (max-width: 720px) { .book-title { font-size: 28px; letter-spacing: 1px; } }
.book-sub {
  font: 300 14px/1.4 'Britti Sans'; font-style: normal; color: rgba(250,250,250,0.85); letter-spacing: 0.06em;
  opacity: 0; animation: book-elem 720ms cubic-bezier(0.25,0.1,0.25,1) both 440ms;
}
.book-body {
  font: 400 15px/1.7 'Britti Sans'; font-style: normal; color: rgba(250,250,250,0.9); margin: 12px 0 0; max-width: 600px;
  opacity: 0; transform: translateY(12px);
  animation: book-elem 720ms cubic-bezier(0.25,0.1,0.25,1) both 480ms;
}
.book-cta {
  display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap;
  opacity: 0; animation: book-elem 720ms cubic-bezier(0.25,0.1,0.25,1) both 600ms;
}
.book-cta .modal-link { color: #FAFAFA; border-bottom: 1px solid rgba(255,255,255,0.3); }
.book-cta .modal-link:hover { color: var(--aurora-gold); border-bottom-color: var(--aurora-gold); }
.book-page:not([data-active="true"]) .book-mini,
.book-page:not([data-active="true"]) .book-title,
.book-page:not([data-active="true"]) .book-sub,
.book-page:not([data-active="true"]) .book-body,
.book-page:not([data-active="true"]) .book-cta { animation: none; opacity: 0; }
@keyframes book-elem { to { opacity: 1; transform: translateY(0); } }

.book-nav { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; z-index: 4; padding: 8px 12px; background: rgba(10,10,10,0.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.1); }
.book-prev, .book-next { width: 32px; height: 32px; background: transparent; border: 1px solid rgba(255,255,255,0.2); color: #FAFAFA; cursor: pointer; transition: all 240ms; display: inline-flex; align-items: center; justify-content: center; }
.book-prev:hover, .book-next:hover { border-color: var(--aurora-gold); color: var(--aurora-gold); }
.book-dots { display: flex; gap: 6px; }
.book-dot { width: 8px; height: 8px; padding: 0; background: rgba(255,255,255,0.25); border: none; cursor: pointer; transition: all 240ms; }
.book-dot:hover { background: rgba(255,255,255,0.5); }
.book-dot.is-active { background: var(--aurora-gold); transform: scaleX(2.4); }

/* ─── Lightbox Fullscreen ────────────────────────────────────────────────── */
.lightbox { position: fixed; inset: 0; z-index: 200; opacity: 0; pointer-events: none; transition: opacity 480ms cubic-bezier(0.4,0,0.15,1); }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(10,10,10,0.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.lb-stage {
  position: absolute; inset: 64px 80px 120px;
  display: flex; align-items: center; justify-content: center;
  perspective: 1400px;
}
@media (max-width: 768px) { .lb-stage { inset: 56px 16px 100px; } }
.lb-track { position: relative; width: 100%; height: 100%; }
.lb-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateX(60%) scale(0.86) rotateY(-18deg);
  transition: opacity 640ms cubic-bezier(0.25,0.1,0.25,1), transform 640ms cubic-bezier(0.25,0.1,0.25,1), filter 640ms;
  filter: blur(8px);
}
.lb-slide.is-active { opacity: 1; transform: translateX(0) scale(1) rotateY(0); filter: blur(0); }
.lb-slide.is-prev { transform: translateX(-60%) scale(0.86) rotateY(18deg); opacity: 0; }
.lb-slide img {
  max-width: 100%; max-height: 100%; object-fit: contain; user-select: none;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,168,76,0.18);
  cursor: grab;
}
.lb-slide img:active { cursor: grabbing; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  cursor: pointer; transition: all 320ms cubic-bezier(0.25,0.1,0.25,1);
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
}
.lb-prev { left: -72px; }
.lb-next { right: -72px; }
@media (max-width: 1023px) { .lb-prev { left: 8px; } .lb-next { right: 8px; } }
.lb-nav:hover {
  background: rgba(201,168,76,0.15);
  border-color: var(--aurora-gold);
  color: var(--aurora-gold);
  transform: translateY(-50%) scale(1.06);
}
.lb-header {
  position: absolute; top: 0; left: 0; right: 0; height: 56px;
  display: flex; align-items: center; gap: 16px;
  padding: 0 20px;
  background: linear-gradient(180deg, rgba(10,10,10,0.6), transparent);
  z-index: 3;
}
.lb-meta { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.lb-cat { font: 400 9px/1 'Britti Sans'; font-style: normal; letter-spacing: 0.18em; text-transform: uppercase; color: var(--aurora-gold); }
.lb-label { font: 300 16px/1 'Britti Sans'; font-style: normal; color: #FAFAFA; }
.lb-counter { font: 400 11px/1 'Britti Sans'; font-style: normal; letter-spacing: 0.18em; color: rgba(250,250,250,0.6); }
.lb-counter span { color: #FAFAFA; }
.lb-close { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid rgba(255,255,255,0.15); color: #FAFAFA; cursor: pointer; transition: all 240ms; }
.lb-close:hover { border-color: var(--aurora-gold); color: var(--aurora-gold); }
.lb-footer {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px 20px;
  background: linear-gradient(0deg, rgba(10,10,10,0.6), transparent);
  z-index: 3;
}
.lb-thumbs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumb { flex: 0 0 auto; width: 64px; height: 44px; border: 1px solid rgba(255,255,255,0.15); background-size: cover; background-position: center; cursor: pointer; transition: all 240ms; opacity: 0.55; }
.lb-thumb:hover { opacity: 1; transform: translateY(-2px); }
.lb-thumb.is-active { opacity: 1; border-color: var(--aurora-gold); box-shadow: 0 0 0 2px rgba(201,168,76,0.3); }

.lightbox.is-open .lb-header { animation: lb-fade-down 720ms cubic-bezier(0.25,0.1,0.25,1) both 200ms; }
.lightbox.is-open .lb-footer { animation: lb-fade-up 720ms cubic-bezier(0.25,0.1,0.25,1) both 240ms; }
.lightbox.is-open .lb-nav { animation: lb-fade-side 720ms cubic-bezier(0.25,0.1,0.25,1) both 320ms; }
@keyframes lb-fade-down { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lb-fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lb-fade-side { from { opacity: 0; } to { opacity: 1; } }

/* ─── Overview Mode ──────────────────────────────────────────────────────── */
body.overview-mode .scene-minimap { opacity: 0.5; }
body.overview-mode #pano { background: #0A0A0A; }

/* ─── Touch / Drag ───────────────────────────────────────────────────────── */
#pano, #viewer { touch-action: none; -webkit-user-select: none; user-select: none; }
body.dragging * { user-select: none; -webkit-user-select: none; }

/* ─── Responsive Breakpoints ─────────────────────────────────────────────── */

/* Mobile vertical */
@media (max-width: 480px), (max-width: 768px) and (orientation: portrait) {
  #header { height: 44px; padding: 0 12px; }
  .header-brand .brand-logo { height: 16px; }
  .header-scene-info { font-size: 11px; }
  #bottom-bar {
    flex-direction: column;
    height: auto;
    padding: 8px 0;
    gap: 4px;
  }
  .bb-brand { width: 100%; padding: 4px 16px; align-items: flex-start; }
  .bb-brand .brand-logo { height: 16px; }
  .brand-meta { font-size: 9px; }
  .bb-features {
    width: 100%;
    overflow-x: auto;
    padding: 4px 8px;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }
  .bb-features::-webkit-scrollbar { display: none; }
  .bb-feat { min-width: 64px; padding: 6px 8px; }
  .bb-feat .bb-label { font-size: 9px; letter-spacing: 0.06em; }
  .bb-aux {
    width: 100%;
    justify-content: space-around;
    padding: 0 16px;
    border-top: 1px solid var(--hairline);
    padding-top: 4px;
  }
  .modal-panel { width: 100vw !important; max-width: 100vw !important; }
  .scene-minimap { display: none !important; }
  .pano-hotspot .ph-card {
    min-width: 160px;
    font-size: 11px;
    left: 18px;
  }
}

/* Tablet portrait */
@media (min-width: 481px) and (max-width: 768px) and (orientation: portrait) {
  .modal-panel { width: 92vw !important; max-width: 720px; }
  #bottom-bar { padding: 12px 16px; }
  .bb-feat { padding: 10px 12px; }
}

/* Totem 16:9 (TVs horizontais) */
@media (orientation: landscape) and (max-height: 900px) and (min-width: 1280px) {
  .bb-feat .bb-label { font-size: 11px; letter-spacing: 0.10em; }
  .bb-feat { padding: 14px 16px; }
}

/* Totem 9:16 (totens verticais) */
@media (orientation: portrait) and (min-width: 768px) and (max-aspect-ratio: 6/10) {
  body.totem-vertical {
    padding-right: 280px;
  }
  body.totem-vertical #bottom-bar {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    left: auto;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    padding: 24px 16px;
    border-left: 1px solid var(--hairline);
    border-top: 0;
  }
  body.totem-vertical .bb-brand { width: 100%; flex-direction: column; align-items: center; padding: 0 0 24px; border-bottom: 1px solid var(--hairline); margin-bottom: 24px; }
  body.totem-vertical .bb-features {
    flex-direction: column;
    width: 100%;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
  }
  body.totem-vertical .bb-feat {
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
    padding: 14px 12px;
    gap: 12px;
  }
  body.totem-vertical .bb-feat .bb-icon { margin-bottom: 0; }
  body.totem-vertical .bb-feat .bb-label { font-size: 12px; }
  body.totem-vertical .bb-aux {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    border-top: 1px solid var(--hairline);
    padding-top: 16px;
    justify-content: center;
  }
  body.totem-vertical #pano { right: 280px !important; }
  body.totem-vertical .modal-panel { right: 280px !important; }
  body.totem-vertical .scene-minimap { top: 16px; left: 16px; }
}

/* ─── Lote Card ─────────────────────────────────────────────────────────── */
.lote-card { padding: 24px; border: 1px solid var(--hairline); background: rgba(255,255,255,0.5); }
:root[data-theme="dark"] .lote-card { background: rgba(255,255,255,0.03); }
.lote-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.lote-mini { font: 400 10px/1 'Britti Sans', sans-serif; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-muted); }
.lote-status { font: 400 11px/1 'Britti Sans', sans-serif; letter-spacing: 0.06em; color: var(--aurora-gold); padding: 4px 10px; border: 1px solid var(--aurora-gold); }
.lote-title { font: 300 22px/1.2 'Britti Sans', sans-serif; color: var(--ink); margin: 0 0 16px; }
.lote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 24px; padding: 16px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.lote-grid .lote-val { font: 300 16px/1.3 'Britti Sans', sans-serif; color: var(--ink); margin-top: 4px; }
.lote-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.lote-actions .modal-link { flex: 1; min-width: 140px; }

/* ─── Region Polygon (Aurora Oasis demarcação) ────────────────────────────── */
#region-overlay { pointer-events: none; }
#region-overlay .region-group { pointer-events: auto; cursor: pointer; }
#region-overlay .region-poly {
  fill-opacity: 0.30;
  stroke-opacity: 1;
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
  transition: filter 0.4s ease, fill-opacity 0.4s ease, stroke-width 0.4s ease;
}
#region-overlay .region-group.is-revealing .region-poly {
  animation: regionReveal 1600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes regionReveal {
  0%   { fill-opacity: 0;    stroke-opacity: 0; transform: scale(0.94); }
  35%  { fill-opacity: 0;    stroke-opacity: 1; }
  100% { fill-opacity: 0.30; stroke-opacity: 1; transform: scale(1); }
}
#region-overlay .region-group.is-revealing .region-label-bg,
#region-overlay .region-group.is-revealing .region-label-text {
  animation: regionLabelFade 700ms ease-out 900ms both;
}
@keyframes regionLabelFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
#region-overlay .region-group:hover .region-poly {
  fill-opacity: 0.55;
  stroke-width: 3.4;
  filter: drop-shadow(0 0 18px rgba(201,168,76,0.65));
}
#region-overlay .region-group:hover .region-label-bg {
  fill: rgba(201,168,76,0.96);
  stroke: #1A1A1A;
}
#region-overlay .region-group:hover .region-label-text {
  fill: #1A1A1A;
}

/* ─── Cinematic Scene Transition FX ────────────────────────────────────────── */
#pano, #viewer {
  transform-origin: 50% 50%;
  transition: filter 600ms cubic-bezier(0.6, 0, 0.4, 1),
              transform 1100ms cubic-bezier(0.16, 1, 0.3, 1),
              opacity 600ms ease;
  will-change: filter, transform;
  perspective: 1600px;
  perspective-origin: 50% 50%;
}
#pano.scene-fx-exit, #viewer.scene-fx-exit {
  filter: blur(22px) brightness(0.45) contrast(1.08) saturate(0.85);
  transform: scale(1.085) rotateZ(-0.4deg);
  opacity: 0.78;
}
#pano.scene-fx-enter, #viewer.scene-fx-enter {
  animation: sceneEnterFx 1500ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes sceneEnterFx {
  0%   { filter: blur(28px) brightness(0.4) saturate(0.7); transform: scale(1.12) rotateZ(0.6deg); opacity: 0.4; }
  35%  { filter: blur(8px)  brightness(0.85) saturate(1);  transform: scale(1.04) rotateZ(0.18deg); opacity: 0.92; }
  100% { filter: blur(0)    brightness(1)   saturate(1);  transform: scale(1)    rotateZ(0);     opacity: 1; }
}
#scene-fx-flash {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 55%, rgba(10,10,10,0) 0%, rgba(10,10,10,0.9) 75%, #050505 100%);
  z-index: 9000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 380ms cubic-bezier(0.6, 0, 0.4, 1);
  will-change: opacity;
}
#scene-fx-flash.is-flashing {
  opacity: 1;
}

/* ─── UI Reveal stagger (per element) ──────────────────────────────────────── */
.ui-reveal {
  animation: uiReveal 1100ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes uiReveal {
  0%   { opacity: 0; transform: translateY(14px) scale(0.985); filter: blur(8px); }
  60%  { filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* ─── Region polygon reveal — refined hyper-fluid bezier ───────────────────── */
#region-overlay .region-group.is-revealing .region-poly {
  animation: regionRevealHyper 2200ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transform-origin: 50% 50%;
  transform-box: fill-box;
}
@keyframes regionRevealHyper {
  0%   { fill-opacity: 0;    stroke-opacity: 0; stroke-dasharray: 1; stroke-dashoffset: 0; transform: scale(0.92) rotate(-0.6deg); filter: blur(6px); }
  20%  { stroke-opacity: 1; }
  55%  { fill-opacity: 0.10; stroke-opacity: 1; transform: scale(1.012) rotate(0.18deg); filter: blur(0); }
  100% { fill-opacity: 0.30; stroke-opacity: 1; transform: scale(1)     rotate(0);      filter: blur(0); }
}
#region-overlay .region-group .region-poly {
  filter: drop-shadow(0 6px 16px rgba(201,168,76,0.25));
}
#region-overlay .region-group:hover .region-poly {
  filter: drop-shadow(0 0 24px rgba(201,168,76,0.85)) drop-shadow(0 4px 12px rgba(201,168,76,0.4));
  transform: scale(1.008);
  transform-origin: 50% 50%;
  transform-box: fill-box;
  transition: filter 420ms cubic-bezier(0.16, 1, 0.3, 1),
              fill-opacity 420ms cubic-bezier(0.16, 1, 0.3, 1),
              stroke-width 420ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Hotspot pop-in (when scene loads) ────────────────────────────────────── */
.pano-hotspot.ui-reveal .ph-dot {
  animation: hotspotPop 900ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes hotspotPop {
  0%   { opacity: 0; transform: scale(0.2); filter: blur(4px); }
  60%  { opacity: 1; transform: scale(1.15); filter: blur(0); }
  100% { opacity: 1; transform: scale(1); }
}

/* ─── Hourglass Brand (ampulheta Aurora Oasis) ────────────────────────────── */
/* Sprite sheet 5760x720 = 8 frames @ 720x720 */
/* Loader: ampulheta PRETA sobre fundo transparente (intro editorial) */
.hourglass-sprite {
  width: 220px;
  height: 220px;
  background: url('/img/hourglass/hourglass-sprite-720-black.webp') 0 0 / 1760px 220px no-repeat;
  animation: hourglassTurn 11s steps(8) infinite;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.18)) drop-shadow(0 4px 8px rgba(0,0,0,0.12));
}
@keyframes hourglassTurn {
  0%   { background-position: 0 0; }
  100% { background-position: -1760px 0; }
}

/* Loader hero — large, slow turntable */
.hourglass-loader {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
  opacity: 0;
  animation: hourglassFadeUp 1400ms cubic-bezier(0.16, 1, 0.3, 1) 200ms forwards;
}
@keyframes hourglassFadeUp {
  from { opacity: 0; transform: translateY(20px) scale(0.92); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    filter: blur(0); }
}

/* Floating mark — bottom right, smaller */
.hourglass-mark {
  position: fixed;
  right: 28px;
  bottom: 100px;
  width: 64px;
  height: 64px;
  background: rgba(10,10,10,0.5);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 50%;
  cursor: pointer;
  z-index: 90;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.4) translateY(40px);
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 1100ms cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 380ms ease,
              box-shadow 380ms ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4),
              inset 0 0 0 1px rgba(201,168,76,0.15);
}
.hourglass-mark.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.hourglass-mark:hover {
  border-color: rgba(201,168,76,0.85);
  box-shadow: 0 8px 32px rgba(201,168,76,0.45),
              inset 0 0 0 1px rgba(201,168,76,0.4),
              0 0 28px rgba(201,168,76,0.5);
}
.hourglass-mark:hover .hourglass-mark-sprite {
  animation-duration: 4.5s; /* speeds up on hover */
  filter: drop-shadow(0 0 16px rgba(201,168,76,0.95)) drop-shadow(0 4px 8px rgba(201,168,76,0.6));
}
.hourglass-mark:hover .hourglass-mark-tooltip {
  opacity: 1;
  transform: translateX(-12px);
}
.hourglass-mark:active { transform: scale(0.94); }
.hourglass-mark-sprite {
  width: 48px;
  height: 48px;
  background: url('/img/hourglass/hourglass-sprite-720.webp') 0 0 / 384px 48px no-repeat;
  animation: hourglassTurnMark 13s steps(8) infinite;
  filter: drop-shadow(0 0 6px rgba(201,168,76,0.5));
  transition: animation-duration 0.4s ease, filter 0.4s ease;
}
@keyframes hourglassTurnMark {
  0%   { background-position: 0 0; }
  100% { background-position: -384px 0; }
}
.hourglass-mark-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10,10,10,0.92);
  color: #C9A84C;
  padding: 8px 14px;
  border: 1px solid rgba(201,168,76,0.4);
  font: 300 11px/1.2 'Britti Sans', sans-serif;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 280ms ease, transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
@media (max-width: 768px) {
  .hourglass-mark { width: 52px; height: 52px; right: 16px; bottom: 88px; }
  .hourglass-mark-sprite { width: 38px; height: 38px; background-size: 304px 38px; }
  @keyframes hourglassTurnMark {
    0%   { background-position: 0 0; }
    100% { background-position: -304px 0; }
  }
  .hourglass-mark-tooltip { display: none; }
  .hourglass-sprite { width: 160px; height: 160px; background-size: 1280px 160px; }
}
@media (max-width: 768px) {
  @keyframes hourglassTurn {
    0%   { background-position: 0 0; }
    100% { background-position: -1280px 0; }
  }
}

/* ─── Accessibility: reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hourglass-sprite, .hourglass-mark-sprite,
  #region-overlay .region-poly {
    animation: none !important;
  }
  #pano.scene-fx-exit, #viewer.scene-fx-exit,
  #pano.scene-fx-enter, #viewer.scene-fx-enter {
    transform: none !important;
    filter: none !important;
  }
}

/* ─── Paint perf: hint browser to layer animated elements ─────────────────── */
.hourglass-sprite, .hourglass-mark-sprite { will-change: background-position; }
#region-overlay .region-poly { will-change: opacity, transform; }
.ui-reveal { will-change: opacity, transform, filter; }

/* ─── Skip animations on mobile to save battery on weaker GPUs ─────────────── */
@media (max-width: 768px) {
  #pano.scene-fx-enter, #viewer.scene-fx-enter {
    animation-duration: 900ms;
  }
  /* Don't render heavy filter on hourglass mobile */
  .hourglass-mark { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
}
