/* =============================================================
   TEMA "CLEAN EDITORIAL" — site imobiliário
   Escrito sem Bootstrap. Layout próprio (grid/flex) + tokens.

   As cores base vêm da API (/api/busca-dados) e são injetadas
   por topo.php no :root. Todo o resto é derivado delas com color-mix,
   sempre com fallback estático na linha anterior.

   SUMÁRIO
   01. TOKENS
   02. RESET E BASE
   03. LAYOUT (container, grid, seções)
   04. TIPOGRAFIA E TÍTULOS DE SEÇÃO
   05. BOTÕES, BADGES, CHIPS
   06. FORMULÁRIOS
   07. CABEÇALHO E MENU
   08. HERO E CABEÇALHO INTERNO
   09. BUSCA (inc-busca.php)
   10. CARD DE IMÓVEL
   11. LISTAGENS
   12. PAGINAÇÃO
   13. HOME
   14. PÁGINA DE IMÓVEL
   15. PÁGINAS DE CONTEÚDO
   16. RODAPÉ E FLUTUANTES
   17. UTILITÁRIOS
   18. RESPONSIVO
   19. MOVIMENTO / ACESSIBILIDADE
   ============================================================= */

/* =============================================================
   01. TOKENS
   ============================================================= */
:root {
    /* cores vindas da API (fallback caso topo.php não injete) */
    --cor-primaria: #181c25;
    --cor-secundaria: #426d86;
    --texto-primario: #060313;
    --cor-titulos: #060313;
    --cor-links: #426d86;
    --cor-background: #060313;
    --cor-botao: #060313;
    --cor-box: #060313;
    --cor-circulo: #060313;
    --cor-rodape: #060313;

    /* aliases semânticos */
    --brand: var(--cor-primaria);
    --accent: var(--cor-secundaria);
    --title: var(--cor-titulos);
    --link: var(--cor-links);
    --link-hover: #33566a;
    --link-hover: color-mix(in srgb, var(--cor-links) 82%, #000);
    --button: var(--cor-botao);
    --footer: var(--cor-rodape);

    /* texto */
    --ink: var(--texto-primario);
    --ink-2: #4a4a56;
    --ink-2: color-mix(in srgb, var(--texto-primario) 68%, #fff);
    --ink-3: #7c7c88;
    --ink-3: color-mix(in srgb, var(--texto-primario) 48%, #fff);
    --ink-on-dark-2: rgba(255, 255, 255, .72);

    /* superfícies */
    --surface: #ffffff;
    --surface-2: #f5f6f8;
    --surface-3: #eef2f5;
    --surface-3: color-mix(in srgb, var(--cor-secundaria) 8%, #fff);

    /* linhas */
    --line: #e5e7eb;
    --line: color-mix(in srgb, var(--texto-primario) 11%, #fff);
    --line-2: #d3d7dd;
    --line-2: color-mix(in srgb, var(--texto-primario) 20%, #fff);
    --line-on-dark: rgba(255, 255, 255, .14);

    /* estados derivados do acento e da marca */
    --accent-soft: #eaf0f4;
    --accent-soft: color-mix(in srgb, var(--cor-secundaria) 12%, #fff);
    --accent-strong: #33566a;
    --accent-strong: color-mix(in srgb, var(--cor-secundaria) 82%, #000);
    --brand-soft: #e8e9eb;
    --brand-soft: color-mix(in srgb, var(--cor-primaria) 10%, #fff);

    /* semânticas fixas (não vêm da API) */
    --venda: #1f7a52;
    --aluguel: #9a5b12;
    --whatsapp: #1eaf5b;

    /* tipografia */
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --font-head: "Plus Jakarta Sans", var(--font-body);

    /* medidas */
    --container: 1240px;
    --gutter: 24px;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    /* sombras */
    --shadow-sm: 0 2px 10px rgba(16, 20, 28, .06);
    --shadow-md: 0 10px 30px rgba(16, 20, 28, .09);
    --shadow-lg: 0 24px 60px rgba(16, 20, 28, .14);

    /* header */
    --header-h: 84px;

    /* transições */
    --t-fast: .16s ease;
    --t: .26s cubic-bezier(.22, .61, .36, 1);
}

/* =============================================================
   02. RESET E BASE
   ============================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-2);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.is-locked {
    overflow: hidden;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--link);
    text-decoration: none;
    transition: color var(--t-fast);
}

a:hover {
    color: var(--link-hover);
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

p {
    margin: 0 0 1em;
}

p:last-child {
    margin-bottom: 0;
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 32px 0;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

::selection {
    background: var(--accent);
    color: #fff;
}

/* =============================================================
   03. LAYOUT
   ============================================================= */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 20px;
}

.container--narrow {
    max-width: 880px;
}

.section {
    padding-block: 96px;
}

.section--tight {
    padding-block: 64px;
}

.section--muted {
    background: var(--surface-2);
}

.section--soft {
    background: var(--surface-3);
}

.grid {
    display: grid;
    gap: var(--gutter);
}

.grid--cards {
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.split--media-left {
    grid-template-columns: 1.05fr 1fr;
}

/* =============================================================
   04. TIPOGRAFIA
   ============================================================= */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-head);
    color: var(--title);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
    margin: 0 0 .5em;
}

h1 {
    font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.4rem);
}

h2 {
    font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.6rem);
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1.05rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 14px;
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.eyebrow--light {
    color: #fff;
}

.eyebrow--light::before {
    background: #fff;
}

.lead {
    font-size: 1.075rem;
    color: var(--ink-2);
}

.section-head {
    max-width: 640px;
    margin-bottom: 56px;
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.section-head--center .eyebrow {
    justify-content: center;
}

.section-head--split {
    max-width: none;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: end;
}

.section-head h2 {
    margin-bottom: .35em;
}

.section-head p {
    margin: 0;
    color: var(--ink-2);
}

/* texto rico vindo da API (descrições do CMS) */
.prose {
    color: var(--ink-2);
    font-size: 1.02rem;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
    margin-top: 1.4em;
}

.prose img {
    border-radius: var(--radius);
    margin-block: 1.4em;
}

.prose ul,
.prose ol {
    margin: 0 0 1em;
    padding-left: 1.25em;
    list-style: revert;
}

.prose li {
    margin-bottom: .4em;
}

.prose a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.4em;
}

.prose th,
.prose td {
    border: 1px solid var(--line);
    padding: 10px 12px;
    text-align: left;
}

/* =============================================================
   05. BOTÕES, BADGES, CHIPS
   ============================================================= */
.btn {
    --btn-bg: var(--button);
    --btn-fg: #fff;
    --btn-bd: var(--button);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border: 1px solid var(--btn-bd);
    border-radius: var(--radius-pill);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--font-head);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.btn:hover {
    color: var(--btn-fg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn--primary {
    --btn-bg: var(--button);
    --btn-bd: var(--button);
}

.btn--accent {
    --btn-bg: var(--accent);
    --btn-bd: var(--accent);
}

.btn--light {
    --btn-bg: #fff;
    --btn-fg: var(--brand);
    --btn-bd: #fff;
}

.btn--ghost {
    --btn-bg: transparent;
    --btn-fg: var(--brand);
    --btn-bd: var(--line-2);
}

.btn--ghost:hover {
    --btn-bg: var(--brand);
    --btn-fg: #fff;
    --btn-bd: var(--brand);
}

.btn--ghost-light {
    --btn-bg: transparent;
    --btn-fg: #fff;
    --btn-bd: rgba(255, 255, 255, .4);
}

.btn--ghost-light:hover {
    --btn-bg: #fff;
    --btn-fg: var(--brand);
    --btn-bd: #fff;
}

.btn--wpp {
    --btn-bg: var(--whatsapp);
    --btn-bd: var(--whatsapp);
}

.btn--sm {
    padding: 10px 18px;
    font-size: .875rem;
}

.btn--lg {
    padding: 17px 34px;
    font-size: 1rem;
}

.btn--block {
    width: 100%;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--brand);
}

.link-arrow i {
    transition: transform var(--t-fast);
}

.link-arrow:hover {
    color: var(--accent);
}

.link-arrow:hover i {
    transform: translateX(4px);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: var(--radius-pill);
    background: var(--brand);
    color: #fff;
    font-family: var(--font-head);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1.4;
}

.badge--venda {
    background: var(--venda);
}

.badge--aluguel {
    background: var(--aluguel);
}

.badge--soft {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.badge--outline {
    background: transparent;
    border: 1px solid var(--line-2);
    color: var(--ink-2);
}

/* chips de filtro (destaques da home) */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--ink-2);
    font-family: var(--font-head);
    font-size: .9rem;
    font-weight: 600;
    transition: all var(--t-fast);
}

.chip:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.chip.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

/* =============================================================
   06. FORMULÁRIOS
   ============================================================= */
.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.field__label {
    font-family: var(--font-head);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.input,
.select,
.textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: .95rem;
    line-height: 1.4;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    appearance: none;
    -webkit-appearance: none;
}

.textarea {
    min-height: 130px;
    resize: vertical;
}

.select {
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237c7c88' d='M1.41 0 6 4.58 10.59 0 12 1.42l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.input:focus,
.select:focus,
.textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.input::placeholder,
.textarea::placeholder {
    color: var(--ink-3);
}

.form-note {
    font-size: .82rem;
    color: var(--ink-3);
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: .93rem;
    margin-bottom: 24px;
}

.alert i {
    margin-top: 4px;
}

.alert--ok {
    border-color: rgba(31, 122, 82, .3);
    background: rgba(31, 122, 82, .08);
    color: #14603d;
}

.alert--err {
    border-color: rgba(176, 42, 42, .3);
    background: rgba(176, 42, 42, .07);
    color: #8d2020;
}

/* =============================================================
   07. CABEÇALHO E MENU
   ============================================================= */
/**
 * O header fixo precisa ter ALTURA CONSTANTE.
 *
 * Se algo aqui dentro mudar de tamanho conforme o scroll (esconder a faixa de
 * contato, encolher o logo, reduzir a altura da barra), a altura do documento
 * muda junto, o navegador reajusta o scroll e a condição de "fixo" é reavaliada
 * — o que realimenta o ciclo e faz o menu piscar sem parar em certas posições.
 *
 * Por isso a faixa .topbar fica fora deste elemento (ver topo.php) e a classe
 * .is-stuck só altera a sombra, que não afeta o layout.
 */
.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: #fff;
    transition: box-shadow var(--t);
}

.site-header.is-stuck {
    box-shadow: var(--shadow-sm);
}

/* marca a posição original do header; sem altura própria */
.header-sentinel {
    display: block;
    height: 1px;
    margin-bottom: -1px;
}

.topbar {
    background: var(--brand);
    color: var(--ink-on-dark-2);
    font-size: .84rem;
}

.topbar__in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 42px;
}

.topbar__info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 26px;
}

.topbar__info li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.topbar__info i {
    color: var(--accent);
    font-size: .95em;
}

.topbar a {
    color: var(--ink-on-dark-2);
}

.topbar a:hover {
    color: #fff;
}

.topbar__social {
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar__social a {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    transition: background var(--t-fast), color var(--t-fast);
}

.topbar__social a:hover {
    background: var(--accent);
    color: #fff;
}

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

.brand {
    flex: 0 0 auto;
    display: block;
    max-width: 220px;
}

.brand img {
    max-height: 56px;
    width: auto;
    object-fit: contain;
}

.nav {
    margin-left: auto;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav__link {
    position: relative;
    display: block;
    padding: 10px 15px;
    font-family: var(--font-head);
    font-size: .95rem;
    font-weight: 600;
    color: var(--brand);
    border-radius: var(--radius-sm);
    transition: color var(--t-fast);
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 4px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t);
}

.nav__link:hover {
    color: var(--accent);
}

.nav__link:hover::after,
.nav__link.is-active::after {
    transform: scaleX(1);
}

.nav__link.is-active {
    color: var(--accent);
}

.masthead__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* hamburger */
.burger {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    background: #fff;
    place-items: center;
}

.burger span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 2.5px auto;
    background: var(--brand);
    border-radius: 2px;
    transition: transform var(--t), opacity var(--t-fast);
}

.burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* menu lateral mobile */
.drawer {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(360px, 86vw);
    z-index: 120;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform var(--t);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.drawer.is-open {
    transform: translateX(0);
}

.drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid var(--line);
}

.drawer__head img {
    max-height: 44px;
    width: auto;
}

.drawer__close {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--brand);
    font-size: 1.05rem;
}

.drawer__close:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.drawer__body {
    padding: 12px 20px 28px;
}

.drawer__menu a {
    display: block;
    padding: 15px 4px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--brand);
}

.drawer__menu a:hover,
.drawer__menu a.is-active {
    color: var(--accent);
}

.drawer__cta {
    margin-top: 24px;
}

.drawer__contact {
    display: grid;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: .92rem;
    color: var(--ink-2);
}

.drawer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.drawer__contact i {
    color: var(--accent);
    margin-top: 5px;
}

.backdrop {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(9, 12, 18, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t), visibility var(--t);
}

.backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

/* =============================================================
   08. HERO E CABEÇALHO INTERNO
   ============================================================= */
.hero {
    position: relative;
    background: var(--cor-background);
}

.hero__slider {
    position: relative;
    overflow: hidden;
}

.hero__slide {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(460px, 62vh, 660px);
    padding-block: 90px 150px;
    background: var(--cor-background);
}

.hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(9, 12, 18, .55) 0%, rgba(9, 12, 18, .15) 40%, rgba(9, 12, 18, .82) 100%),
        linear-gradient(90deg, rgba(9, 12, 18, .6) 0%, rgba(9, 12, 18, 0) 65%);
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    color: #fff;
}

.hero__title {
    color: #fff;
    margin-bottom: .35em;
    text-wrap: balance;
}

.hero__title strong {
    position: relative;
    z-index: 1;
    color: #fff;
    font-weight: 800;
    white-space: nowrap;
}

.hero__title strong::after {
    content: "";
    position: absolute;
    left: -.04em;
    right: -.04em;
    bottom: .04em;
    height: .18em;
    z-index: -1;
    background: var(--accent);
    opacity: .9;
    border-radius: 3px;
}

.hero__text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .88);
    margin-bottom: 30px;
    max-width: 52ch;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* controles do slider */
.hero__nav {
    position: absolute;
    right: 20px;
    bottom: 150px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero__arrow {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    transition: background var(--t-fast), color var(--t-fast);
}

.hero__arrow:hover {
    background: #fff;
    color: var(--brand);
}

.hero .swiper-pagination {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 122px;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.hero .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    opacity: 1;
    cursor: pointer;
    transition: width var(--t), background var(--t-fast);
}

.hero .swiper-pagination-bullet-active {
    width: 30px;
    border-radius: var(--radius-pill);
    background: #fff;
}

/* caixa de busca sobreposta ao hero */
.hero__search {
    position: relative;
    z-index: 5;
    margin-top: -96px;
}

/* fallback quando a API não devolve banners */
.hero--plain .hero__slide {
    background: var(--cor-background);
}

/* cabeçalho das páginas internas */
.pagehead {
    padding-block: 48px 40px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
}

.pagehead__title {
    margin-bottom: .25em;
}

.pagehead__lead {
    color: var(--ink-2);
    max-width: 62ch;
    margin: 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: .85rem;
    color: var(--ink-3);
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb a {
    color: var(--ink-3);
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    color: var(--line-2);
}

/* faixa que abriga a busca nas páginas internas */
.searchwrap {
    padding-block: 32px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
}

/* =============================================================
   09. BUSCA (inc-busca.php)
   ============================================================= */
.searchbox {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.searchbox--flat {
    box-shadow: var(--shadow-sm);
}

.searchbox__tabs {
    display: flex;
    gap: 4px;
    padding: 10px 10px 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
}

.searchbox__tabs::-webkit-scrollbar {
    display: none;
}

.segbtn {
    position: relative;
    flex: 0 0 auto;
    padding: 14px 24px;
    border: 0;
    background: transparent;
    color: var(--ink-3);
    font-family: var(--font-head);
    font-size: .95rem;
    font-weight: 700;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: color var(--t-fast);
}

.segbtn::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform var(--t);
}

.segbtn:hover,
.segbtn.is-active {
    color: var(--brand);
}

.segbtn.is-active::after {
    transform: scaleX(1);
}

.searchbox__body {
    padding: 24px;
}

.searchbox__types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.typechip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--ink-2);
    font-size: .875rem;
    font-weight: 500;
    transition: all var(--t-fast);
}

.typechip i {
    color: var(--ink-3);
    transition: color var(--t-fast);
}

.typechip:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.typechip:hover i {
    color: var(--accent);
}

.typechip.is-active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent-strong);
    font-weight: 600;
}

.typechip.is-active i {
    color: var(--accent-strong);
}

.searchbox__row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.searchbox__row .btn {
    padding-block: 14px;
    white-space: nowrap;
}

.searchbox__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.searchbox__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent);
    font-family: var(--font-head);
    font-size: .9rem;
    font-weight: 600;
}

.searchbox__toggle i {
    transition: transform var(--t);
}

.searchbox__toggle[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

.searchbox__clear {
    font-size: .87rem;
    color: var(--ink-3);
}

.searchbox__clear:hover {
    color: var(--accent);
}

.searchbox__adv {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--line-2);
}

.searchbox__adv[hidden] {
    display: none;
}

/* =============================================================
   10. CARD DE IMÓVEL
   ============================================================= */
.card-imovel {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.card-imovel:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.card-imovel__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--surface-2);
}

.card-imovel__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}

.card-imovel:hover .card-imovel__media img {
    transform: scale(1.06);
}

/* placeholder quando o imóvel não tem foto na API */
.card-imovel__media--empty {
    display: grid;
    place-items: center;
    background: var(--surface-3);
    color: var(--ink-3);
}

.card-imovel__media--empty i {
    font-size: 2.6rem;
    opacity: .4;
}

.card-imovel__tags {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.card-imovel__ref {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    padding: 5px 11px;
    border-radius: var(--radius-pill);
    background: rgba(9, 12, 18, .68);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
}

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

.card-imovel__local {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 8px;
    font-size: .83rem;
    color: var(--ink-3);
}

.card-imovel__local i {
    color: var(--accent);
}

.card-imovel__title {
    font-size: 1.1rem;
    line-height: 1.35;
    margin: 0 0 14px;
    /* mantém a altura do card estável com títulos longos da API */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-imovel__title a {
    color: inherit;
}

.card-imovel__title a:hover {
    color: var(--accent);
}

.card-imovel__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: .85rem;
    color: var(--ink-2);
}

.card-imovel__specs li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.card-imovel__specs i {
    color: var(--ink-3);
    font-size: .95em;
}

.card-imovel__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px 18px;
}

.price__label {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.price__value {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: -.02em;
}

.price__value--muted {
    font-size: 1.05rem;
    color: var(--ink-2);
}

.card-imovel__go {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--brand);
    transition: background var(--t-fast), color var(--t-fast);
}

.card-imovel:hover .card-imovel__go {
    background: var(--brand);
    color: #fff;
}

/* estado vazio */
.empty {
    padding: 72px 24px;
    text-align: center;
    border: 1px dashed var(--line-2);
    border-radius: var(--radius);
    background: var(--surface-2);
}

.empty i {
    font-size: 2.4rem;
    color: var(--ink-3);
    margin-bottom: 16px;
}

.empty h3 {
    margin-bottom: .4em;
}

.empty p {
    color: var(--ink-2);
    margin-bottom: 24px;
}

/* =============================================================
   11. LISTAGENS
   ============================================================= */
.results__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.results__count {
    margin: 0;
    font-size: 1rem;
    color: var(--ink-2);
}

.results__count strong {
    font-family: var(--font-head);
    font-size: 1.15rem;
    color: var(--brand);
}

.sortby {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .88rem;
    color: var(--ink-3);
    white-space: nowrap;
}

.sortby .select {
    width: auto;
    min-width: 180px;
    padding-block: 10px;
}

/* =============================================================
   12. PAGINAÇÃO
   ============================================================= */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 56px;
}

.page-link {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    padding-inline: 14px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink-2);
    font-family: var(--font-head);
    font-size: .9rem;
    font-weight: 600;
    transition: all var(--t-fast);
}

.page-link:hover {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.page-link.active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
    cursor: default;
}

.page-link.disabled {
    opacity: .42;
    pointer-events: none;
}

/* =============================================================
   13. HOME
   ============================================================= */
.shortcuts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.shortcut {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.shortcut:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.shortcut__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 1.25rem;
}

.shortcut__label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.shortcut__title {
    display: block;
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand);
}

/* mosaico de fotos do bloco "sobre" */
.media-wrap {
    position: relative;
}

.mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.mosaic--single {
    grid-template-columns: 1fr;
}

.mosaic__col {
    display: grid;
    gap: 20px;
}

.mosaic__col--offset {
    padding-top: 40px;
}

.mosaic__cell {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface-2);
}

.mosaic__cell--tall {
    aspect-ratio: 3 / 4;
}

.mosaic__cell--wide {
    aspect-ratio: 4 / 3;
}

.mosaic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stat-float {
    position: absolute;
    right: -12px;
    bottom: -24px;
    z-index: 3;
    padding: 22px 26px;
    border-radius: var(--radius);
    background: var(--brand);
    color: #fff;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.stat-float strong {
    display: block;
    font-family: var(--font-head);
    font-size: 2.1rem;
    line-height: 1;
    color: #fff;
}

.stat-float span {
    font-size: .8rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .75);
}

/* equipe */
.team-card {
    text-align: center;
}

.team-card__photo {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-2);
    margin-bottom: 18px;
}

.team-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}

.team-card:hover .team-card__photo img {
    transform: scale(1.05);
}

.team-card__social {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--t), transform var(--t);
}

.team-card:hover .team-card__social,
.team-card:focus-within .team-card__social {
    opacity: 1;
    transform: translateY(0);
}

.team-card__social a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    color: var(--brand);
    box-shadow: var(--shadow-sm);
}

.team-card__social a:hover {
    background: var(--accent);
    color: #fff;
}

.team-card__role {
    display: block;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 4px;
}

.team-card__name {
    font-size: 1.1rem;
    margin: 0;
}

/* faixa de chamada */
.cta-band {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--cor-box);
    color: rgba(255, 255, 255, .8);
    padding: 64px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: center;
}

.cta-band::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: var(--cor-circulo);
    opacity: .18;
}

.cta-band > * {
    position: relative;
    z-index: 2;
}

.cta-band h2 {
    color: #fff;
    margin-bottom: .3em;
}

.cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

/* números */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat {
    text-align: center;
    padding: 28px 16px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
}

.stat strong {
    display: block;
    font-family: var(--font-head);
    font-size: 2.3rem;
    line-height: 1;
    color: var(--brand);
    margin-bottom: 6px;
}

.stat span {
    font-size: .85rem;
    color: var(--ink-3);
}

/* =============================================================
   14. PÁGINA DE IMÓVEL
   ============================================================= */
.imovel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 28px;
}

.imovel__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.imovel__title {
    margin-bottom: .25em;
}

.imovel__local {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--ink-2);
}

.imovel__local i {
    color: var(--accent);
}

/* galeria */
.gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    margin-bottom: 48px;
}

/* foto única ocupa a largura toda, então usa uma proporção mais baixa */
.gallery--empty {
    grid-template-columns: 1fr;
}

.gallery--empty .gallery__main {
    aspect-ratio: 16 / 9;
}

/* é a proporção da foto principal que define a altura da galeria */
.gallery__main {
    position: relative;
    display: block;
    aspect-ratio: 16 / 11;
    min-height: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-2);
}

/**
 * minmax(0, 1fr) e min-height: 0 são obrigatórios aqui.
 *
 * Com "1fr" puro o mínimo da faixa é "auto", e nesse caso parte dos
 * navegadores (Firefox, por exemplo) usa a ALTURA NATURAL das fotos como
 * contribuição intrínseca da coluna. Como fotos de imóvel têm milhares de
 * pixels, a coluna estoura, arrasta a linha do grid junto e a galeria cresce
 * sem limite. Com minmax(0, …) a contribuição vira 0 e quem manda na altura
 * é a proporção de .gallery__main, igual em todos os motores.
 *
 * --thumbs é definido em abre-imoveis.php com a quantidade real de
 * miniaturas, para não sobrar faixa vazia quando o imóvel tem poucas fotos.
 */
.gallery__side {
    display: grid;
    grid-template-rows: repeat(var(--thumbs, 3), minmax(0, 1fr));
    gap: 12px;
    min-height: 0;
}

.gallery__thumb {
    position: relative;
    display: block;
    min-height: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface-2);
}

/* escopo nos itens, e não em .gallery, porque abre-sobre.php reusa
   .gallery__thumb dentro de um .grid comum */
.gallery__main img,
.gallery__thumb img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}

.gallery__main:hover img,
.gallery__thumb:hover img {
    transform: scale(1.05);
}

.gallery__more {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(9, 12, 18, .62);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
}

/* fotos extras seguem no DOM só para o lightbox */
.gallery__hidden {
    display: none;
}

/* galeria do imóvel em carrossel (fotos lado a lado, autoplay) */
.imovel-gallery {
    width: 100%;
    margin-bottom: 24px;
}

.imovel-gallery .swiper-slide {
    height: auto;
}

/* uma foto só não inicializa o Swiper: garante o slide em largura cheia */
.imovel-gallery:not(.swiper-initialized) .swiper-slide {
    width: 100%;
}

.imovel-gallery__item {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface-2);
}

.imovel-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}

.imovel-gallery__item:hover img {
    transform: scale(1.05);
}

.imovel-gallery .swiper-button-next,
.imovel-gallery .swiper-button-prev {
    color: #fff;
    --swiper-navigation-size: 26px;
    text-shadow: 0 1px 8px rgba(9, 12, 18, .6);
}

.imovel-gallery .swiper-pagination-bullet-active {
    background: var(--cor-primaria, #426d86);
}

.imovel__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 48px;
    align-items: start;
}

/* ficha técnica */
.specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 40px;
}

.spec {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: #fff;
}

.spec i {
    font-size: 1.2rem;
    color: var(--accent);
}

.spec span {
    display: block;
    font-size: .74rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.spec strong {
    font-family: var(--font-head);
    font-size: 1.02rem;
    color: var(--brand);
}

.block {
    margin-bottom: 48px;
}

.block:last-child {
    margin-bottom: 0;
}

.block__title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.map-box {
    height: 380px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface-2);
}

.map-box iframe,
.map-box > div {
    width: 100%;
    height: 100%;
    border: 0;
}

/* coluna lateral */
.imovel__aside {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    display: grid;
    gap: 20px;
}

.pricecard {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.pricecard__main {
    padding: 26px 26px 22px;
    background: var(--surface-3);
    border-bottom: 1px solid var(--line);
}

.pricecard__label {
    display: block;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 4px;
}

.pricecard__value {
    display: block;
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--brand);
    letter-spacing: -.02em;
}

.pricecard__value + .pricecard__label {
    margin-top: 16px;
}

.pricecard__extra {
    display: grid;
    gap: 10px;
    padding: 18px 26px;
    border-bottom: 1px solid var(--line);
    font-size: .9rem;
}

.pricecard__extra li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pricecard__extra span {
    color: var(--ink-3);
}

.pricecard__extra strong {
    font-family: var(--font-head);
    color: var(--brand);
    font-weight: 600;
}

.pricecard__actions {
    display: grid;
    gap: 10px;
    padding: 22px 26px 26px;
}

.leadcard {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.leadcard h3 {
    font-size: 1.1rem;
    margin-bottom: .3em;
}

.leadcard > p {
    font-size: .9rem;
    color: var(--ink-3);
    margin-bottom: 20px;
}

.leadcard form {
    display: grid;
    gap: 14px;
}

/* =============================================================
   15. PÁGINAS DE CONTEÚDO
   ============================================================= */
.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 56px;
}

.info-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    transition: transform var(--t), box-shadow var(--t);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.info-card__icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 18px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 1.15rem;
}

.info-card h3 {
    font-size: 1.05rem;
    margin-bottom: .4em;
}

.info-card p,
.info-card a {
    font-size: .95rem;
    margin: 0;
}

.info-card p {
    color: var(--ink-2);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 48px;
    align-items: start;
}

.contact-form {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 16px;
}

.error-page {
    padding-block: 120px;
    text-align: center;
}

.error-page__code {
    font-family: var(--font-head);
    font-size: clamp(5rem, 3rem + 12vw, 10rem);
    font-weight: 800;
    line-height: .9;
    color: var(--brand-soft);
    letter-spacing: -.04em;
    margin-bottom: 16px;
}

.error-page__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

/* =============================================================
   16. RODAPÉ E FLUTUANTES
   ============================================================= */
.site-footer {
    background: var(--footer);
    color: var(--ink-on-dark-2);
    padding-top: 80px;
}

.footer__top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 48px;
    padding-bottom: 56px;
}

.footer__logo {
    max-height: 64px;
    width: auto;
    margin-bottom: 20px;
}

.footer__about {
    font-size: .95rem;
    max-width: 42ch;
    margin-bottom: 22px;
}

.footer__social {
    display: flex;
    gap: 8px;
}

.footer__social a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .09);
    color: #fff;
    transition: background var(--t-fast), transform var(--t-fast);
}

.footer__social a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer__col h3 {
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 22px;
}

.footer__col ul {
    display: grid;
    gap: 12px;
    font-size: .95rem;
}

.footer__col a {
    color: var(--ink-on-dark-2);
    transition: color var(--t-fast), padding-left var(--t-fast);
}

.footer__col a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer__contact i {
    color: var(--accent);
    margin-top: 5px;
    flex: 0 0 auto;
}

.footer__contact a:hover {
    padding-left: 0;
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 24px;
    border-top: 1px solid var(--line-on-dark);
    font-size: .85rem;
}

.footer__bottom p {
    margin: 0;
}

/* flutuantes */
.wpp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 80;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--radius-pill);
    background: var(--whatsapp);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .92rem;
    box-shadow: 0 10px 28px rgba(30, 175, 91, .38);
    transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.wpp-float i {
    font-size: 1.3rem;
}

.wpp-float:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(30, 175, 91, .46);
}

.to-top {
    position: fixed;
    right: 24px;
    bottom: 92px;
    z-index: 80;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    background: #fff;
    color: var(--brand);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--t), visibility var(--t), transform var(--t);
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

/* =============================================================
   17. UTILITÁRIOS
   ============================================================= */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mb-40 {
    margin-bottom: 40px;
}

.is-hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* animação de entrada (ativada por js/app.js) */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.22, .61, .36, 1);
}

.reveal.is-in {
    opacity: 1;
    transform: none;
}

/* =============================================================
   18. RESPONSIVO
   ============================================================= */
@media (max-width: 1200px) {
    .imovel__grid {
        grid-template-columns: minmax(0, 1fr) 330px;
        gap: 32px;
    }

    .footer__top {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 40px;
    }

    .footer__contact-col {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1024px) {
    :root {
        --header-h: 72px;
    }

    .section {
        padding-block: 72px;
    }

    .topbar__info li:nth-child(n + 2) {
        display: none;
    }

    .nav {
        display: none;
    }

    .burger {
        display: grid;
    }

    .masthead__actions .btn--wpp span {
        display: none;
    }

    .masthead__actions .btn--wpp {
        padding: 13px 16px;
    }

    .split,
    .split--media-left {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-head--split {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .shortcuts,
    .grid--4,
    .stats,
    .grid--3,
    .info-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .imovel__grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .imovel__aside {
        position: static;
    }

    .cta-band {
        grid-template-columns: 1fr;
        padding: 48px 36px;
    }

    .cta-band__actions {
        justify-content: flex-start;
    }

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

@media (max-width: 768px) {
    body {
        font-size: 15.5px;
    }

    .section {
        padding-block: 56px;
    }

    .topbar {
        display: none;
    }

    .hero__slide {
        min-height: 440px;
        padding-block: 60px 120px;
    }

    .hero__nav {
        display: none;
    }

    .hero .swiper-pagination {
        bottom: 96px;
    }

    .hero__search {
        margin-top: -70px;
    }

    .searchbox__row {
        grid-template-columns: 1fr;
    }

    .searchbox__body {
        padding: 20px 16px;
    }

    .segbtn {
        padding: 12px 16px;
        font-size: .9rem;
    }

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

    .gallery__side {
        grid-template-rows: none;
        grid-template-columns: repeat(var(--thumbs, 3), minmax(0, 1fr));
    }

    .gallery__thumb {
        aspect-ratio: 4 / 3;
    }

    .grid--cards {
        grid-template-columns: 1fr;
    }

    .footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        padding-bottom: 40px;
    }

    .footer__brand {
        grid-column: 1 / -1;
    }

    .results__bar {
        flex-direction: column;
        align-items: stretch;
    }

    .sortby {
        justify-content: space-between;
    }

    .sortby .select {
        flex: 1 1 auto;
    }

    .wpp-float {
        width: 54px;
        height: 54px;
        padding: 0;
        justify-content: center;
    }

    .wpp-float span {
        display: none;
    }

    .to-top {
        bottom: 86px;
    }

    .stat-float {
        right: 0;
        bottom: -16px;
        padding: 16px 20px;
    }

    .mosaic__col--offset {
        padding-top: 0;
    }
}

@media (max-width: 560px) {
    .shortcuts,
    .grid--3,
    .grid--4,
    .stats,
    .info-cards {
        grid-template-columns: 1fr;
    }

    .searchbox__adv {
        grid-template-columns: 1fr;
    }

    .cta-band {
        padding: 36px 24px;
    }

    .specs {
        grid-template-columns: 1fr 1fr;
    }

    .footer__top {
        grid-template-columns: 1fr;
    }

    .imovel__head {
        flex-direction: column;
    }
}

/* =============================================================
   19. MOVIMENTO / ACESSIBILIDADE
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

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