/* Imóveis de Luxo Vale do Sereno — tokens derivados do Manual de Marca V1.0 (julho 2026).
   Paleta oficial: Verde Sereno #1C342E, Branco Mineral #F5F4EF, Cinza Gelo #D8DEDC, Prata Acetinado #A7AFAC.
   Tons derivados (--green-deep, --ink-2, --ink-3, --on-green-muted) existem só para hover e texto
   secundário e são verificados por scripts/contrast_check.py (config/site.yaml: contrast_pairs).
   Prata nunca em texto pequeno (2,03:1 sobre branco mineral). Nenhuma cor fora desta lista. */
:root {
  --green: #1C342E;          /* Verde Sereno: texto, botões, painéis escuros, rodapé */
  --green-deep: #11231F;     /* hover de botão e link sobre fundo claro (14,85:1) */
  --mineral: #F5F4EF;        /* Branco Mineral: fundo da página */
  --white: #FFFFFF;          /* cartões e fichas */
  --ice: #D8DEDC;            /* Cinza Gelo: linhas, painéis suaves, fundo de mídia */
  --silver: #A7AFAC;         /* Prata: filetes e símbolos; texto só >= 24px sobre verde (5,93:1) */
  --ink: #1C342E;            /* texto corrido = verde sobre fundo claro (12,07:1 em --mineral) */
  --ink-2: #3F4F4A;          /* secundário: 7,85:1 em --mineral, 6,34:1 em --ice */
  --ink-3: #4D5754;          /* legendas: 6,79:1 em --mineral */
  --line: #D8DEDC;
  --on-green: #F5F4EF;       /* texto sobre verde (12,07:1) */
  --on-green-muted: #C9D3CF; /* texto secundário sobre verde (8,67:1) */
  --focus: #1C342E;
  --online: #25D366;         /* só o ponto de status "online" do widget; nunca texto */

  --font: "Manrope", Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-display: var(--font);  /* títulos: Manrope Medium 500 (Light 300 só em peças grandes) */
  --font-body: var(--font);     /* corpo: Regular 400; rótulos: Bold 700 em caixa alta */

  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-22: 1.375rem;
  --fs-28: 1.75rem;
  --fs-36: 2.25rem;
  --fs-48: 3rem;
  --fs-64: 4rem;

  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-6: 24px;
  --sp-8: 32px; --sp-12: 48px; --sp-16: 64px; --sp-24: 96px; --sp-32: 128px;

  --container: 1200px;
  --prose: 720px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(28, 52, 46, 0.06), 0 8px 24px rgba(28, 52, 46, 0.08);
  --ease: 180ms ease-out;
}

/* Imóveis de Luxo Vale do Sereno — folha principal (Manual de Marca V1.0). Depende de tokens.css (concatenado no build). */
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--mineral);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 720px) { body { font-size: var(--fs-18); } }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}
h1 { font-size: var(--fs-36); letter-spacing: -0.015em; }
h2 { font-size: var(--fs-28); margin-top: var(--sp-8); }
h3 { font-size: var(--fs-22); margin-top: var(--sp-6); }
h4 { font-size: var(--fs-18); font-weight: 700; }
@media (min-width: 720px) {
  h1 { font-size: var(--fs-48); }
  h2 { font-size: var(--fs-36); }
  h3 { font-size: var(--fs-28); }
}
p, ul, ol, table, figure, dl { margin: 0 0 var(--sp-4); }
a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--green-deep); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}
small, .small { font-size: var(--fs-14); }
.muted { color: var(--ink-2); }
.eyebrow {
  display: block; font-size: var(--fs-14); font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-2); margin-bottom: var(--sp-2);
}
.lead { font-size: var(--fs-22); line-height: 1.45; color: var(--ink-2); max-width: var(--prose); }
.wrap { width: min(100% - 2 * var(--sp-4), var(--container)); margin-inline: auto; }
@media (min-width: 720px) { .wrap { width: min(100% - 2 * var(--sp-8), var(--container)); } }
.prose { max-width: var(--prose); }
.prose > p, .prose > ul, .prose > ol { max-width: 72ch; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: var(--sp-1); }
.prose blockquote { margin: var(--sp-6) 0; padding-left: var(--sp-4); border-left: 1px solid var(--silver); color: var(--ink-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-8) 0; }
.prose img { border-radius: var(--radius); }
.section { padding: var(--sp-12) 0; }
.section + .section { padding-top: 0; }
@media (min-width: 720px) { .section { padding: var(--sp-16) 0; } }
.section-head { max-width: var(--prose); margin-bottom: var(--sp-6); }
.section-head p { color: var(--ink-2); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.nowrap { white-space: nowrap; }

/* ---------- skip link, header, nav ---------- */
.skip { position: absolute; left: var(--sp-4); top: -100px; background: var(--green); color: var(--on-green); padding: var(--sp-2) var(--sp-4); z-index: 100; }
.skip:focus { top: var(--sp-4); }
/* altura do cabeçalho: âncoras não caem sob ele; heroes com foto passam por baixo dele */
:root { --header-h: 65px; --hero-pull: 0px; }
@media (min-width: 1180px) { :root { --header-h: 77px; } }
html { scroll-padding-top: calc(var(--header-h) + var(--sp-4)); }
/* cabeçalho: degradê verde profundo com brilho prata suave; sobre uma hero com foto nasce
   transparente e ganha o fundo ao rolar (sem suporte ou com movimento reduzido: sólido) */
header.site { position: sticky; top: 0; z-index: 50; color: var(--on-green); isolation: isolate; border-bottom: 1px solid rgba(167, 175, 172, 0.28); }
header.site::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 140% at 18% 0%, rgba(201, 211, 207, 0.1) 0%, rgba(201, 211, 207, 0) 70%),
    linear-gradient(100deg, var(--green-deep) 0%, var(--green) 55%, var(--green-deep) 100%);
  box-shadow: 0 6px 24px rgba(17, 35, 31, 0.18);
}
@supports (animation-timeline: scroll()) {
  :root:has(#main > .home-hero:first-child, #main > .hero:first-child) { --hero-pull: var(--header-h); }
  :root:has(#main > .home-hero:first-child, #main > .hero:first-child) header.site { border-bottom-color: rgba(245, 244, 239, 0.16); }
  :root:has(#main > .home-hero:first-child, #main > .hero:first-child) header.site::before {
    animation: vds-header-bg linear both; animation-timeline: scroll(root); animation-range: 0px 160px;
  }
  @keyframes vds-header-bg { from { opacity: 0; } to { opacity: 1; } }
}
#main > .home-hero:first-child, #main > .hero:first-child { margin-top: calc(-1 * var(--hero-pull)); }
header.site :focus-visible { outline-color: var(--on-green); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 64px; }
@media (min-width: 1180px) { .header-row { min-height: 76px; } }
.logo { display: inline-flex; align-items: center; gap: var(--sp-3); text-decoration: none; color: var(--on-green); }
.logo:hover { color: var(--on-green); text-decoration: none; }
.logo-mark { display: block; width: 34px; height: 34px; flex: none; background: url("/assets/brand/simbolo-claro.png") center / contain no-repeat; }
@media (min-width: 720px) { .logo-mark { width: 38px; height: 38px; } }
/* marca nominativa: duas linhas, caixa alta, discreta */
.logo-text { font-weight: 500; font-size: 9.5px; line-height: 1.5; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-green); }
.logo-text span { display: block; white-space: nowrap; }
.logo-text span + span { font-weight: 600; }
@media (min-width: 720px) { .logo-text { font-size: 10px; } }
details.menu { position: relative; margin-left: auto; }
.primary-desk { display: none; }
details.menu > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: var(--sp-2);
  min-height: 44px; padding: 0 var(--sp-4); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-green); border: 1px solid rgba(245, 244, 239, 0.35); border-radius: 999px;
}
details.menu > summary::-webkit-details-marker { display: none; }
nav.primary ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
nav.primary a {
  display: flex; align-items: center; padding: var(--sp-3) var(--sp-4); min-height: 44px;
  color: var(--on-green); text-decoration: none; font-size: 15px; font-weight: 500; letter-spacing: 0.01em; text-transform: none;
  transition: color var(--ease), box-shadow var(--ease);
}
nav.primary a:hover { color: var(--white); text-decoration: none; box-shadow: inset 0 -1px 0 rgba(245, 244, 239, 0.5); }
nav.primary a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -1px 0 var(--silver); }
/* .site eleva a especificidade acima de .btn (declarado depois) */
.site .header-cta { display: none; }
@media (min-width: 720px) {
  .site .header-cta {
    display: inline-flex; min-height: 40px; padding: 0 var(--sp-4); border-radius: 999px; font-size: 12px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; background: var(--mineral); color: var(--green); border-color: var(--mineral);
  }
  .site .header-cta:hover { background: var(--white); border-color: var(--white); color: var(--green-deep); }
  .site .header-cta svg { width: 16px; height: 16px; fill: currentColor; }
}
@media (max-width: 1179.98px) {
  details.menu > nav.primary {
    position: absolute; right: 0; top: calc(100% + var(--sp-3)); min-width: 260px; padding: var(--sp-2) 0;
    background: var(--green-deep); border: 1px solid rgba(167, 175, 172, 0.3); border-radius: var(--radius); box-shadow: var(--shadow);
  }
}
@media (min-width: 1180px) {
  details.menu { display: none; }
  .primary-desk { display: block; }
  nav.primary ul { flex-direction: row; gap: 0; }
  nav.primary a { padding: var(--sp-2) var(--sp-3); font-size: 14px; letter-spacing: 0.01em; white-space: nowrap; }
}
@media (min-width: 1180px) and (max-width: 1299.98px) { nav.primary a { padding-inline: var(--sp-2); font-size: 13px; } }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 48px; padding: var(--sp-3) var(--sp-6); border-radius: 999px;
  font-family: var(--font); font-weight: 700; font-size: 13px; line-height: 1.2; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.btn-primary { background: var(--green); color: var(--on-green); border-color: var(--green); }
.btn-primary:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--on-green); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--ice); color: var(--green-deep); border-color: var(--green-deep); }
.btn-light { background: var(--mineral); color: var(--green); border-color: var(--mineral); }
.btn-light:hover { background: var(--ice); color: var(--green-deep); border-color: var(--ice); }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }

/* ---------- breadcrumb ---------- */
nav.breadcrumb { font-size: var(--fs-14); padding: var(--sp-3) 0; color: var(--ink-2); }
nav.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-1) 0; }
/* separador no fim de cada item: se a trilha quebrar, a linha nova começa rente à margem, sem "›" solto */
nav.breadcrumb li:not(:last-child)::after { content: "›"; margin: 0 var(--sp-3); color: var(--ink-3); }
nav.breadcrumb a { color: var(--ink-2); }
nav.breadcrumb span[aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- hero editorial (coleções, bairros, guias) ---------- */
/* foto de cena + véu lateral: texto à esquerda, foto livre à direita; topo escurecido para o cabeçalho */
.hero { position: relative; z-index: 2; isolation: isolate; background: var(--green-deep); color: var(--on-green); }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media picture, .home-hero-media picture { display: block; width: 100%; height: 100%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17, 35, 31, 0.62) 0%, rgba(17, 35, 31, 0.45) 30%, rgba(17, 35, 31, 0.72) 65%, rgba(17, 35, 31, 0.88) 100%);
}
@media (min-width: 900px) {
  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(17, 35, 31, 0.6) 0%, rgba(17, 35, 31, 0) 22%),
      linear-gradient(0deg, rgba(17, 35, 31, 0.6) 0%, rgba(17, 35, 31, 0) 50%),
      linear-gradient(90deg, rgba(17, 35, 31, 0.86) 0%, rgba(17, 35, 31, 0.7) 40%, rgba(17, 35, 31, 0.28) 64%, rgba(17, 35, 31, 0.06) 100%);
  }
}
.hero-body { position: relative; padding: calc(var(--hero-pull) + var(--sp-12)) 0 var(--sp-12); }
.hero-text { max-width: 640px; }
.hero-body .eyebrow { display: flex; align-items: center; gap: var(--sp-3); color: var(--on-green-muted); font-size: 12px; letter-spacing: 0.22em; font-weight: 600; text-transform: uppercase; }
.hero-body .eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--silver); flex: none; }
.hero-body h1 { color: var(--on-green); font-size: 2rem; font-weight: 300; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: var(--sp-4); text-shadow: 0 1px 24px rgba(17, 35, 31, 0.4); }
.hero-body .lead { color: var(--on-green-muted); font-size: var(--fs-16); line-height: 1.6; max-width: 560px; }
.hero-body .btn-row { margin-top: var(--sp-6); }
.hero .btn-row .btn { min-height: 46px; }
.hero .btn-row .btn-primary { background: var(--mineral); color: var(--green); border-color: var(--mineral); }
.hero .btn-row .btn-primary:hover { background: var(--white); color: var(--green-deep); border-color: var(--white); }
.hero .btn-row .btn-outline { background: transparent; color: var(--on-green); border-color: rgba(245, 244, 239, 0.45); }
.hero .btn-row .btn-outline:hover { background: rgba(245, 244, 239, 0.1); color: var(--on-green); border-color: var(--on-green); }
.hero :focus-visible { outline-color: var(--on-green); }
.hero-search { margin-top: var(--sp-8); }
@media (min-width: 720px) {
  .hero-body {
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: calc(var(--hero-pull) + var(--sp-16)) 0 var(--sp-16); min-height: calc(var(--hero-pull) + clamp(440px, 64vh, 600px));
  }
  .hero-body h1 { font-size: 2.25rem; }
  .hero-body .lead { font-size: var(--fs-18); }
}
@media (min-width: 1100px) { .hero-body h1 { font-size: 2.75rem; } }

/* ---------- hero da home: foto livre, frase da marca e barra de busca ---------- */
/* sem overflow:hidden: a lista de sugestões precisa passar da borda da hero */
.home-hero { position: relative; z-index: 2; isolation: isolate; background: var(--green-deep); color: var(--on-green); }
.home-hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.home-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
/* véu só nas bordas: topo para o cabeçalho e o título, base para a busca; o centro da foto fica livre */
.home-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  /* o título fica sobre o skyline claro da foto: a faixa de 20% a 46% segura o contraste (mediana >= 4,5:1 de 360 a 1920 px) */
  background: linear-gradient(180deg, rgba(17, 35, 31, 0.74) 0%, rgba(17, 35, 31, 0.6) 20%, rgba(17, 35, 31, 0.4) 34%,
    rgba(17, 35, 31, 0.12) 46%, rgba(17, 35, 31, 0) 56%, rgba(17, 35, 31, 0) 60%, rgba(17, 35, 31, 0.5) 100%);
}
.home-hero-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: var(--sp-12); text-align: center;
  min-height: clamp(560px, 88vh, 820px); min-height: clamp(560px, 88svh, 820px);
  padding: calc(var(--hero-pull) + var(--sp-12)) 0 var(--sp-8);
}
.home-hero-top { max-width: 820px; }
.home-hero-bottom { width: 100%; }
.home-subtitle {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-3); margin: 0 0 var(--sp-4);
  font-size: 11px; line-height: 1.5; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--on-green); text-shadow: 0 1px 8px rgba(17, 35, 31, 0.6);
}
.home-headline {
  margin: 0; font-size: 2rem; line-height: 1.15; font-weight: 300; letter-spacing: -0.01em;
  color: var(--on-green); text-shadow: 0 1px 24px rgba(17, 35, 31, 0.35);
}
.home-headline span { display: block; }
.home-headline span + span { font-weight: 400; }
@media (min-width: 720px) {
  .home-subtitle { font-size: 12px; }
  .home-subtitle::before, .home-subtitle::after { content: ""; width: 32px; height: 1px; background: rgba(245, 244, 239, 0.6); flex: none; }
  .home-headline { font-size: 2.5rem; }
}
@media (min-width: 1100px) { .home-headline { font-size: 2.75rem; } }

/* ---------- busca: barra única + filtros recolhíveis ---------- */
.search-box { width: 100%; max-width: 760px; text-align: left; }
.home-hero .search-box { max-width: 680px; margin-inline: auto; }
/* z-index: o backdrop-filter faz da barra um contexto de empilhamento; sem ele, os chips de exemplo (também com
   backdrop-filter, depois no DOM) pintam por cima da lista de sugestões, que mora dentro da barra */
.search-bar {
  position: relative; z-index: 3; display: flex; align-items: center; gap: var(--sp-1);
  min-height: 60px; padding: 6px 6px 6px var(--sp-4); border-radius: 999px;
  background: rgba(245, 244, 239, 0.95); box-shadow: 0 10px 40px rgba(17, 35, 31, 0.28);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.search-bar:focus-within { box-shadow: 0 10px 40px rgba(17, 35, 31, 0.28), 0 0 0 2px var(--green); }
.search-icon { width: 20px; height: 20px; fill: var(--ink-3); flex: none; }
.search-field { position: static; flex: 1; min-width: 0; }
.search-field input {
  width: 100%; min-height: 48px; padding: 0 var(--sp-2); border: 0; border-radius: 0; background: transparent;
  color: var(--green); font-family: var(--font); font-size: var(--fs-16); -webkit-appearance: none; appearance: none;
}
.search-field input:focus-visible { outline: 0; }
.search-field input::placeholder { color: var(--ink-3); opacity: 1; }
/* "x" de limpar na cor do texto do campo (o padrão do Chrome é azul, fora da marca) */
.search-field input::-webkit-search-cancel-button {
  -webkit-appearance: none; appearance: none; width: 14px; height: 14px; cursor: pointer; opacity: .7;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 2l10 10M12 2L2 12' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 2l10 10M12 2L2 12' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.search-field input::-webkit-search-cancel-button:hover { opacity: 1; }
/* campo vazio: o Chrome reserva o espaço do "x" mesmo invisível e corta o exemplo no celular */
.search-field input:placeholder-shown::-webkit-search-cancel-button { display: none; }
.search-filters-btn, .search-submit {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); flex: none; cursor: pointer;
  min-height: 48px; min-width: 48px; border-radius: 999px; font-family: var(--font); font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.search-filters-btn { padding: 0 var(--sp-3); background: transparent; color: var(--green); border: 1px solid var(--ice); }
.search-filters-btn:hover, .search-filters-btn[aria-expanded="true"] { background: var(--ice); border-color: var(--ice); }
.search-filters-btn svg, .search-submit svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.search-submit { padding: 0 var(--sp-3); background: var(--green); color: var(--on-green); border: 1px solid var(--green); }
.search-submit:hover { background: var(--green-deep); border-color: var(--green-deep); }
.search-bar button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
/* celular: só o ícone aparece; o texto fica para o leitor de tela (display:none tiraria o nome do botão) */
.search-filters-btn span, .search-submit-label {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* celular: o exemplo do campo cabe inteiro a partir de 360 px; o campo continua em 16 px (sem zoom no iOS) */
@media (max-width: 559px) {
  .search-field input { padding: 0 var(--sp-1); }
  .search-field input::placeholder { font-size: 15px; }
}
@media (min-width: 560px) {
  .search-filters-btn span, .search-submit-label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
  .search-filters-btn { padding: 0 var(--sp-4); }
  .search-submit { padding: 0 var(--sp-6); }
}
.search-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + var(--sp-2)); z-index: 30; max-height: 420px; overflow-y: auto;
  background: var(--white); color: var(--green); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.search-suggest[hidden] { display: none; }
.search-option { color: var(--ink); text-decoration: none; display: flex; gap: var(--sp-3); align-items: center; padding: var(--sp-2) var(--sp-3); cursor: pointer; border-bottom: 1px solid var(--line); }
.search-option:last-child { border-bottom: 0; }
.search-option[aria-selected="true"], .search-option:hover { background: var(--mineral); }
.search-option img { width: 64px; height: 44px; object-fit: cover; border-radius: 2px; flex: none; background: var(--ice); }
.search-option strong { display: block; font-size: var(--fs-16); font-weight: 600; line-height: 1.3; }
.search-option span { display: block; font-size: var(--fs-14); color: var(--ink-2); }
.search-option-all strong { font-weight: 700; }
.search-option:hover strong, .search-option[aria-selected="true"] strong { text-decoration: underline; }
.search-status { margin: var(--sp-2) var(--sp-4) 0; font-size: var(--fs-14); color: var(--on-green); text-shadow: 0 1px 6px rgba(17, 35, 31, 0.6); }
.search-status:empty { display: none; }
.search-filters { margin-top: var(--sp-3); padding: var(--sp-4); border-radius: 16px; background: rgba(245, 244, 239, 0.97); box-shadow: 0 10px 40px rgba(17, 35, 31, 0.28); }
@media (min-width: 720px) { .search-filters { padding: var(--sp-6); } }
.search-filters[hidden] { display: none; }
.search-filters :focus-visible { outline-color: var(--green); }
.search-grid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .search-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.search-select label { display: block; margin-bottom: var(--sp-1); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.search-select select {
  width: 100%; min-height: 46px; padding: 0 var(--sp-3); border: 1px solid var(--ice); border-radius: var(--radius);
  background: var(--white); color: var(--green); font-family: var(--font); font-size: var(--fs-16);
}
.search-go { display: flex; align-items: flex-end; }
.search-go .btn { width: 100%; min-height: 46px; padding-inline: var(--sp-3); white-space: nowrap; border-radius: 999px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
/* sugestões em pílulas: uma linha que rola no celular, quebra centralizada no desktop */
.search-examples {
  display: flex; align-items: center; gap: var(--sp-2); margin: var(--sp-4) 0 0; padding: 2px 0;
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; color: var(--on-green);
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.search-examples::-webkit-scrollbar { display: none; }
.search-examples span { flex: none; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; text-shadow: 0 1px 6px rgba(17, 35, 31, 0.6); }
.search-examples a {
  flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 999px;
  font-size: 13px; line-height: 1.2; white-space: nowrap; text-decoration: none; color: var(--on-green);
  background: rgba(17, 35, 31, 0.35); border: 1px solid rgba(245, 244, 239, 0.35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background var(--ease), border-color var(--ease);
}
.search-examples a:hover { background: rgba(245, 244, 239, 0.15); border-color: rgba(245, 244, 239, 0.6); color: var(--white); text-decoration: none; }
.search-examples a:focus-visible { outline-color: var(--on-green); }
@media (min-width: 720px) {
  .search-examples { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .home-hero .search-examples { justify-content: center; }
}
.home-hero .search-bar, .hero .search-bar {
  min-height: 56px; background: rgba(17, 35, 31, 0.38); border: 1px solid rgba(245, 244, 239, 0.42);
  box-shadow: 0 6px 24px rgba(17, 35, 31, 0.22);
  -webkit-backdrop-filter: blur(14px) saturate(120%); backdrop-filter: blur(14px) saturate(120%);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .home-hero .search-bar, .hero .search-bar { background: rgba(17, 35, 31, 0.72); }
}
.home-hero .search-bar:focus-within, .hero .search-bar:focus-within { box-shadow: 0 6px 24px rgba(17, 35, 31, 0.22), 0 0 0 2px rgba(245, 244, 239, 0.7); }
.home-hero .search-icon, .hero .search-icon { fill: var(--on-green-muted); }
.home-hero .search-field input, .hero .search-field input { color: var(--on-green); }
.home-hero .search-field input::placeholder, .hero .search-field input::placeholder { color: var(--on-green-muted); }
.home-hero .search-filters-btn, .hero .search-filters-btn { color: var(--on-green); border-color: rgba(245, 244, 239, 0.35); }
.home-hero .search-filters-btn:hover, .home-hero .search-filters-btn[aria-expanded="true"],
.hero .search-filters-btn:hover, .hero .search-filters-btn[aria-expanded="true"] { background: rgba(245, 244, 239, 0.14); border-color: rgba(245, 244, 239, 0.6); }
.home-hero .search-submit, .hero .search-submit { background: var(--mineral); color: var(--green); border-color: var(--mineral); }
.home-hero .search-submit:hover, .hero .search-submit:hover { background: var(--white); border-color: var(--white); color: var(--green-deep); }
.home-hero .search-bar button:focus-visible, .hero .search-bar button:focus-visible { outline-color: var(--on-green); }
/* busca por voz: o botão só aparece onde o navegador reconhece fala (voz.js tira o hidden) */
.search-voice {
  appearance: none; position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; cursor: pointer;
  width: 48px; height: 48px; padding: 0; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--green);
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.search-voice[hidden] { display: none; }
.search-voice:hover { background: var(--ice); }
.search-voice svg { display: block; width: 20px; height: 20px; fill: currentColor; }
.search-voice-mic { display: block; }
.search-voice-stop { display: none; width: 14px; height: 14px; border-radius: 2px; background: currentColor; }
.search-voice[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--on-green); }
.search-voice[aria-pressed="true"] .search-voice-mic { display: none; }
.search-voice[aria-pressed="true"] .search-voice-stop { display: block; }
.search-voice[data-voice-state="listening"]::after {
  content: ""; position: absolute; inset: -5px; border-radius: inherit; border: 2px solid var(--green); opacity: 0;
  animation: search-voice-pulse 1.4s ease-out infinite;
}
@keyframes search-voice-pulse { from { transform: scale(0.9); opacity: 0.8; } to { transform: scale(1.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .search-voice[data-voice-state="listening"]::after { animation: none; transform: none; opacity: 0.8; }
}
.home-hero .search-voice, .hero .search-voice { color: var(--on-green); }
.home-hero .search-voice:hover, .hero .search-voice:hover { background: rgba(245, 244, 239, 0.14); }
.home-hero .search-voice[aria-pressed="true"], .hero .search-voice[aria-pressed="true"] { background: var(--mineral); border-color: var(--mineral); color: var(--green); }
.home-hero .search-voice[data-voice-state="listening"]::after, .hero .search-voice[data-voice-state="listening"]::after { border-color: var(--on-green); }
/* celular: com o microfone na barra, a lupa decorativa sai para o campo continuar legível */
@media (max-width: 559px) {
  .search-bar.is-voice-supported { padding-left: var(--sp-3); gap: 2px; }
  .search-bar.is-voice-supported .search-icon { display: none; }
}
/* até 389 px os três botões tomam ~140 px; o exemplo do campo desce a 14 px para caber inteiro a partir de 360 px */
@media (max-width: 389px) {
  .search-bar.is-voice-supported { padding-left: var(--sp-2); }
  .search-bar.is-voice-supported .search-voice { width: 44px; }
  .search-bar.is-voice-supported .search-field input::placeholder { font-size: 14px; }
}
.search-voice-help {
  margin: var(--sp-2) var(--sp-4) 0; font-size: 12px; line-height: 1.5; color: var(--on-green);
  text-shadow: 0 1px 6px rgba(17, 35, 31, 0.6);
}
.search-voice-help a { color: var(--on-green); text-decoration: underline; text-underline-offset: 2px; }
.search-voice-help a:hover { color: var(--white); }
.search-voice-help a:focus-visible { outline-color: var(--on-green); }
.search-voice-help[hidden] { display: none; }
.search-voice-retry {
  appearance: none; display: inline-flex; align-items: center; min-height: 36px; margin: var(--sp-2) var(--sp-4) 0; padding: 6px 16px;
  border-radius: 999px; font-family: var(--font); font-size: 13px; font-weight: 700; cursor: pointer; color: var(--on-green);
  background: rgba(17, 35, 31, 0.35); border: 1px solid rgba(245, 244, 239, 0.5);
  transition: background var(--ease), border-color var(--ease);
}
.search-voice-retry:hover { background: rgba(245, 244, 239, 0.15); border-color: rgba(245, 244, 239, 0.7); }
.search-voice-retry:focus-visible { outline: 2px solid var(--on-green); outline-offset: 2px; }
.search-voice-retry[hidden] { display: none; }
/* "Entendi:": o que a busca leu da frase, nas mesmas pílulas dos exemplos */
.search-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: var(--sp-2) var(--sp-4) 0; }
.search-chips[hidden] { display: none; }
.search-chips-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-green);
  text-shadow: 0 1px 6px rgba(17, 35, 31, 0.6);
}
.search-chip {
  display: inline-flex; align-items: center; min-height: 28px; padding: 4px 12px; border-radius: 999px; font-size: 13px; line-height: 1.2;
  color: var(--on-green); background: rgba(17, 35, 31, 0.35); border: 1px solid rgba(245, 244, 239, 0.35);
}
/* sugestões: grupo de bairros e condomínios antes dos imóveis */
.search-group { border-bottom: 1px solid var(--line); }
.search-group .search-option:last-child { border-bottom: 0; }
.search-group-title {
  display: block; padding: var(--sp-3) var(--sp-3) var(--sp-1); font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-2);
}
.search-entity { min-height: 48px; }
/* busca sobre fundo claro (hero sem foto) */
.search-results-status { font-weight: 600; margin-bottom: var(--sp-6); }
.search-results[hidden], [data-static-results][hidden] { display: none; }

/* hero sem foto (institucionais e páginas 2+): mesma faixa verde do cabeçalho, com brilho prata discreto */
.hero-plain {
  background:
    radial-gradient(70% 120% at 88% 0%, rgba(201, 211, 207, 0.16) 0%, rgba(201, 211, 207, 0) 60%),
    radial-gradient(50% 90% at 0% 100%, rgba(201, 211, 207, 0.07) 0%, rgba(201, 211, 207, 0) 70%),
    linear-gradient(100deg, var(--green-deep) 0%, var(--green) 55%, var(--green-deep) 100%);
  border-bottom: 1px solid rgba(167, 175, 172, 0.28);
}
.hero-plain > .wrap { padding-top: calc(var(--hero-pull) + var(--sp-12)); padding-bottom: var(--sp-12); }
.hero-plain .eyebrow { display: flex; align-items: center; gap: var(--sp-3); color: var(--on-green-muted); font-size: 12px; letter-spacing: 0.22em; font-weight: 600; text-transform: uppercase; }
.hero-plain .eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--silver); flex: none; }
.hero-plain h1 { color: var(--on-green); font-weight: 300; font-size: 2rem; line-height: 1.15; max-width: 820px; }
.hero-plain .lead { color: var(--on-green-muted); margin-top: var(--sp-2); font-size: var(--fs-18); max-width: 640px; }
@media (min-width: 720px) {
  .hero-plain > .wrap { padding-top: calc(var(--hero-pull) + var(--sp-16)); padding-bottom: var(--sp-16); }
  .hero-plain h1 { font-size: 2.625rem; }
}

/* ---------- dobra "o que é": texto + retrato do corretor ---------- */
.intro-grid { display: grid; gap: var(--sp-8); align-items: start; }
@media (min-width: 900px) { .intro-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--sp-16); } }
.intro-text > .section-head:first-child h2 { margin-top: 0; }
.intro-cta { max-width: var(--prose); margin-top: var(--sp-6); padding-top: var(--sp-6); border-top: 1px solid var(--line); }
.intro-cta p { font-weight: 600; color: var(--ink); margin: 0 0 var(--sp-4); }
.intro-portrait { margin: 0; }
.intro-portrait picture, .intro-portrait img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.intro-portrait img { aspect-ratio: 2 / 3; object-fit: cover; background: var(--ice); box-shadow: var(--shadow); }
.intro-portrait figcaption { margin-top: var(--sp-3); padding-left: var(--sp-4); border-left: 1px solid var(--green); font-size: var(--fs-14); color: var(--ink-2); line-height: 1.5; }
.intro-portrait figcaption strong { display: block; color: var(--green); font-size: var(--fs-16); }
@media (max-width: 899.98px) { .intro-portrait { max-width: 360px; } }

/* ---------- grids e cards ---------- */
.grid { display: grid; gap: var(--sp-6); grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden; transition: box-shadow var(--ease);
}
.card:hover { box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 3 / 2; background: var(--ice); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: var(--sp-4) var(--sp-4) var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.card-body h3, .card-body h2 { font-size: var(--fs-22); margin: 0; }
.card-body h3 a, .card-body h2 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover, .card-body h2 a:hover { color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; }
.card-body h3 a::after, .card-body h2 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card-tag { font-size: var(--fs-14); color: var(--ink-2); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
/* o "·" fica no vão entre itens; no início de cada linha cai fora da caixa e é recortado */
.card-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); overflow: hidden; color: var(--ink-2); font-size: var(--fs-16); }
.card-meta li { position: relative; }
.card-meta li::before { content: "·"; position: absolute; left: calc(var(--sp-3) / -2); transform: translateX(-50%); color: var(--ink-3); }
.card-price { font-size: var(--fs-28); font-weight: 500; letter-spacing: -0.01em; color: var(--ink); margin-top: auto; padding-top: var(--sp-2); line-height: 1.1; }
/* em grade, a linha do R$/m² fica reservada para os preços alinharem entre cards */
@media (min-width: 720px) { .card-price { min-height: 64px; } }
.card-price small { display: block; font-size: var(--fs-14); font-weight: 400; color: var(--ink-2); margin-top: var(--sp-1); }
.card-code { font-size: var(--fs-14); color: var(--ink-3); font-weight: 600; }

/* ---------- ficha, tabelas, módulo m² ---------- */
table { border-collapse: collapse; width: 100%; font-size: var(--fs-16); }
caption { caption-side: bottom; text-align: left; font-size: var(--fs-14); color: var(--ink-2); padding-top: var(--sp-2); }
th, td { text-align: left; padding: var(--sp-3) var(--sp-3); border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; color: var(--ink-2); font-size: var(--fs-14); letter-spacing: 0.04em; text-transform: uppercase; }
tbody th { white-space: nowrap; text-transform: none; letter-spacing: 0; font-size: var(--fs-16); color: var(--ink); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: var(--sp-4); }
.table-wrap:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ficha { background: var(--white); border: 1px solid var(--line); padding: 0 var(--sp-4); overflow: hidden; }
/* cada par rótulo/valor fica num bloco; o grid organiza os blocos, nunca separa o rótulo do valor */
.ficha dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--sp-6); margin: -1px 0 0; }
.ficha dl > div { padding: var(--sp-4) 0; border-top: 1px solid var(--line); min-width: 0; }
@media (min-width: 720px) { .ficha { padding: 0 var(--sp-6); } .ficha dl { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ficha dt { font-size: 12px; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }
.ficha dd { margin: var(--sp-1) 0 0; font-size: var(--fs-18); font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.ficha dl > div.wide { grid-column: 1 / -1; }
.ficha-itens { list-style: none; margin: 0; padding: 0; }
.ficha-itens li + li { margin-top: var(--sp-1); }
.price-box { background: var(--white); border: 1px solid var(--line); padding: var(--sp-6); margin-bottom: var(--sp-6); }
.price-box .price { font-size: var(--fs-36); font-weight: 500; line-height: 1; letter-spacing: -0.01em; }
.price-box .aside-title { font-size: var(--fs-22); font-weight: 500; line-height: 1.3; letter-spacing: -0.005em; color: var(--green); margin: 0; }
.price-box .per-m2 { color: var(--ink-2); margin-top: var(--sp-2); }
.price-box .btn-row { flex-direction: column; }
.price-box .btn-row .btn { width: 100%; }
.price-box .costs { list-style: none; padding: 0; margin: var(--sp-3) 0 0; color: var(--ink-2); font-size: var(--fs-16); }
.m2 { background: var(--ice); padding: var(--sp-6); border-left: 1px solid var(--green); margin: var(--sp-6) 0; }
.m2 h2, .m2 h3 { margin-top: 0; }
/* números do módulo em grade regular: 2 por linha no celular, todos numa linha quando cabem */
.m2 .stat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4) var(--sp-6); margin: var(--sp-4) 0 var(--sp-6); }
@media (min-width: 720px) { .m2 .stat { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); } }
.m2 .stat div { min-width: 0; padding-top: var(--sp-3); border-top: 1px solid rgba(28, 52, 46, 0.18); }
.m2 .stat strong { display: block; font-size: var(--fs-22); font-weight: 500; color: var(--green); line-height: 1.2; white-space: nowrap; letter-spacing: -0.01em; }
.m2 .stat span { display: block; margin-top: var(--sp-1); font-size: var(--fs-14); line-height: 1.45; color: var(--ink-2); }
.m2 table { background: var(--white); }
.source-note { font-size: var(--fs-14); color: var(--ink-2); margin-top: var(--sp-3); }
.answer { background: var(--white); border: 1px solid var(--line); border-left: 1px solid var(--green); padding: var(--sp-4) var(--sp-6); margin: var(--sp-4) 0 var(--sp-6); max-width: var(--prose); }
.answer p:last-child { margin-bottom: 0; }
.answer:first-child { margin-top: 0; }
nav.breadcrumb + .section, nav.breadcrumb + .wrap.section { padding-top: var(--sp-6); }

/* ---------- FAQ ---------- */
.faq { max-width: var(--prose); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: var(--sp-4) 0; font-weight: 600; font-size: var(--fs-18); list-style: none; display: flex; justify-content: space-between; gap: var(--sp-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: var(--fs-22); line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 0 var(--sp-4); color: var(--ink-2); max-width: 70ch; }

/* ---------- CTA band, sticky bar ---------- */
.cta-band { background: var(--green); color: var(--on-green); padding: var(--sp-12) 0; border-top: 1px solid var(--silver); }
.cta-band h2 { color: var(--on-green); margin-top: 0; }
.cta-band p { color: var(--on-green); max-width: var(--prose); }
.cta-band .btn-primary { background: var(--mineral); color: var(--green); border-color: var(--mineral); }
.cta-band .btn-primary:hover { background: var(--ice); color: var(--green-deep); border-color: var(--ice); }
.cta-band .btn-outline { color: var(--on-green); border-color: var(--on-green-muted); }
.cta-band .btn-outline:hover { background: rgba(245, 244, 239, 0.1); color: var(--on-green); border-color: var(--on-green); }
.cta-band .creci { font-size: var(--fs-14); color: var(--on-green-muted); margin-top: var(--sp-4); }
.cta-band .btn { min-height: 48px; padding-inline: var(--sp-6); border-radius: 999px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.cta-band .btn svg { width: 18px; height: 18px; }
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 1fr;
  background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(28, 52, 46, 0.08);
  transform: translateY(100%); transition: transform var(--ease);
}
.sticky-bar.is-visible { transform: translateY(0); }
.sticky-bar a { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: 56px; text-decoration: none; font-weight: 600; font-size: var(--fs-14); color: var(--ink); }
.sticky-bar a svg { width: 18px; height: 18px; fill: currentColor; }
.sticky-bar a.wa { background: var(--green); color: var(--on-green); }
@media (min-width: 960px) { .sticky-bar { display: none; } }
body.has-sticky { padding-bottom: 56px; }
@media (min-width: 960px) { body.has-sticky { padding-bottom: 0; } }

/* ---------- formulário ---------- */
.form { background: var(--white); border: 1px solid var(--line); padding: var(--sp-6); max-width: 640px; }
.form h3 { font-size: var(--fs-22); font-weight: 500; line-height: 1.3; margin-top: 0; color: var(--green); }
.form .field { margin-bottom: var(--sp-4); }
.form label { display: block; font-size: var(--fs-16); font-weight: 600; color: var(--ink); margin-bottom: var(--sp-1); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid var(--ink-3); border-radius: var(--radius); padding: var(--sp-3); min-height: 48px;
}
.form textarea { min-height: 120px; resize: vertical; }
.form .consent { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-16); color: var(--ink-2); }
.form .consent input { width: 22px; height: 22px; min-height: 0; margin-top: 3px; flex: none; }
.form .purpose { font-size: var(--fs-14); color: var(--ink-2); margin: var(--sp-3) 0; }
.form .status { margin-top: var(--sp-3); font-weight: 600; }
.form .hp { position: absolute; left: -9999px; }

/* ---------- galeria / lightbox ---------- */
.gallery { display: grid; gap: var(--sp-2); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery a { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ice); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.lightbox { border: 0; padding: 0; background: rgba(17, 35, 31, 0.97); max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
.lightbox::backdrop { background: rgba(17, 35, 31, 0.9); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: var(--sp-3); padding: var(--sp-4); }
.lightbox img { max-height: 82vh; width: auto; max-width: 100%; object-fit: contain; }
.lightbox figcaption { color: var(--on-green); font-size: var(--fs-14); }
.lightbox .lb-close { position: absolute; top: var(--sp-3); right: var(--sp-3); }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev { left: var(--sp-3); }
.lightbox .lb-next { right: var(--sp-3); }

/* ---------- mapa ---------- */
.map { background: var(--ice); border: 1px solid var(--line); aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; position: relative; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map .map-load { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); text-align: center; padding: var(--sp-6); }

/* ---------- autor, chips, paginação, listas ---------- */
.author { display: flex; gap: var(--sp-4); align-items: flex-start; background: var(--white); border: 1px solid var(--line); padding: var(--sp-6); max-width: var(--prose); }
.author img, .author .avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; background: var(--ice); }
.author picture { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; }
.author picture img { width: 100%; height: 100%; }
.author p { margin-bottom: var(--sp-2); }
.author .creci { font-size: var(--fs-14); color: var(--ink-2); font-weight: 700; }
.chips { list-style: none; margin: 0 0 var(--sp-6); padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--sp-4); border: 1px solid var(--line); background: var(--white); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: var(--fs-16); }
.chips a:hover, .chips a[aria-current="page"] { border-color: var(--green); background: var(--ice); color: var(--green-deep); }
.pagination { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-8) 0 0; list-style: none; padding: 0; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 var(--sp-3); border: 1px solid var(--line); background: var(--white); text-decoration: none; color: var(--ink); }
.pagination span[aria-current] { background: var(--green); color: var(--on-green); border-color: var(--green); }
.list-links { list-style: none; padding: 0; margin: 0; columns: 1; }
@media (min-width: 720px) { .list-links { columns: 2; column-gap: var(--sp-8); } }
.list-links li { break-inside: avoid; padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); }
.list-links li span { color: var(--ink-2); font-size: var(--fs-14); display: block; }
.two-col { display: grid; gap: var(--sp-8); grid-template-columns: minmax(0, 1fr); }
.two-col > * { min-width: 0; }
/* a coluna de texto para na medida de leitura; a sobra vira respiro antes da lateral */
@media (min-width: 960px) { .two-col { grid-template-columns: minmax(0, var(--prose)) 360px; justify-content: space-between; align-items: start; } .two-col aside { position: sticky; top: 80px; } }
.toc { background: var(--white); border: 1px solid var(--line); padding: var(--sp-4) var(--sp-6); margin-bottom: var(--sp-6); max-width: var(--prose); }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { padding: 2px 0; }
.note { font-size: var(--fs-16); color: var(--ink-2); border-top: 1px solid var(--line); padding-top: var(--sp-3); }

/* ---------- rodapé ---------- */
footer.site {
  color: var(--on-green); padding: var(--sp-16) 0 var(--sp-24); font-size: 14px; line-height: 1.65;
  background:
    radial-gradient(ellipse 55% 70% at 88% 0%, rgba(201, 211, 207, 0.07) 0%, rgba(201, 211, 207, 0) 70%),
    linear-gradient(180deg, var(--green) 0%, var(--green-deep) 100%);
  border-top: 1px solid rgba(167, 175, 172, 0.35);
}
@media (min-width: 960px) { footer.site { padding-bottom: var(--sp-6); } }
footer.site a { color: var(--on-green-muted); text-decoration: none; transition: color var(--ease); }
footer.site a:hover { color: var(--white); text-decoration: none; }
footer.site :focus-visible { outline-color: var(--on-green); }
.footer-grid { display: grid; gap: var(--sp-8); grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.5fr 1.2fr 0.9fr 1fr; gap: var(--sp-12); } }
footer.site h2 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-green);
  margin: 0 0 var(--sp-4); padding-bottom: var(--sp-3); border-bottom: 1px solid rgba(167, 175, 172, 0.3);
}
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { padding: 4px 0; }
footer.site .brand-row { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
footer.site .brand-mark { display: block; width: 40px; height: 40px; flex: none; background: url("/assets/brand/simbolo-claro.png") center / contain no-repeat; }
footer.site .brand { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1.5; color: var(--on-green); }
footer.site .brand span { display: block; }
footer.site .brand span + span { font-weight: 700; }
footer.site .brand small { display: block; margin-top: var(--sp-2); font-size: 13px; letter-spacing: 0.02em; text-transform: none; font-weight: 400; color: var(--on-green-muted); }
footer.site p { color: var(--on-green-muted); margin-bottom: var(--sp-3); }
footer.site .footer-contact strong { color: var(--on-green); font-weight: 600; }
.footer-bottom {
  border-top: 1px solid rgba(167, 175, 172, 0.25); margin-top: var(--sp-8); padding-top: var(--sp-6);
  font-size: 12px; color: var(--on-green-muted); display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-6); justify-content: space-between;
}
.footer-bottom p { margin: 0; font-size: 12px; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-6); }
.footer-bottom li { padding: 0; }

/* ---------- widget de conversa (canto inferior direito) ---------- */
.chat-widget { position: fixed; right: var(--sp-4); bottom: var(--sp-4); z-index: 55; display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; color: var(--green); }
.chat-widget:hover { color: var(--green-deep); text-decoration: none; }
.chat-bubble {
  display: none; flex-direction: column; padding: var(--sp-2) var(--sp-4); border-radius: 14px 14px 2px 14px;
  background: var(--white); box-shadow: 0 8px 28px rgba(17, 35, 31, 0.18); border: 1px solid var(--line); line-height: 1.35;
}
.chat-bubble strong { font-size: 14px; font-weight: 700; color: var(--green); }
.chat-bubble span { font-size: 13px; color: var(--ink-2); }
.chat-avatar { position: relative; width: 60px; height: 60px; flex: none; }
.chat-avatar img {
  display: block; width: 60px; height: 60px; border-radius: 50%; object-fit: cover; background: var(--ice);
  border: 2px solid var(--white); box-shadow: 0 8px 24px rgba(17, 35, 31, 0.28);
}
.chat-online { position: absolute; right: 1px; bottom: 1px; width: 15px; height: 15px; border-radius: 50%; background: var(--online); border: 2px solid var(--white); }
.chat-wa { position: absolute; left: -4px; top: -4px; width: 24px; height: 24px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; border: 2px solid var(--white); }
.chat-wa svg { width: 13px; height: 13px; color: var(--on-green); fill: var(--on-green); }
.chat-widget:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 999px; }
body.has-sticky .chat-widget { bottom: calc(56px + var(--sp-3)); }
@media (min-width: 960px) {
  .chat-widget { right: var(--sp-6); bottom: var(--sp-6); }
  body.has-sticky .chat-widget { bottom: var(--sp-6); }
  .chat-bubble { display: flex; }
}
/* o pulso é um halo que cresce e some: só transform e opacity, que rodam na GPU
   (animar box-shadow repintava a página a cada quadro e pesava no celular) */
.chat-online::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: var(--online); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .chat-online::after { animation: vds-pulse 2.4s ease-out infinite; }
  @keyframes vds-pulse { 0% { transform: scale(1); opacity: 0.55; } 70% { transform: scale(1.85); opacity: 0; } 100% { transform: scale(1.85); opacity: 0; } }
}

.chat-widget.chat-compact .chat-bubble { display: none; }
@media (min-width: 960px) {
  .chat-widget.chat-compact:hover .chat-bubble, .chat-widget.chat-compact:focus-visible .chat-bubble { display: flex; }
}

/* ---------- 404 ---------- */
.page-404 { text-align: center; padding: var(--sp-24) 0; }

/* ---------- impressão ---------- */
@media print {
  header.site, footer.site, .sticky-bar, .chat-widget, .cta-band, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}

.page-404 .btn-row { justify-content: center; }


/* ---------- /entitymap/ (mapa de entidades) ---------- */
.em-intro { max-width: 960px; margin-bottom: var(--sp-12); }
.em-stats { display: grid; gap: var(--sp-4); grid-template-columns: repeat(2, minmax(0, 1fr)); margin: var(--sp-8) 0 0; }
@media (min-width: 640px) { .em-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.em-stats > div { background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--green); padding: var(--sp-4) var(--sp-4) var(--sp-3); }
.em-stats dt { font-size: var(--fs-14); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.em-stats dd { margin: var(--sp-1) 0 0; font-size: var(--fs-36); font-weight: 500; line-height: 1; letter-spacing: -0.01em; color: var(--green); }
.em-downloads { margin-top: var(--sp-6); }
.em-status { margin-top: var(--sp-4); font-size: var(--fs-14); color: var(--ink-2); }
.em-status code, .em-meta code, .em-types code, .em-howto code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.9em; background: var(--ice); padding: 1px 6px; border-radius: var(--radius); color: var(--ink); }
.em-layout { display: grid; gap: var(--sp-8); grid-template-columns: minmax(0, 1fr); }
.em-layout > * { min-width: 0; }
@media (min-width: 960px) {
  .em-layout { grid-template-columns: 300px minmax(0, 1fr); align-items: start; }
  .em-aside { position: sticky; top: 80px; max-height: calc(100vh - 96px); overflow: auto; }
}
.em-aside { background: var(--white); border: 1px solid var(--line); padding: var(--sp-6); }
.em-aside-title { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2); margin: var(--sp-6) 0 var(--sp-3); padding-bottom: var(--sp-2); border-bottom: 1px solid var(--line); }
.em-search label { display: block; font-size: var(--fs-14); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: var(--sp-2); }
.em-search input { width: 100%; min-height: 48px; padding: 0 var(--sp-4); border: 1px solid var(--silver); border-radius: var(--radius); background: var(--mineral); color: var(--green); font-family: var(--font); font-size: var(--fs-16); -webkit-appearance: none; appearance: none; }
.em-search input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.em-result { margin: var(--sp-2) 0 0; font-size: var(--fs-14); color: var(--ink-2); }
.em-groups ul, .em-types ul { list-style: none; margin: 0; padding: 0; }
.em-groups li + li, .em-types li + li { border-top: 1px solid var(--line); }
.em-groups a, .em-types li { display: flex; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-2) 0; text-decoration: none; color: var(--ink); font-size: var(--fs-16); }
.em-groups a:hover { color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; }
.em-groups a span, .em-types li > span:last-child { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.em-aside .note { margin-top: var(--sp-6); }
.em-howto { margin-bottom: var(--sp-12); }
.em-empty { background: var(--white); border: 1px solid var(--line); border-left: 2px solid var(--green); padding: var(--sp-4) var(--sp-6); color: var(--ink-2); }
.em-group { margin-bottom: var(--sp-12); }
.em-group > h2 { display: flex; align-items: baseline; gap: var(--sp-3); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--green); margin-bottom: var(--sp-6); }
.em-count { font-size: var(--fs-16); font-weight: 400; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.em-card { background: var(--white); border: 1px solid var(--line); padding: var(--sp-6); scroll-margin-top: 88px; }
.em-card + .em-card { margin-top: var(--sp-4); }
.em-card:target { border-color: var(--green); box-shadow: var(--shadow); }
.em-card h3 { font-size: var(--fs-22); margin: 0; }
.em-meta { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); margin: var(--sp-2) 0 0; font-size: var(--fs-14); color: var(--ink-2); }
.em-type { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); }
.em-desc { margin-top: var(--sp-3); max-width: 72ch; }
.em-links { list-style: none; margin: var(--sp-3) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); font-size: var(--fs-14); color: var(--ink-2); }
.em-rels { list-style: none; margin: var(--sp-4) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.em-rels li { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1); font-size: var(--fs-14); border: 1px solid var(--line); border-radius: 999px; padding: 4px var(--sp-3); background: var(--mineral); }
.em-rels small { color: var(--ink-2); }
.em-pred { font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 11px; color: var(--ink-2); }
.em-chunk { margin: var(--sp-4) 0 0; padding: var(--sp-3) var(--sp-4); border-left: 2px solid var(--green); background: var(--mineral); }
.em-chunk p { margin: 0; color: var(--ink); max-width: 72ch; }
.em-chunk cite { display: block; margin-top: var(--sp-2); font-style: normal; font-size: var(--fs-14); color: var(--ink-2); }
.em-more { margin-top: var(--sp-3); }
.em-more summary { cursor: pointer; font-size: var(--fs-14); font-weight: 600; color: var(--green); }
.em-more summary:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Selo de negócio fechado ("ALUGADO", "VENDIDO") sobre a primeira foto: contorno em SVG
   (scripts/selo_negocio.py), o anúncio continua no ar como na ILVS */
.deal-stamp { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(17, 35, 31, 0.16); pointer-events: none; }
.deal-stamp svg { width: 68%; height: auto; overflow: visible; fill: var(--mineral); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.42)) drop-shadow(0 6px 18px rgba(0, 0, 0, 0.32)); }
.deal-stamp-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.deal-stamp-hero { left: 54%; right: 4%; z-index: 1; background: none; }
.deal-stamp-hero svg { width: 100%; }
@media (max-width: 899px) { .deal-stamp-hero { display: none; } }
.answer .deal-note { margin: 0 0 var(--sp-3); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--line); font-weight: 600; color: var(--green); }
.price-box .deal-flag { margin: 0 0 var(--sp-2); font-size: var(--fs-14); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
