/* =========================================================
   TIMOB Site Template 12 — Vitrine
   ENGINE PRÓPRIA (views em app/Views/public_site/template_012).
   Não é skin do 001 nem do 005: layout reimaginado em cima da
   foto do imóvel.

   Ideias estruturais que só existem aqui:
   - hero de tela cheia com busca em barra única (não em card)
   - header transparente que solidifica ao rolar
   - destaques em mosaico assimétrico (1 card grande + satélites)
   - card com o conteúdo SOBRE a foto, não abaixo dela
   - bairros em carrossel com scroll-snap
   - detalhe com galeria em mosaico e trilho de preço fixo

   Prefixo de classe: .tv-*
   O bloco final "compat" existe porque as páginas de lançamento
   (developments/hotsite) são auto-estilizadas e reaproveitam um
   punhado de utilitários .t5-* — mantê-los aqui evita reescrever
   700 linhas de página de nicho.

   NOTA: o PHP injeta --brand-*, --dark, --surface-soft,
   --surface-strong, --line e --site-support-rgb num <style>
   inline carregado DEPOIS deste arquivo. Neutros próprios são
   declarados em `body` (a variável mais próxima no DOM vence).
   ========================================================= */

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --tv-font: Inter, "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --tv-display: Inter, "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --tv-container: 1320px;
  --tv-gutter: 28px;
  --tv-r: 4px;
  --tv-header-h: 84px;
  --tv-ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  --tv-ink: #10141C;
  --tv-ink-soft: #5B6577;
  --tv-line: #E4E7EE;
  --tv-paper: #FFFFFF;
  --tv-paper-soft: #F6F7FA;
  --tv-night: #0B0E14;

  /* As páginas de lançamento (developments/hotsite) foram herdadas da
     engine 005 e pintam tudo com estes nomes. Aqui elas viram apelidos
     dos neutros desta engine, para aquelas páginas herdarem a
     identidade sem precisar ser reescritas. */
  --surface-soft: #F6F7FA;
  --surface-strong: #EDEFF4;
  --line: #E4E7EE;
  --dark: #0B0E14;
  --shadow-sm: 0 2px 12px rgba(16, 20, 28, .06);
  --shadow-md: 0 10px 30px rgba(16, 20, 28, .10);
  --shadow-lg: 0 24px 60px rgba(16, 20, 28, .16);

  margin: 0;
  font-family: var(--tv-font);
  color: var(--tv-ink);
  background: var(--tv-paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container {
  width: min(var(--tv-container), calc(100vw - (var(--tv-gutter) * 2)));
  margin-inline: auto;
}

.site-icons-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.site-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Reveal (o JS público adiciona .visible) ─────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--tv-ease), transform .7s var(--tv-ease);
}

.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Tipografia ──────────────────────────────────────────── */
.tv-display {
  font-family: var(--tv-display);
  margin: 0;
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
  font-size: clamp(38px, 5.4vw, 76px);
}

.tv-h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.05;
  font-size: clamp(30px, 3.9vw, 52px);
}

.tv-h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -.025em;
  font-size: clamp(21px, 2.2vw, 28px);
}

.tv-lead {
  margin: 16px 0 0;
  color: var(--tv-ink-soft);
  font-size: 17px;
  line-height: 1.68;
  max-width: 62ch;
}

.tv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--brand-primary);
}

.tv-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--brand-accent);
  flex: 0 0 26px;
}

.tv-eyebrow.is-light { color: rgba(255, 255, 255, .82); }

/* ── Botões ──────────────────────────────────────────────── */
.tv-btn,
.tv-btn-ghost,
.tv-btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--tv-r);
  font-weight: 750;
  font-size: 15px;
  letter-spacing: -.01em;
  transition: background .2s var(--tv-ease), color .2s var(--tv-ease),
              border-color .2s var(--tv-ease), transform .2s var(--tv-ease);
}

.tv-btn { background: var(--brand-primary); color: #fff; }
.tv-btn:hover { background: var(--brand-primary-dark); transform: translateY(-2px); }

.tv-btn-ghost { background: transparent; color: var(--tv-ink); border-color: var(--tv-line); }
.tv-btn-ghost:hover { border-color: var(--tv-ink); }

.tv-btn-light { background: #fff; color: var(--tv-ink); }
.tv-btn-light:hover { background: rgba(255, 255, 255, .88); transform: translateY(-2px); }

.tv-btn-sm { min-height: 42px; padding: 0 18px; font-size: 13.5px; }

.tv-on-dark .tv-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .34); }
.tv-on-dark .tv-btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.tv-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
  font-size: 14px;
  color: var(--brand-primary);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--tv-ease);
}

.tv-link:hover { border-color: currentColor; }

/* =========================================================
   HEADER — transparente sobre o hero, sólido ao rolar
   ========================================================= */
/* min-height, não height: o cliente escolhe o tamanho do logo em
   Configurações, e com altura travada um logo médio/grande colava no topo
   e estourava o cabeçalho nas páginas internas (que eram mais baixas). O
   script no fim do header mede a altura real e reescreve --tv-header-h,
   para os espaçamentos das páginas acompanharem. */
.tv-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  min-height: var(--tv-header-h);
  padding-block: 11px;
  display: flex;
  align-items: center;
  transition: background .35s var(--tv-ease), box-shadow .35s var(--tv-ease),
              border-color .35s var(--tv-ease);
  border-bottom: 1px solid transparent;
}

.tv-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: min(var(--tv-container), calc(100vw - (var(--tv-gutter) * 2)));
  margin-inline: auto;
}

/* Placa branca atrás do logo: o header fica sobre a capa escura, e logo
   de cliente em cor escura desaparecia ali. A placa vale também no header
   sólido, onde só se lê como um leve realce. */
.tv-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 2px 12px rgba(11, 14, 20, .12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.tv-logo img { max-height: 40px; width: auto; }

.tv-logo-fallback {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--tv-r);
  background: var(--brand-primary);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
}

.tv-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.tv-nav a {
  position: relative;
  padding: 9px 14px;
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  opacity: .82;
  transition: opacity .2s var(--tv-ease), color .2s var(--tv-ease);
}

.tv-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .26s var(--tv-ease);
}

.tv-nav a:hover { opacity: 1; }
.tv-nav a:hover::after,
.tv-nav a.active::after { transform: scaleX(1); }
.tv-nav a.active { opacity: 1; }

.tv-header-end { display: flex; align-items: center; gap: 10px; }

.tv-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--tv-r);
  border: 1px solid rgba(255, 255, 255, .38);
  color: #fff;
  font-weight: 750;
  font-size: 14px;
  transition: background .22s var(--tv-ease), color .22s var(--tv-ease), border-color .22s var(--tv-ease);
}

.tv-header-cta:hover { background: #fff; color: var(--tv-ink); border-color: #fff; }

.tv-burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: var(--tv-r);
  background: transparent;
  color: #fff;
}

/* estado sólido: aplicado pelo script inline do header e sempre
   nas páginas internas (que não têm hero escuro atrás) */
.tv-header.is-solid,
body:not(.tv-has-hero) .tv-header {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--tv-line);
  box-shadow: 0 10px 30px rgba(11, 14, 20, .1);
}

.tv-header.is-solid .tv-nav a,
body:not(.tv-has-hero) .tv-nav a { color: var(--tv-ink); }

.tv-header.is-solid .tv-header-cta,
body:not(.tv-has-hero) .tv-header-cta {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.tv-header.is-solid .tv-header-cta:hover,
body:not(.tv-has-hero) .tv-header-cta:hover { background: var(--brand-primary-dark); border-color: var(--brand-primary-dark); }

.tv-header.is-solid .tv-burger,
body:not(.tv-has-hero) .tv-burger { color: var(--tv-ink); border-color: var(--tv-line); }

/* menu mobile (o JS público alterna .open) */
.tv-mobile-menu {
  position: fixed;
  inset: var(--tv-header-h) 0 auto 0;
  z-index: 89;
  display: none;
  flex-direction: column;
  background: #fff;
  border-bottom: 1px solid var(--tv-line);
  box-shadow: 0 24px 50px rgba(16, 20, 28, .14);
}

.tv-mobile-menu.open { display: flex; }

.tv-mobile-menu a {
  padding: 16px 24px;
  font-weight: 750;
  color: var(--tv-ink);
  border-bottom: 1px solid var(--tv-line);
}

.tv-mobile-menu a:last-child { border-bottom: 0; }

/* =========================================================
   HERO — tela cheia, busca em barra
   ========================================================= */
/* Altura limitada de propósito: com 100svh numa tela grande sobravam ~290px
   de vazio acima do título, porque o conteúdo é ancorado embaixo. O teto de
   820px mantém a capa imponente sem esse buraco. */
.tv-hero {
  position: relative;
  min-height: clamp(600px, 82svh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--tv-night);
  isolation: isolate;
}

.tv-hero-media { position: absolute; inset: 0; z-index: 0; }

.tv-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: tv-slow-zoom 22s var(--tv-ease) forwards;
}

@keyframes tv-slow-zoom {
  from { transform: scale(1.09); }
  to { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .tv-hero-media img { animation: none; }
}

.tv-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(11, 14, 20, .62) 0%, rgba(11, 14, 20, 0) 26%, rgba(11, 14, 20, .18) 52%, rgba(11, 14, 20, .88) 100%);
}

.tv-hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--tv-container), calc(100vw - (var(--tv-gutter) * 2)));
  margin-inline: auto;
  padding: calc(var(--tv-header-h) + 26px) 0 38px;
  color: #fff;
}

.tv-hero-copy { max-width: 900px; }
.tv-hero-copy .tv-display { color: #fff; text-wrap: balance; }

.tv-hero-copy .tv-lead {
  color: rgba(255, 255, 255, .82);
  max-width: 58ch;
  font-size: 18px;
}

/* barra de busca — uma linha só, sem card */
.tv-searchbar {
  margin-top: 40px;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--tv-r);
  box-shadow: 0 30px 70px rgba(11, 14, 20, .34);
  color: var(--tv-ink);
  overflow: hidden;
}

.tv-search-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--tv-line);
  padding: 0 6px;
}

.tv-search-tabs .search-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 18px;
  border: 0;
  background: transparent;
  color: var(--tv-ink-soft);
  font-weight: 750;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .2s var(--tv-ease), border-color .2s var(--tv-ease);
}

.tv-search-tabs .search-tab:hover { color: var(--tv-ink); }

.tv-search-tabs .search-tab.active {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
}

/* O botão tinha zero respiro: colava na borda da barra e nos campos.
   Agora a linha ganha um padding e o botão vira uma peça solta dentro
   dela, com raio próprio. */
.tv-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 6px;
  padding: 8px;
}

.tv-search-row[hidden] { display: none; }

.tv-search-code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  padding: 8px;
}

.tv-search-code[hidden] { display: none; }

.tv-field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 11px 16px;
  border-right: 1px solid var(--tv-line);
  min-width: 0;
}

.tv-field:last-of-type { border-right: 0; }

/* o rotulo e um <span> porque o proprio .tv-field ja e o <label> */
.tv-field > span {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--tv-ink-soft);
}

.tv-field input,
.tv-field select {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  color: var(--tv-ink);
  outline: none;
  min-width: 0;
}

.tv-field select { cursor: pointer; }
.tv-field input::placeholder { color: #A7AEBD; font-weight: 600; }

.tv-search-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 178px;
  min-height: 58px;
  padding: 0 26px;
  border: 0;
  border-radius: var(--tv-r);
  background: var(--brand-primary);
  color: #fff;
  font-weight: 800;
  font-size: 14.5px;
  transition: background .2s var(--tv-ease);
}

.tv-search-go:hover { background: var(--brand-primary-dark); }
.tv-search-go .site-icon { width: 19px; height: 19px; }

.tv-search-extra {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 0 8px 8px;
  border-top: 1px solid var(--tv-line);
}

.tv-search-extra.open { display: grid; padding-top: 8px; }

.tv-search-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 18px;
  border-top: 1px solid var(--tv-line);
  background: var(--tv-paper-soft);
  font-size: 13px;
  color: var(--tv-ink-soft);
}

.tv-search-foot button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--brand-primary);
  font-weight: 800;
  font-size: 13px;
  padding: 0;
}

/* =========================================================
   FAIXA DE NÚMEROS
   ========================================================= */
.tv-stats {
  background: var(--tv-night);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.tv-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .1);
  border-inline: 1px solid rgba(255, 255, 255, .1);
}

.tv-stat {
  background: var(--tv-night);
  padding: 34px 26px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tv-stat strong {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
}

.tv-stat span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}

/* =========================================================
   SEÇÕES
   ========================================================= */
.tv-section { padding: clamp(64px, 8vw, 116px) 0; }
.tv-section-soft { background: var(--tv-paper-soft); }

.tv-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}

.tv-section-head > div { max-width: 760px; }

/* =========================================================
   MOSAICO DE DESTAQUES
   O primeiro card ocupa 2x2; os satélites entram 1x1.
   ========================================================= */
.tv-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 236px;
  gap: 14px;
}

.tv-mosaic > .tv-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

/* grade simples (listagem, relacionados) */
.tv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tv-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* =========================================================
   CARD — conteúdo SOBRE a foto
   ========================================================= */
.tv-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--tv-r);
  background: var(--tv-night);
  min-height: 236px;
  isolation: isolate;
  color: #fff;
}

.tv-grid .tv-card { min-height: 400px; }

.tv-card-media { position: absolute; inset: 0; z-index: 0; }

.tv-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--tv-ease);
}

.tv-card:hover .tv-card-media img { transform: scale(1.06); }

/* Véu ancorado embaixo, só onde o texto está, desbotando até sumir antes
   da metade do card — a foto fica limpa em cima (inclusive selos que a
   imobiliária grava na própria imagem). Os passos intermediários são
   propositalmente muitos: com poucos, a borda do degradê aparece como
   uma faixa reta sobre a foto. */
.tv-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(11, 14, 20, .97) 0%,
    rgba(11, 14, 20, .94) 10%,
    rgba(11, 14, 20, .86) 18%,
    rgba(11, 14, 20, .72) 26%,
    rgba(11, 14, 20, .54) 33%,
    rgba(11, 14, 20, .36) 40%,
    rgba(11, 14, 20, .20) 47%,
    rgba(11, 14, 20, .08) 54%,
    rgba(11, 14, 20, 0) 62%
  );
  transition: background .4s var(--tv-ease);
}

/* No hover o bloco de texto cresce (as specs aparecem), então o véu sobe
   junto — senão a linha nova nasce fora da área escurecida. */
.tv-card:hover::after,
.tv-card:focus-within::after {
  background: linear-gradient(
    to top,
    rgba(11, 14, 20, .97) 0%,
    rgba(11, 14, 20, .95) 14%,
    rgba(11, 14, 20, .90) 24%,
    rgba(11, 14, 20, .80) 34%,
    rgba(11, 14, 20, .64) 43%,
    rgba(11, 14, 20, .44) 52%,
    rgba(11, 14, 20, .24) 61%,
    rgba(11, 14, 20, .09) 70%,
    rgba(11, 14, 20, 0) 79%
  );
}

/* rede de segurança para os poucos pixels onde o véu ainda não dá conta */
.tv-card-body { text-shadow: 0 1px 4px rgba(11, 14, 20, .62); }

.tv-card-tags {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.tv-tag {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 11px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .93);
  color: var(--tv-ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.tv-tag.is-brand { background: var(--brand-primary); color: #fff; }
.tv-tag.is-accent { background: var(--brand-accent); color: var(--tv-ink); }

.tv-card-body {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  gap: 7px;
}

.tv-card-code {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .68);
}

.tv-card-title {
  margin: 0;
  font-size: 19px;
  font-weight: 780;
  line-height: 1.2;
  letter-spacing: -.025em;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tv-mosaic > .tv-card:first-child .tv-card-title { font-size: 27px; -webkit-line-clamp: 3; }
.tv-mosaic > .tv-card:first-child .tv-card-body { padding: 28px; }

/* Nos satélites do mosaico (só na home) o título sai: sobra código,
   bairro e preço, e a grade fica mais limpa — quem nomeia o conjunto é o
   card grande. O nome continua no aria-label do link, então leitor de
   tela não perde nada. */
.tv-mosaic > .tv-card:not(:first-child) .tv-card-title { display: none; }

.tv-card-location {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 650;
  color: rgba(255, 255, 255, .74);
}

.tv-card-location .site-icon { width: 15px; height: 15px; }

.tv-card-price {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 4px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.035em;
  color: #fff;
}

.tv-card-price small {
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0;
  color: rgba(255, 255, 255, .62);
}

/* specs escondidas até o hover: o card fica limpo, e revela
   dormitórios/banheiros/vagas quando o usuário mira nele */
.tv-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .38s var(--tv-ease), opacity .3s var(--tv-ease), margin-top .38s var(--tv-ease);
}

.tv-card:hover .tv-card-specs,
.tv-card:focus-within .tv-card-specs {
  max-height: 60px;
  opacity: 1;
  margin-top: 10px;
}

.tv-card-spec {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .78);
}

.tv-card-spec strong { font-size: 14px; font-weight: 800; color: #fff; }

.tv-photo-watermark {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  width: 72px;
  height: 34px;
  background-image: var(--site-watermark-logo);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: .3;
  pointer-events: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .45));
}

/* ── Card de unidade (hotsite de lançamento) ─────────────────
   Vertical, com ações visíveis: o card sobreposto não serve aqui
   porque a unidade precisa de dois alvos clicáveis. */
.tv-unit {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-r);
  overflow: hidden;
  transition: border-color .22s var(--tv-ease), transform .22s var(--tv-ease);
}

.tv-unit:hover { border-color: var(--brand-primary); transform: translateY(-3px); }

.tv-unit-media { position: relative; display: block; min-height: 230px; overflow: hidden; background: var(--tv-paper-soft); }
.tv-unit-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--tv-ease); }
.tv-unit:hover .tv-unit-media img { transform: scale(1.05); }

.tv-unit-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tv-unit-title { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; }
.tv-unit-context { margin: 0; font-size: 13.5px; color: var(--tv-ink-soft); }

.tv-unit-location {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 650;
  color: var(--tv-ink-soft);
}

.tv-unit-specs { display: flex; flex-wrap: wrap; gap: 14px; padding: 12px 0; border-top: 1px solid var(--tv-line); border-bottom: 1px solid var(--tv-line); }
.tv-unit-specs span { display: inline-flex; align-items: baseline; gap: 5px; font-size: 12.5px; color: var(--tv-ink-soft); }
.tv-unit-specs strong { font-size: 14px; font-weight: 800; color: var(--tv-ink); }

.tv-unit-foot { margin-top: auto; padding-top: 12px; display: grid; gap: 12px; }
.tv-unit-price { font-size: 22px; font-weight: 850; letter-spacing: -.035em; color: var(--brand-primary); }
.tv-unit-price small { display: block; font-size: 11.5px; font-weight: 650; letter-spacing: 0; color: var(--tv-ink-soft); }
.tv-unit-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tv-unit-actions > * { flex: 1 1 130px; }

.tv-empty {
  grid-column: 1 / -1;
  padding: 54px 32px;
  text-align: center;
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-r);
  background: #fff;
  color: var(--tv-ink-soft);
}

.tv-empty strong {
  display: block;
  margin-bottom: 8px;
  font-size: 21px;
  color: var(--tv-ink);
}

/* =========================================================
   BAIRROS — carrossel com scroll-snap
   ========================================================= */
.tv-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: thin;
}

.tv-rail > * { scroll-snap-align: start; }

.tv-nh {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--tv-r);
  overflow: hidden;
  background: var(--tv-night);
  color: #fff;
  isolation: isolate;
}

.tv-nh img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--tv-ease);
}

.tv-nh:hover img { transform: scale(1.07); }

.tv-nh::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 14, 20, 0) 40%, rgba(11, 14, 20, .88) 100%);
}

.tv-nh-body {
  position: absolute;
  z-index: 2;
  inset: auto 18px 18px;
}

.tv-nh-body h3 { margin: 0 0 3px; font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.tv-nh-body span { font-size: 12.5px; color: rgba(255, 255, 255, .74); font-weight: 650; }

/* =========================================================
   SOBRE — full-bleed, foto sangra até a borda
   ========================================================= */
.tv-about { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0; }

.tv-about-copy {
  padding: clamp(56px, 6vw, 96px) clamp(28px, 5vw, 84px) clamp(56px, 6vw, 96px)
           max(var(--tv-gutter), calc((100vw - var(--tv-container)) / 2));
}

.tv-about-media { position: relative; align-self: stretch; min-height: 520px; }
.tv-about-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.tv-about-stamp {
  position: absolute;
  z-index: 2;
  left: -46px;
  bottom: 46px;
  padding: 22px 26px;
  background: var(--brand-accent);
  color: var(--tv-ink);
  border-radius: var(--tv-r);
  box-shadow: 0 22px 50px rgba(11, 14, 20, .22);
}

.tv-about-stamp strong { display: block; font-size: 27px; font-weight: 850; letter-spacing: -.04em; line-height: 1; }
.tv-about-stamp span { font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }

.tv-checks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }

.tv-checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 650;
  color: var(--tv-ink-soft);
}

.tv-checks li::before {
  content: "";
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--brand-primary-soft);
  border: 2px solid var(--brand-primary);
}

/* =========================================================
   CTA
   ========================================================= */
.tv-cta {
  position: relative;
  overflow: hidden;
  background: var(--tv-night);
  color: #fff;
  isolation: isolate;
}

.tv-cta-media { position: absolute; inset: 0; z-index: 0; opacity: .3; }
.tv-cta-media img { width: 100%; height: 100%; object-fit: cover; }

.tv-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(11, 14, 20, .94) 22%, rgba(11, 14, 20, .58) 100%);
}

.tv-cta-inner {
  position: relative;
  z-index: 2;
  padding: clamp(64px, 8vw, 118px) 0;
  max-width: 720px;
}

.tv-cta-inner .tv-h2 { color: #fff; }
.tv-cta-inner p { color: rgba(255, 255, 255, .76); font-size: 17px; line-height: 1.65; margin: 16px 0 0; }

.tv-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* =========================================================
   RODAPÉ
   ========================================================= */
.tv-footer { background: var(--tv-night); color: #fff; padding: clamp(56px, 6vw, 88px) 0 0; }

.tv-footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.tv-footer.has-portals .tv-footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; }

.tv-footer-brand img { max-height: 50px; width: auto; margin-bottom: 18px; }
.tv-footer-brand p { margin: 0; color: rgba(255, 255, 255, .58); font-size: 14.5px; line-height: 1.68; }

.tv-footer h4 {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}

.tv-footer-links { display: grid; gap: 11px; }

.tv-footer-links a {
  color: rgba(255, 255, 255, .72);
  font-size: 14.5px;
  font-weight: 650;
  transition: color .2s var(--tv-ease);
}

.tv-footer-links a:hover { color: #fff; }

.tv-socials { display: flex; gap: 9px; margin-top: 20px; }

.tv-socials a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--tv-r);
  border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .78);
  transition: background .2s var(--tv-ease), color .2s var(--tv-ease), border-color .2s var(--tv-ease);
}

.tv-socials a:hover { background: #fff; color: var(--tv-night); border-color: #fff; }

.tv-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 26px 0;
  color: rgba(255, 255, 255, .48);
  font-size: 13.5px;
}

/* WhatsApp flutuante */
.tv-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 16px 34px rgba(11, 14, 20, .3);
  transition: transform .22s var(--tv-ease);
}

.tv-whatsapp:hover { transform: translateY(-3px) scale(1.04); }
.tv-whatsapp .site-icon { width: 26px; height: 26px; }

.tv-contact-float { display: none; }

/* =========================================================
   PÁGINAS INTERNAS — cabeçalho curto
   ========================================================= */
.tv-page-head {
  position: relative;
  padding: calc(var(--tv-header-h) + 56px) 0 56px;
  background: var(--tv-paper-soft);
  border-bottom: 1px solid var(--tv-line);
  overflow: hidden;
}

.tv-page-head-media { position: absolute; inset: 0; z-index: 0; opacity: .16; }
.tv-page-head-media img { width: 100%; height: 100%; object-fit: cover; }

.tv-page-head .container { position: relative; z-index: 1; }

.tv-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--tv-ink-soft);
}

.tv-crumbs a { color: var(--brand-primary); }

/* =========================================================
   LISTAGEM
   ========================================================= */
.tv-filters {
  position: sticky;
  top: var(--tv-header-h);
  z-index: 60;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--tv-line);
}

/* Grade fixa de 6 colunas em vez de flex-wrap: com wrap os campos ficavam
   com larguras diferentes e a segunda linha terminava quase vazia. São 10
   controles + as ações, que fecham exatamente duas linhas cheias. */
.tv-filters-inner {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  padding: 14px 0;
}

.tv-filters-inner input,
.tv-filters-inner select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-r);
  background: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tv-ink);
  outline: none;
  transition: border-color .2s var(--tv-ease), box-shadow .2s var(--tv-ease);
}

.tv-filters-inner input:focus,
.tv-filters-inner select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-primary-soft);
}

/* a busca livre é o campo mais usado: ocupa duas colunas */
.tv-filter-q { grid-column: span 2; }

/* min e max ocupam duas células e chegam até as ações, sem deixar um
   vazio artificial antes dos botões */
.tv-filter-range {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-width: 0;
}

.tv-filters-end {
  grid-column: span 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

@media (max-width: 1180px) {
  .tv-filters-inner { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .tv-filters-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tv-filter-q { grid-column: span 2; }
  .tv-filters-end { grid-column: span 2; }
}

@media (max-width: 520px) {
  .tv-filters-inner { grid-template-columns: 1fr; }
  .tv-filter-q,
  .tv-filter-range,
  .tv-filters-end { grid-column: span 1; }
  .tv-filter-range { grid-template-columns: 1fr 1fr; }
}

.tv-filters-toggle { display: none; }

/* No celular a grade de filtros ocupa mais que uma tela inteira. Como a
   barra e sticky, aberta ela cobria a listagem toda — o mesmo mostrar/ocultar
   do template-005 resolve: o painel nasce fechado e a barra deixa de grudar.
   Este bloco vem depois da regra acima de proposito, para vence-la. */
@media (max-width: 860px) {
  .tv-filters { position: static; }

  .tv-filters-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    margin: 12px 0;
  }

  .tv-filters-inner {
    display: none;
    padding: 0 0 16px;
  }

  .tv-filters-inner.open { display: grid; }
}

.tv-listing { padding: 44px 0 clamp(64px, 8vw, 104px); }

.tv-listing-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.tv-result-count { margin: 0; color: var(--tv-ink-soft); font-size: 14.5px; }

.tv-sort {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-r);
  background: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  outline: none;
}

.tv-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }

.tv-chips > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 2px;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  font-size: 12.5px;
  font-weight: 750;
}

.tv-listing-results.is-loading { opacity: .5; pointer-events: none; transition: opacity .2s var(--tv-ease); }

.listing-ajax-error {
  margin: 0 0 18px;
  padding: 13px 15px;
  border-radius: var(--tv-r);
  background: #FFF3CD;
  color: #664D03;
  border: 1px solid rgba(102, 77, 3, .18);
  font-weight: 750;
  font-size: 13.5px;
}

.tv-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 44px;
}

.tv-pagination a,
.tv-pagination span {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-r);
  font-weight: 750;
  font-size: 14px;
  color: var(--tv-ink);
  transition: border-color .2s var(--tv-ease), background .2s var(--tv-ease), color .2s var(--tv-ease);
}

.tv-pagination a:hover { border-color: var(--tv-ink); }

.tv-pagination a.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.tv-pagination span.disabled { color: #B6BCC9; }

/* =========================================================
   DETALHE — galeria em mosaico + trilho fixo
   ========================================================= */
.tv-detail { padding-top: calc(var(--tv-header-h) + 26px); }

.tv-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
  height: clamp(360px, 46vw, 560px);
  margin-bottom: 40px;
}

.tv-shot {
  position: relative;
  overflow: hidden;
  border-radius: var(--tv-r);
  border: 0;
  padding: 0;
  background: var(--tv-paper-soft);
  isolation: isolate;
}

.tv-shot:first-child { grid-row: span 2; }

/* a forma do mosaico acompanha quantas fotos existem — sem isso,
   imóvel com 2 ou 3 fotos deixa células vazias no grid */
.tv-gallery.is-single { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.tv-gallery.is-single .tv-shot:first-child { grid-row: span 1; }

.tv-gallery.has-1 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.tv-gallery.has-1 .tv-shot:first-child { grid-row: span 1; }

.tv-gallery.has-2 { grid-template-columns: 2fr 1fr; }

.tv-gallery.has-3 { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(3, minmax(0, 1fr)); }
.tv-gallery.has-3 .tv-shot:first-child { grid-row: span 3; }

.tv-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--tv-ease); }
.tv-shot:hover img { transform: scale(1.05); }

.tv-gallery-count {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 15px;
  border-radius: var(--tv-r);
  background: rgba(255, 255, 255, .94);
  color: var(--tv-ink);
  font-size: 13px;
  font-weight: 800;
}

/* miniaturas invisíveis: o JS público precisa delas para navegar
   a lightbox, mas o mosaico já mostra as 5 primeiras fotos */
.tv-thumb-pool { display: none; }

.tv-detail-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--tv-line);
}

.tv-detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.tv-detail-meta span,
.tv-detail-meta a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 2px;
  background: var(--tv-paper-soft);
  border: 1px solid var(--tv-line);
  font-size: 12.5px;
  font-weight: 750;
  color: var(--tv-ink-soft);
}

.tv-detail-price { text-align: right; flex: 0 0 auto; }
.tv-detail-price span { display: block; font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--tv-ink-soft); }

.tv-detail-price strong {
  display: block;
  margin: 4px 0 2px;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 850;
  letter-spacing: -.05em;
  line-height: 1;
  color: var(--brand-primary);
}

.tv-detail-price small { color: var(--tv-ink-soft); font-size: 12.5px; }

.tv-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 40px; align-items: start; }

.tv-block { margin-bottom: 40px; }

.tv-block > h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.025em;
}

.tv-block > h3 .site-icon { color: var(--brand-primary); }

/* Bordas nas proprias celulas (e nao gap sobre fundo colorido): assim
   uma ultima linha incompleta nao deixa um retangulo cinza sobrando. */
.tv-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  background: #fff;
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-r);
  overflow: hidden;
}

.tv-spec {
  padding: 16px 18px;
  border-right: 1px solid var(--tv-line);
  border-bottom: 1px solid var(--tv-line);
}
.tv-spec span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--tv-ink-soft); }
.tv-spec strong { display: block; margin-top: 5px; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }

.tv-prose { color: var(--tv-ink-soft); font-size: 16px; line-height: 1.78; }
.tv-prose p { margin: 0 0 14px; }
.tv-prose p:last-child { margin-bottom: 0; }
.tv-prose h2, .tv-prose h3, .tv-prose h4 { color: var(--tv-ink); margin: 22px 0 10px; letter-spacing: -.02em; }
.tv-prose ul, .tv-prose ol { margin: 0 0 14px; padding-left: 20px; }
.tv-prose a { color: var(--brand-primary); text-decoration: underline; }

.tv-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 11px; }

.tv-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 650;
  color: var(--tv-ink-soft);
}

.tv-features .bi {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  font-size: 13px;
  line-height: 1;
}

.tv-map { border-radius: var(--tv-r); overflow: hidden; border: 1px solid var(--tv-line); aspect-ratio: 16 / 8; }
.tv-map iframe { width: 100%; height: 100%; border: 0; display: block; }

.tv-rail-wrap { overflow: hidden; }

/* trilho lateral fixo */
.tv-aside { position: sticky; top: calc(var(--tv-header-h) + 22px); display: grid; gap: 18px; }

.tv-panel {
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-r);
  background: #fff;
  padding: 24px;
}

.tv-panel.is-dark { background: var(--tv-night); color: #fff; border-color: transparent; }
.tv-panel.is-dark .tv-panel-title { color: #fff; }
.tv-panel.is-dark p { color: rgba(255, 255, 255, .7); }

/* sem isto o botao fantasma fica com texto escuro sobre fundo escuro */
.tv-panel.is-dark .tv-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.tv-panel.is-dark .tv-btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.tv-panel-title { margin: 0 0 6px; font-size: 18px; font-weight: 800; letter-spacing: -.025em; }
.tv-panel p { margin: 0 0 18px; color: var(--tv-ink-soft); font-size: 14.5px; line-height: 1.6; }

.tv-form { display: grid; gap: 13px; }
.tv-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.tv-form-grid .tv-full { grid-column: 1 / -1; }

.tv-input-group { display: grid; gap: 6px; }

.tv-input-group > label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tv-ink-soft);
}

.tv-input-group input,
.tv-input-group select,
.tv-input-group textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-r);
  background: #fff;
  font: inherit;
  font-size: 14.5px;
  font-weight: 650;
  color: var(--tv-ink);
  outline: none;
  transition: border-color .2s var(--tv-ease), box-shadow .2s var(--tv-ease);
}

.tv-input-group textarea { min-height: 108px; resize: vertical; }

.tv-input-group input:focus,
.tv-input-group select:focus,
.tv-input-group textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-primary-soft);
}

.tv-panel.is-dark .tv-input-group > label { color: rgba(255, 255, 255, .55); }

.tv-panel.is-dark .tv-input-group input,
.tv-panel.is-dark .tv-input-group textarea {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .16);
  color: #fff;
}

.tv-panel.is-dark .tv-input-group input::placeholder,
.tv-panel.is-dark .tv-input-group textarea::placeholder { color: rgba(255, 255, 255, .4); }

.tv-note { margin: 0; font-size: 12.5px; color: var(--tv-ink-soft); line-height: 1.55; }
.tv-note a { color: var(--brand-primary); text-decoration: underline; }
.tv-panel.is-dark .tv-note { color: rgba(255, 255, 255, .55); }

.tv-form .tv-btn, .tv-form .tv-btn-ghost, .tv-form .tv-btn-light { width: 100%; }

.site-lead-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

.site-lead-feedback {
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: var(--tv-r);
  font-weight: 750;
  font-size: 14px;
  line-height: 1.5;
}

.site-lead-feedback.success { background: var(--brand-primary-soft); color: var(--brand-primary); }
.site-lead-feedback.error { background: #FFF3CD; color: #664D03; }

.tv-share { display: flex; gap: 8px; flex-wrap: wrap; }

/* =========================================================
   CONTATO — split, sem banner
   ========================================================= */
.tv-contact { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }

.tv-contact-copy {
  padding: calc(var(--tv-header-h) + 56px) clamp(28px, 4vw, 64px) 64px
           max(var(--tv-gutter), calc((100vw - var(--tv-container)) / 2));
}

.tv-contact-list { display: grid; gap: 12px; margin-top: 30px; }

.tv-contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-r);
  transition: border-color .2s var(--tv-ease), transform .2s var(--tv-ease);
}

.tv-contact-item:hover { border-color: var(--brand-primary); transform: translateX(3px); }

.tv-contact-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: var(--tv-r);
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
}

/* Escopo no <div> de propósito: `.tv-contact-item span` pegaria também o
   .tv-contact-icon (que é um span) e o display:block dele derrubava o
   grid que centraliza o ícone. */
.tv-contact-item > div > span { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--tv-ink-soft); }
.tv-contact-item > div > strong { display: block; margin-top: 2px; font-size: 15.5px; font-weight: 750; overflow-wrap: anywhere; }

.tv-contact-form { background: var(--tv-paper-soft); padding: calc(var(--tv-header-h) + 56px) max(var(--tv-gutter), calc((100vw - var(--tv-container)) / 2)) 64px clamp(28px, 4vw, 64px); }

.tv-contact-map { height: 320px; border-top: 1px solid var(--tv-line); }
.tv-contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.tv-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(6, 8, 12, .94);
}

.tv-lightbox.open { display: flex; }
.tv-lightbox-content { position: relative; max-width: 94vw; max-height: 88vh; }
.tv-lightbox img { max-width: 94vw; max-height: 88vh; width: auto; height: auto; border-radius: var(--tv-r); }

.tv-lb-btn {
  position: absolute;
  z-index: 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  transition: background .2s var(--tv-ease);
}

.tv-lb-btn:hover { background: rgba(255, 255, 255, .2); }
.tv-lb-close { top: 26px; right: 26px; }
.tv-lb-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.tv-lb-next { right: 26px; top: 50%; transform: translateY(-50%); }

.tv-offline { background: #FFF3CD; color: #5C4300; padding: 10px 18px; text-align: center; font-weight: 800; font-size: 13px; }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 1180px) {
  .tv-detail-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
  .tv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tv-footer-top,
  .tv-footer.has-portals .tv-footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

@media (max-width: 1024px) {
  .tv-nav { display: none; }
  .tv-burger { display: inline-flex; }
  .tv-header-inner { grid-template-columns: auto 1fr; }
  .tv-header-end { justify-content: flex-end; }

  .tv-search-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tv-field { border-bottom: 1px solid var(--tv-line); }
  .tv-search-go { grid-column: 1 / -1; min-height: 54px; }
  .tv-search-extra.open { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .tv-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 260px; }
  .tv-mosaic > .tv-card:first-child { grid-column: span 2; grid-row: span 1; }

  .tv-about { grid-template-columns: 1fr; }
  .tv-about-copy { padding: 64px var(--tv-gutter); }
  .tv-about-media { min-height: 400px; }
  .tv-about-stamp { left: 24px; bottom: 24px; }

  .tv-detail-grid { grid-template-columns: 1fr; }
  .tv-aside { position: static; }

  .tv-contact { grid-template-columns: 1fr; }
  .tv-contact-copy { padding: calc(var(--tv-header-h) + 48px) var(--tv-gutter) 44px; }
  .tv-contact-form { padding: 44px var(--tv-gutter) 56px; }

  .tv-gallery { grid-template-columns: 1fr 1fr; height: auto; grid-auto-rows: 190px; }
  .tv-shot:first-child { grid-column: span 2; grid-row: span 2; }
  .tv-shot:nth-child(n+4) { display: none; }
}

@media (max-width: 720px) {
  :root { --tv-gutter: 18px; --tv-header-h: 68px; }

  .tv-header-cta {
    width: 44px;
    min-width: 44px;
    padding: 0;
    justify-content: center;
    gap: 0;
    overflow: hidden;
    font-size: 0;
  }

  .tv-header-cta .site-icon { width: 20px; height: 20px; }

  .tv-hero { min-height: 92svh; }
  .tv-hero-inner { padding-bottom: 32px; }

  .tv-search-row,
  .tv-search-code { grid-template-columns: 1fr; }
  .tv-search-extra.open { grid-template-columns: 1fr; }
  .tv-search-tabs { overflow-x: auto; scrollbar-width: none; }
  .tv-search-tabs::-webkit-scrollbar { display: none; }

  .tv-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .tv-stat { padding: 24px 18px; }

  .tv-section-head { flex-direction: column; align-items: flex-start; gap: 18px; }

  .tv-mosaic { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .tv-mosaic > .tv-card:first-child { grid-column: span 1; }
  /* numa coluna só não existe card "menor": sem título, o imóvel ficaria
     sem nome nenhum, então ele volta */
  .tv-mosaic > .tv-card:not(:first-child) .tv-card-title { display: -webkit-box; }
  .tv-grid { grid-template-columns: 1fr; }
  .tv-grid .tv-card { min-height: 320px; }

  .tv-detail-top { flex-direction: column; align-items: flex-start; }
  .tv-detail-price { text-align: left; }

  .tv-footer-top,
  .tv-footer.has-portals .tv-footer-top { grid-template-columns: 1fr; }
  .tv-footer-bottom { flex-direction: column; align-items: flex-start; }

  .tv-listing-head { flex-direction: column; align-items: flex-start; }

  .tv-form-grid { grid-template-columns: 1fr; }

  .tv-lightbox { padding: 16px; }
  .tv-lb-close { top: 12px; right: 12px; }
  .tv-lb-prev { left: 8px; }
  .tv-lb-next { right: 8px; }

  .tv-whatsapp { right: 16px; bottom: 16px; }

  .public-property-detail .tv-contact-float {
    position: fixed;
    right: 16px;
    bottom: 82px;
    z-index: 80;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #fff;
    box-shadow: 0 14px 30px rgba(11, 14, 20, .28);
  }
}

/* =========================================================
   COMPAT — utilitários .t5-* usados pelas páginas de
   lançamento (developments/hotsite), que são auto-estilizadas.
   Só o mínimo para elas herdarem a identidade desta engine.
   ========================================================= */
.t5-btn, .t5-btn-outline, .t5-btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--tv-r);
  font-weight: 750;
  font-size: 15px;
  transition: background .2s var(--tv-ease), color .2s var(--tv-ease), border-color .2s var(--tv-ease), transform .2s var(--tv-ease);
}

.t5-btn { background: var(--brand-primary); color: #fff; }
.t5-btn:hover { background: var(--brand-primary-dark); transform: translateY(-2px); }
.t5-btn-outline { background: transparent; color: var(--tv-ink); border-color: var(--tv-line); }
.t5-btn-outline:hover { border-color: var(--tv-ink); }
.t5-btn-sm { min-height: 42px; padding: 0 16px; font-size: 13.5px; background: var(--brand-primary); color: #fff; }
.t5-btn-sm:hover { background: var(--brand-primary-dark); }

.t5-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--brand-primary);
}

.t5-h1 { margin: 0; font-weight: 800; letter-spacing: -.045em; line-height: 1; font-size: clamp(38px, 5.4vw, 72px); }
.t5-h2 { margin: 0; font-weight: 800; letter-spacing: -.035em; line-height: 1.06; font-size: clamp(28px, 3.6vw, 46px); }
.t5-h3 { margin: 0; font-weight: 800; letter-spacing: -.025em; font-size: clamp(20px, 2.1vw, 26px); }
.t5-lead { margin: 14px 0 0; color: var(--tv-ink-soft); font-size: 16.5px; line-height: 1.68; }

.t5-field { display: grid; gap: 6px; }
.t5-field > label { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--tv-ink-soft); }

.t5-field input,
.t5-field select,
.t5-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-r);
  background: #fff;
  font: inherit;
  font-weight: 650;
  color: var(--tv-ink);
  outline: none;
}

.t5-field textarea { min-height: 108px; resize: vertical; }
.t5-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.t5-form-grid .t5-full { grid-column: 1 / -1; }
.t5-form-note { margin: 14px 0 0; font-size: 12.5px; color: var(--tv-ink-soft); }
.t5-form-note a { color: var(--brand-primary); text-decoration: underline; }

.t5-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; }

.t5-pagination a,
.t5-pagination span {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-r);
  font-weight: 750;
  font-size: 14px;
}

.t5-pagination a.active { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.t5-pagination span.disabled { color: #B6BCC9; }

.t5-check-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 11px; }
.t5-check-list li { display: flex; align-items: flex-start; gap: 11px; font-weight: 650; color: var(--tv-ink-soft); }
.t5-check-list li::before { content: ""; flex: 0 0 19px; width: 19px; height: 19px; margin-top: 3px; border-radius: 50%; background: var(--brand-primary-soft); border: 2px solid var(--brand-primary); }

.t5-feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 11px; }
.t5-feature-list li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 650; color: var(--tv-ink-soft); }

.t5-empty, .t5-empty-launches {
  grid-column: 1 / -1;
  padding: 48px 30px;
  text-align: center;
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-r);
  background: #fff;
  color: var(--tv-ink-soft);
}

.t5-empty strong, .t5-empty-launches strong { display: block; margin-bottom: 8px; font-size: 21px; color: var(--tv-ink); }

.t5-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 32px; }
.t5-filter-end { display: flex; gap: 8px; }
.t5-sort-select { min-height: 42px; padding: 0 14px; border: 1px solid var(--tv-line); border-radius: var(--tv-r); background: #fff; font: inherit; font-weight: 700; font-size: 13.5px; }
.t5-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.t5-listing-results.is-loading { opacity: .5; pointer-events: none; }
.t5-active-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.t5-active-filters > span { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border-radius: 2px; background: var(--brand-primary-soft); color: var(--brand-primary); font-size: 12.5px; font-weight: 750; }
.t5-photo-watermark { position: absolute; z-index: 2; background-image: var(--site-watermark-logo); background-repeat: no-repeat; background-position: center; background-size: contain; pointer-events: none; }
.t5-listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.t5-cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

@media (max-width: 1024px) {
  .t5-listing-grid, .t5-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t5-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .t5-listing-grid, .t5-cards-grid { grid-template-columns: 1fr; }
  .t5-section-head { flex-direction: column; align-items: flex-start; }
}

/* Atalhos de busca da home */
.tv-stats-inner { align-items: stretch; }
.tv-quick-link { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 122px; color: #fff; text-decoration: none; transition: background .22s ease, transform .22s ease; }
.tv-quick-link:hover { background: color-mix(in srgb, var(--brand-primary) 28%, var(--tv-night)); transform: translateY(-3px); }
.tv-quick-icon { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: var(--brand-primary); }
.tv-quick-icon .site-icon { width: 23px; height: 23px; }
.tv-quick-copy { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.tv-quick-copy strong { display: block; color: #fff; font-size: 15px; letter-spacing: 0; line-height: 1.15; }
.tv-quick-copy small { display: block; color: rgba(255,255,255,.58); font-size: 11px; line-height: 1.4; }
.tv-quick-arrow { justify-self: end; color: var(--brand-primary); font-size: 20px; transition: transform .2s ease; }
.tv-quick-link:hover .tv-quick-arrow { transform: translateX(4px); }
@media (max-width: 720px) {
  .tv-stats-inner { grid-template-columns: 1fr; }
  .tv-quick-link { min-height: 108px; padding: 20px 16px; }
  .tv-quick-icon { width: 42px; height: 42px; }
}

/* =========================================================
   HOTSITE — indicadores separados
   O CSS do hotsite solda os quatro numa peca so (gap:1px sobre um fundo
   cinza, virando fio divisorio). Aqui eles viram cartoes soltos.
   ========================================================= */
.t5-hotsite-stats-grid {
  gap: 14px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.t5-hotsite-stat {
  border: 1px solid var(--tv-line);
  border-radius: var(--tv-r);
  box-shadow: var(--shadow-sm);
}
