/* Tour Virtual — motor. Estilos comuns a todos os empreendimentos.
   O que muda por empreendimento (cores, proporções e imagens de fundo) chega por variáveis definidas em tour.js. */
:root {
  color-scheme: dark;
  --bg: #141414;
  --panel: #1d1d1c;
  --line: #34342f;
  --text: #f2f1ec;
  --muted: #a3a29b;
  --accent: #EBB92D;
  --accent-rgb: 235,185,45;
  --sold: #2f3a8f;
  --blocked: #3a3a38;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Montserrat, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; }

[hidden] { display: none !important; }

/* ---------- palco em tela cheia ---------- */
/* overflow: clip (e não hidden) para o palco nunca rolar por dentro quando um elemento recebe foco */
.stage { position: fixed; inset: 0; overflow: hidden; overflow: clip; background: #000; }
.backdrop { position: absolute; inset: 0; transform: scale(1.18); background: var(--img-fachada) center / cover no-repeat; filter: blur(30px) brightness(.5) saturate(1.1); }
.facade {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  height: min(100dvh, calc(100vw / var(--ar-fachada))); aspect-ratio: var(--ar-fachada);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
/* aba Projeto com imagem própria (ficha.projeto): ocupa a tela toda no lugar da fachada */
.projeto-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; user-select: none; -webkit-user-drag: none; }
body.tem-projeto[data-mode="projeto"] .projeto-img { display: block; }
body.tem-projeto[data-mode="projeto"] .facade { display: none; }
.facade img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.facade svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* ---------- giro 360° (fotos da maquete) ---------- */
.giro {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  height: min(100dvh, calc(100vw / var(--ar-giro))); aspect-ratio: var(--ar-giro); cursor: grab; touch-action: pan-y; user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.giro.drag { cursor: grabbing; }
.giro img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .18s; pointer-events: none; -webkit-user-drag: none; }
.giro img.on { opacity: 1; }
.giro svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.giro .chip { z-index: 2; }
.giro.drag .hot { fill: transparent !important; stroke: transparent !important; }
body[data-mode="projeto"] #giroHot { display: none; }
/* data-view diz o que está no palco: "giro" (fotos da maquete) ou "render" (fachada com unidades clicáveis) */
body:not([data-view="giro"]) .giro, body:not([data-view="giro"]) .spin { display: none; }
body[data-view="giro"] .facade { display: none; }
.opt + .opt { margin-top: 6px; }
body[data-view="giro"] .backdrop { background-image: var(--img-giro); filter: blur(34px) brightness(.62); }
.spin {
  position: absolute; z-index: 3; left: 50%; bottom: 86px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px;
  padding: 5px; border-radius: 999px; background: rgba(18,18,18,.84); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.spin button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 17px; line-height: 1; }
.spin button:hover { background: #fff; color: #111; }
.spin span { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; white-space: nowrap; }

.shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(0,0,0,.5) 0, transparent 20%, transparent 68%, rgba(0,0,0,.72) 100%); }

.hot { fill: transparent; stroke: transparent; stroke-width: 1.5; cursor: pointer; transition: fill .12s, stroke .12s; }
.hot.off { pointer-events: none; }
body.filtering .hot:not(.off) { fill: rgba(255,255,255,.16); stroke: rgba(255,255,255,.75); }
.hot.lvl:not(.off) { fill: rgba(255,255,255,.2); stroke: #fff; }
body .hot:hover:not(.off), body .hot.is-on:not(.off), body .hot.sel:not(.none) { fill: rgba(var(--accent-rgb),.5); stroke: var(--accent); }
.debug .hot { stroke: rgba(255,255,255,.75); fill: rgba(255,255,255,.06); }
.hot:focus-visible { outline: none; fill: rgba(var(--accent-rgb),.42); stroke: #fff; }
body[data-mode="projeto"] #hotspots { display: none; }

.chip {
  position: absolute; pointer-events: none; transform: translate(-50%, -140%);
  background: rgba(18,18,18,.92); color: #fff; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 8px 14px; white-space: nowrap;
  opacity: 0; transition: opacity .1s;
}
.chip.show { opacity: 1; }
.chip span { color: var(--muted); font-weight: 500; margin-left: 8px; letter-spacing: .04em; text-transform: none; }

/* ---------- marcas nos cantos ---------- */
.corner { position: absolute; z-index: 2; color: #fff; line-height: 1; }
.corner.tl { left: 24px; top: 22px; }
.corner.tr { right: 26px; top: 24px; text-align: right; }
.corner.br { right: 26px; bottom: 26px; text-align: center; }
/* assinatura do autor do tour (rodapé, canto inferior esquerdo) */
.corner.bl { left: 24px; bottom: 30px; font-size: 9.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.corner.bl a { color: inherit; text-decoration: none; }
.corner.bl a:hover { color: #fff; }
@media (max-width: 699px) { .corner.bl { display: none; } }
.proto-tag {
  display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(18,18,18,.82); border-radius: 999px; padding: 8px 14px; white-space: nowrap;
}
.wordmark strong { display: block; font-size: 25px; font-weight: 400; letter-spacing: .34em; margin-right: -.34em; }
.wordmark small { display: block; margin-top: 7px; font-size: 9px; font-weight: 600; letter-spacing: .32em; margin-right: -.32em; }
.tegra strong { display: block; font-size: 25px; font-weight: 700; letter-spacing: .02em; }
.tegra small { display: block; margin-top: 3px; font-size: 8.5px; font-weight: 500; letter-spacing: .2em; }

/* ---------- menu flutuante ---------- */
.menu {
  position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; gap: 4px; padding: 5px; border-radius: 999px;
  background: rgba(18,18,18,.84); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.menu button {
  border: 0; background: transparent; border-radius: 999px; padding: 12px 22px; white-space: nowrap;
  font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #fff; transition: background .15s, color .15s;
}
.menu button:hover:not(:disabled):not(.on) { background: rgba(255,255,255,.12); }
.menu button.on { background: #fff; color: #111; }
.menu button:disabled { opacity: .36; cursor: not-allowed; }

/* ---------- ficha do projeto ---------- */
.ficha {
  position: absolute; z-index: 2; left: 24px; bottom: 96px; width: 270px; padding: 20px 22px; border-radius: 22px;
  background: rgba(18,18,18,.84); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
body:not([data-mode="projeto"]) .ficha { display: none; }
.ficha h2 { margin: 0 0 4px; font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ficha p { margin: 0 0 14px; font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.ficha dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; }
.ficha dt, .card dt { font-size: 8.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.ficha dd, .card dd { margin: 4px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .03em; }
/* ficha técnica ("ler mais"): abre e fecha pelo triângulo */
.ficha .tec { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.ficha .tec summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: 9.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #fff; user-select: none; }
.ficha .tec summary::-webkit-details-marker { display: none; }
.ficha .tec summary::before { content: ""; width: 0; height: 0; border-left: 6px solid var(--accent); border-top: 4px solid transparent; border-bottom: 4px solid transparent; transition: transform .2s; }
.ficha .tec[open] summary::before { transform: rotate(90deg); }
.ficha .tec summary:hover { color: var(--accent); }
.ficha .tec dl { display: block; margin-top: 12px; max-height: min(42dvh, 360px); overflow: auto; padding-right: 4px; scrollbar-width: thin; }
.ficha .tec dl > div { padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.ficha .tec dl > div:last-child { border-bottom: 0; }
.ficha .tec dd { margin-top: 3px; font-size: 11.5px; font-weight: 600; line-height: 1.4; white-space: pre-line; }
.ficha .tec + .soon { border-top: 0; padding-top: 0; margin-top: 12px; }.ficha .soon { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }

/* ---------- painel de unidades ---------- */
.panel { position: absolute; z-index: 3; right: 24px; top: 104px; width: 272px; max-height: calc(100dvh - 210px); overflow: auto; scrollbar-width: none; }
.panel::-webkit-scrollbar { display: none; }
body:not([data-mode="unidades"]) .panel { display: none; }
.acc { margin-bottom: 8px; border-radius: 24px; background: rgba(18,18,18,.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.acc > .head {
  width: 100%; border: 0; background: none; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between;
  font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #fff;
}
.acc > .head::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(45deg); margin-top: -4px; transition: transform .2s; opacity: .8; }
.acc.open > .head::after { transform: rotate(-135deg); margin-top: 3px; }
.acc > .body { display: none; padding: 0 12px 14px; }
.acc.open > .body { display: block; }
.opt {
  display: flex; align-items: center; justify-content: space-between; width: 100%; border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  background: rgba(255,255,255,.08); padding: 12px 16px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff;
}
.opt::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.3); }
.opt.on::after { background: #fff; }
.note { margin: 10px 6px 0; font-size: 11px; line-height: 1.5; color: var(--muted); }
.floors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.floors button, .fus button {
  border: 1px solid rgba(255,255,255,.16); background: transparent; border-radius: 999px; padding: 9px 0;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #fff; transition: background .12s, color .12s, border-color .12s;
}
.floors button:hover, .fus button:hover:not(:disabled), .fus button.is-on { border-color: #fff; }
.floors button.on, .fus button.on { background: #fff; color: #111; border-color: #fff; }
.fus button:disabled { opacity: .3; cursor: not-allowed; }
.fus-wrap { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.fus-wrap > span { display: block; margin: 0 6px 8px; font-size: 8.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.fus { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.fus button { position: relative; padding: 12px 0; }
.fus button.foto::after { content: ""; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent); }
.clear { width: 100%; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); border-radius: 999px; padding: 12px 0; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.clear:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.frow { display: flex; align-items: baseline; justify-content: space-between; margin: 16px 6px 6px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.frow b { font-size: 11px; letter-spacing: .02em; text-transform: none; }
.dual { position: relative; height: 26px; margin: 0 6px; }
.dual .track { position: absolute; left: 0; right: 0; top: 12px; height: 2px; background: rgba(255,255,255,.25); }
.dual .track i { position: absolute; top: 0; bottom: 0; background: #fff; }
.dual input { position: absolute; left: -8px; right: -8px; top: 0; width: calc(100% + 16px); height: 26px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.dual input::-webkit-slider-runnable-track { background: none; height: 26px; }
.dual input::-moz-range-track { background: none; }
.dual input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 16px; height: 16px; margin-top: 5px; border-radius: 50%; background: #fff; border: 0; cursor: pointer; }
.dual input::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; cursor: pointer; }
.toggle { display: flex; align-items: center; gap: 10px; margin: 14px 6px 0; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.toggle input { appearance: none; -webkit-appearance: none; width: 34px; height: 20px; margin: 0; border-radius: 999px; background: rgba(255,255,255,.2); position: relative; cursor: pointer; transition: background .15s; }
.toggle input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.toggle input:checked { background: var(--accent); }
.toggle input:checked::after { transform: translateX(14px); }

/* ---------- cartão da unidade ---------- */
.card { position: absolute; z-index: 4; left: 24px; top: 104px; width: 300px; border-radius: 24px; overflow: hidden; background: #171716; box-shadow: 0 18px 60px rgba(0,0,0,.55); }
.card-img { position: relative; height: 178px; background: #fff; display: flex; align-items: center; justify-content: center; }
.card-img img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.card-img.none { background: #222220; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.card .x { position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; font-size: 13px; background: rgba(18,18,18,.82); border: 0; color: #fff; }
.card-body { padding: 20px 22px 22px; }
.card h3 { margin: 0 0 16px; font-size: 19px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.card dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; }
.card .real { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 11px; color: var(--muted); }
.card .real i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.card .real.sim i { background: var(--accent); }
.card .go { width: 100%; margin-top: 16px; border: 0; border-radius: 999px; background: #fff; color: #111; padding: 15px 0; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.card .go:hover:not(:disabled) { background: var(--accent); }
.card .go + .go { margin-top: 8px; }
.card .go:disabled { background: transparent; color: var(--muted); border: 1px solid var(--line); cursor: not-allowed; letter-spacing: .14em; }
/* ---------- aba Lazer ---------- */
.lazer { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; padding: 84px 330px 96px 24px; }
body[data-mode="lazer"] .lazer { display: flex; }
body[data-mode="lazer"] .facade, body[data-mode="lazer"] .giro, body[data-mode="lazer"] .spin { display: none; }
body[data-mode="lazer"] .backdrop { background-image: var(--img-lazer); filter: blur(30px) brightness(.45); }
.impl { position: relative; width: 100%; max-height: 100%; aspect-ratio: var(--ar-lazer); max-width: calc((100dvh - 180px) * var(--ar-lazer)); border-radius: 18px; overflow: hidden; box-shadow: 0 18px 60px rgba(0,0,0,.5); }
.impl img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.pin {
  position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff;
  background: rgba(18,18,18,.82); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  padding: 0; box-shadow: 0 2px 8px rgba(0,0,0,.45); transition: transform .12s, background .12s, color .12s;
}
.pin.foto { background: #fff; color: #111; }
.pin:hover, .pin.is-on { background: var(--accent); color: #111; border-color: var(--accent); transform: translate(-50%, -50%) scale(1.18); z-index: 2; }
.pin.sem { opacity: .72; }
.lz-panel { position: absolute; z-index: 3; right: 24px; top: 104px; width: 284px; max-height: calc(100dvh - 210px); overflow: auto; scrollbar-width: none; border-radius: 24px; padding: 14px 10px; background: rgba(18,18,18,.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lz-panel::-webkit-scrollbar { display: none; }
body:not([data-mode="lazer"]) .lz-panel { display: none; }
.lz-panel h2 { margin: 2px 10px 10px; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.lz-item { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; border-radius: 999px; padding: 8px 10px; text-align: left; font-size: 12px; font-weight: 600; color: #fff; }
.lz-item b { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); display: flex; align-items: center; justify-content: center; font-size: 10px; }
.lz-item.foto b { background: #fff; color: #111; border-color: #fff; }
.lz-item span { flex: 1; }
.lz-item i { font-style: normal; font-size: 9.5px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.lz-item:hover, .lz-item.is-on { background: rgba(255,255,255,.1); }
.lz-item.is-on b { background: var(--accent); border-color: var(--accent); color: #111; }
.lz-item.sem { color: var(--muted); cursor: default; }
.lz-note { margin: 12px 10px 2px; font-size: 10.5px; line-height: 1.5; color: var(--muted); }
.gal { position: fixed; inset: 0; z-index: 15; background: rgba(8,8,8,.96); display: flex; flex-direction: column; }
.gal[hidden] { display: none; }
.gal-top { display: flex; align-items: center; gap: 16px; padding: 16px 22px; }
.gal-top .t { margin-right: auto; }
.gal-top small { display: block; color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.gal-top strong { font-size: 22px; font-weight: 700; letter-spacing: .06em; }
.gal-top p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); max-width: 640px; }
.gal-body { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 76px; }
.gal-body img { max-width: 100%; max-height: 100%; border-radius: 10px; object-fit: contain; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); font-size: 18px; }
.gal-nav.prev { left: 18px; } .gal-nav.next { right: 18px; }
.gal-nav:disabled { opacity: .25; cursor: not-allowed; }
.gal-thumbs { display: flex; justify-content: center; gap: 8px; padding: 14px 22px 18px; flex-wrap: wrap; }
.gal-thumbs button { width: 92px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #000; opacity: .6; }
.gal-thumbs button.on { border-color: var(--accent); opacity: 1; }
.gal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gal-legal { text-align: center; padding: 0 22px 12px; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 1000px) { .lazer { padding: 84px 16px 96px; } .lz-panel { display: none !important; } }

/* ---------- aba Localização ---------- */
.loc { position: absolute; inset: 0; z-index: 1; isolation: isolate; display: none; }
body[data-mode="localizacao"] .loc { display: block; }
body[data-mode="localizacao"] .facade, body[data-mode="localizacao"] .giro, body[data-mode="localizacao"] .spin, body[data-mode="localizacao"] .projeto-img, body[data-mode="localizacao"] .shade { display: none; }
#mapa { position: absolute; inset: 0; background: #0b0d0c; font-family: inherit; }
.loc .leaflet-bottom.leaflet-left { bottom: 92px; left: 14px; }
.loc .leaflet-control-zoom { border: 0; box-shadow: none; }
.loc .leaflet-control-zoom a { width: 36px; height: 36px; line-height: 34px; margin-bottom: 6px; border: 0; border-radius: 50%; background: rgba(18,18,18,.86); color: #fff; font-size: 18px; }
.loc .leaflet-control-zoom a:hover { background: #fff; color: #111; }
.loc .leaflet-control-zoom a.leaflet-disabled { opacity: .35; background: rgba(18,18,18,.86); color: #fff; }
.loc-credito { position: absolute; z-index: 500; left: 24px; bottom: 56px; margin: 0; max-width: 44vw; font-size: 9px; letter-spacing: .04em; color: rgba(255,255,255,.72); text-shadow: 0 1px 3px rgba(0,0,0,.8); pointer-events: none; }
.pin-poi { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid rgba(18,18,18,.85); box-shadow: 0 2px 6px rgba(0,0,0,.5); transition: transform .12s, background .12s; }
.leaflet-marker-icon.hov .pin-poi, .leaflet-marker-icon.sel .pin-poi, .leaflet-marker-icon:hover .pin-poi { background: var(--accent); transform: scale(1.35); }
.pin-emp { position: absolute; transform: translate(-50%, calc(-100% - 10px)); white-space: nowrap; }
.pin-emp span { display: block; padding: 8px 14px; border-radius: 999px; background: var(--accent); color: #141414; font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.pin-emp::after { content: ""; position: absolute; left: 50%; bottom: -12px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--accent); border: 3px solid #141414; }
.leaflet-tooltip.loc-tip { background: rgba(18,18,18,.92); color: #fff; border: 0; border-radius: 999px; padding: 6px 12px; font: 600 11px Montserrat, "Segoe UI", system-ui, sans-serif; letter-spacing: .04em; box-shadow: none; }
.leaflet-tooltip.loc-tip::before { display: none; }
.loc-panel { position: absolute; z-index: 3; right: 24px; top: 104px; width: 284px; max-height: calc(100dvh - 210px); overflow: auto; scrollbar-width: none; border-radius: 24px; padding: 14px 10px; background: rgba(18,18,18,.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.loc-panel::-webkit-scrollbar { display: none; }
body:not([data-mode="localizacao"]) .loc-panel, body:not([data-mode="localizacao"]) .loc-card { display: none; }
.loc-panel h2 { margin: 2px 10px 10px; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.loc-cat { border-top: 1px solid var(--line); }
.loc-cat-h { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; padding: 11px 10px; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; text-align: left; }
.loc-cat-h span { flex: 1; }
.loc-cat-h em { font-style: normal; font-size: 10px; color: var(--muted); letter-spacing: .04em; }
.loc-cat-h::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(45deg); margin-top: -3px; opacity: .8; transition: transform .2s; }
.loc-cat.open .loc-cat-h::after { transform: rotate(-135deg); margin-top: 3px; }
.loc-cat-b { display: none; padding: 0 0 8px; }
.loc-cat.open .loc-cat-b { display: block; }
.loc-item { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; border-radius: 999px; padding: 8px 10px; text-align: left; font-size: 12px; font-weight: 600; color: #fff; }
.loc-item i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid rgba(255,255,255,.25); }
.loc-item span { flex: 1; min-width: 0; }
.loc-item small { flex: none; font-size: 10px; font-weight: 600; color: var(--muted); }
.loc-item:hover, .loc-item.on { background: rgba(255,255,255,.1); }
.loc-item.on i, .loc-item.emp i { background: var(--accent); border-color: var(--accent); }
.loc-item.emp { margin-bottom: 6px; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.loc-card { position: absolute; z-index: 4; left: 24px; top: 104px; width: 300px; padding: 22px 22px 20px; border-radius: 24px; background: #171716; box-shadow: 0 18px 60px rgba(0,0,0,.55); }
.loc-card .x { position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; font-size: 13px; border: 0; background: rgba(255,255,255,.08); color: #fff; }
.loc-card small { display: block; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.loc-card h3 { margin: 8px 40px 6px 0; font-size: 18px; font-weight: 700; letter-spacing: .03em; line-height: 1.25; text-wrap: balance; }
.loc-end { margin: 0 0 10px; font-size: 11.5px; color: var(--muted); }
.loc-txt { margin: 0; font-size: 12.5px; line-height: 1.5; }
.loc-tempos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.loc-tempos[hidden] { display: none; }
.loc-tempos > div { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.loc-tempos svg { width: 22px; height: 22px; fill: #fff; opacity: .9; }
.loc-tempos b { font-size: 13px; font-variant-numeric: tabular-nums; }
.loc-tempos span { font-size: 8.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.loc-tempos p { grid-column: 1 / -1; margin: 6px 0 0; font-size: 10.5px; color: var(--muted); text-align: center; }
.loc-card.com-foto { padding-top: 0; overflow: hidden; }
.loc-foto { display: block; position: relative; width: calc(100% + 44px); margin: 0 -22px 16px; height: 168px; padding: 0; border: 0; background: #000; cursor: zoom-in; }
.loc-foto[hidden] { display: none; }
.loc-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.loc-foto span { position: absolute; right: 10px; bottom: 10px; padding: 5px 10px; border-radius: 999px; background: rgba(18,18,18,.82); color: #fff; font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.loc-card.com-foto .x { top: 12px; background: rgba(18,18,18,.78); z-index: 1; }
.loc-item.sobre i { border-radius: 3px; background: transparent; border-color: rgba(255,255,255,.55); }
.loc-item.sobre.on i { background: var(--accent); border-color: var(--accent); }
.gal { z-index: 20; }
@media (max-width: 1000px) { .loc-panel { display: none !important; } }
@media (max-width: 699px) { .loc-card { left: 10px; right: 10px; width: auto; top: 64px; } .loc-credito { left: 10px; bottom: 74px; max-width: none; right: 10px; } }
.lightbox { position: fixed; inset: 0; z-index: 20; background: rgba(8,8,8,.94); display: flex; align-items: center; justify-content: center; padding: 28px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; background: #fff; }

/* ---------- visualizador da vista ---------- */
.viewer { position: fixed; inset: 0; z-index: 10; background: rgba(8,8,8,.96); display: none; flex-direction: column; }
.viewer.open { display: flex; }
.v-top { display: flex; align-items: center; gap: 18px; padding: 16px 22px; }
.v-title { margin-right: auto; }
.v-title small { display: block; color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.v-title strong { font-size: 24px; font-weight: 700; letter-spacing: .08em; }
.v-title em { font-style: normal; font-size: 13px; color: var(--muted); margin-left: 10px; }
.tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--panel); }
.tabs button { border: 0; background: transparent; border-radius: 999px; padding: 9px 20px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tabs button.on { background: var(--accent); color: #141414; }
.x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); font-size: 18px; }
.v-body { flex: 1; min-height: 0; display: flex; gap: 16px; padding: 0 22px; align-items: stretch; }
.v-img { position: relative; flex: 1; min-width: 0; border-radius: 10px; overflow: hidden; background: #000; }
.v-img svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stepper { width: 74px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.stepper button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); font-size: 16px; }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper .n { font-size: 26px; font-weight: 700; line-height: 1; }
.stepper .l { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.v-bot { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px 18px; flex-wrap: wrap; }
.v-bot > span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.v-bot button { border: 1px solid var(--line); background: var(--panel); border-radius: 5px; padding: 7px 0; width: 74px; font-size: 12px; font-weight: 600; }
.v-bot button.on { border-color: var(--accent); background: var(--accent); color: #141414; }
.v-bot .key { display: grid; grid-template-columns: repeat(2, auto); gap: 4px; }
.v-bot .key.top button { padding: 18px 0; }
.v-bot .rua { margin: 0 0 0 10px; letter-spacing: .06em; text-transform: none; }
.v-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pano { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; outline: none; }
.pano.drag { cursor: grabbing; }
.v-hint {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); pointer-events: none;
  background: rgba(0,0,0,.62); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  font-size: 11.5px; font-weight: 500; letter-spacing: .06em; color: #fff; white-space: nowrap; transition: opacity .5s;
}
.v-hint.off { opacity: 0; }
.v-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px; }
.v-empty strong { font-size: 15px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.v-empty span { font-size: 13px; color: var(--muted); }

@media (max-width: 699px) {
  .corner.tr { right: 16px; top: 18px; } .corner.tl { left: 16px; top: 16px; } .corner.br { display: none; }
  .wordmark strong { font-size: 18px; }
  .menu { left: 10px; right: 10px; transform: none; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .menu button { padding: 12px 16px; }
  .ficha { left: 10px; right: 10px; width: auto; bottom: 84px; }
  .panel { left: 10px; right: 10px; width: auto; top: auto; bottom: 84px; max-height: 44dvh; }
  .card { left: 10px; right: 10px; width: auto; transform: none; top: 64px; }
  .card-img { height: 130px; }
  .v-top { flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
  .v-title strong { font-size: 20px; }
  .v-body { flex-direction: column; padding: 0 16px; gap: 10px; }
  .stepper { width: auto; flex-direction: row; }
  .stepper button { width: 42px; height: 42px; }
}
