/* =========================================================
   TEMA 4 — Design moderno, warm, editorial
   ========================================================= */

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
    --cor-primaria: #1a1a2e;
    --cor-secundaria: #e8552d;
    --texto-primario: #1a1a2e;
    --cor-titulos: #1a1a2e;
    --cor-links: #e8552d;
    --cor-fundo: #f5f0eb;
    --cor-pagehead: #1a1a2e;
    --cor-botao: #e8552d;
    --cor-box: #1a1a2e;
    --cor-circulo: #e8552d;
    --cor-rodape: #1a1a2e;

    --bg-body: var(--cor-fundo, #f5f0eb);
    --bg-white: #ffffff;
    --bg-muted: #f0ebe5;

    --text-body: var(--texto-primario, #3a3a4a);
    --text-heading: var(--cor-titulos, #1a1a2e);
    --text-muted: #6b6b7b;
    --text-light: #ffffff;

    --accent: var(--cor-secundaria, #e8552d);
    --accent-hover: color-mix(in srgb, var(--accent) 85%, black);

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 50px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
    --shadow: 0 4px 16px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.1);

    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Plus Jakarta Sans', var(--font-body);

    --container: 1240px;
    --gutter: 16px;

    --header-h: 72px;
    --topbar-h: 0px;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-body);
    background: var(--bg-body);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cor-links, var(--accent)); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    line-height: 1.15;
    font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.15rem; }

.lead { font-size: 1.05rem; color: var(--text-muted); line-height: 1.7; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mb-0 { margin-bottom: 0 !important; }
.mb-16 { margin-bottom: 16px !important; }
.text-center { text-align: center; }

/* ---------- CONTAINER ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.container--narrow { max-width: 720px; }

/* ---------- EYEBROW (label / subtitle small) ---------- */
.eyebrow {
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.eyebrow--light { color: rgba(255,255,255,.75); }
.eyebrow--accent { color: var(--accent); }

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .25s;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.3;
}
.btn--primary { background: var(--cor-botao, var(--accent)); color: #fff; border-color: var(--cor-botao, var(--accent)); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }

.btn--dark { background: var(--text-heading); color: #fff; border-color: var(--text-heading); }
.btn--dark:hover { background: #000; border-color: #000; color: #fff; }

.btn--light { background: #fff; color: var(--text-heading); border-color: #fff; }
.btn--light:hover { background: #f0f0f0; color: var(--text-heading); }

.btn--ghost { background: transparent; color: var(--text-heading); border-color: var(--text-heading); }
.btn--ghost:hover { background: var(--text-heading); color: #fff; }

.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost-light:hover { background: rgba(255,255,255,.15); border-color: #fff; color: #fff; }

.btn--wpp { background: #25d366; color: #fff; border-color: #25d366; }
.btn--wpp:hover { background: #1fb855; border-color: #1fb855; color: #fff; }

.btn--sm { padding: 8px 16px; font-size: .82rem; }
.btn--lg { padding: 14px 32px; font-size: 1rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- BADGE ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    line-height: 1;
}
.badge--venda { background: var(--accent); color: #fff; }
.badge--aluguel { background: #2d8ce8; color: #fff; }
.badge--soft { background: rgba(255,255,255,.92); color: var(--text-heading); backdrop-filter: blur(4px); }
.badge--outline { background: transparent; border: 1px solid var(--text-muted); color: var(--text-muted); }
.badge--accent { background: var(--accent); color: #fff; }

/* ---------- CHIPS ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
    font-size: .85rem;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    border: 1.5px solid #d0cdc8;
    background: transparent;
    color: var(--text-body);
    cursor: pointer;
    transition: all .2s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active { background: var(--text-heading); color: #fff; border-color: var(--text-heading); }

/* ---------- HEADER (floating) ---------- */
.header-sentinel { display: block; height: 0; }

.site-header {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: var(--container);
    z-index: 1000;
    transition: all .35s cubic-bezier(.4,0,.2,1);
}

.masthead {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-xl);
    padding: 0 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,.05);
}

.masthead__in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 24px;
}

.site-header.is-stuck { top: 8px; }
.site-header.is-stuck .masthead {
    box-shadow: var(--shadow-lg);
    background: rgba(255,255,255,.96);
}

.brand img { height: 42px; width: auto; }

.nav { display: none; }
@media (min-width: 992px) {
    .nav { display: block; }
}

.nav__list {
    display: flex;
    gap: 4px;
    list-style: none;
}
.nav__link {
    font-size: .88rem;
    font-weight: 500;
    color: var(--text-body);
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    transition: all .2s;
}
.nav__link:hover { color: var(--text-heading); background: rgba(0,0,0,.04); }
.nav__link.is-active { color: var(--text-heading); font-weight: 600; }

.masthead__actions { display: flex; align-items: center; gap: 12px; }
.masthead__actions .btn--wpp span { display: none; }
@media (min-width: 768px) {
    .masthead__actions .btn--wpp span { display: inline; }
}

/* Burger */
.burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.burger span {
    display: block;
    height: 2px;
    background: var(--text-heading);
    border-radius: 2px;
    transition: all .25s;
}
@media (min-width: 992px) {
    .burger { display: none; }
}

/* ---------- DRAWER (mobile menu) ---------- */
.backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}
.backdrop.is-open { opacity: 1; pointer-events: auto; }

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100%;
    background: #fff;
    z-index: 1200;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.drawer.is-open { transform: translateX(0); }

.drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}
.drawer__head img { height: 36px; width: auto; }
.drawer__close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-body);
    padding: 4px;
}

.drawer__body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 24px; }

.drawer__menu { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.drawer__menu a {
    display: block;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-body);
    border-radius: var(--radius);
    transition: background .2s;
}
.drawer__menu a:hover,
.drawer__menu a.is-active { background: var(--bg-muted); color: var(--text-heading); }

.drawer__cta { margin-top: auto; }
.drawer__contact { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: .88rem; color: var(--text-muted); }
.drawer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.drawer__contact i { width: 16px; text-align: center; margin-top: 3px; }

body.is-locked { overflow: hidden; }

/* ---------- MAIN ---------- */
main { padding-top: calc(var(--header-h) + 32px); }

/* ---------- SECTION ---------- */
.section { padding: 64px 0; }
.section--muted { background: var(--bg-muted); }
.section--tight { padding: 40px 0; }
.section--white { background: var(--bg-white); }

.section-head { margin-bottom: 40px; }
.section-head--center { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.section-head--split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.section-head--split p { max-width: 440px; color: var(--text-muted); }

/* ---------- HERO (tema 4) ---------- */
.hero {
    padding: 0;
    min-height: 0;
    position: relative;
}

.hero__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
    padding: 40px 0 32px;
}
@media (min-width: 992px) {
    .hero__layout {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
        padding: 48px 0 56px;
    }
}

.hero__content {}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-white);
    border: 1px solid #e0dbd5;
    border-radius: var(--radius-pill);
    padding: 6px 16px;
    font-size: .8rem;
    font-weight: 500;
    color: var(--text-body);
    margin-bottom: 24px;
}
.hero__badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
}

.hero__title {
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 20px;
    letter-spacing: -.02em;
}
.hero__title span { color: var(--accent); }

.hero__text {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 480px;
    margin-bottom: 32px;
}

/* Stat block in hero */
.hero__stat {
    position: relative;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero__stat-num {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}
.hero__stat-label {
    font-size: .88rem;
    font-weight: 600;
    opacity: .9;
}

/* Photo grid in hero */
.hero__grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    grid-template-rows: auto auto;
    gap: 12px;
}

.hero__grid-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}
.hero__grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero__grid-item--tall { grid-row: span 2; }
.hero__grid-item--tall img { min-height: 280px; }
.hero__grid-item img { min-height: 140px; }

@media (min-width: 768px) {
    .hero__grid-item--tall img { min-height: 360px; }
    .hero__grid-item img { min-height: 170px; }
}

/* ---------- SEARCH BAR (hero inline) ---------- */
.hero__search {
    margin-top: 0;
}

.searchbox {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid #e0dbd5;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.searchbox--flat { box-shadow: none; border: 1px solid #e0dbd5; }

/* Fix: hidden attribute must override display */
.searchbox__adv[hidden] { display: none !important; }

.searchbox__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 6px 6px;
    border-bottom: 1px solid #e0dbd5;
}
.segbtn {
    font-size: .88rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all .2s;
}
.segbtn:hover { color: var(--text-heading); }
.segbtn.is-active { background: var(--text-heading); color: #fff; }

.searchbox__body { padding: 16px 20px 20px; }

.searchbox__types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.typechip {
    font-size: .82rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    border: 1.5px solid #d0cdc8;
    background: transparent;
    color: var(--text-body);
    cursor: pointer;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.typechip:hover { border-color: var(--accent); color: var(--accent); }
.typechip.is-active { background: var(--bg-muted); border-color: var(--text-heading); color: var(--text-heading); }

.searchbox__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 768px) {
    .searchbox__row { grid-template-columns: 1fr 1fr 1fr auto; }
}

.field--btn { display: flex; align-items: flex-end; }

.btn--icon {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.searchbox__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}
.searchbox__toggle {
    font-size: .84rem;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color .2s;
}
.searchbox__toggle:hover { color: var(--text-heading); }
.searchbox__toggle-arrow { transition: transform .2s; }
.searchbox__toggle[aria-expanded="true"] .searchbox__toggle-arrow { transform: rotate(180deg); }
.searchbox__clear { font-size: .82rem; color: var(--text-muted); }

.searchbox__adv {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    margin-top: 12px;
}
@media (min-width: 768px) {
    .searchbox__adv { grid-template-columns: 1fr 1fr 1fr; }
}

/* Popular neighborhoods */
.neighborhoods {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}
.neighborhood-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    border: 1.5px solid #d0cdc8;
    background: var(--bg-white);
    color: var(--text-body);
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}
.neighborhood-tag:hover { border-color: var(--accent); color: var(--accent); }
.neighborhood-tag i { color: var(--accent); font-size: .72rem; }

/* ---------- FORM FIELDS ---------- */
.field { display: flex; flex-direction: column; gap: 4px; }
.field__label { font-size: .82rem; font-weight: 600; color: var(--text-heading); }

.input, .textarea, .select {
    font-family: var(--font-body);
    font-size: .9rem;
    padding: 10px 14px;
    border: 1.5px solid #d0cdc8;
    border-radius: var(--radius);
    background: var(--bg-white);
    color: var(--text-body);
    transition: border-color .2s;
    width: 100%;
}
.input:focus, .textarea:focus, .select:focus {
    outline: none;
    border-color: var(--accent);
}
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b7b' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.form-note { font-size: .78rem; color: var(--text-muted); margin-top: 8px; }

/* ---------- GRID ---------- */
.grid { display: grid; gap: 24px; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ---------- CARD IMÓVEL ---------- */
.card-imovel {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,.05);
    transition: transform .3s, box-shadow .3s;
}
.card-imovel:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-imovel.is-hidden { display: none; }

.card-imovel__media {
    position: relative;
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-muted);
}
.card-imovel__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card-imovel:hover .card-imovel__media img { transform: scale(1.04); }
.card-imovel__media--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2rem;
}

.card-imovel__tags {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
}

.card-imovel__ref {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-size: .72rem;
    font-weight: 600;
    background: rgba(0,0,0,.5);
    color: #fff;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
}

.card-imovel__photos {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .75rem;
    font-weight: 600;
    background: rgba(0,0,0,.55);
    color: #fff;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
}

.card-imovel__body { padding: 16px 20px 12px; flex: 1; }

.card-imovel__local {
    font-size: .78rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.card-imovel__local i { color: var(--accent); font-size: .7rem; }

.card-imovel__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}
.card-imovel__title a { color: var(--text-heading); }
.card-imovel__title a:hover { color: var(--accent); }

.card-imovel__specs {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: .82rem;
    color: var(--text-muted);
}
.card-imovel__specs li { display: flex; align-items: center; gap: 5px; }
.card-imovel__specs i { color: var(--text-muted); font-size: .78rem; }

.card-imovel__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid #f0ebe5;
}

.price { display: flex; flex-direction: column; }
.price__label { font-size: .72rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.price__value { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--text-heading); }
.price__value--muted { color: var(--text-muted); font-size: 1rem; }

.card-imovel__go {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cor-circulo, var(--accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    transition: background .2s, transform .2s;
}
.card-imovel__go:hover { background: var(--accent-hover); color: #fff; transform: scale(1.1); }

/* ---------- SHORTCUTS (atalhos por tipo) ---------- */
.shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.shortcut {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,.06);
    transition: all .25s;
    text-decoration: none;
    color: var(--text-body);
}
.shortcut:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text-heading); }
.shortcut__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--cor-circulo, var(--accent)) 12%, transparent);
    color: var(--cor-circulo, var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.shortcut__label { font-size: .72rem; color: var(--text-muted); display: block; }
.shortcut__title { font-weight: 600; font-size: .95rem; display: block; }

/* ---------- SPLIT (sobre) ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 768px) {
    .split { grid-template-columns: 1fr 1fr; }
    .split--media-left { grid-template-columns: 1.1fr .9fr; }
}

.media-wrap { position: relative; }

.mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.mosaic__col { display: flex; flex-direction: column; gap: 12px; }
.mosaic__col--offset { margin-top: 24px; }
.mosaic__cell { border-radius: var(--radius-lg); overflow: hidden; }
.mosaic__cell img { width: 100%; height: 100%; object-fit: cover; }
.mosaic__cell--tall { flex: 2; }
.mosaic__cell--wide { flex: 1; }
.mosaic--single { grid-template-columns: 1fr; }
.mosaic--single .mosaic__cell img { aspect-ratio: 16/10; }

.stat-float {
    position: absolute;
    bottom: -16px;
    right: 24px;
    background: var(--cor-box, var(--text-heading));
    color: #fff;
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.stat-float strong { display: block; font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; }
.stat-float span { display: block; font-size: .78rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- CTA BAND ---------- */
.cta-band {
    background: var(--cor-box, var(--text-heading));
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.75); max-width: 520px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- CTA SECTION (WhatsApp - full width with bg image) ---------- */
.cta-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
}
.cta-section__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.cta-section__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cta-section__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,.8); margin-bottom: 28px; font-size: 1rem; }

/* ---------- TEAM CARDS ---------- */
.team-card { text-align: center; }
.team-card__photo {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
    margin-bottom: 14px;
    background: var(--bg-muted);
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }

.team-card__social {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity .3s;
}
.team-card:hover .team-card__social { opacity: 1; }
.team-card__social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: var(--text-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    transition: background .2s;
}
.team-card__social a:hover { background: var(--accent); color: #fff; }

.team-card__role { font-size: .75rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.team-card__name { font-size: 1.05rem; margin-top: 2px; }

/* ---------- PAGE HEAD ---------- */
.pagehead {
    padding: 40px 0 32px;
    border-bottom: 1px solid #e0dbd5;
}
.pagehead__title { margin-bottom: 8px; }
.pagehead__lead { color: var(--text-muted); max-width: 600px; }

.breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: .82rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.breadcrumb li + li::before { content: '›'; margin-right: 4px; }
.breadcrumb a { color: var(--accent); }

/* ---------- SEARCH WRAP ---------- */
.searchwrap { padding: 24px 0; }

/* ---------- SEARCHBOX SIDEBAR (listing pages) ---------- */
.searchbox--sidebar {
    border: 1px solid #e0dbd5;
    box-shadow: none;
    border-radius: var(--radius-lg);
}
.searchbox__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}
.searchbox__header strong {
    font-size: 1rem;
    color: var(--text-heading);
}
.searchbox__clear-link {
    font-size: .85rem;
    color: var(--accent);
    font-weight: 500;
}
.searchbox__clear-link:hover { color: var(--accent-hover); }

.searchbox--sidebar .searchbox__tabs {
    padding: 0 20px 16px;
    border-bottom: 1px solid #e0dbd5;
    gap: 8px;
}
.searchbox__label {
    display: block;
    width: 100%;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.searchbox--sidebar .segbtn {
    font-size: .82rem;
    padding: 7px 14px;
}
.searchbox--sidebar .searchbox__body { padding: 16px 20px 20px; }
.searchbox--sidebar .searchbox__row {
    grid-template-columns: 1fr;
    gap: 14px;
}
.searchbox--sidebar .field--btn { margin-top: 4px; }
.searchbox--sidebar .btn--icon {
    width: 100%;
    height: auto;
    padding: 10px;
}
.searchbox__filters {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    margin-top: 16px;
}
.searchbox--sidebar .field__label {
    font-size: .72rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Quantity chip groups (quartos / suítes / vagas) */
.qtd-group {}
.qtd-group .field__label { margin-bottom: 8px; display: block; }
.qtd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qtd-chip {
    font-size: .82rem;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    border: 1.5px solid #d0cdc8;
    background: transparent;
    color: var(--text-body);
    cursor: pointer;
    transition: all .2s;
    line-height: 1.2;
}
.qtd-chip:hover { border-color: var(--accent); color: var(--accent); }
.qtd-chip.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }

.searchbox__submit {
    padding-top: 16px;
    border-top: 1px solid #eee;
    margin-top: 16px;
}

/* ---------- DARK PAGEHEAD ---------- */
.pagehead--dark {
    background: var(--cor-pagehead, #1a1a2e);
    padding: 48px 0 36px;
    border-bottom: none;
}
.pagehead--dark .eyebrow { color: rgba(255,255,255,.5); }
.pagehead--dark .pagehead__title { color: #fff; margin-bottom: 8px; }
.pagehead--dark .pagehead__sub {
    color: rgba(255,255,255,.6);
    font-size: .95rem;
    margin: 0;
}

/* ---------- FUNDO BRANCO NAS LISTAGENS E PÁGINA DO IMÓVEL ---------- */
.venda .section,
.aluguel .section,
.busca .section,
.interna_imoveis .section { background: #fff; }

/* ---------- LISTING LAYOUT (sidebar + grid) ---------- */
.listing-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 992px) {
    .listing-layout {
        grid-template-columns: 280px 1fr;
        gap: 32px;
    }
}
@media (min-width: 992px) {
    .listing-layout__sidebar {
        position: sticky;
        top: calc(var(--header-h) + 28px);
        align-self: start;
    }
}
.listing-layout__main .grid--cards {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* ---------- RESULTS BAR ---------- */
.results__bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}
.results__count { font-size: .95rem; }
.results__count strong { color: var(--text-heading); }
.sortby { font-size: .85rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.sortby .select { width: auto; min-width: 140px; }

/* ---------- PAGINATION ---------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.page-link {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: .88rem;
    font-weight: 500;
    color: var(--text-body);
    text-decoration: none;
    border: 1.5px solid #d0cdc8;
    background: var(--bg-white);
    transition: all .2s;
    padding: 0 6px;
}
.page-link:hover { border-color: var(--accent); color: var(--accent); }
.page-link.active { background: var(--text-heading); color: #fff; border-color: var(--text-heading); }
.page-link.disabled { opacity: .4; pointer-events: none; }

/* ---------- IMÓVEL DETAIL ---------- */
.imovel__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}
.imovel__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.imovel__title { font-size: clamp(1.5rem, 3vw, 2rem); }
.imovel__local { font-size: .9rem; color: var(--text-muted); margin-top: 6px; }
.imovel__local i { color: var(--accent); margin-right: 4px; }

.imovel-gallery { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 32px; }
.imovel-gallery__item { display: block; aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius); }
.imovel-gallery__item img { width: 100%; height: 100%; object-fit: cover; }

.imovel__grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) {
    .imovel__grid { grid-template-columns: 1.2fr .8fr; }
}

.imovel__main {}
.imovel__aside { display: flex; flex-direction: column; gap: 20px; }

.specs { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; margin-bottom: 32px; }
.spec {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,.06);
}
.spec i { font-size: 1.1rem; color: var(--accent); }
.spec span span { font-size: .75rem; color: var(--text-muted); display: block; }
.spec span strong { font-size: .95rem; display: block; }

.block { margin-bottom: 32px; }
.block__title { font-size: 1.15rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #e0dbd5; }
.prose { line-height: 1.75; color: var(--text-body); }
.prose p + p { margin-top: 12px; }

.map-box { border-radius: var(--radius-lg); overflow: hidden; }
.map-box iframe, .map-box #gmp-map { width: 100%; height: 300px; border: 0; }

/* Price card */
.pricecard {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: var(--shadow);
    position: sticky;
    top: calc(var(--header-h) + 28px);
}
.pricecard__main { padding: 24px; }
.pricecard__label { font-size: .78rem; font-weight: 500; text-transform: uppercase; color: var(--text-muted); letter-spacing: .04em; display: block; }
.pricecard__label--muted { opacity: .7; }
.pricecard__value {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-heading);
    display: block;
    margin-top: 4px;
}
.pricecard__value--muted { font-size: 1.1rem; opacity: .7; }

.pricecard__extra {
    list-style: none;
    padding: 0 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pricecard__extra li { display: flex; justify-content: space-between; font-size: .88rem; }
.pricecard__extra span { color: var(--text-muted); }
.pricecard__extra strong { color: var(--text-heading); }

.pricecard__actions { padding: 0 24px 24px; display: flex; flex-direction: column; gap: 10px; }

/* Lead card */
.leadcard {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid rgba(0,0,0,.06);
}
.leadcard h3 { margin-bottom: 6px; }
.leadcard p { font-size: .88rem; color: var(--text-muted); margin-bottom: 16px; }
.leadcard .field + .field { margin-top: 12px; }
.leadcard .btn { margin-top: 16px; }

/* ---------- ALERTS ---------- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: .9rem;
    margin-bottom: 16px;
}
.alert--ok { background: #e8f5e9; color: #2e7d32; }
.alert--err { background: #ffebee; color: #c62828; }
.alert i { margin-top: 2px; }

/* ---------- INFO CARDS (contato) ---------- */
.info-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 48px; }
.info-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid rgba(0,0,0,.06);
    text-align: center;
}
.info-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin: 0 auto 12px;
}
.info-card h3 { font-size: .95rem; margin-bottom: 6px; }
.info-card p { font-size: .85rem; color: var(--text-muted); word-break: break-word; }

/* ---------- CONTACT GRID ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 768px) {
    .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-form {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid rgba(0,0,0,.06);
}
.contact-form .field + .field { margin-top: 14px; }
.contact-form .btn { margin-top: 20px; }

/* ---------- EMPTY STATE ---------- */
.empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty i { font-size: 3rem; margin-bottom: 16px; opacity: .4; display: block; }
.empty h3 { color: var(--text-heading); margin-bottom: 8px; }
.empty p { margin-bottom: 20px; }

/* ---------- ERROR PAGE ---------- */
.error-page { text-align: center; padding: 60px 20px; }
.error-page__code {
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 16px;
}
.error-page h1 { margin-bottom: 12px; }
.error-page .lead { margin-bottom: 28px; }
.error-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- GALLERY THUMBS ---------- */
.gallery__thumb {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .3s;
}
.gallery__thumb:hover { transform: scale(1.03); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--cor-rodape, var(--text-heading));
    color: rgba(255,255,255,.7);
    margin-top: 0;
}

.footer__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 56px 0 40px;
}
@media (min-width: 768px) {
    .footer__top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}

.footer__brand {}
.footer__logo { height: 52px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .85; }
.footer__about { font-size: .88rem; line-height: 1.6; margin-bottom: 12px; }

.footer__social {
    list-style: none;
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.footer__social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    transition: all .2s;
}
.footer__social a:hover { background: var(--accent); color: #fff; }

.footer__col h3 {
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 16px;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer__col a { color: rgba(255,255,255,.6); font-size: .88rem; transition: color .2s; }
.footer__col a:hover { color: #fff; }

.footer__contact { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer__contact li { display: flex; gap: 10px; font-size: .88rem; }
.footer__contact i { margin-top: 3px; color: var(--accent); }

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: .8rem;
    color: rgba(255,255,255,.4);
}

/* ---------- FLOATING WHATSAPP ---------- */
.wpp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: #fff;
    padding: 14px 20px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: .9rem;
    box-shadow: 0 4px 20px rgba(37,211,102,.35);
    transition: transform .3s, box-shadow .3s;
}
.wpp-float:hover { transform: scale(1.05); box-shadow: 0 6px 24px rgba(37,211,102,.45); color: #fff; }
.wpp-float i { font-size: 1.2rem; }
.wpp-float span { display: none; }
@media (min-width: 768px) {
    .wpp-float span { display: inline; }
}

/* ---------- BACK TO TOP ---------- */
.to-top {
    position: fixed;
    bottom: 24px;
    right: 90px;
    z-index: 900;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 1.5px solid #d0cdc8;
    color: var(--text-body);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all .3s;
    box-shadow: var(--shadow-sm);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--text-heading); color: #fff; border-color: var(--text-heading); }

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1);
}
.reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 767px) {
    .hero__grid { display: none; }
    .hero__layout { padding: 24px 0 20px; }
    .cta-band { padding: 32px 24px; }
    .footer__top { gap: 32px; }
    .to-top { right: 24px; bottom: 80px; }
    .pagehead--dark { padding: 32px 0 24px; }
}

/* Swiper overrides */
.swiper-pagination-bullet-active { background: var(--accent) !important; }
.swiper-button-prev, .swiper-button-next { color: var(--accent) !important; }
.swiper-button-prev::after, .swiper-button-next::after { font-size: 1.2rem !important; }

/* Hero banner arrows */
.hero__nav { display: none; }
@media (min-width: 768px) {
    .hero__nav { display: flex; gap: 8px; position: absolute; bottom: 32px; right: 32px; z-index: 10; }
}
.hero__arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
}
.hero__arrow:hover { background: rgba(255,255,255,.35); }

/* Hero slider variant (from tema 3 for pages that use banner sliders) */
.hero--slider .hero__slider { position: relative; }
.hero--slider .hero__slide { position: relative; min-height: 440px; }
.hero--slider .hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero--slider .hero__veil { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,.55) 0%, rgba(0,0,0,.2) 100%); }
.hero--slider .hero__content { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; min-height: 440px; padding: 60px 0; }
.hero--slider .hero__title { color: #fff; }
.hero--slider .hero__title strong { color: var(--accent); }
.hero--slider .hero__text { color: rgba(255,255,255,.8); }
.hero--slider .hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero--slider .hero__search { position: relative; z-index: 2; margin-top: -40px; }

/* Topbar (hidden in tema 4, menu is floating) */
.topbar { display: none; }
