/* ==========================================================================
   LG Carniel - tema wc_imobi (layout modernizado)
   Mobile first. Sem frameworks. Não depende de imagens de fundo nem de fontes de ícones.

   Sumário
   1. Base e variáveis        7. Cartão do imóvel          13. Páginas de formulário
   2. Utilitários            8. Listagens e paginação     14. Ficha do imóvel
   3. Avisos do sistema      9. Chamadas e institucional  15. Rodapé e WhatsApp
   4. Botões                10. Vitrines e abas           16. Acessibilidade
   5. Cabeçalho e menu      11. Empresa
   6. Hero e busca          12. 404
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700&family=Figtree:wght@400;500;600&display=swap');

/* 1. BASE E VARIÁVEIS ----------------------------------------------------- */
:root {
    --bg: #f6f6f4;
    --surface: #ffffff;
    --fg: #23262b;
    --muted: #5e5e5e;
    --line: #e3e3df;
    --brand: #fe8f01;          /* laranja da marca (mantido) */
    --brand-hover: #ee7f00;
    --brand-text: #a84a00;     /* laranja escuro para TEXTO sobre fundo claro (contraste 5,7:1) */
    --ink: #23262b;
    --on-ink: #f4f4f1;
    --wa: #0f7a3c;             /* verde de WhatsApp com contraste para texto branco */
    --wa-hover: #0b6630;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(35, 38, 43, .06), 0 8px 24px rgba(35, 38, 43, .08);
    --font-body: 'Figtree', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
    --gutter: 16px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* O index.php raiz injeta "* { font-family: SITE_FONT }"; "body *" tem especificidade maior e vence. */
body, body * { font-family: var(--font-body); }
body h1, body h2, body h3, body h4, body .display { font-family: var(--font-display); }

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-size: 16px;
    line-height: 1.55;
    overflow-x: hidden;
}

img, picture, video, svg { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; color: var(--fg); }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }
.ico { flex: none; vertical-align: middle; }

.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* 2. UTILITÁRIOS (nomes antigos mantidos porque o PHP e o JS ainda os usam) */
.red { color: #b3261e; }
.pointer { cursor: pointer; }
.none { display: none; }
.clearfix::after { content: ""; display: table; clear: both; }
.sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff;
    padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 8px; }

/* 3. AVISOS DO SISTEMA (usados pelo scripts.js e pelo Work Control) -------- */
.trigger {
    display: block; width: 100%; padding: 12px 14px; margin: 0 0 16px;
    border-radius: 10px; border-left: 4px solid var(--ink); background: #ececec; color: var(--fg);
    font-size: 15px; cursor: pointer;
}
.trigger p { margin: 6px 0 0; }
.trigger_success { background: #e6f6ef; color: #0b5a37; border-color: #0f7a3c; }
.trigger_error { background: #fdecee; color: #8a1626; border-color: #d1243b; }
.trigger_alert { background: #fff4e0; color: #6b3a00; border-color: var(--brand); }
.trigger_info { background: #e8f3fc; color: #0b4a78; border-color: #0e96e5; }
.trigger_none { margin-bottom: 0; }

/* 4. BOTÕES --------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 22px; border-radius: 10px; border: 1.5px solid transparent;
    font-weight: 600; font-size: 16px; line-height: 1; cursor: pointer; white-space: nowrap;
    transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-brand { background: var(--brand); color: var(--ink); }
.btn-brand:hover { background: var(--brand-hover); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: #000; }
.btn-line { background: transparent; border-color: var(--fg); color: var(--fg); }
.btn-line:hover { background: var(--fg); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-block { width: 100%; }

/* 5. CABEÇALHO E MENU ----------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--surface); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { display: block; height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { padding: 10px 12px; border-radius: 8px; font-weight: 500; font-size: 15px; }
.nav a:hover { background: var(--bg); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--brand-text); font-weight: 600; }
.bar-cta { display: flex; align-items: center; gap: 12px; flex: none; }
.bar-phone { font-weight: 600; font-size: 15px; display: none; }
.menu-toggle {
    display: none; margin-left: auto; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
    border: 1.5px solid var(--line); border-radius: 10px; background: transparent; cursor: pointer; font-weight: 600;
}

@media (min-width: 1100px) { .bar-phone { display: inline; } }

@media (max-width: 899px) {
    .menu-toggle { display: inline-flex; }
    .bar-cta { display: none; }
    /* Só esconde o menu quando o JS está ativo; sem JS ele aparece empilhado. */
    .js .nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface);
        border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch;
        padding: 8px var(--gutter) 16px; box-shadow: var(--shadow);
    }
    .js .nav.is-open { display: flex; }
    .nav { flex-wrap: wrap; }
    .js .nav a { padding: 14px 8px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
    .nav .nav-wa { margin-top: 12px; }
}
@media (min-width: 900px) { .nav .nav-wa { display: none; } }

/* 6. HERO E BUSCA --------------------------------------------------------- */
.hero { position: relative; background: var(--ink); }
.hero.plain {
    padding: 44px 0 36px;
    background: linear-gradient(160deg, #23262b 0%, #3a2a12 140%);
}
.slides { position: relative; aspect-ratio: 2000 / 640; max-height: 520px; overflow: hidden; background: #2a2d33; }
.slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .6s ease; }
.slide.is-active, .slides:not(.js) .slide:first-child { opacity: 1; pointer-events: auto; }
.slide a, .slide img { display: block; width: 100%; height: 100%; }
.slide img { object-fit: cover; }
.slide-text {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 0 28px;
    background: linear-gradient(0deg, rgba(0, 0, 0, .65), transparent); color: #fff;
}
.slide-text h2 { color: #fff; font-size: clamp(22px, 3.4vw, 38px); }
.slide-text p { margin: 6px 0 0; max-width: 60ch; }
.slide-dots { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: none; gap: 8px; z-index: 3; }
.slides.js .slide-dots { display: flex; }
.slide-dots button {
    width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer;
}
.slide-dots button[aria-current="true"] { background: var(--brand); border-color: var(--brand); }

.finder-wrap { position: relative; z-index: 4; padding-block: 16px 0; }
.hero.has-slides .finder-wrap { margin-top: 0; padding-bottom: 0; }
.finder-card {
    background: var(--surface); border-radius: 16px; padding: 20px; box-shadow: var(--shadow);
}
.finder-title { font-size: clamp(22px, 3vw, 32px); margin-bottom: 4px; }
.finder-sub { color: var(--muted); margin: 0 0 16px; }
.finder-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; }
.finder-grid .btn { grid-column: 1 / -1; min-height: 48px; }
.fld { display: grid; gap: 4px; min-width: 0; }
.fld > span { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fld select, .fld input {
    height: 48px; width: 100%; min-width: 0; border: 1.5px solid #c9c9c4; border-radius: 10px;
    background: var(--bg); padding: 0 12px; font-size: 16px; color: var(--fg);
}
.fld select:focus, .fld input:focus { border-color: var(--ink); background: #fff; }
.codesearch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.codesearch input { height: 40px; border: 1.5px solid #c9c9c4; border-radius: 10px; padding: 0 12px; width: 180px; max-width: 100%; background: #fff; }
.codesearch button { height: 40px; border-radius: 10px; border: 1.5px solid var(--fg); background: transparent; padding: 0 14px; cursor: pointer; font-weight: 600; }
.codesearch button:hover { background: var(--fg); color: #fff; }

@media (min-width: 900px) {
    .finder-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) auto; }
    .finder-grid .btn { grid-column: auto; }
    .hero.has-slides .finder-wrap { margin-top: -56px; }
    .finder-card { padding: 24px; }
}

/* Barra de busca compacta das páginas internas */
.finder-bar { background: var(--surface); border-bottom: 1px solid var(--line); }
.finder-bar .wrap { padding-block: 10px; }
.finder-toggle {
    display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 0 14px;
    background: transparent; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 600; cursor: pointer;
}
.finder-bar .finder-panel { padding-top: 12px; }
.finder-bar .finder-card { padding: 0; box-shadow: none; border-radius: 0; background: transparent; }
.finder-bar .codesearch { margin-top: 10px; }
.js .finder-bar .finder-panel { display: none; }
.js .finder-bar.is-open .finder-panel { display: block; }
@media (min-width: 900px) {
    .finder-toggle { display: none; }
    .js .finder-bar .finder-panel { display: block; padding-top: 0; }
    .finder-bar .wrap { display: flex; align-items: end; gap: 16px; padding-block: 14px; }
    .finder-bar .finder-panel { flex: 1; min-width: 0; }
    .finder-bar .codesearch { margin-top: 0; flex: none; flex-wrap: nowrap; }
    .finder-bar .codesearch label { display: none; }
    .finder-bar .codesearch input { width: 150px; }
}

/* 7. CARTÃO DO IMÓVEL ----------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card {
    position: relative; display: flex; flex-direction: column; min-width: 0;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card[hidden] { display: none; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: #e9e9e5; }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-noimg { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); font-size: 14px; }
.badges { position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 1; }
.badge {
    padding: 4px 8px; border-radius: 6px; background: var(--ink); color: var(--on-ink);
    font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.badge-hot { background: var(--brand); color: var(--ink); }
.fav {
    position: absolute; right: 10px; top: 10px; z-index: 2; display: grid; place-items: center;
    width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--ink); cursor: pointer;
}
.fav:hover { background: #fff; }
.fav[aria-pressed="true"] { background: var(--brand); }
.fav[aria-pressed="true"] svg { fill: currentColor; }
.card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 14px 16px 16px; }
.card-loc { font-size: 13px; font-weight: 500; color: var(--muted); }
.card-title { font-size: 18px; }
.card-title a:hover { text-decoration: underline; }
/* o link do título cobre o cartão inteiro */
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.card-pitch {
    margin: 0; font-size: 14px; color: var(--muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.price { font-family: var(--font-display); font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--font-body); font-weight: 500; font-size: 14px; color: var(--muted); }
.price-ask { font-size: 18px; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: auto; padding-top: 4px; font-size: 14px; font-variant-numeric: tabular-nums; }
.facts span { display: inline-flex; align-items: center; gap: 5px; }
.facts svg { color: var(--muted); }
.card-actions { position: relative; z-index: 2; display: flex; gap: 8px; margin-top: 8px; }
.card-actions .btn { min-height: 42px; padding: 0 14px; font-size: 14px; }
.card-actions .btn-line { flex: 1; }

/* 8. LISTAGENS E PAGINAÇÃO ------------------------------------------------ */
.page { padding: 28px 0 8px; }
.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.page-head h1 { font-size: clamp(26px, 3.6vw, 38px); }
.page-head .lead { margin: 6px 0 0; color: var(--muted); }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sort select { height: 42px; border: 1.5px solid #c9c9c4; border-radius: 10px; background: #fff; padding: 0 10px; color: var(--fg); }
.pager { display: flex; justify-content: center; margin: 32px 0 8px; }
.pager #pagination, .pager #pagination ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none !important; float: none; border: 0; background: none; justify-content: center; }
.pager #pagination li {
    float: none; margin: 0; padding: 0; list-style: none !important; border: 0; background: none;
}
.pager #pagination li a, .pager #pagination > a, .pager #pagination li > span {
    display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px;
    border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); font-weight: 600; font-size: 15px;
    text-decoration: none !important;
}
.pager #pagination li a:hover { border-color: var(--fg); color: var(--fg) !important; }
.pager #pagination .active, .pager #pagination .active a, .pager #pagination li.ativo a { background: var(--brand); border-color: var(--brand); color: var(--ink) !important; }
.empty {
    background: var(--surface); border: 1px dashed #c9c9c4; border-radius: var(--radius); padding: 36px 20px; text-align: center;
}
.empty h2 { font-size: 22px; margin-bottom: 8px; }
.empty p { color: var(--muted); max-width: 52ch; margin: 0 auto 18px; }
.empty .row-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* 9. CHAMADAS E INSTITUCIONAL -------------------------------------------- */
.cta-band { display: grid; gap: 16px; margin-top: 56px; }
.cta-box { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 26px; border-radius: 16px; }
.cta-box h2 { font-size: clamp(21px, 2.4vw, 26px); }
.cta-box p { margin: 0 0 6px; max-width: 38ch; }
.cta-box.a { background: var(--brand); color: var(--ink); }
.cta-box.a .btn { background: var(--ink); color: var(--on-ink); }
.cta-box.b { background: var(--surface); border: 1px solid var(--line); }
.cta-box.c { background: var(--ink); color: var(--on-ink); }
.cta-box.c h2 { color: #fff; }
@media (min-width: 800px) { .cta-band { grid-template-columns: repeat(3, 1fr); } }

.about { display: grid; gap: 28px; margin-top: 56px; align-items: center; }
.about h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 12px; }
.about p { color: var(--muted); max-width: 58ch; }
.seals { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.seal { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 14px; font-size: 13px; color: var(--muted); }
.seal b { display: block; font-size: 15px; color: var(--fg); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat b { display: block; font-family: var(--font-display); font-size: 36px; line-height: 1; }
.stat span { font-size: 14px; color: var(--muted); }
@media (min-width: 860px) { .about { grid-template-columns: 1.15fr 1fr; gap: 40px; } }

/* 10. VITRINES E ABAS ----------------------------------------------------- */
.block { padding-top: 52px; }
.block-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.block-head h2 { font-size: clamp(24px, 3.2vw, 34px); }
.block-head p { margin: 6px 0 0; color: var(--muted); max-width: 54ch; }
.tabs { display: inline-flex; gap: 4px; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.tabs button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--brand); color: var(--ink); }
.more { display: flex; justify-content: center; margin-top: 24px; }

/* 11. EMPRESA ------------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose p { color: #3a3d42; }
.company { display: grid; gap: 28px; align-items: start; }
.company-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.company-card h2 { font-size: 22px; margin-bottom: 12px; }
@media (min-width: 860px) { .company { grid-template-columns: 1.4fr 1fr; gap: 40px; } }

/* 12. 404 ----------------------------------------------------------------- */
.nf { text-align: center; padding: 20px 0 32px; }
.nf h1 { font-size: clamp(26px, 3.6vw, 38px); }
.nf p { color: var(--muted); }

/* 13. PÁGINAS DE FORMULÁRIO ---------------------------------------------- */
.form-layout { display: grid; gap: 24px; align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.grp { border: 0; margin: 0 0 8px; padding: 0; min-width: 0; }
.grp legend { padding: 0; margin-bottom: 14px; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.grp + .grp { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.fields { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.f { display: grid; gap: 5px; min-width: 0; }
.f label { font-size: 14px; font-weight: 600; }
.f .req { color: #b3261e; text-decoration: none; }
.f input, .f select, .f textarea {
    width: 100%; min-width: 0; min-height: 48px; padding: 0 12px; border: 1.5px solid #c9c9c4; border-radius: 10px; background: #fff; font-size: 16px;
}
.f textarea { min-height: 120px; padding: 10px 12px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--ink); }
.f input:user-invalid, .f select:user-invalid, .f textarea:user-invalid { border-color: #d1243b; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--ink); }
.consent a { text-decoration: underline; }
.form-actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.trigger-box { margin-top: 14px; }
.trigger-box:empty { margin: 0; }
.form_load { display: none; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.spin { width: 18px; height: 18px; border: 3px solid #d6d6d1; border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.contact-card { background: var(--ink); color: var(--on-ink); border-radius: 16px; padding: 24px; display: grid; gap: 18px; }
.contact-card h2 { color: #fff; font-size: 20px; }
.contact-card dl { margin: 0; display: grid; gap: 14px; }
.contact-card dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #b9b9b3; }
.contact-card dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
@media (min-width: 640px) {
    .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .f.full { grid-column: 1 / -1; }
    .form-card { padding: 28px; }
}
@media (min-width: 960px) { .form-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; } .contact-card { position: sticky; top: 92px; } }

/* 14. FICHA DO IMÓVEL ----------------------------------------------------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 0 10px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--fg); }
.ficha { display: grid; gap: 28px; padding-bottom: 16px; }
.ficha-main { min-width: 0; }

.gallery { position: relative; }
.g-track {
    display: flex; list-style: none; aspect-ratio: 16 / 10; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; background: #e9e9e5; border-radius: 16px;
}
.g-track::-webkit-scrollbar { display: none; }
.g-item { flex: 0 0 100%; scroll-snap-align: center; }
.g-item button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.g-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.g-nav {
    position: absolute; top: calc(50% - 22px); z-index: 2; display: none; place-items: center; width: 44px; height: 44px;
    border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--ink); cursor: pointer; box-shadow: var(--shadow);
}
.js .g-nav { display: grid; }
.g-prev { left: 12px; }
.g-next { right: 12px; }
.g-count {
    position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px;
    background: rgba(15, 17, 19, .74); color: #fff; font-size: 13px; font-variant-numeric: tabular-nums;
}
.g-thumbs { display: flex; gap: 8px; margin: 10px 0 0; padding: 0 0 4px; list-style: none; overflow-x: auto; }
.g-thumbs button {
    flex: 0 0 96px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 10px; background: #e9e9e5; overflow: hidden; cursor: pointer;
}
.g-thumbs button[aria-current="true"] { border-color: var(--brand); }
.g-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.g-empty { display: grid; place-items: center; aspect-ratio: 16 / 10; background: #e9e9e5; border-radius: 16px; color: var(--muted); }

.lightbox { width: min(1100px, 96vw); max-height: 96vh; padding: 0; border: 0; border-radius: 14px; background: #0f1113; color: #fff; overflow: hidden; }
.lightbox::backdrop { background: rgba(0, 0, 0, .82); }
.lightbox img { display: block; width: 100%; max-height: 90vh; object-fit: contain; }
.lb-btn {
    position: absolute; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px;
    border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--ink); cursor: pointer;
}
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: calc(50% - 24px); }
.lb-next { right: 12px; top: calc(50% - 24px); }

.head { display: grid; gap: 6px; margin-top: 22px; }
.head .ref { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-text); }
.head h1 { font-size: clamp(26px, 3.6vw, 38px); }
.head .where { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.strip {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; margin-top: 20px;
    background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.strip div { padding: 14px 16px; background: var(--surface); }
.strip b { display: block; font-family: var(--font-display); font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.strip span { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sec { margin-top: 32px; }
.sec h2 { font-size: 22px; margin-bottom: 12px; }
.pitchbox { margin: 0; padding: 4px 0 4px 16px; border-left: 4px solid var(--brand); font-size: 18px; font-weight: 500; max-width: 62ch; }
.mapbox { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.mapbox iframe { display: block; width: 100%; height: 320px; border: 0; }
.mapbox p { margin: 0; padding: 10px 14px; font-size: 13px; color: var(--muted); }
.mapbox a { text-decoration: underline; }

.aside { display: grid; gap: 16px; align-content: start; }
.pricebox { display: grid; gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.pricebox .price { font-size: 32px; }
.pricebox .note { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.broker { display: flex; align-items: center; gap: 12px; }
.avatar { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: var(--ink); font-family: var(--font-display); font-weight: 700; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.broker b { display: block; }
.broker span { font-size: 13px; color: var(--muted); }
.lead-form { display: grid; gap: 12px; }
.lead-form .f textarea { min-height: 96px; }
.lead-form .consent { margin-top: 4px; font-size: 13px; }
.lead-form .form-actions { margin-top: 4px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.similar { margin-top: 44px; }
.mbar { display: none; }

@media (min-width: 980px) {
    .ficha { grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; }
    .aside { position: sticky; top: 92px; }
}
@media (max-width: 979px) {
    .mbar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; gap: 8px;
        padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
        background: var(--surface); border-top: 1px solid var(--line);
    }
    .mbar .btn { flex: 1; }
    body.is-ficha { padding-bottom: 76px; }
    body.is-ficha .wa-fab { display: none; }
}

/* 15. RODAPÉ E WHATSAPP --------------------------------------------------- */
.news { margin-top: 64px; background: var(--brand); color: var(--ink); }
.news .wrap { display: grid; gap: 18px; padding-block: 32px; align-items: center; }
.news h2 { font-size: clamp(22px, 2.6vw, 28px); }
.news p { margin: 4px 0 0; }
.news .trigger-box { margin-top: 10px; }
.news-form .fields { gap: 10px; }
.news-form input[type="text"], .news-form input[type="email"] { background: #fff; }
.news .consent { color: #3a2a12; margin-top: 10px; }
.news .consent input { accent-color: var(--ink); }
.news .form-actions { margin-top: 12px; }
.news .btn-brand { background: var(--ink); color: var(--on-ink); }
.news .btn-brand:hover { background: #000; }
.news .form_load { color: var(--ink); }
.news .spin { border-color: rgba(35, 38, 43, .3); border-top-color: var(--ink); }
@media (min-width: 860px) { .news .wrap { grid-template-columns: 1fr 1.3fr; gap: 40px; } }

.site-footer { background: var(--ink); color: #d7d7d2; padding: 40px 0 0; }
.site-footer a { color: #d7d7d2; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-cols { display: grid; gap: 28px; grid-template-columns: 1fr; }
.foot-cols h3 { margin-bottom: 10px; font-size: 15px; color: var(--brand); letter-spacing: .02em; }
.foot-cols ul { list-style: none; display: grid; gap: 8px; font-size: 15px; }
.foot-brand img { display: block; height: 46px; width: auto; margin-bottom: 12px; }
.foot-brand p { max-width: 36ch; margin: 0 0 12px; font-size: 14px; }
.foot-contact { font-style: normal; display: grid; gap: 8px; font-size: 15px; }
.foot-contact span { display: flex; gap: 8px; align-items: flex-start; }
.foot-contact .ico { margin-top: 3px; color: var(--brand); }
.social { display: flex; gap: 10px; margin-top: 4px; }
.social a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1.5px solid #4a4e55; border-radius: 10px; font-weight: 600; font-size: 14px; }
.social a:hover { border-color: #fff; text-decoration: none; }
.foot-bottom { margin-top: 32px; padding: 18px 0 24px; border-top: 1px solid #3a3d42; font-size: 13px; color: #a4a7ac; display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }
@media (min-width: 640px) { .foot-cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .foot-cols { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }

.wa-fab {
    position: fixed; right: 16px; bottom: 16px; z-index: 65; display: inline-flex; align-items: center; gap: 8px;
    min-height: 52px; padding: 0 18px; border-radius: 999px; background: var(--wa); color: #fff; font-weight: 600;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.wa-fab:hover { background: var(--wa-hover); text-decoration: none; }
@media (max-width: 520px) { .wa-fab span { display: none; } .wa-fab { padding: 0; width: 52px; justify-content: center; } }

/* 16. ACESSIBILIDADE ------------------------------------------------------ */
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.site-footer :focus-visible, .contact-card :focus-visible { outline-color: #fff; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 17. COMPLEMENTOS ------------------------------------------------------- */
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.nf .row-btns { justify-content: center; margin-top: 18px; }
.sugestoes { margin: 36px 0 16px; font-size: 22px; }
.f .hint { font-size: 13px; color: var(--muted); }
abbr.req { color: #b3261e; text-decoration: none; border: 0; }
.company-card p { color: var(--muted); }
.company-card .row-btns { margin-top: 14px; }
.prose h2 { font-size: 24px; margin-bottom: 10px; }

/* 18. COMPATIBILIDADE com páginas que ainda usam o HTML antigo
   (empreendimentos, realizadas e conta não foram redesenhadas nesta etapa). */
.content2, .content1, .content-page, .content-det { max-width: 1180px; margin: 0 auto; padding: 28px var(--gutter, 16px); }
.content2 .row::after, .clearfix::after { content: ""; display: table; clear: both; }
.mf_title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.title2, .title, .title_page { font-family: var(--font-display); font-size: 26px; margin: 0 0 16px; }
.box-empre, .box-real { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 16px; }
.box-empre img, .box-real img { max-width: 100%; height: auto; border-radius: 10px; }
.legenda { font-size: 13px; color: var(--muted); }

[hidden] { display: none !important; }
