/* Skin do Abreutour360 Studio. As cores e fontes chegam por variáveis (js/app.js lê skin.json e tema.json).
   Nomes históricos: --verde = cor de fundo da marca, --ouro = destaque, --ambar = realce. */
:root {
  --verde: #313f34;
  --verde-2: #3a4b3d;
  --ouro: #9d8d35;
  --ambar: #ffbb00;
  --tinta: #222222;
  --branco: #ffffff;
  --cinza: #f7f7f7;
  --menu-h: 64px;
  --sombra: 0 10px 30px rgba(0, 0, 0, .28);
  --raio: 4px;
  --fonte: system-ui;
  --fonte-script: cursive;
  --fonte-titulo: var(--fonte);
  --peso-titulo: 700;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--verde); }
body { font-family: var(--fonte), system-ui, sans-serif; color: var(--branco); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.script { font-family: var(--fonte-script), cursive; font-weight: 400; color: var(--ambar); }

.engine { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* tela de carregamento */
.veil {
  position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; justify-items: center; gap: 10px;
  background: radial-gradient(ellipse at 50% 120%, color-mix(in srgb, var(--ambar) 28%, transparent), transparent 60%), var(--verde);
  transition: opacity .8s ease, visibility .8s;
}
.veil img { width: min(260px, 60vw); }
.veil .script { margin: 0; padding: 0 24px; font-size: clamp(22px, 6vw, 30px); text-align: center; }
.veil-bar { width: 160px; height: 3px; background: rgba(255, 255, 255, .18); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.veil-bar i { display: block; width: 40%; height: 100%; background: var(--ouro); animation: carrega 1.3s ease-in-out infinite; }
@keyframes carrega { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.veil.out { opacity: 0; visibility: hidden; }
/* enquanto a abertura do tour (evento intro do motor) ocupa a tela, a skin some; ao terminar, volta num esmaecer curto */
body.tour-em-abertura > :not(.engine):not(.veil) { visibility: hidden !important; }
body.tour-voltando > :not(.engine):not(.veil) { animation: skin-volta .7s ease both; }
@keyframes skin-volta { from { opacity: 0; } }

/* topo */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10; pointer-events: none;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) 18px 40px;
  background: linear-gradient(rgba(0, 0, 0, .45), transparent);
}
.top > * { pointer-events: auto; }
.logo { background: none; border: 0; padding: 0; }
.logo img { width: 150px; display: block; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
.scene-title { text-align: center; text-shadow: 0 2px 10px rgba(0, 0, 0, .55); margin-top: 4px; min-width: 0; }
.scene-title .script { display: block; font-size: 24px; line-height: 1; }
.scene-title strong { display: block; font-family: var(--fonte-titulo), var(--fonte), serif; font-size: 22px; font-weight: var(--peso-titulo); letter-spacing: .01em; }
.tools { display: flex; gap: 8px; }
.tool {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35);
  background: color-mix(in srgb, var(--verde) 72%, transparent); backdrop-filter: blur(6px); display: grid; place-items: center;
  transition: background .2s, border-color .2s;
}
.tool svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tool:hover, .tool[aria-pressed="true"] { background: var(--ouro); border-color: var(--ouro); }
.tool:focus-visible, .menu button:focus-visible, .btn:focus-visible { outline: 2px solid var(--ambar); outline-offset: 2px; }
.zoom-controls{position:fixed;z-index:14;right:16px;top:50%;transform:translateY(-50%);display:grid;gap:4px;padding:5px;border:1px solid rgba(255,255,255,.42);border-radius:13px;background:color-mix(in srgb,var(--verde) 76%,transparent);box-shadow:0 10px 26px rgba(0,0,0,.25);backdrop-filter:blur(10px)}
.zoom-controls[hidden]{display:none}
.zoom-controls button{width:38px;height:38px;border:0;border-radius:9px;background:transparent;color:var(--branco);font-size:25px;line-height:1;cursor:pointer}
.zoom-controls button:hover{background:color-mix(in srgb,var(--ambar) 28%,transparent)}
.zoom-controls button:disabled{opacity:.35;cursor:default}
.zoom-controls button:focus-visible{outline:2px solid var(--ambar);outline-offset:1px}

/* painel da seção (cartão branco, como as seções do site) */
.panel {
  position: fixed; z-index: 12; left: 18px; bottom: calc(var(--menu-h) + 118px); width: min(380px, calc(100vw - 36px));
  background: var(--branco); color: var(--tinta); border-radius: 6px; box-shadow: var(--sombra);
  padding: 22px 24px 20px; max-height: calc(100vh - var(--menu-h) - 230px); overflow: auto;
  animation: sobe .35s ease;
}
@keyframes sobe { from { opacity: 0; transform: translateY(12px); } }
.panel .script { font-size: 22px; color: var(--ouro); }
.panel h2, .overlay-box h2 { margin: 2px 0 10px; font-family: var(--fonte-titulo), var(--fonte), serif; font-size: 26px; line-height: 1.15; font-weight: var(--peso-titulo); color: var(--tinta); }
.panel-text p { margin: 0 0 10px; font-size: 15px; line-height: 1.55; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 11px 16px; border-radius: var(--raio);
  font-size: 14px; font-weight: 700; text-decoration: none; border: 1px solid transparent; transition: filter .2s, background .2s;
}
.btn.gold { background: var(--ouro); color: var(--branco); }
.btn.gold:hover { filter: brightness(1.08); }
.btn.light { background: var(--branco); color: var(--tinta); border-color: #ddd; }
.btn.light:hover { background: var(--cinza); }
.close {
  position: absolute; top: 8px; right: 10px; width: 34px; height: 34px; border: 0; background: none;
  font-size: 26px; line-height: 1; color: #888;
}
.close:hover { color: var(--tinta); }

/* lista de espaços da seção */
.drawer {
  position: fixed; z-index: 11; left: 0; right: 0; bottom: calc(var(--menu-h) + 8px);
  padding: 0 18px 6px; pointer-events: none;
}
.drawer ol {
  list-style: none; margin: 0 auto; padding: 4px 2px 8px; display: flex; gap: 10px; overflow-x: auto; width: max-content; max-width: 100%;
  pointer-events: auto; scrollbar-width: thin; scrollbar-color: var(--ouro) transparent;
}
.drawer button {
  position: relative; width: 132px; height: 82px; border-radius: var(--raio); overflow: hidden; padding: 0;
  border: 2px solid rgba(255, 255, 255, .8); background: var(--verde-2) center/cover; box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
  transition: transform .2s, border-color .2s;
}
.drawer button span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 7px 5px; font-size: 12px; font-weight: 700; text-align: left; line-height: 1.2;
  background: linear-gradient(transparent, rgba(0, 0, 0, .78));
}
.drawer button:hover { transform: translateY(-3px); }
.drawer button[aria-current="true"] { border-color: var(--ambar); }

/* menu inferior com borda de pincelada (como os divisores do site) */
.menu {
  position: fixed; z-index: 13; left: 0; right: 0; bottom: 0; height: calc(var(--menu-h) + env(safe-area-inset-bottom));
  background: var(--verde); padding-bottom: env(safe-area-inset-bottom);
}
.brush {
  position: absolute; left: 0; right: 0; top: -13px; height: 14px; background: var(--verde);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 14' preserveAspectRatio='none'%3E%3Cpath d='M0 14V9l8-3 6 2 9-4 7 3 5-5 9 4 11-2 6 3 10-5 7 4 12-1 5-4 8 5 9-3 10 2 6-5 8 4 13-1 4-3 9 4 8-2 7 3 11-5 5 3 10 1 9-4 6 3 12-2 7-4 8 5 10-3 6 2 9-5 8 4 12 0 5-3 10 4 7-3 9 2 6-4 11 3 8-2 7 4 10-5 6 3 9 1 8-3 12 2 6-4 9 4 7-2 10 3V14z'/%3E%3C/svg%3E") 0 0/100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 14' preserveAspectRatio='none'%3E%3Cpath d='M0 14V9l8-3 6 2 9-4 7 3 5-5 9 4 11-2 6 3 10-5 7 4 12-1 5-4 8 5 9-3 10 2 6-5 8 4 13-1 4-3 9 4 8-2 7 3 11-5 5 3 10 1 9-4 6 3 12-2 7-4 8 5 10-3 6 2 9-5 8 4 12 0 5-3 10 4 7-3 9 2 6-4 11 3 8-2 7 4 10-5 6 3 9 1 8-3 12 2 6-4 9 4 7-2 10 3V14z'/%3E%3C/svg%3E") 0 0/100% 100%;
}
.menu ul {
  list-style: none; margin: 0; padding: 0 12px; height: var(--menu-h); display: flex; align-items: center; justify-content: center; gap: 4px;
  overflow-x: auto; scrollbar-width: none;
}
.menu ul::-webkit-scrollbar { display: none; }
/* centraliza sem cortar o primeiro item quando o menu rola */
.menu ul { justify-content: flex-start; }
.menu li:first-child { margin-left: auto; }
.menu li:last-child { margin-right: auto; }
.menu button {
  position: relative; white-space: nowrap; background: none; border: 0; padding: 10px 14px; font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: var(--branco); opacity: .88; transition: opacity .2s, color .2s;
}
.menu button::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--ambar);
  transform: scaleX(0); transition: transform .25s ease;
}
.menu button:hover { opacity: 1; }
.menu button[aria-current="true"] { color: var(--ambar); opacity: 1; }
.menu button[aria-current="true"]::after { transform: scaleX(1); }

/* janelas (mapa e contato) */
.overlay {
  position: fixed; inset: 0; z-index: 310; display: grid; place-items: center; padding: 18px 16px calc(var(--menu-h) + 24px);
  background: color-mix(in srgb, var(--verde) 45%, rgba(0, 0, 0, .55)); backdrop-filter: blur(3px); animation: aparece .3s ease;
}
@keyframes aparece { from { opacity: 0; } }
.overlay-box {
  position: relative; width: min(560px, 100%); max-height: 100%; overflow: auto; background: var(--branco); color: var(--tinta);
  border-radius: 6px; box-shadow: var(--sombra); padding: 24px 26px;
}
.overlay-box > .script { font-size: 24px; color: var(--ouro); }
.map-box { width: min(1100px, 100%); }
.hint { margin: -4px 0 12px; font-size: 14px; color: #666; }
.map-scroll { overflow: auto; border-radius: var(--raio); }
.map { position: relative; min-width: 640px; }
.map img { display: block; width: 100%; height: auto; border-radius: var(--raio); }
.pin {
  position: absolute; width: 4.2%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  border: 3px solid transparent; background: transparent; padding: 0;
}
.pin::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--ambar); opacity: 0; animation: pulso 2.4s infinite; }
.pin:hover, .pin:focus-visible { border-color: var(--ambar); outline: none; }
.pin:hover::after { opacity: 1; }
@keyframes pulso { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
/* mapa com marcadores visíveis (skin.mapa.estilo = 'marcadores'): planta inteira na tela + lista de lugares */
.map-marcadores .map-box { width: auto; max-width: 100%; }
.map-marcadores .map-corpo { display: grid; grid-template-columns: auto 240px; gap: 22px; align-items: start; }
.map-marcadores .map-scroll { overflow: visible; }
.map-marcadores .map { min-width: 0; width: min(calc(100vw - 370px), calc(100vh - 230px), calc(100dvh - 230px)); }
.map-marcadores .pin { width: 22px; border: 3px solid #fff; background: var(--verde); box-shadow: 0 2px 8px rgba(0, 0, 0, .45); transition: transform .18s, background .18s; }
.map-marcadores .pin::after { inset: -6px; border-color: #fff; opacity: .7; }
.map-marcadores .pin:hover, .map-marcadores .pin:focus-visible, .map-marcadores .pin.ativo { background: var(--ambar); border-color: #fff; transform: translate(-50%, -50%) scale(1.3); z-index: 2; }
.map-marcadores .pin > span {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  background: var(--tinta); color: #fff; font-size: 12px; padding: 4px 9px; border-radius: 4px; opacity: 0; transition: opacity .15s;
}
.map-marcadores .pin:hover > span, .map-marcadores .pin:focus-visible > span, .map-marcadores .pin.ativo > span { opacity: 1; }
.map-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: calc(100dvh - 230px); overflow: auto; }
.map-lista button { width: 100%; text-align: left; background: none; border: 0; border-radius: 4px; padding: 7px 10px; font: inherit; font-size: 14px; color: var(--tinta); cursor: pointer; }
.map-lista button:hover, .map-lista button:focus-visible, .map-lista button.ativo { background: color-mix(in srgb, var(--verde) 12%, transparent); color: var(--verde); outline: none; }
@media (max-width: 760px) {
  .map-marcadores .map-corpo { grid-template-columns: 1fr; }
  .map-marcadores .map { width: 100%; }
  .map-marcadores .pin { width: 18px; }
  .map-lista { max-height: none; grid-template-columns: 1fr 1fr; }
}
/* "Você está aqui" no mapa */
.map-marcadores .pin.aqui { background: #fff; border: 5px solid var(--verde); width: 26px; z-index: 3; }
.map-marcadores .pin.aqui::after { opacity: 1; border-color: #fff; }
.map-marcadores .pin > .pin-aqui {
  opacity: 1; bottom: auto; top: calc(100% + 8px); background: var(--verde); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.map-lista button.aqui { font-weight: 600; color: var(--verde); }
.map-lista button.aqui::after { content: ' •'; }

/* faixa de destaque (pacotes): logo abaixo do topo, discreta e com prazo */
.destaque {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 29; display: flex; align-items: stretch; max-width: calc(100vw - 32px);
  background: var(--branco); color: var(--tinta); border-radius: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .22); animation: aparece .4s ease;
}
.destaque-abrir {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 4px 10px; white-space: nowrap; background: none; border: 0; padding: 9px 6px 9px 14px;
  font: inherit; font-size: 13px; color: inherit; text-align: left; cursor: pointer;
}
.destaque-selo { background: var(--verde); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 3px; }
.destaque-detalhe { opacity: .75; }
.destaque-cta { color: var(--verde); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.destaque-abrir:hover .destaque-cta { color: var(--ambar); }
.destaque-fechar { background: none; border: 0; padding: 0 12px; font-size: 20px; line-height: 1; color: inherit; opacity: .55; cursor: pointer; }
.destaque-fechar:hover { opacity: 1; }
body.tour-em-abertura .destaque, body.com-painel .destaque { display: none; }
@media (max-width: 760px) {
  .destaque { width: calc(100vw - 24px); }
  .destaque-abrir { flex-wrap: wrap; white-space: normal; font-size: 12px; padding: 8px 4px 8px 12px; }
}

/* passeio automático: o botão mostra que está ligado */
.lv.passeio-ativo::after {
  content: ''; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--ambar);
  animation: pulso 1.6s infinite;
}
.contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 15px; line-height: 1.5; }
.contact b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ouro); }
.contact a { color: var(--verde); }

/* motor de reservas em janela (skin.json → reservas) */
.booking { padding: 14px 14px calc(var(--menu-h) + 14px); }
.booking-box { width: min(1100px, 100%); height: min(860px, 100%); padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.booking-top { display: flex; align-items: center; gap: 14px; padding: 12px 56px 12px 20px; border-bottom: 1px solid #e6e6e6; }
.booking-top h2 { margin: 0; font-size: 20px; }
.booking-fora { margin-left: auto; font-size: 13px; color: var(--verde); }
.booking-box .close { top: 6px; }
.booking-frame { position: relative; flex: 1; }
.booking-carregando { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; color: #777; font-size: 15px; }
.booking-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; }
/* botão de reserva flutuante (aparece nas seções escolhidas, ex.: Acomodações) */
.cta {
  position: fixed; z-index: 14; right: 84px; bottom: calc(var(--menu-h) + 26px); height: 46px; padding: 0 20px; display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-radius: var(--raio); background: var(--ouro); color: var(--branco); font-size: 15px; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3); animation: sobe .35s ease; transition: filter .2s, transform .2s;
}
.cta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cta:hover { filter: brightness(1.1); transform: translateY(-2px); }
.cta:focus-visible { outline: 2px solid var(--ambar); outline-offset: 2px; }

/* WhatsApp flutuante, como no site */
.whats {
  position: fixed; z-index: 14; right: 18px; bottom: calc(var(--menu-h) + 22px); width: 52px; height: 52px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); transition: transform .2s;
}
.whats svg { width: 30px; height: 30px; fill: #fff; }
.whats:hover { transform: scale(1.07); }

.toast {
  position: fixed; z-index: 40; left: 50%; top: 84px; transform: translate(-50%, -10px); padding: 10px 16px; border-radius: var(--raio);
  background: var(--verde); color: var(--branco); font-size: 14px; box-shadow: var(--sombra); opacity: 0; pointer-events: none; transition: .3s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }


/* tela "Como navegar": uma versão por aparelho, 3 passos com ilustração animada */
.guide-box { width: min(680px, 100%); text-align: center; }
.guide h2 { margin-bottom: 18px; }
.guide[data-aparelho="pc"] .guia-cel, .guide[data-aparelho="cel"] .guia-pc { display: none; }
.guia-passos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: passo; }
.guia-passos li { display: flex; flex-direction: column; align-items: center; gap: 4px; counter-increment: passo; font-size: 14px; line-height: 1.35; color: #555; }
.guia-passos b { font-size: 16px; color: var(--tinta); margin-top: 8px; }
.guia-passos b::before { content: counter(passo) ". "; color: var(--ouro); }
.guia-ilu { width: 100%; max-width: 170px; aspect-ratio: 4 / 3; border-radius: 16px; background: color-mix(in srgb, var(--verde) 9%, #fff);
  display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--verde) 14%, transparent); }
.guia-ilu svg { width: 88%; height: 88%; fill: none; stroke: var(--verde); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.guia-ilu .botao, .guia-ilu .rodinha { fill: var(--ouro); stroke: none; }
.guia-ilu .seta-e, .guia-ilu .seta-d, .guia-ilu .mais, .guia-ilu .menos, .guia-ilu .s1, .guia-ilu .s2 { stroke: var(--ouro); }
.guia-ilu .toque, .guia-ilu .d1, .guia-ilu .d2 { fill: color-mix(in srgb, var(--ouro) 35%, transparent); stroke: var(--ouro); stroke-width: 2.5; }
.ilu-ponto { position: relative; width: 64px; height: 64px; display: grid; place-items: center; }
.ilu-ponto .disco { position: relative; width: 50px; height: 50px; border-radius: 50%; background: var(--verde); border: 3px solid #fff; display: grid; place-items: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .2); }
.ilu-ponto .disco img { width: 26px; height: 26px; filter: brightness(0) invert(1); }
.ilu-ponto.sem-icone .disco::after, .ilu-ponto .disco img[hidden] + * { content: ""; }
.ilu-ponto .onda { position: absolute; inset: 6px; border-radius: 50%; border: 3px solid var(--ouro); }
.ilu-ponto .cursor { position: absolute; right: -14px; bottom: -12px; width: 30px; height: 30px; fill: #fff; stroke: var(--tinta); stroke-width: 1.6; }
.ilu-ponto .toque-dedo { position: absolute; right: -6px; bottom: -6px; width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--ouro) 45%, transparent); border: 2.5px solid var(--ouro); }
.guia-nota { margin: 16px auto 0; max-width: 46ch; font-size: 13px; color: #777; }
.guide-box:has(.quatro) { width: min(820px, 100%); }
.guide[data-aparelho="pc"] .guia-passos.quatro { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.guia-ilu .tecla rect { fill: #fff; stroke: var(--verde); stroke-width: 2.5; }
.guia-ilu .tecla path { stroke: var(--verde); stroke-width: 2.5; }
.guia-ilu .rastro { stroke: color-mix(in srgb, var(--ouro) 55%, transparent); stroke-width: 2.5; stroke-dasharray: 3 6; }
.guia-ilu .mao .pele { fill: #fff; stroke: var(--verde); stroke-width: 2.6; }
.guia-ilu .foto rect { fill: #fff; stroke: var(--verde); stroke-width: 2.5; }
.guia-ilu .foto path { stroke: var(--verde); stroke-width: 2.2; }
.guia-ilu .foto circle { fill: var(--ouro); stroke: none; }
.guia-ilu .foto { transform-box: fill-box; transform-origin: center; }
.guia-troca { display: block; margin: 12px auto 0; background: none; border: 0; padding: 6px 10px; font: inherit; font-size: 13.5px; color: var(--verde); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.guia-troca:hover { color: var(--ouro); }
.guide[data-aparelho="pc"] .guia-troca .guia-cel, .guide[data-aparelho="cel"] .guia-troca .guia-pc { display: none; }
.guide .panel-actions { justify-content: center; margin-top: 18px; }
.guide .btn { font-size: 16px; padding: 13px 28px; border: 0; cursor: pointer; }
.borda-reta { --raio: 0; }
.borda-reta .brush { display: none; }
/* animações: cada ilustração mostra o gesto */
@media (prefers-reduced-motion: no-preference) {
  .ilu-arrasta .mouse { animation: guia-lado 2.4s ease-in-out infinite; }
  .ilu-arrasta .seta-e { animation: guia-pisca 2.4s ease-in-out infinite; }
  .ilu-arrasta .seta-d { animation: guia-pisca 2.4s ease-in-out 1.2s infinite; }
  .ilu-roda .rodinha { animation: guia-roda 1.6s ease-in-out infinite; }
  .ilu-roda .mais { animation: guia-pisca 1.6s ease-in-out infinite; }
  .ilu-roda .menos { animation: guia-pisca 1.6s ease-in-out .8s infinite; }
  .ilu-desliza .mao { animation: guia-lado 2.4s ease-in-out infinite; }
  .ilu-desliza .rastro { animation: guia-pisca 2.4s ease-in-out infinite; }
  .ilu-teclas .t-esq rect, .ilu-teclas .t-esq path { animation: guia-tecla 3.2s ease-in-out infinite; }
  .ilu-teclas .t-cima rect, .ilu-teclas .t-cima path { animation: guia-tecla 3.2s ease-in-out .8s infinite; }
  .ilu-teclas .t-dir rect, .ilu-teclas .t-dir path { animation: guia-tecla 3.2s ease-in-out 1.6s infinite; }
  .ilu-teclas .t-baixo rect, .ilu-teclas .t-baixo path { animation: guia-tecla 3.2s ease-in-out 2.4s infinite; }
  .ilu-pinca .foto { animation: guia-cresce 2s ease-in-out infinite; }
  .ilu-desliza .seta-e { animation: guia-pisca 2.4s ease-in-out infinite; }
  .ilu-desliza .seta-d { animation: guia-pisca 2.4s ease-in-out 1.2s infinite; }
  .ilu-pinca .d1 { animation: guia-pinca-1 2s ease-in-out infinite; }
  .ilu-pinca .d2 { animation: guia-pinca-2 2s ease-in-out infinite; }
  .ilu-pinca .s1, .ilu-pinca .s2 { animation: guia-pisca 2s ease-in-out infinite; }
  .ilu-ponto .onda { animation: guia-onda 1.8s ease-out infinite; }
  .ilu-ponto .cursor, .ilu-ponto .toque-dedo { animation: guia-clique 1.8s ease-in-out infinite; }
}
@keyframes guia-lado { 0%, 100% { transform: translateX(-16px); } 50% { transform: translateX(16px); } }
@keyframes guia-pisca { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes guia-roda { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes guia-pinca-1 { 0%, 100% { transform: translate(14px, -14px); } 50% { transform: translate(-4px, 4px); } }
@keyframes guia-pinca-2 { 0%, 100% { transform: translate(-14px, 14px); } 50% { transform: translate(4px, -4px); } }
@keyframes guia-cresce { 0%, 100% { transform: scale(.75); } 50% { transform: scale(1.25); } }
@keyframes guia-tecla { 0%, 18%, 100% { fill: #fff; stroke: var(--verde); } 6%, 12% { fill: var(--ouro); stroke: var(--ouro); } }
@keyframes guia-onda { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes guia-clique { 0%, 60%, 100% { transform: scale(1); } 75% { transform: scale(.82); } }
@media (max-width: 560px) {
  .guia-passos, .guide[data-aparelho="pc"] .guia-passos.quatro { grid-template-columns: 1fr; gap: 10px; }
  .guia-passos li { display: grid; grid-template-columns: 96px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; text-align: left; }
  .guia-ilu { grid-row: 1 / span 2; max-width: 96px; }
  .ilu-ponto { transform: scale(.78); }
  .guia-passos b { margin-top: 0; align-self: end; }
  .guia-passos span { align-self: start; }
  .guide .panel-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 760px) {
  :root { --menu-h: 56px; }
  .top { padding: max(10px, env(safe-area-inset-top)) 12px 30px; flex-wrap: wrap; }
  .logo img { width: 104px; }
  .scene-title { order: 3; flex-basis: 100%; margin-top: -2px; }
  .scene-title .script { font-size: 19px; }
  .scene-title strong { font-size: 17px; }
  .tool { width: 38px; height: 38px; }
  .tools { gap: 6px; }
  .menu ul { justify-content: flex-start; }
  .menu button { font-size: 13px; padding: 10px 11px; }
  .panel { left: 10px; right: 10px; width: auto; bottom: calc(var(--menu-h) + 112px); padding: 18px 18px 16px; max-height: 46vh; }
  .panel h2 { font-size: 21px; }
  .drawer { padding: 0 10px 4px; }
  .drawer button { width: 112px; height: 70px; }
  .whats { right: 12px; width: 46px; height: 46px; bottom: calc(var(--menu-h) + 108px); }
  .overlay-box { padding: 20px 18px; }
  .booking { padding: 0 0 calc(var(--menu-h)); }
  .booking-box { width: 100%; height: 100%; border-radius: 0; padding: 0; }
  .booking-top { padding: 10px 50px 10px 14px; }
  .booking-top h2 { font-size: 17px; }
  .com-painel .cta { display: none; } /* no celular o painel já tem o botão de reserva */
  .cta { right: 66px; bottom: calc(var(--menu-h) + 108px); height: 44px; padding: 0 16px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Menu de escolha: compacto na cena, vertical ao abrir, sem barra inferior. */
:root { --menu-h: 0px; }
.menu{position:fixed;top:146px;left:18px;right:auto;bottom:auto;width:auto;height:auto;padding:0;background:transparent;z-index:14}
.menu-toggle{display:flex;align-items:center;gap:9px;min-height:44px;padding:9px 15px;border:1px solid rgba(255,255,255,.56);border-radius:11px;background:color-mix(in srgb,var(--verde) 82%,transparent);color:var(--branco);font-size:13px;font-weight:700;box-shadow:0 9px 24px rgba(0,0,0,.23);backdrop-filter:blur(12px)}
.menu-toggle:hover,.menu-toggle[aria-expanded="true"]{background:var(--verde);border-color:var(--ambar)}
.menu-toggle svg{width:22px;height:22px}
.menu-panel{position:absolute;top:calc(100% + 8px);left:0;width:min(240px,calc(100vw - 32px));max-height:min(60vh,calc(100vh - 215px));overflow:auto;padding:8px;border:1px solid rgba(255,255,255,.5);border-radius:13px;background:color-mix(in srgb,var(--verde) 94%,transparent);box-shadow:0 18px 42px rgba(0,0,0,.36);backdrop-filter:blur(16px)}
.menu-heading{margin:4px 9px 9px;color:var(--ambar);font-size:10px;font-weight:800;letter-spacing:.13em}
.menu ul{height:auto;display:grid;justify-content:stretch;gap:2px;overflow:visible;padding:0}
.menu li:first-child,.menu li:last-child{margin:0}
.menu button:not(.menu-toggle){display:flex;align-items:center;gap:11px;width:100%;min-height:43px;padding:8px 10px;border:0;border-radius:8px;color:var(--branco);font-size:13px;font-weight:600;letter-spacing:0;text-transform:none;text-align:left;white-space:normal;opacity:1}
.menu button:not(.menu-toggle)::after{display:none}
.menu button:not(.menu-toggle) svg{width:20px;height:20px;flex:0 0 20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.menu button:not(.menu-toggle):hover,.menu button:not(.menu-toggle)[aria-current="true"]{background:color-mix(in srgb,var(--ambar) 19%,transparent);color:var(--branco)}
.menu-toggle:focus-visible,.menu button:focus-visible{outline:2px solid var(--ambar);outline-offset:2px}
@media(max-width:760px){.menu{top:156px;left:12px}.menu-toggle{min-height:42px;padding:8px 12px}.menu button:not(.menu-toggle){font-size:13px;padding:8px 10px}}

/* ── camada livre (editor visual de skin: skin.json → componentes) ─────────────────────────────── */
.livre { position: fixed; inset: 0; pointer-events: none; z-index: 30; }
.lv { position: absolute; pointer-events: auto; box-sizing: border-box; background: var(--lv-fundo); color: var(--lv-cor);
  font-family: var(--fonte), system-ui, sans-serif; line-height: 1.35; transition: background .15s, color .15s, transform .15s; }
.lv[hidden] { display: none !important; }
.lv svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.lv-botao { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; cursor: pointer; user-select: none; white-space: nowrap; }
.lv-botao:hover, .lv.clicavel:hover { background: var(--lv-fundo-h); color: var(--lv-cor-h); }
.lv-botao:focus-visible { outline: 2px solid var(--ambar); outline-offset: 3px; }
.lv.clicavel { cursor: pointer; }
.lv-texto { padding: 4px 6px; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.lv-imagem { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lv-imagem img { width: 100%; height: 100%; object-fit: contain; display: block; }
.lv-vazio { font-size: 12px; opacity: .7; padding: 18px; border: 1px dashed currentColor; border-radius: 8px; }
.lv-painel { padding: 18px 20px; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.lv-painel .lv-tit { font-size: 1.3em; }
.lv-painel .lv-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.lv-painel .lv-acoes button, .lv-menu .lv-lista button, .lv-abre { font: inherit; color: inherit; background: rgba(255, 255, 255, .12); border: 0; border-radius: 999px; padding: 7px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.lv-painel .lv-acoes button:hover, .lv-menu .lv-lista button:hover, .lv-abre:hover { background: var(--lv-fundo-h); color: var(--lv-cor-h); }
.lv-fechar { position: absolute; top: 6px; right: 8px; background: none; border: 0; color: inherit; font-size: 22px; cursor: pointer; opacity: .75; }
.lv-cenas { display: flex; gap: 8px; overflow: auto; padding: 8px; height: 100%; box-sizing: border-box; scrollbar-width: thin; }
.lv-cenas.vert { flex-direction: column; }
.lv-cenas button { flex: 0 0 auto; width: 120px; aspect-ratio: 16 / 10; border-radius: 8px; border: 2px solid rgba(255, 255, 255, .7);
  background: center / cover; position: relative; cursor: pointer; padding: 0; }
.lv-cenas.vert button { width: 100%; }
.lv-cenas button span { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 6px; font-size: 11px; color: #fff; text-align: left;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75)); border-radius: 0 0 6px 6px; }
.lv-cenas button[aria-current="true"] { border-color: var(--ambar); }
.lv-menu { padding: 8px; }
.lv-menu .lv-lista { display: flex; flex-direction: column; gap: 4px; }
.lv-menu .lv-lista.hor { flex-direction: row; flex-wrap: wrap; }
.lv-menu .lv-lista button { border-radius: 8px; background: transparent; justify-content: flex-start; }
.lv-menu .lv-abre + .lv-lista { margin-top: 6px; }
.lv-padrao-oculto { display: none !important; }
/* modo de edição dentro do Studio */
.livre.editando .lv { cursor: move; outline: 1px dashed rgba(255, 255, 255, .55); outline-offset: 1px; }
.livre.editando .lv.sel { outline: 2px solid #38bdf8; outline-offset: 2px; }
.livre.editando .lv * { pointer-events: none; }
.livre.editando .lv .lv-alca { pointer-events: auto; position: absolute; right: -7px; bottom: -7px; width: 12px; height: 12px; background: #38bdf8;
  border: 2px solid #fff; border-radius: 3px; cursor: nwse-resize; display: none; }
.livre.editando .lv.sel .lv-alca { display: block; }
.livre.editando .lv .lv-nome { position: absolute; left: 0; top: -20px; font: 600 11px system-ui, sans-serif; color: #fff; background: #0284c7; padding: 2px 6px;
  border-radius: 4px; white-space: nowrap; display: none; }
.livre.editando .lv.sel .lv-nome { display: block; }

/* formulário de contato (lead) */
.lead-box { width: min(460px, 100%); }
.lead-texto { margin: 0 0 12px; color: #555; }
.lead-campo { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--tinta); }
.lead-campo input, .lead-campo select, .lead-campo textarea { font: inherit; font-weight: 400; font-size: 15px; padding: 10px 12px; border: 1px solid #d5d5d5; border-radius: 8px; background: #fff; color: var(--tinta); }
.lead-campo input:focus, .lead-campo select:focus, .lead-campo textarea:focus { outline: 2px solid var(--ouro); outline-offset: 1px; border-color: transparent; }
.lead-isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-ok { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #555; margin: 4px 0 6px; }
.lead-ok input { margin-top: 3px; accent-color: var(--verde); }
.lead-erro { color: #b42318; font-size: 13px; min-height: 18px; margin: 0; }
.lead-box .panel-actions { justify-content: flex-end; }

/* Título dos modelos prontos: nomes longos não cobrem os controles. */
.lv-texto[data-id^='pronta-']{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Menus dos modelos: listas extensas rolam dentro do painel. */
.lv-menu[data-id^="pronta-"] .lv-lista{max-height:min(48vh,420px);overflow-y:auto;overscroll-behavior:contain}

/* A troca de âncora por aparelho precisa ser imediata para medir os limites corretamente. */
.lv[data-id^='pronta-']{transition:background .15s,color .15s}

/* selo da agência (skin/js/selo.js): discreto, legível sobre qualquer foto, mais nítido ao passar o mouse */
.abreu-selo {
  position: fixed; z-index: 28; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 11px;
  border-radius: 999px; background: rgba(12, 15, 19, .52); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .82); text-decoration: none;
  font: 500 10.5px/1 system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: .02em; opacity: .78;
  transition: opacity .2s, background .2s, transform .2s;
}
.abreu-selo[hidden] { display: none; }
.abreu-selo img { height: 22px; width: auto; display: block; }
.abreu-selo b { font-weight: 700; color: #fff; }
.abreu-selo:hover, .abreu-selo:focus-visible { opacity: 1; background: rgba(12, 15, 19, .74); transform: translateY(-1px); outline: none; }
.abreu-selo.selo-be { left: 14px; bottom: var(--selo-baixo, 14px); }
.abreu-selo.selo-bd { right: 14px; bottom: var(--selo-baixo, 14px); }
.abreu-selo.selo-te { left: 14px; top: var(--selo-topo, 14px); }
.abreu-selo.selo-td { right: 14px; top: var(--selo-topo, 14px); }
body.tour-em-abertura .abreu-selo { display: none; }
@media (max-width: 760px) { .abreu-selo { font-size: 9.5px; padding: 4px 8px 4px 9px; } .abreu-selo img { height: 18px; } }
