/* ============================================================
   ESTILO DO TOUR VIRTUAL 360°
   ============================================================ */

/* A mesma Inter do painel, já empacotada no projeto. Sem isto o tour usava a
   fonte do sistema: o mesmo projeto chegava em Segoe no Windows, San Francisco
   no iPhone e Roboto no Android — três apresentações diferentes do trabalho do
   mesmo escritório. */
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC,
                 U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin-ext-var.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --destaque: #4da3ff;
  --sobre-destaque: #10151c;   /* recalculado em runtime a partir do destaque */
  --fundo-escuro: rgba(12, 16, 24, 0.78);
  --fundo-vidro: rgba(16, 22, 32, 0.62);
  --borda-vidro: rgba(255, 255, 255, 0.12);
  --texto: #f2f6fb;
  --texto-suave: #aebdd0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  overflow: hidden;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: #0b0f16;
  color: var(--texto);
}

.oculto { display: none !important; }

/* ---------------- Visualizador ---------------- */

#visualizador { position: fixed; inset: 0; }
#visualizador .pnlm-load-box { display: none; }

/* ---------------- Tela de carregamento ---------------- */

#carregando {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; background: #0b0f16;
  transition: opacity 0.6s ease;
}
#carregando.oculto { display: flex !important; opacity: 0; pointer-events: none; }
/* ---- Órbita 360°: a esfera do panorama girando em torno da marca ----
   A logo e a cor vêm da empresa dona do tour (--destaque e #carregando-logo),
   então o mesmo código produz um loader diferente para cada cliente. */

.orbita {
  position: relative;
  width: 240px; height: 240px;
  display: flex; align-items: center; justify-content: center;
}
.orbita-aneis {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
}
.anel {
  fill: none;
  stroke: var(--destaque);
  transform-origin: 120px 120px;
}
/* O equador gira no plano da tela; o meridiano bascula. Juntos leem como
   uma esfera em rotação, não como dois círculos soltos. */
.anel-equador {
  stroke-width: 1.5; opacity: 0.85;
  animation: girar-equador 3.2s linear infinite;
}
.anel-meridiano {
  stroke-width: 1.5; opacity: 0.5;
  animation: bascular-meridiano 3.2s ease-in-out infinite;
}
.anel-borda {
  stroke-width: 1; opacity: 0.18;
  stroke-dasharray: 3 7;
  animation: girar-borda 14s linear infinite;
}
/* O ponto que percorre a órbita: dá direção ao giro e marca o tempo. */
.satelite {
  fill: var(--destaque);
  transform-origin: 120px 120px;
  animation: girar-satelite 3.2s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}

@keyframes girar-equador {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
/* rx animado simula a elipse virando de perfil — a esfera "respira" */
@keyframes bascular-meridiano {
  0%, 100% { transform: scaleX(1); opacity: 0.5; }
  50%      { transform: scaleX(0.12); opacity: 0.9; }
}
@keyframes girar-borda {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}
@keyframes girar-satelite {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

#carregando-logo {
  position: relative; z-index: 1;
  max-width: 128px; max-height: 62px;
  object-fit: contain;
  animation: respirar-logo 3.2s ease-in-out infinite;
}
/* A marca não gira: ela permanece firme enquanto o mundo gira em volta. */
@keyframes respirar-logo {
  0%, 100% { opacity: 0.82; transform: scale(0.97); }
  50%      { opacity: 1;    transform: scale(1); }
}

/* Sem movimento: a esfera fica montada e parada, ainda legível como marca. */
@media (prefers-reduced-motion: reduce) {
  .anel, .satelite, #carregando-logo { animation: none; }
  .anel-meridiano { transform: scaleX(0.35); }
  #carregando-logo { opacity: 1; }
  /* O respiro da capa e a entrada do fecho são gosto, não informação:
     somem inteiros para quem pediu menos movimento. O recuo do chrome
     permanece, porque ele é o comportamento, não o enfeite — só perde a
     transição e passa a acontecer de uma vez. */
  #ti-fundo, #tela-fecho { animation: none; }
  #botoes, #titulo-cena, #barra-thumbs, #barra-topo, .pnlm-compass {
    transition: none;
  }
}
#carregando p { color: var(--texto-suave); font-size: 14px; }

/* ---------------- Barra superior ---------------- */

#barra-topo {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 16px;
  background: linear-gradient(to bottom, rgba(8, 11, 17, 0.85), rgba(8, 11, 17, 0));
  pointer-events: none;
}
#barra-topo > * { pointer-events: auto; }
#logo-topo { height: 40px; }
#titulo-cena { flex: 1; min-width: 0; }
#nome-cena {
  font-size: 17px; font-weight: 700; letter-spacing: 0.2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}
#desc-cena {
  font-size: 12.5px; color: var(--texto-suave);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

/* Dois degraus de peso, não onze botões iguais. O primeiro traz nome
   escrito e contraste cheio; o segundo é ajuste, e vive um degrau abaixo
   até a mão chegar perto. */
#botoes {
  display: flex; flex-direction: column; align-items: flex-end; gap: 7px;
}
.grupo-primario, .grupo-secundario {
  display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end;
}
.btn-icone {
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--borda-vidro);
  background: var(--fundo-vidro);
  color: var(--texto); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s, transform 0.15s, border-color 0.2s, opacity 0.2s;
}
.btn-icone svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btn-icone:hover { background: rgba(40, 55, 80, 0.75); transform: translateY(-1px); }
.btn-icone.ligado { border-color: var(--destaque); color: var(--destaque); box-shadow: 0 0 0 1px var(--destaque) inset; }

/* O que o visitante procura é escrito: ícone sozinho é adivinhação. */
.btn-nomeado {
  width: auto; gap: 7px; padding: 0 14px 0 11px;
}
.btn-nome {
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em;
  white-space: nowrap;
}

/* A única ação sólida da tela. É ela que carrega o tour adiante — quem
   recebe o link mostra a alguém, e é assim que o trabalho circula. */
.btn-mostrar {
  background: var(--destaque);
  border-color: transparent;
  color: var(--sobre-destaque);
}
.btn-mostrar:hover { background: var(--destaque); filter: brightness(1.08); }

/* Ajuste, não destino: meio tom abaixo, cheio quando a mão chega. */
.grupo-secundario .btn-icone {
  width: 34px; height: 34px; border-radius: 10px;
  opacity: 0.62;
  background: rgba(16, 22, 32, 0.42);
}
.grupo-secundario .btn-icone svg { width: 17px; height: 17px; }
.grupo-secundario:hover .btn-icone,
.grupo-secundario .btn-icone:focus-visible { opacity: 1; }
.grupo-secundario .btn-icone.ligado { opacity: 1; }

/* ---- O chrome recua enquanto ele olha ----
   Enquanto o visitante arrasta o panorama, ele não está operando uma
   ferramenta: está dentro do imóvel. Nada é removido — os controles
   voltam sozinhos assim que a mão para. A marca da empresa permanece:
   ela não é chrome, é de quem é o trabalho. */
#botoes, #titulo-cena, #barra-thumbs, #painel-planta {
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
body.explorando #botoes,
body.explorando #titulo-cena {
  opacity: 0; pointer-events: none; transform: translateY(-6px);
}
body.explorando #barra-thumbs {
  opacity: 0; pointer-events: none; transform: translateY(14px);
}
body.explorando #barra-topo {
  background: linear-gradient(to bottom, rgba(8, 11, 17, 0.42), rgba(8, 11, 17, 0));
}
#barra-topo { transition: background 0.5s cubic-bezier(0.16, 1, 0.3, 1); }

/* ---------------- Miniaturas (ambientes) ---------------- */

#barra-thumbs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 10px 14px 14px;
  background: linear-gradient(to top, rgba(8, 11, 17, 0.85), rgba(8, 11, 17, 0));
  transition: transform 0.35s ease;
}
.thumbs-recolhidas #barra-thumbs { transform: translateY(calc(100% - 0px)); }
#thumbs {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: thin;
}
.thumb {
  flex: 0 0 auto; width: 150px; border-radius: 12px; overflow: hidden;
  border: 2px solid transparent; background: var(--fundo-vidro);
  cursor: pointer; padding: 0; position: relative;
  transition: transform 0.15s, border-color 0.2s;
}
.thumb:hover { transform: translateY(-3px); }
.thumb.ativa { border-color: var(--destaque); }
.thumb img { width: 100%; height: 84px; object-fit: cover; display: block; }
.thumb-vazia {
  width: 100%; height: 84px;
  background: linear-gradient(135deg, #263242, #181e28);
}
.thumb span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 4px 8px; font-size: 12px; font-weight: 600; color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
  text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------------- Hotspots ---------------- */

.hs-base { width: 1px; height: 1px; }
.hs-cena, .hs-info {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer;
}
.hs-cena-seta {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(10, 14, 22, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: pulsar 2.2s ease-in-out infinite;
  transition: background 0.2s, border-color 0.2s;
}
.hs-cena:hover .hs-cena-seta { background: var(--destaque); border-color: var(--destaque); }
@keyframes pulsar {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35); }
  50% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
}
.hs-info-icone {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--destaque); color: var(--sobre-destaque);
  font-weight: 700; font-size: 17px; font-style: italic;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.hs-rotulo {
  font-size: 12.5px; font-weight: 600; color: #fff;
  background: rgba(10, 14, 22, 0.7); padding: 3px 10px; border-radius: 999px;
  white-space: nowrap; text-shadow: none;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* O anel precisa sobreviver a qualquer foto atrás dele: dois tons, claro
   sobre escuro, em vez de uma cor só que some sobre panorama claro. */
.hs-cena:focus-visible, .hs-info:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.55);
}

/* ---------------- Planta baixa ---------------- */

#painel-planta {
  position: fixed; right: 16px; bottom: 132px; z-index: 35;
  width: min(300px, calc(100vw - 32px));
  background: var(--fundo-escuro);
  border: 1px solid var(--borda-vidro); border-radius: 16px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
#planta-cabecalho {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; font-weight: 700; font-size: 14px;
}
#planta-fechar {
  background: none; border: none; color: var(--texto-suave);
  font-size: 20px; cursor: pointer; line-height: 1;
}
/* A área tem exatamente o tamanho da imagem, nunca mais.
   Os pontos e o radar são posicionados em % sobre ela: se ela sobrar de um
   lado — porque a planta é alta e encolheu pela altura — cada ponto sai do
   lugar sem nada indicar o erro. */
#planta-area {
  position: relative;
  width: fit-content; max-width: 100%;
  margin: 0 auto;
}
#planta-img {
  display: block;
  width: auto; max-width: 100%;
  /* planta alta não pode empurrar o painel até virar a tela inteira */
  max-height: 42vh;
}

.planta-ponto {
  position: absolute; transform: translate(-50%, -50%);
  width: 26px; height: 26px; border: none; background: none; cursor: pointer;
  z-index: 3;
}
.pp-nucleo {
  position: absolute; inset: 6px; border-radius: 50%;
  background: #fff; border: 3px solid var(--destaque);
}
.planta-ponto.ativo .pp-nucleo { background: var(--destaque); border-color: #fff; }
.pp-pulso {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--destaque); opacity: 0.35;
  animation: pulsar-planta 1.8s ease-out infinite;
}
.planta-ponto:not(.ativo) .pp-pulso { animation: none; opacity: 0; }
@keyframes pulsar-planta {
  0% { transform: scale(0.6); opacity: 0.5; }
  100% { transform: scale(1.9); opacity: 0; }
}
/* Acompanha a planta: com o painel menor, os 90px de antes viravam um cone
   cobrindo meio apartamento. */
#planta-radar {
  position: absolute; z-index: 2; width: 62px; height: 62px;
  left: 0; top: 0;
  transform-origin: 50% 100%;
  /* O cone é da cor da empresa, não do azul padrão: um cliente de marca
     vermelha via radar azul apontando dentro da própria planta. */
  background: conic-gradient(from -35deg at 50% 100%,
    color-mix(in srgb, var(--destaque) 0%, transparent) 0deg,
    color-mix(in srgb, var(--destaque) 45%, transparent) 35deg,
    color-mix(in srgb, var(--destaque) 0%, transparent) 70deg);
  clip-path: polygon(15% 0, 85% 0, 55% 100%, 45% 100%);
  pointer-events: none;
}

/* ---------------- Modais ---------------- */

.modal {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5, 8, 13, 0.65);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  padding: 18px;
}
.modal-caixa {
  width: min(460px, 100%);
  max-height: min(80vh, 640px); overflow-y: auto;
  background: var(--fundo-escuro);
  border: 1px solid var(--borda-vidro); border-radius: 18px;
  padding: 22px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}
.modal-caixa h2 { font-size: 19px; margin-bottom: 6px; }
.modal-caixa p { color: var(--texto-suave); font-size: 14px; line-height: 1.55; }
.modal-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-fechar {
  background: none; border: none; color: var(--texto-suave);
  font-size: 24px; cursor: pointer; line-height: 1;
}
.modal-fechar:hover { color: #fff; }

#ih-imagem { width: 100%; border-radius: 12px; margin-top: 12px; }
#ih-link {
  display: inline-block; margin-top: 14px; padding: 9px 16px;
  background: var(--destaque); color: var(--sobre-destaque); text-decoration: none;
  border-radius: 10px; font-size: 14px; font-weight: 600;
}

.lista-contato { list-style: none; margin-top: 14px; display: grid; gap: 10px; }
.lista-contato li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--texto); }
.lista-contato svg { width: 18px; height: 18px; color: var(--destaque); flex: 0 0 auto; }
.lista-contato a { color: var(--destaque); text-decoration: none; }

/* Crédito da trilha: obrigação da licença, não conteúdo do escritório. Fica
   no fim, separado por um fio, na menor tinta que ainda passa em contraste. */
.credito-musica {
  margin-top: 16px; padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px; color: var(--texto-suave);
  line-height: 1.5;
}
.credito-musica .credito-obra { font-style: italic; }

/* Formulário de lead */
#form-lead { display: grid; gap: 10px; margin-top: 14px; }
#form-lead input, #form-lead textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px;
  border: 1px solid var(--borda-vidro);
  background: rgba(255, 255, 255, 0.06); color: var(--texto);
  font-size: 14px; font-family: inherit;
}
#form-lead input:focus, #form-lead textarea:focus {
  outline: none; border-color: var(--destaque);
}
#form-lead button {
  padding: 12px; border: none; border-radius: 10px;
  background: var(--destaque); color: var(--sobre-destaque); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: filter 0.2s;
}
#form-lead button:hover { filter: brightness(1.1); }

/* Compartilhar */
.share-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.share-grade a, .share-grade button {
  padding: 11px; border-radius: 10px; text-align: center;
  border: 1px solid var(--borda-vidro); background: rgba(255, 255, 255, 0.06);
  color: var(--texto); font-size: 14px; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: background 0.2s;
}
.share-grade a:hover, .share-grade button:hover { background: color-mix(in srgb, var(--destaque) 22%, transparent); }

/* Aviso de lead enviado */
#lead-ok {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 55;
  background: #157a49; color: #fff; padding: 11px 20px; border-radius: 12px;
  font-size: 14px; font-weight: 600; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* ---------------- Tela inicial do tour ---------------- */

#tela-inicial {
  position: fixed; inset: 0; z-index: 65;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; transition: opacity 0.45s ease;
}
#tela-inicial.saindo { opacity: 0; pointer-events: none; }
/* A capa é o imóvel, e é a primeira coisa que a pessoa vê dele. Antes ela
   vinha desfocada em 16px e a 45% de brilho — a única imagem da casa na
   tela de abertura chegava apagada de propósito. Agora ela aparece, e quem
   segura o texto é um véu, não o borrão. O respiro lento de escala é o
   único movimento autorado do tour. */
#ti-fundo {
  position: absolute; inset: -24px;
  background: #0b0f16 center/cover no-repeat;
  filter: brightness(0.78) saturate(1.05);
  transform: scale(1.04);
  animation: respirar-capa 26s ease-in-out infinite alternate;
}
/* O véu: escuro embaixo, onde vive o texto; limpo em cima, onde vive a
   foto. Um escurecimento chapado apagaria a casa de novo. */
#tela-inicial::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(6, 9, 14, 0.92) 0%, rgba(6, 9, 14, 0.72) 34%,
                    rgba(6, 9, 14, 0.34) 64%, rgba(6, 9, 14, 0.16) 100%);
}
@keyframes respirar-capa {
  from { transform: scale(1.04); }
  to   { transform: scale(1.12); }
}
#ti-conteudo {
  position: relative; z-index: 1; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 24px; max-width: 560px;
}
#ti-logo { height: 62px; }
/* Endereçada: a linha que diz que isto foi feito para quem está lendo.
   Vem antes do título e num tom mais baixo — ela apresenta, não anuncia. */
#ti-saudacao {
  font-size: 15px; color: #cfdcec; letter-spacing: 0.01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
  margin-bottom: -6px;
}
#ti-titulo {
  font-size: clamp(28px, 5vw, 44px); font-weight: 800;
  letter-spacing: -0.022em; line-height: 1.08; text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}
#ti-desc {
  color: #d7e1ee; font-size: 15px; line-height: 1.5; max-width: 46ch;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
#btn-iniciar-tour {
  margin-top: 10px; padding: 15px 44px; border: none; border-radius: 999px;
  background: var(--destaque); color: var(--sobre-destaque); font-size: 16.5px; font-weight: 700;
  font-family: inherit; cursor: pointer; letter-spacing: 0.01em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s, filter 0.2s;
}
#btn-iniciar-tour:hover { transform: translateY(-2px); filter: brightness(1.1); }
#ti-dica { font-size: 12.5px; color: #b9c7d8; }

/* ---- Ficha do projeto ----
   Dados alinháveis apresentados como ficha técnica, não como texto corrido:
   é assim que um projeto de arquitetura se apresenta. Cada item só existe
   se tiver valor, então a ficha encolhe em vez de mostrar rótulo vazio. */

#ti-ficha {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 4px 26px;
  margin-top: 20px;
}
#ti-ficha > div {
  display: flex; align-items: baseline; gap: 7px;
}
#ti-ficha dt {
  font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase;
  color: #93a4b8;
}
#ti-ficha dd {
  font-size: 14px; font-weight: 700; color: #eaf1f8;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
#ti-local {
  margin-top: 2px;
  font-size: 13.5px; color: #c3d0e0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

/* Assinatura: quem apresenta. Separada por um fio, discreta, no fim. */
#ti-assinatura {
  margin-top: 22px; padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  width: 100%; max-width: 300px;
  font-size: 12.5px; color: #a9b8ca;
}

@media (max-width: 560px) {
  #ti-ficha { gap: 4px 18px; }
  #ti-ficha dd { font-size: 13px; }
}

/* ---------------- Galeria de fotos ---------------- */

.caixa-galeria { width: min(760px, 100%); }
#galeria-grade {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px; margin-top: 12px;
}
.galeria-item {
  border: none; padding: 0; border-radius: 10px; overflow: hidden;
  cursor: pointer; background: #0e141d; aspect-ratio: 4 / 3;
}
.galeria-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.2s; }
.galeria-item:hover img { transform: scale(1.05); }

#lightbox {
  position: fixed; inset: 0; z-index: 75;
  background: rgba(3, 5, 9, 0.92);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
#lb-img { max-width: 86vw; max-height: 88vh; border-radius: 10px; }
#lightbox button {
  background: rgba(255, 255, 255, 0.1); border: none; color: #fff;
  width: 46px; height: 46px; border-radius: 50%; font-size: 26px; cursor: pointer;
  flex: 0 0 auto;
}
#lightbox button:hover { background: rgba(255, 255, 255, 0.22); }
#lb-fechar { position: absolute; top: 16px; right: 16px; }

/* ---------------- Vídeo de marcador ---------------- */

.caixa-video { width: min(720px, 100%); }
#video-wrap { margin-top: 10px; aspect-ratio: 16 / 9; }
#video-wrap iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; }
.hs-video-icone {
  width: 34px; height: 34px; border-radius: 50%;
  background: #e5484d; color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* ---------------- WhatsApp flutuante ---------------- */

/* ---------------- Fecho da visita ----------------
   A visita termina, e é só aqui que o escritório fala de si. Antes disso
   ele estaria interrompendo a casa de alguém. */

#tela-fecho {
  position: fixed; inset: 0; z-index: 66;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(6, 9, 14, 0.86);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  animation: fecho-entra 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fecho-entra { from { opacity: 0; } to { opacity: 1; } }

#fecho-conteudo {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center; max-width: 460px;
}
#fecho-titulo {
  font-size: clamp(24px, 4.6vw, 34px); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance;
}
#fecho-texto { font-size: 15px; color: var(--texto-suave); line-height: 1.5; }

#fecho-acoes {
  display: flex; flex-direction: column; gap: 9px;
  width: 100%; max-width: 300px; margin-top: 12px;
}
.fecho-primario, .fecho-secundario {
  padding: 14px 22px; border-radius: 999px; border: none;
  font-family: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer;
  text-align: center; text-decoration: none;
  transition: transform 0.15s, filter 0.2s, background 0.2s;
}
.fecho-primario {
  background: var(--destaque); color: var(--sobre-destaque);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.fecho-secundario {
  background: transparent; color: var(--texto);
  border: 1px solid var(--borda-vidro); font-weight: 600;
}
.fecho-primario:hover { transform: translateY(-2px); filter: brightness(1.08); }
.fecho-secundario:hover { background: rgba(40, 55, 80, 0.6); }

/* A ficha técnica vive aqui, não na abertura: ela responde a quem chegou
   pelo link repassado e quer saber de que tamanho é, em que bairro fica e
   quem assina. Quem entra na própria casa não precisa dela. */
#fecho-ficha {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 26px;
  margin-top: 18px;
}
#fecho-ficha > div { display: flex; align-items: baseline; gap: 7px; }
#fecho-ficha dt {
  font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase;
  color: #9db0c6;
}
#fecho-ficha dd {
  font-size: 14px; font-weight: 700; color: #eaf1f8;
  font-variant-numeric: tabular-nums;
}
#fecho-assinatura {
  font-size: 13px; color: var(--texto-suave); margin-top: 4px;
  padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%; max-width: 300px;
}
#fecho-voltar {
  margin-top: 6px; background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 13.5px; color: var(--texto-suave);
  text-decoration: underline; text-underline-offset: 3px;
}
#fecho-voltar:hover { color: var(--texto); }

/* ---------------- Bússola do Pannellum ---------------- */

/* Sobe: sem a marca d'água e sem o botão flutuante, este canto ficou livre. */
.pnlm-compass {
  right: auto !important; left: 16px !important; bottom: 132px !important;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
body.explorando .pnlm-compass { opacity: 0; }

/* ---------------- Responsivo ---------------- */

/* ---- Celular: o polegar em baixo, a marca em cima ----
   Onze botões não cabem num topo de 390px — antes eles quebravam em três
   linhas e a ferramenta ocupava mais tela que o imóvel. Nada sai: as três
   ações escritas descem para junto do polegar, os oito ajustes ficam no
   topo em uma linha só, e a marca do cliente segue sozinha à esquerda. */
@media (max-width: 720px) {
  #logo-topo { height: 26px; }
  #desc-cena { display: none; }
  #barra-topo { gap: 8px; padding: 8px 10px; align-items: flex-start; }
  /* O bloco do título desce inteiro para o rodapé em vez de sumir: quem
     some é a descrição. Escondê-lo com display:none apagaria junto o nome
     do ambiente, que é a única legenda que o visitante tem. */
  #titulo-cena {
    position: fixed; left: 0; right: 0; bottom: 148px; z-index: 31;
    flex: none; pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }
  body.explorando #titulo-cena { opacity: 0; }

  /* A logo cede largura antes de qualquer botão: ela é a marca do cliente
     e precisa aparecer, mas não pode empurrar os ajustes para uma segunda
     linha. Com galeria e contato visíveis são oito ícones, e é aí que a
     linha estoura num aparelho de 390px. */
  #logo-topo { max-width: 34vw; object-fit: contain; object-position: left center; }
  #botoes { flex: 1; min-width: 0; align-items: flex-end; }
  .grupo-secundario {
    flex-wrap: nowrap; gap: 4px;
    max-width: 100%; overflow-x: auto;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .grupo-secundario::-webkit-scrollbar { display: none; }
  .grupo-secundario .btn-icone {
    width: 30px; height: 30px; border-radius: 9px;
    /* No toque não existe hover: o degrau é de peso, nunca de acesso. */
    opacity: 0.8;
  }
  .grupo-secundario .btn-icone svg { width: 15px; height: 15px; }

  /* As três ações nomeadas viram a faixa de comando, logo acima dos
     ambientes. É onde a mão já está. */
  .grupo-primario {
    position: fixed; left: 0; right: 0; bottom: 104px; z-index: 31;
    justify-content: center; gap: 8px;
    padding: 0 10px;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }
  body.explorando .grupo-primario {
    opacity: 0; pointer-events: none; transform: translateY(10px);
  }
  .btn-nomeado { width: auto; height: 38px; padding: 0 15px 0 12px; }
  .btn-nome { font-size: 13px; }

  /* O nome do ambiente encosta na faixa de comando, como legenda dela. */
  #nome-cena { font-size: 14px; font-weight: 600; text-align: center; }

  .thumb { width: 104px; }
  .thumb img { height: 58px; }
  #barra-thumbs { padding: 8px 10px 12px; }
  #painel-planta { right: 8px; left: 8px; width: auto; bottom: 152px; }
  /* Na vertical o painel divide a tela com a barra de ambientes e o topo:
     42vh deixaria a planta encostando nos dois. */
  #planta-img { max-height: 32vh; }
  #planta-radar { width: 54px; height: 54px; }
  /* A bússola do Pannellum nasce com 80px: no celular ela virava um disco
     branco no meio da foto. */
  .pnlm-compass {
    bottom: 156px !important; left: 10px !important;
    width: 42px !important; height: 42px !important;
  }
  #ti-logo { height: 48px; }
  #fecho-acoes { max-width: 100%; }
}
