/* ============================================================
   L'Acqua Marina · Tour 360° · v8 styles (clean, no micro-anims)
   ============================================================ */
:root {
  --ink:        #0F0F0E;
  --black-pure: #050505;
  --cream:      #F5F1E8;
  --cream-deep: #EFE9DD;
  --cream-soft: #FAF7F0;
  --line:       #D9D1BE;
  --gold:       #B8924A;
  --gold-light: #C9A867;
  --gold-deep:  #92711F;
  --teal:       #486E63;
  --terra:      #A8583C;

  --ink-a90: rgba(15,15,14,.92);
  --ink-a70: rgba(15,15,14,.72);
  --ink-a40: rgba(15,15,14,.40);
  --ink-a25: rgba(15,15,14,.25);
  --ink-a12: rgba(15,15,14,.12);
  --cream-a85: rgba(245,241,232,.85);
  --cream-a60: rgba(245,241,232,.60);
  --cream-a35: rgba(245,241,232,.35);
  --cream-a15: rgba(245,241,232,.15);
  --cream-a06: rgba(245,241,232,.06);
  --gold-a40: rgba(184,146,74,.40);
  --gold-a18: rgba(184,146,74,.18);

  --f-display: 'Fraunces','Times New Roman',serif;
  --f-body:    'Host Grotesk','Inter',system-ui,-apple-system,sans-serif;

  --ease-out:   cubic-bezier(.22,1,.36,1);
  --ease-inout: cubic-bezier(.65,0,.35,1);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: #050505;
  color: var(--cream);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

/* ============================================================
   STANDBY (index.html)
   ============================================================ */
.page-standby { background: #060403; }
.standby {
  position: fixed; inset: 0;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}
.standby-bg-deep { position: absolute; inset: 0; z-index: 0; }
.standby-bg-img {
  position: absolute; inset: -8%;
  background-size: cover; background-position: center;
  filter: brightness(.55) saturate(1.08) contrast(1.05);
  transform: scale(1.10);
  transition: transform .12s linear;
}
.standby-bg-mist {
  position: absolute; inset: -10%;
  background-repeat: no-repeat;
  background-size: 140% 140%;
  mix-blend-mode: screen;
  opacity: .26;
  transition: transform .15s linear;
}
.standby-mist-1 { background-image: radial-gradient(ellipse at 20% 70%, rgba(184,146,74,.45), transparent 55%); }
.standby-mist-2 { background-image: radial-gradient(ellipse at 80% 30%, rgba(72,110,99,.42), transparent 60%); }
.standby-mist-3 { background-image: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,.55), transparent 65%); mix-blend-mode: multiply; opacity: .55; }
.standby-bg-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,.55) 75%, rgba(0,0,0,.85) 100%);
}
.standby-bg-warmth {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(184,146,74,.07) 50%, transparent 100%);
}

.standby-sidenav {
  position: absolute; right: 36px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 14px;
  z-index: 5;
}
.standby-sidenav-link {
  writing-mode: vertical-rl; text-orientation: mixed;
  font-family: var(--f-body); font-size: 11px;
  letter-spacing: .25em; text-transform: uppercase;
  color: var(--cream-a60);
  text-decoration: none;
  padding: 4px 2px;
  transition: color .3s var(--ease-out);
}
.standby-sidenav-link:hover { color: var(--gold-light); }

.standby-content {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  text-align: center;
  width: min(820px, 88vw);
}
.standby-logo {
  display: block;
  width: clamp(140px, 18vw, 220px);
  height: auto;
  margin: 0 auto 32px;
  filter: drop-shadow(0 6px 22px rgba(0,0,0,.55));
  opacity: .96;
}
.standby-eyebrow {
  display: flex; align-items: center; justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}
.standby-eyebrow-line { height: 1px; width: 48px; background: var(--gold); opacity: .65; }
.standby-eyebrow-text {
  font-family: var(--f-body); font-size: 11px;
  letter-spacing: .42em; text-transform: uppercase;
  color: var(--gold-light); font-weight: 500;
}
.standby-title {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(54px, 9vw, 124px);
  line-height: .95; color: var(--cream);
  margin: 0 0 18px; letter-spacing: -.02em;
}
.standby-title-line { display: block; }
.standby-title-italic { font-style: italic; color: var(--gold-light); font-weight: 300; }
.standby-quote {
  font-family: var(--f-display); font-style: italic; font-weight: 300;
  font-size: clamp(17px, 1.6vw, 22px);
  color: var(--cream-a85); margin: 0; letter-spacing: .01em;
}
.standby-divider { width: 56px; height: 1px; background: var(--gold); opacity: .6; margin: 28px auto; }
.standby-loc {
  font-family: var(--f-body); font-size: 11px;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--cream-a60);
}

.standby-cta {
  position: absolute; left: 50%; bottom: 56px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: transparent; border: 0;
  cursor: pointer; padding: 8px 14px;
  z-index: 5;
}
.standby-cta-label {
  font-family: var(--f-body); font-size: 12px;
  letter-spacing: .35em; text-transform: uppercase;
  color: var(--cream-a85); font-weight: 500;
}
.standby-cta-bar {
  width: 1px; height: 36px; background: var(--gold);
  animation: bar-pulse 2.4s var(--ease-inout) infinite;
  transform-origin: top;
}
@keyframes bar-pulse {
  0%,100% { transform: scaleY(.4); opacity: .4; }
  50% { transform: scaleY(1); opacity: 1; }
}

.standby-foot {
  position: absolute; left: 36px; bottom: 24px;
  z-index: 5;
  display: flex; gap: 8px; align-items: center;
  font-family: var(--f-body); font-size: 10px;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--cream-a35);
}
.standby-foot-dot { opacity: .5; }

.page-transition {
  position: fixed; inset: 0;
  background: #050505;
  opacity: 0; pointer-events: none;
  z-index: 9999;
  transition: opacity .5s var(--ease-out);
}
.page-transition.is-active { opacity: 1; pointer-events: all; }

.film-grain {
  position: fixed; inset: 0;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: .10;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .3 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  z-index: 9000;
}

/* ============================================================
   TOUR PLAYER (tour.html)
   ============================================================ */
.page-tour { background: #000; overflow: hidden; }

#stage { position: fixed; inset: 0; z-index: 1; }
#stage canvas { display: block; width: 100% !important; height: 100% !important; }

.stage-vignette {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 2;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,.55) 100%);
}
.stage-warmth {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 2;
  background: linear-gradient(180deg, rgba(184,146,74,.05) 0%, transparent 30%, transparent 70%, rgba(15,15,14,.18) 100%);
  mix-blend-mode: overlay;
  opacity: .85;
}

/* Loader */
.tour-loader {
  position: fixed; inset: 0;
  background: #060403;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 100;
  transition: opacity .8s var(--ease-out);
}
.tour-loader.is-hidden { opacity: 0; pointer-events: none; }
.tour-loader-logo {
  width: 110px; height: auto;
  margin-bottom: 36px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.45));
  animation: loader-fade 2.4s var(--ease-inout) infinite;
}
@keyframes loader-fade {
  0%,100% { opacity: .7; }
  50% { opacity: 1; }
}
.tour-loader-bar {
  width: 180px; height: 1px;
  background: var(--cream-a15);
  position: relative; overflow: hidden;
}
.tour-loader-bar::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--gold);
  transform: translateX(-100%);
  animation: loader-bar 1.6s var(--ease-inout) infinite;
}
@keyframes loader-bar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.tour-loader-label {
  margin-top: 18px;
  font-family: var(--f-body); font-size: 10px;
  letter-spacing: .42em; text-transform: uppercase;
  color: var(--cream-a60);
}

/* Topbar */
.tour-topbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 20;
  padding: 22px 32px;
  padding-top: max(22px, env(safe-area-inset-top));
  padding-left: max(32px, env(safe-area-inset-left));
  padding-right: max(32px, env(safe-area-inset-right));
  display: flex; justify-content: space-between; align-items: center;
  pointer-events: none;
}
.tour-topbar > * { pointer-events: auto; }

.tour-brand {
  display: inline-flex; align-items: center;
  text-decoration: none; line-height: 1;
}
.tour-brand-logo {
  width: 46px; height: 46px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
  opacity: .95;
  transition: opacity .25s var(--ease-out);
}
.tour-brand:hover .tour-brand-logo { opacity: 1; }

.tour-compass { text-align: center; pointer-events: none; }
.tour-compass-dial {
  width: 120px; height: 22px;
  position: relative; overflow: hidden;
  margin: 0 auto;
  mask-image: linear-gradient(90deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
}
.tour-compass-track {
  display: flex; gap: 32px;
  position: absolute; left: 50%; top: 4px;
  transform: translateX(-50%);
  font-family: var(--f-body); font-size: 11px;
  letter-spacing: .25em; color: var(--cream-a85);
  transition: transform .08s linear;
}
.tour-compass-tick {
  width: 1px; height: 7px;
  background: var(--gold);
  margin: 0 auto;
  position: relative; top: -2px;
}
.tour-compass-tick::after {
  content: '';
  position: absolute; bottom: -3px; left: -2px;
  width: 5px; height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
}
.tour-compass-name {
  font-family: var(--f-display); font-style: italic; font-weight: 300;
  font-size: 13px; color: var(--gold-light);
  margin-top: 4px;
}

.tour-actions { display: flex; gap: 8px; align-items: center; }
.tour-icon-btn {
  background: rgba(15,15,14,.55);
  border: 1px solid var(--cream-a15);
  border-radius: 999px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream-a85);
  cursor: pointer;
  transition: all .25s var(--ease-out);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tour-icon-btn:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(15,15,14,.75);
}
.tour-icon-btn svg { width: 16px; height: 16px; }

/* Narração inferior central (acima do CTA) */
.tour-narration {
  position: fixed; left: 50%; bottom: 150px;
  transform: translateX(-50%);
  z-index: 14;
  text-align: center;
  width: min(680px, 84vw);
  pointer-events: none;
  opacity: 0;
  transition: opacity .8s var(--ease-out);
}
.tour-narration.is-visible { opacity: 1; }
.tour-narration-eyebrow {
  font-family: var(--f-body); font-size: 10px;
  letter-spacing: .4em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 12px;
}
.tour-narration-text {
  font-family: var(--f-display); font-style: italic; font-weight: 300;
  font-size: clamp(18px, 2.1vw, 25px);
  line-height: 1.4;
  color: var(--cream);
  text-shadow: 0 2px 14px rgba(0,0,0,.55);
}

/* Hotspots */
.tour-hotspots {
  position: fixed; inset: 0;
  z-index: 12;
  pointer-events: none;
}
.tour-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  --c: 192,158,82;
}
.tour-hotspot[data-tipo="go"]   { --c: 184,146,74; }
.tour-hotspot[data-tipo="info"] { --c: 245,241,232; }
.tour-hotspot[data-tipo="cta"]  { --c: 168,88,60; }

.tour-hotspot-dot {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: rgba(var(--c),.18);
  border: 1px solid rgba(var(--c),.85);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s var(--ease-out);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.tour-hotspot-dot::before {
  content: '';
  position: absolute; inset: -8px;
  border-radius: 999px;
  border: 1px solid rgba(var(--c),.45);
  animation: hot-pulse 2.6s var(--ease-inout) infinite;
}
.tour-hotspot-dot::after {
  content: '';
  width: 6px; height: 6px; border-radius: 999px;
  background: rgb(var(--c));
}
@keyframes hot-pulse {
  0% { transform: scale(.9); opacity: .9; }
  100% { transform: scale(1.6); opacity: 0; }
}
.tour-hotspot:hover .tour-hotspot-dot {
  background: rgba(var(--c),.3);
  border-color: rgb(var(--c));
}
.tour-hotspot-label {
  position: absolute;
  top: 38px; left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--f-body); font-size: 11px;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--cream);
  background: rgba(15,15,14,.78);
  padding: 7px 14px;
  border: 1px solid rgba(var(--c),.4);
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease-out);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tour-hotspot:hover .tour-hotspot-label { opacity: 1; }

.tour-hotspot[data-tipo="go"] .tour-hotspot-dot::after { display: none; }
.tour-hotspot[data-tipo="go"] .tour-hotspot-dot svg {
  width: 14px; height: 14px; color: rgb(var(--c));
}

/* Floor arrow Matterport-style */
.tour-hotspot.is-floor { --c: 245,241,232; }
.tour-hotspot.is-floor .tour-hotspot-dot { display: none; }
.tour-hotspot.is-floor .tour-hotspot-floor {
  width: 80px; height: 60px;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.55));
}
.tour-hotspot.is-floor .floor-ring { width: 100%; height: 100%; }
.tour-hotspot.is-floor:hover .tour-hotspot-floor {
  filter: drop-shadow(0 8px 18px rgba(184,146,74,.7));
}
.tour-hotspot.is-floor:hover ellipse:nth-of-type(2) { fill: rgba(184,146,74,.35); }
.tour-hotspot.is-floor .tour-hotspot-label {
  top: 60px;
  border-color: rgba(184,146,74,.55);
}

/* Painel de info lateral */
.tour-info-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 92vw);
  background: rgba(245,241,232,.96);
  color: var(--ink);
  z-index: 30;
  transform: translateX(100%);
  transition: transform .5s var(--ease-out);
  display: flex; flex-direction: column;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--line);
}
.tour-info-panel.is-open { transform: translateX(0); }
.tour-info-close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--ink-a25);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink);
  transition: all .25s var(--ease-out);
}
.tour-info-close:hover { background: var(--ink); color: var(--cream); }
.tour-info-body { flex: 1; padding: 78px 40px 40px; overflow-y: auto; }
.tour-info-eyebrow {
  font-family: var(--f-body); font-size: 10px;
  letter-spacing: .4em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.tour-info-title {
  font-family: var(--f-display); font-weight: 300;
  font-size: 34px; line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--ink); margin: 0 0 22px;
}
.tour-info-title em { font-style: italic; color: var(--gold-deep); }
.tour-info-rule { width: 36px; height: 1px; background: var(--gold); margin-bottom: 22px; }
.tour-info-text {
  font-family: var(--f-body); font-size: 15px;
  line-height: 1.65; color: var(--ink-a70);
  margin: 0 0 30px;
}
.tour-info-cta {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--cream);
  font-family: var(--f-body); font-size: 11px;
  letter-spacing: .35em; text-transform: uppercase;
  padding: 16px 26px;
  text-decoration: none;
  transition: all .3s var(--ease-out);
  border: 0; cursor: pointer;
}
.tour-info-cta:hover { background: var(--gold-deep); }
.tour-info-cta svg { width: 14px; height: 14px; }

/* Mini-mapa (bottom-left) */
.tour-minimap {
  position: fixed; left: 24px; bottom: 60px;
  width: 200px;
  background: rgba(15,15,14,.66);
  border: 1px solid var(--cream-a15);
  border-radius: 6px;
  padding: 16px;
  z-index: 18;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .4s var(--ease-out), opacity .4s var(--ease-out);
}
.tour-minimap.is-collapsed { transform: translateX(-110%); opacity: 0; }
.tour-minimap-title {
  font-family: var(--f-body); font-size: 9px;
  letter-spacing: .35em; text-transform: uppercase;
  color: var(--cream-a60); margin-bottom: 10px;
}
.tour-minimap-svg { width: 100%; height: auto; display: block; }
.tour-minimap-node { cursor: pointer; transition: all .2s var(--ease-out); }
.tour-minimap-node circle { transition: all .25s var(--ease-out); }
.tour-minimap-node:hover circle.bg { fill: var(--gold-a40); }
.tour-minimap-node.is-active circle.bg { fill: var(--gold); filter: drop-shadow(0 0 8px var(--gold)); }
.tour-minimap-node.is-active circle.dot { fill: var(--cream); }
.tour-minimap-node text {
  font-family: var(--f-body); font-size: 9px;
  letter-spacing: .15em; fill: var(--cream-a60);
  text-transform: uppercase;
}
.tour-minimap-node.is-active text { fill: var(--gold-light); font-weight: 600; }

/* Progress bar */
.tour-progress {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: 32px;
  display: flex; align-items: flex-end;
  z-index: 14;
  pointer-events: none;
  padding-bottom: env(safe-area-inset-bottom);
}
.tour-progress-track {
  flex: 1;
  display: flex; height: 2px;
  background: var(--cream-a06);
  margin: 0 32px;
  pointer-events: auto;
}
.tour-progress-segment {
  flex: 1; height: 100%;
  background: transparent;
  border-right: 1px solid rgba(0,0,0,.5);
  cursor: pointer; position: relative;
  transition: background .35s var(--ease-out);
}
.tour-progress-segment:last-child { border-right: 0; }
.tour-progress-segment.is-done { background: var(--gold-a40); }
.tour-progress-segment.is-active { background: var(--gold); }
.tour-progress-segment::after {
  content: attr(data-label);
  position: absolute;
  top: -22px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-body); font-size: 9px;
  letter-spacing: .25em; text-transform: uppercase;
  color: var(--cream-a35); white-space: nowrap;
  opacity: 0;
  transition: opacity .25s var(--ease-out);
}
.tour-progress-segment:hover::after { opacity: 1; }
.tour-progress-segment.is-active::after { opacity: 1; color: var(--gold-light); }

/* Controles (bottom-right vertical) */
.tour-controls {
  position: fixed; right: 24px; bottom: 60px;
  z-index: 16;
  display: flex; flex-direction: column;
  gap: 8px;
}
.tour-controls .tour-icon-btn { width: 42px; height: 42px; }

/* CTA flutuante (bottom-center, abaixo da narração, acima da progress) */
.tour-cta-floating {
  position: fixed; left: 50%; right: auto;
  bottom: 56px;
  transform: translate(-50%, 0);
  z-index: 18;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--f-body); font-size: 11px;
  letter-spacing: .3em; text-transform: uppercase;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 999px;
  text-decoration: none; border: 0; cursor: pointer;
  box-shadow: 0 10px 28px rgba(184,146,74,.35), 0 3px 8px rgba(0,0,0,.25);
  transition: all .3s var(--ease-out);
  white-space: nowrap;
}
.tour-cta-floating:hover {
  background: var(--gold-light);
  transform: translate(-50%, -2px);
}
.tour-cta-floating svg { width: 14px; height: 14px; }

/* Transição entre cenas */
.tour-fade {
  position: fixed; inset: 0;
  background: #000;
  z-index: 50;
  opacity: 0; pointer-events: none;
  transition: opacity .5s var(--ease-out);
}
.tour-fade.is-active { opacity: 1; pointer-events: all; }

/* Kiosk mode */
body.kiosk .tour-topbar,
body.kiosk .tour-minimap,
body.kiosk .tour-controls,
body.kiosk .tour-progress,
body.kiosk .tour-cta-floating { opacity: 0; transition: opacity .6s var(--ease-out); pointer-events: none; }
body.kiosk.kiosk-show .tour-topbar,
body.kiosk.kiosk-show .tour-minimap,
body.kiosk.kiosk-show .tour-controls,
body.kiosk.kiosk-show .tour-progress,
body.kiosk.kiosk-show .tour-cta-floating { opacity: 1; pointer-events: auto; }
.kiosk-hint {
  position: fixed; left: 50%; bottom: 80px;
  transform: translateX(-50%);
  z-index: 14;
  font-family: var(--f-body); font-size: 10px;
  letter-spacing: .4em; text-transform: uppercase;
  color: var(--cream-a60);
  opacity: 0; transition: opacity .6s var(--ease-out);
}
body.kiosk .kiosk-hint { opacity: 1; }

/* Onboarding */
.tour-onboard {
  position: fixed; left: 50%; top: 96px;
  transform: translateX(-50%);
  z-index: 25;
  background: rgba(15,15,14,.82);
  border: 1px solid var(--gold-a40);
  padding: 12px 22px;
  display: flex; align-items: center; gap: 12px;
  border-radius: 3px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none;
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.tour-onboard.is-visible { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(8px); }
.tour-onboard-text {
  font-family: var(--f-body); font-size: 12px;
  letter-spacing: .12em; color: var(--cream);
}

/* ============================================================
   CALIBRATION MODE (?calibrate=1)
   ============================================================ */
body.calib-mode .tour-narration,
body.calib-mode .tour-minimap,
body.calib-mode .tour-cta-floating,
body.calib-mode .kiosk-hint { display: none !important; }
body.calib-mode .tour-hotspots .tour-hotspot { pointer-events: none; opacity: .55; }

.calib-crosshair {
  position: fixed; left: 50%; top: 50%;
  width: 40px; height: 40px;
  transform: translate(-50%, -50%);
  z-index: 999; pointer-events: none;
}
.calib-crosshair > div:first-child {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: rgba(184,146,74,.85); transform: translateX(-50%);
}
.calib-crosshair > div:last-child {
  position: absolute; top: 50%; left: 0; right: 0; height: 1px;
  background: rgba(184,146,74,.85); transform: translateY(-50%);
}
.calib-crosshair::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 6px; height: 6px;
  background: rgba(184,146,74,1);
  border-radius: 999px; transform: translate(-50%, -50%);
}

.calib-panel {
  position: fixed; right: 14px; top: 80px; bottom: 60px;
  width: 360px;
  background: rgba(15,15,14,.94);
  border: 1px solid rgba(184,146,74,.55);
  z-index: 998;
  display: flex; flex-direction: column;
  color: var(--cream);
  font-family: var(--f-body);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(0,0,0,.55);
}
.calib-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--cream-a15);
}
.calib-title { font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: var(--gold-light); font-weight: 600; }
.calib-close { background: transparent; border: 0; color: var(--cream); font-size: 20px; cursor: pointer; line-height: 1; padding: 0 6px; }
.calib-close:hover { color: var(--gold-light); }
.calib-live { padding: 14px 16px; background: rgba(184,146,74,.06); border-bottom: 1px solid var(--cream-a15); font-size: 13px; }
.calib-live code { font-family: monospace; background: rgba(0,0,0,.5); padding: 3px 7px; border-radius: 2px; color: var(--gold-light); }
.calib-live small { display: block; margin-top: 8px; font-size: 10px; color: var(--cream-a60); }
.calib-section { border-bottom: 1px solid var(--cream-a15); }
.calib-section-title { padding: 12px 16px 6px; font-size: 9px; letter-spacing: .35em; text-transform: uppercase; color: var(--cream-a60); }
.calib-existing, .calib-log { padding: 4px 8px 12px; max-height: 220px; overflow-y: auto; }
.calib-row { display: flex; align-items: center; gap: 6px; padding: 6px 8px; margin-bottom: 4px; background: rgba(245,241,232,.04); border-left: 2px solid var(--gold-a40); font-size: 11px; }
.calib-row code { font-family: monospace; font-size: 10px; color: var(--cream-a85); flex-shrink: 0; }
.calib-row code b { color: var(--gold-light); font-weight: 600; }
.calib-row-label { flex: 1; font-size: 10px; color: var(--cream-a60); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calib-row button { background: var(--gold-a18); border: 1px solid var(--gold-a40); color: var(--cream); font-size: 9px; letter-spacing: .15em; text-transform: uppercase; padding: 3px 7px; cursor: pointer; font-family: var(--f-body); }
.calib-row button:hover { background: var(--gold); color: var(--ink); }
.calib-empty { padding: 12px; font-size: 11px; color: var(--cream-a35); font-style: italic; }
.calib-foot { padding: 12px 16px; display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; border-top: 1px solid var(--cream-a15); }
.calib-foot button { background: var(--cream-a06); border: 1px solid var(--cream-a15); color: var(--cream); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; padding: 6px 10px; cursor: pointer; font-family: var(--f-body); flex: 1; min-width: 0; }
.calib-foot button#calib-export { background: var(--gold-a18); border-color: var(--gold-a40); color: var(--gold-light); }

/* ============================================================
   RESPONSIVE — Mobile/Tablet · Portrait + Landscape
   ============================================================ */

/* TABLET (768-1279px) */
@media (min-width: 768px) and (max-width: 1279px) {
  .tour-topbar { padding: 18px 22px; }
  .tour-brand-logo { width: 42px; height: 42px; }
  .tour-compass { transform: scale(.92); }

  .tour-narration { bottom: 140px; width: min(620px, 84vw); }
  .tour-narration-text { font-size: clamp(17px, 2vw, 22px); }

  .tour-minimap { left: 18px; bottom: 64px; width: 170px; padding: 12px; }
  .tour-controls { right: 18px; bottom: 64px; }
  .tour-cta-floating { bottom: 56px; padding: 12px 22px; font-size: 10px; }

  .standby-sidenav { right: 24px; }
  .standby-sidenav-link { font-size: 10px; }
}

/* TABLET LANDSCAPE */
@media (min-width: 768px) and (max-width: 1279px) and (orientation: landscape) {
  .tour-narration { bottom: 120px; }
  .tour-minimap { width: 150px; }
  .tour-cta-floating { bottom: 50px; padding: 11px 18px; font-size: 10px; }
}

/* MOBILE PORTRAIT (≤767px) */
@media (max-width: 767px) {
  /* Standby */
  .standby-sidenav { display: none; }
  .standby-foot { left: 14px; bottom: 12px; font-size: 8px; letter-spacing: .25em; }
  .standby-cta { bottom: 32px; }
  .standby-logo { width: 110px; margin-bottom: 22px; }
  .standby-title { font-size: clamp(44px, 12vw, 64px); }
  .standby-quote { font-size: 15px; }

  /* Tour topbar */
  .tour-topbar { padding: 14px 14px; padding-top: max(14px, env(safe-area-inset-top)); }
  .tour-brand-logo { width: 34px; height: 34px; }
  .tour-compass { display: none; }
  .tour-actions { gap: 4px; }
  .tour-icon-btn { width: 36px; height: 36px; }
  .tour-icon-btn svg { width: 14px; height: 14px; }

  /* Hotspots maiores pra touch */
  .tour-hotspot-dot { width: 32px; height: 32px; }
  .tour-hotspot-dot::after { width: 7px; height: 7px; }
  .tour-hotspot-label { font-size: 10px; padding: 6px 11px; top: 40px; }
  .tour-hotspot.is-floor .tour-hotspot-floor { width: 70px; height: 52px; }

  /* Narração logo abaixo da topbar pra liberar bottom pro CTA+controls */
  .tour-narration { bottom: 130px; width: 92vw; }
  .tour-narration-eyebrow { font-size: 9px; letter-spacing: .32em; margin-bottom: 6px; }
  .tour-narration-text { font-size: 16px; line-height: 1.32; }

  /* Mini-mapa compacto bottom-left */
  .tour-minimap { left: 8px; bottom: 56px; width: 110px; padding: 8px; }
  .tour-minimap-title { font-size: 8px; letter-spacing: .22em; margin-bottom: 5px; }

  /* Controls bottom-right compacto */
  .tour-controls { right: 8px; bottom: 56px; gap: 5px; }
  .tour-controls .tour-icon-btn { width: 36px; height: 36px; }

  /* CTA bottom-center entre controls/minimap, acima da progress */
  .tour-cta-floating {
    bottom: 14px;
    padding: 10px 16px;
    font-size: 9px;
    letter-spacing: .2em;
    gap: 7px;
    max-width: 86vw;
  }
  .tour-cta-floating svg { width: 12px; height: 12px; }

  /* Progress bar slim */
  .tour-progress { height: 4px; }
  .tour-progress-track { margin: 0 8px; height: 2px; }
  .tour-progress-segment::after { display: none; }

  /* Info panel full */
  .tour-info-panel { width: 100vw; max-width: 100%; }
  .tour-info-body { padding: 64px 20px 24px; }
  .tour-info-title { font-size: 24px; }
  .tour-info-text { font-size: 14px; }
  .tour-info-cta { font-size: 10px; padding: 14px 22px; }

  /* Onboarding */
  .tour-onboard { left: 8px; right: 8px; top: 70px; transform: none; max-width: none; }
  .tour-onboard.is-visible { transform: translateY(8px); }
  .tour-onboard-text { font-size: 11px; }

  .tour-loader-logo { width: 90px; }
  .film-grain { opacity: .07; }

  /* Calib */
  .calib-panel { right: 6px; left: 6px; top: 70px; bottom: 50px; width: auto; }
}

/* MOBILE LANDSCAPE (h≤500) */
@media (max-height: 500px) and (orientation: landscape) {
  .tour-topbar { padding: 8px 14px; }
  .tour-brand-logo { width: 28px; height: 28px; }
  .tour-compass { display: none; }
  .tour-icon-btn { width: 32px; height: 32px; }
  .tour-icon-btn svg { width: 13px; height: 13px; }

  /* Narração discreta no topo direito ou some */
  .tour-narration { bottom: 70px; width: min(520px, 72vw); }
  .tour-narration-eyebrow { display: none; }
  .tour-narration-text { font-size: 13px; line-height: 1.3; }

  /* Mini-mapa miniatura esquerda */
  .tour-minimap { width: 90px; padding: 5px; bottom: 32px; left: 8px; }
  .tour-minimap-title { display: none; }

  /* Controls horizontais bottom-right */
  .tour-controls { right: 8px; bottom: 32px; flex-direction: row; gap: 4px; }

  /* CTA compact */
  .tour-cta-floating { bottom: 8px; font-size: 8px; padding: 7px 12px; letter-spacing: .18em; gap: 6px; }
  .tour-cta-floating svg { width: 11px; height: 11px; }

  /* Progress oculto */
  .tour-progress { height: 3px; }
  .tour-progress-track { height: 1.5px; margin: 0 6px; }
}

/* EXTRA SMALL (≤360px) */
@media (max-width: 360px) {
  .tour-narration-text { font-size: 14px; }
  .tour-minimap { width: 96px; }
  .tour-cta-floating { font-size: 8.5px; padding: 9px 13px; max-width: 92vw; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
