/**
 * IMOVEL AGORA (imovelagora.com.br)
 * Design System — Identidade Visual Oficial: Navy Tech + Azul Elétrico
 * Inspirado nos maiores portais imobiliários do Brasil
 */

/* ==========================================================================
   TOKENS DE DESIGN
   ========================================================================== */
:root {
    /* Cores da Identidade Oficial (Logo Imóvel Agora) */
    --brand-navy:       #001a44;
    --brand-navy-dark:  #00112e;
    --brand-blue:       #0066ff;
    --brand-blue-hover: #0052cc;
    --brand-blue-light: #ebf5ff;
    --brand-cyan:       #00a8ff;
    --brand-gradient:   linear-gradient(135deg, #0052cc 0%, #00a8ff 100%);
    --brand-gradient-hover: linear-gradient(135deg, #0040a8 0%, #008cd4 100%);

    --navy-dark:        #00163a;
    --navy-mid:         #0a2554;
    --navy-soft:        #1e3a6a;

    /* Textos */
    --text-title:       #001a44;
    --text-body:        #334155;
    --text-muted:       #64748b;
    --text-light:       #94a3b8;

    /* Fundos */
    --bg-page:          #f8fafc;
    --bg-white:         #ffffff;
    --bg-section-alt:   #f1f5f9;

    /* Bordas */
    --border:           #e2e8f0;
    --border-focus:     #0066ff;

    /* WhatsApp */
    --green:            #25d366;
    --green-dark:       #1ebe5d;
    --green-bg:         #e8faf0;

    /* Elevações */
    --shadow-xs:        0 1px 3px rgba(0,26,68,.05);
    --shadow-sm:        0 2px 8px rgba(0,26,68,.08);
    --shadow-md:        0 4px 20px rgba(0,26,68,.10);
    --shadow-lg:        0 8px 30px rgba(0,26,68,.14);
    --shadow-hover:     0 14px 40px rgba(0,26,68,.18);

    /* Radii */
    --r-sm:  8px;
    --r-md:  12px;
    --r-lg:  16px;
    --r-xl:  24px;
    --r-full: 9999px;

    /* Transições */
    --ease:  all .22s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg-page);
    color: var(--text-body);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }
select, input { font-family: inherit; }
ul { list-style: none; }

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 10px rgba(0, 26, 68, 0.04);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s ease;
}
.site-header.header-hidden {
    transform: translateY(-100%);
    box-shadow: none;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 20px;
}

/* Logo */
.logo-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.site-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Nav principal */
.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
}
.nav-link {
    color: var(--text-body);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--r-sm);
    transition: var(--ease);
    white-space: nowrap;
}
.nav-link:hover { color: var(--brand-blue); background: var(--brand-blue-light); }
.nav-link.active {
    color: var(--brand-blue);
    font-weight: 700;
    background: var(--brand-blue-light);
}

/* Botão WhatsApp header */
.btn-header-whats {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--green);
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: var(--ease);
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
    border: none;
    cursor: pointer;
    font-family: inherit;
    outline: none;
    line-height: 1.2;
}
.btn-header-whats:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-header-whats svg { width: 17px; height: 17px; fill: #fff; }

.btn-header-anunciar {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--brand-gradient);
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: var(--ease);
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.25);
}
.btn-header-anunciar:hover {
    background: var(--brand-gradient-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 102, 255, 0.35);
}

/* ==========================================================================
   HERO + BUSCADOR
   ========================================================================== */
.hero-section {
    background: linear-gradient(160deg, #001233 0%, #001d4d 50%, #082966 100%);
    padding: 60px 0 80px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: visible !important;
    z-index: 50;
}
.hero-section .container {
    position: relative;
    z-index: 60;
    overflow: visible !important;
}
/* Textura Temática Imobiliária: Xadrez Diagonal 4x4 (Sem Ícones Vizinhos Repetidos) */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 50% 20%, rgba(0, 168, 255, 0.22) 0%, transparent 65%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%23ffffff12' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 32l12-10 12 10'/%3E%3Cpath d='M21 32v12h18v-12'/%3E%3Cpath d='M27 44v-6h6v6'/%3E%3Ccircle cx='100' cy='30' r='6.5'/%3E%3Ccircle cx='100' cy='30' r='2.6'/%3E%3Cpath d='M93.5 30H77v5.5h3v-5.5h3.5v3.5h3v-3.5'/%3E%3Crect x='140' y='18' width='20' height='25' rx='1.5'/%3E%3Cpath d='M145 23h2m5 0h2m-9 5h2m5 0h2m-9 5h2m5 0h2'/%3E%3Cpath d='M148 43v-4h4v4'/%3E%3Cpath d='M210 17c-5 0-9 4-9 9 0 6.8 9 14.5 9 14.5s9-7.7 9-14.5c0-5-4-9-9-9z'/%3E%3Ccircle cx='210' cy='26' r='2.8' fill='%23ffffff12'/%3E%3Crect x='20' y='78' width='20' height='25' rx='1.5'/%3E%3Cpath d='M25 83h2m5 0h2m-9 5h2m5 0h2m-9 5h2m5 0h2'/%3E%3Cpath d='M28 103v-4h4v4'/%3E%3Cpath d='M90 77c-5 0-9 4-9 9 0 6.8 9 14.5 9 14.5s9-7.7 9-14.5c0-5-4-9-9-9z'/%3E%3Ccircle cx='90' cy='86' r='2.8' fill='%23ffffff12'/%3E%3Cpath d='M138 92l12-10 12 10'/%3E%3Cpath d='M141 92v12h18v-12'/%3E%3Cpath d='M147 104v-6h6v6'/%3E%3Ccircle cx='220' cy='90' r='6.5'/%3E%3Ccircle cx='220' cy='90' r='2.6'/%3E%3Cpath d='M213.5 90H197v5.5h3v-5.5h3.5v3.5h3v-3.5'/%3E%3Ccircle cx='40' cy='150' r='6.5'/%3E%3Ccircle cx='40' cy='150' r='2.6'/%3E%3Cpath d='M33.5 150H17v5.5h3v-5.5h3.5v3.5h3v-3.5'/%3E%3Crect x='80' y='138' width='20' height='25' rx='1.5'/%3E%3Cpath d='M85 143h2m5 0h2m-9 5h2m5 0h2m-9 5h2m5 0h2'/%3E%3Cpath d='M88 163v-4h4v4'/%3E%3Cpath d='M150 137c-5 0-9 4-9 9 0 6.8 9 14.5 9 14.5s9-7.7 9-14.5c0-5-4-9-9-9z'/%3E%3Ccircle cx='150' cy='146' r='2.8' fill='%23ffffff12'/%3E%3Cpath d='M198 152l12-10 12 10'/%3E%3Cpath d='M201 152v12h18v-12'/%3E%3Cpath d='M207 164v-6h6v6'/%3E%3Cpath d='M30 197c-5 0-9 4-9 9 0 6.8 9 14.5 9 14.5s9-7.7 9-14.5c0-5-4-9-9-9z'/%3E%3Ccircle cx='30' cy='206' r='2.8' fill='%23ffffff12'/%3E%3Cpath d='M78 212l12-10 12 10'/%3E%3Cpath d='M81 212v12h18v-12'/%3E%3Cpath d='M87 224v-6h6v6'/%3E%3Ccircle cx='160' cy='210' r='6.5'/%3E%3Ccircle cx='160' cy='210' r='2.6'/%3E%3Cpath d='M153.5 210H137v5.5h3v-5.5h3.5v3.5h3v-3.5'/%3E%3Crect x='200' y='198' width='20' height='25' rx='1.5'/%3E%3Cpath d='M205 203h2m5 0h2m-9 5h2m5 0h2m-9 5h2m5 0h2'/%3E%3Cpath d='M208 223v-4h4v4'/%3E%3C/g%3E%3C/svg%3E");
    background-size: auto, 240px 240px;
    background-repeat: no-repeat, repeat;
    pointer-events: none;
    overflow: hidden;
}
.hero-section::after {
    display: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 7px 18px 7px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset;
}
.hero-badge svg {
    opacity: 0.75;
    flex-shrink: 0;
}
.hero-title {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.18;
    max-width: 840px;
    margin: 0 auto 16px;
}
.hero-title span {
    background: linear-gradient(135deg, #00a8ff 0%, #60c5ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 16px;
    color: #94a3b8;
    max-width: 620px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* --- Caixa de Busca --- */
.search-box-card {
    background: #ffffff;
    border-radius: var(--r-lg);
    padding: 28px;
    max-width: 1040px;
    margin: 0 auto;
    box-shadow: 0 24px 72px rgba(0, 12, 40, 0.5), 0 1px 0 rgba(255,255,255,0.6) inset;
    color: var(--text-body);
    text-align: left;
    position: relative;
    z-index: 100;
    overflow: visible !important;
}
.search-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0;
    margin-bottom: 22px;
}
.search-tab-btn {
    background: transparent;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 10px 22px;
    border-radius: 0;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: var(--ease);
}
.search-tab-btn.active {
    color: var(--brand-blue);
    border-bottom-color: var(--brand-blue);
}
.search-tab-btn:hover:not(.active) { color: var(--brand-navy); }

.search-form-grid {
    display: grid;
    grid-template-columns: 1.4fr 1.2fr 1fr 140px;
    gap: 12px;
    align-items: flex-end;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-title);
    background: #ffffff;
    outline: none;
    transition: var(--ease);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
.form-field input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-title);
    background: #ffffff;
    outline: none;
    transition: var(--ease);
    background-image: none;
}
.form-field select:focus,
.form-field input[type="text"]:focus {
    border-color: var(--brand-blue);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}

.btn-search-submit {
    height: 48px;
    width: 100%;
    background: var(--brand-gradient);
    color: #fff;
    border: none;
    border-radius: var(--r-sm);
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--ease);
    letter-spacing: 0.2px;
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.35);
    cursor: pointer;
    white-space: nowrap;
    align-self: flex-end;
}
.btn-search-submit:hover {
    background: var(--brand-gradient-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.45);
}

/* Tipo chips */
.tipo-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.tipo-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-body);
    background: #fff;
    cursor: pointer;
    transition: var(--ease);
    text-decoration: none;
}
.tipo-chip:hover,
.tipo-chip.active {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    background: var(--brand-blue-light);
}

/* ==========================================================================
   SEÇÕES DE LISTAGEM (HOME)
   ========================================================================== */
.section-area {
    padding: 56px 0;
}
.section-area-alt {
    background: var(--bg-section-alt);
    padding: 56px 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 12px;
    flex-wrap: wrap;
}
.section-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--brand-navy);
    letter-spacing: -0.5px;
    line-height: 1.2;
}
.section-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 5px;
}
.section-link {
    color: var(--brand-blue);
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: var(--ease);
}
.section-link:hover { text-decoration: underline; }

/* ==========================================================================
   CARDS DE IMÓVEL — LAYOUT HORIZONTAL (PADRÃO PORTAL BR)
   ========================================================================== */
.properties-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.property-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    transition: var(--ease);
    box-shadow: var(--shadow-xs);
}
.property-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

/* Imagem */
.card-img-wrap {
    position: relative;
    flex-shrink: 0;
    width: 280px;
    min-height: 200px;
    overflow: hidden;
    background: #e2e8f0;
}
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
    position: absolute;
    inset: 0;
}
.property-card:hover .card-img { transform: scale(1.05); }

.badge-transacao {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--brand-gradient);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}
.badge-transacao.aluguel { background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%); }

.badge-fotos-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 26, 68, 0.75);
    color: #fff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(4px);
    z-index: 2;
}

/* Corpo do card */
.card-body {
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.card-imob-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.card-imob-badge::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--brand-blue);
    border-radius: 50%;
}

.card-title-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--ease);
}
.card-title-text:hover { color: var(--brand-blue); }

.card-location {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-features {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-body);
    font-weight: 500;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.feature-item svg {
    width: 15px;
    height: 15px;
    fill: var(--text-muted);
    flex-shrink: 0;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    gap: 12px;
    flex-wrap: wrap;
}
.card-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--brand-navy);
    letter-spacing: -0.5px;
}
.card-price-small {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-card-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    background: #0066ff;
    color: #fff;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 700;
    transition: var(--ease);
    white-space: nowrap;
    text-decoration: none;
}
.btn-card-details:hover {
    background: #004ecc;
    color: #fff;
    transform: translateY(-1px);
}

.btn-card-whats {
    padding: 9px 16px;
    background: var(--green-bg);
    color: #15803d;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 700;
    transition: var(--ease);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    border: 1.5px solid rgba(37,211,102,.3);
}
.btn-card-whats:hover {
    background: var(--green);
    color: #fff;
    border-color: transparent;
}

/* ==========================================================================
   GRID DE CARDS (HOME — DESTAQUE)
   ========================================================================== */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.property-card-vertical {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--ease);
    box-shadow: var(--shadow-xs);
}
.property-card-vertical:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}
.property-card-vertical .card-img-wrap {
    width: 100%;
    height: 195px;
    position: relative;
}
.property-card-vertical .card-img {
    position: absolute;
    inset: 0;
}
.property-card-vertical .card-body {
    padding: 16px;
    flex: 1;
}
.property-card-vertical .card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 12px;
}
.property-card-vertical .card-actions {
    width: 100%;
}
.property-card-vertical .btn-card-details,
.property-card-vertical .btn-card-whats {
    flex: 1;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    padding: 9px 10px;
}

/* ==========================================================================
   PAGINAÇÃO
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-body);
    transition: var(--ease);
    text-decoration: none;
}
.page-btn:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.page-btn.active {
    background: var(--brand-gradient);
    border-color: transparent;
    color: #fff;
    font-weight: 800;
}
.page-btn.ellipsis {
    border: none;
    background: transparent;
    cursor: default;
    color: var(--text-muted);
}

/* ==========================================================================
   PÁGINA DE LISTAGEM (CIDADE / BUSCA) — LAYOUT COM SIDEBAR
   ========================================================================== */
.listing-page-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: flex-start;
    padding: 32px 0 60px;
}

/* --- Sidebar de Filtros Lapidada e Moderna (Sem scroll duplo) --- */
.filter-sidebar {
    position: sticky;
    top: 24px;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
    align-self: flex-start;
}
.filter-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 24px rgba(0, 26, 68, 0.05);
}
.apple-sheet-handle,
.mobile-sheet-backdrop,
.mobile-sheet-close {
    display: none;
}
.filter-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.filter-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 18px;
}
.filter-card-title {
    font-size: 15px;
    font-weight: 800;
    color: #001a44;
    display: flex;
    align-items: center;
    gap: 8px;
}
.filter-clear-link {
    font-size: 11px;
    font-weight: 700;
    color: #ef4444;
    background: #fef2f2;
    padding: 4px 10px;
    border-radius: 20px;
    text-decoration: none;
    transition: var(--ease);
}
.filter-clear-link:hover {
    background: #fee2e2;
}

.filter-group {
    margin-bottom: 18px;
}
.filter-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}

/* Transação (3-Segmented Toggle) */
.transacao-toggle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    gap: 3px;
}
.transacao-toggle-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 0;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    border-radius: 7px;
    cursor: pointer;
    transition: all .2s ease;
    user-select: none;
}
.transacao-toggle-item input { display: none; }
.transacao-toggle-item:hover { color: #001a44; }
.transacao-toggle-item.active {
    background: #0066ff;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.28);
}

/* Inputs e Selects */
.filter-select,
.filter-text-input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #001a44;
    background: #f8fafc;
    outline: none;
    transition: all .2s ease;
}
.filter-select:focus,
.filter-text-input:focus {
    border-color: #0066ff;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}

/* Grid de Tipos de Imóvel */
.tipo-sidebar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.tipo-sidebar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 8px;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    font-size: 11.5px;
    font-weight: 700;
    color: #334155;
    background: #f8fafc;
    cursor: pointer;
    transition: all .2s ease;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    user-select: none;
}
.tipo-sidebar-btn input { display: none; }
.tipo-sidebar-btn svg {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    fill: #64748b;
    transition: all .2s ease;
}
.tipo-sidebar-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tipo-sidebar-btn:hover {
    border-color: #0066ff;
    color: #0066ff;
    background: #eff6ff;
}
.tipo-sidebar-btn:hover svg {
    fill: #0066ff;
}
.tipo-sidebar-btn.active {
    border-color: #0066ff;
    color: #ffffff;
    background: #0066ff;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.25);
}
.tipo-sidebar-btn.active svg {
    fill: #ffffff;
}

/* Pills Radios (Quartos, Banheiros, Vagas) */
.pills-selector-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}
.pill-radio-item {
    min-width: 0;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 11.5px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all .2s ease;
    user-select: none;
    padding: 0;
    text-align: center;
}
.pill-radio-item input { display: none; }
.pill-radio-item:hover {
    border-color: #0066ff;
    color: #0066ff;
    background: #eff6ff;
}
.pill-radio-item.active {
    border-color: #0066ff;
    background: #0066ff;
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.25);
}

/* Preço e Área Inputs com Prefixo */
.preco-inputs-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 6px;
}
.filter-input-prefix {
    position: relative;
    display: flex;
    align-items: center;
}
.filter-input-prefix span {
    position: absolute;
    left: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    pointer-events: none;
}
.filter-input-prefix input {
    width: 100%;
    height: 40px;
    padding: 0 6px 0 28px;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 600;
    color: #001a44;
    background: #f8fafc;
    outline: none;
    transition: all .2s ease;
}
.filter-input-prefix input:focus {
    border-color: #0066ff;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}
.preco-sep {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 700;
}

/* Pílulas de Bairros Populares (Dinâmico) */
.filter-group-bairros {
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}
.bairros-pills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.bairro-pill-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    background: #f8fafc;
    color: #475569;
    border: 1.5px solid #e2e8f0;
    text-decoration: none;
    transition: all .2s ease;
}
.bairro-pill-link:hover {
    border-color: #0066ff;
    color: #0066ff;
    background: #eff6ff;
    transform: translateY(-1px);
}
.bairro-pill-link.active {
    background: #0066ff;
    color: #ffffff;
    border-color: #0066ff;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.25);
}
.bairro-pill-badge {
    font-size: 10px;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.07);
    color: inherit;
    padding: 1px 6px;
    border-radius: 12px;
}
.bairro-pill-link.active .bairro-pill-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Botões do Filtro */
.filter-actions-wrap {
    margin-top: 20px;
}
.btn-filter-apply {
    width: 100%;
    height: 46px;
    background: linear-gradient(135deg, #0066ff 0%, #004ecc 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.3);
    transition: all .2s ease;
}
.btn-filter-apply:hover {
    background: linear-gradient(135deg, #005ce6 0%, #003db3 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 102, 255, 0.4);
}
.btn-filter-reset {
    display: block;
    text-align: center;
    margin-top: 10px;
    padding: 9px 0;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 9px;
    text-decoration: none;
    transition: all .2s ease;
}
.btn-filter-reset:hover {
    background: #e2e8f0;
    color: #001a44;
}

/* Oculta botão mobile no Desktop */
.mobile-filter-btn {
    display: none;
}


/* --- Main Content da listagem --- */
.listing-main { min-width: 0; }

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.breadcrumbs a { transition: var(--ease); }
.breadcrumbs a:hover { color: var(--brand-blue); }
.breadcrumbs .sep { color: #cbd5e1; }

.listing-header {
    margin-bottom: 24px;
}
.listing-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.listing-header-titles {
    flex: 1;
    min-width: 260px;
}
.listing-h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--brand-navy);
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}
.listing-count {
    font-size: 14px;
    color: var(--text-muted);
}

/* Select de ordenação no topo direito */
.listing-sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 6px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 26, 68, 0.04);
    transition: border-color 0.2s ease;
}
.listing-sort-wrap:focus-within {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}
.sort-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sort-select {
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-navy);
    outline: none;
    cursor: pointer;
    padding-right: 4px;
}

/* Botão Carregar Mais Imóveis (Load More) */
.load-more-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 36px;
    gap: 12px;
}
.btn-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 36px;
    background: linear-gradient(135deg, #0066ff 0%, #004ecc 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.35);
    animation: pulseLoadMore 2s infinite ease-in-out;
}
.btn-load-more:hover {
    background: linear-gradient(135deg, #005ce6 0%, #003db3 100%);
    color: #ffffff;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.5);
    animation-play-state: paused;
}
.btn-load-more:active {
    transform: translateY(0) scale(0.98);
}
.btn-load-more.loading {
    opacity: 0.8;
    pointer-events: none;
    animation: none;
}

@keyframes pulseLoadMore {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(0, 102, 255, 0.35);
    }
    50% {
        transform: scale(1.035);
        box-shadow: 0 8px 28px rgba(0, 102, 255, 0.6), 0 0 0 6px rgba(0, 102, 255, 0.16);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(0, 102, 255, 0.35);
    }
}
.load-more-status {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}
.load-more-end {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
    padding: 12px 20px;
    background: #f8fafc;
    border-radius: 20px;
}

/* Animação suave para novos cards inseridos */
.fade-in-card {
    animation: fadeInCard 0.45s ease forwards;
}
@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================================================
   PÁGINA DO IMÓVEL — DETALHE COMPLETO & MASTER HERO GALLERY
   ========================================================================== */
.property-detail-page {
    padding: 24px 20px 60px;
}

/* ─── GRID PRINCIPAL DA PÁGINA: Conteúdo + CTA Sticky ─── */
.property-page-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 0;
}
.property-main-col {
    min-width: 0;
}

/* ─── BLOCO DE PREÇO NO CONTEÚDO ─── */
.detail-header-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 24px;
    margin-bottom: 20px;
}
.detail-price-block {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}
.detail-price-main {
    font-size: 32px;
    font-weight: 900;
    color: var(--brand-navy);
    letter-spacing: -1.5px;
    line-height: 1;
    margin-bottom: 6px;
}
.detail-badge-financiamento {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 3px 9px;
    border-radius: 4px;
    vertical-align: middle;
    white-space: nowrap;
    line-height: 1.4;
}
.detail-price-sub {
    font-size: 14px;
    color: var(--brand-blue);
    font-weight: 600;
    margin-bottom: 6px;
}
.detail-fees-inline {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ─── ISCA MENTAL / MICRO-COMMITMENT ─── */
.cta-intent-box {
    background: #f8faff;
    border: 1.5px solid #dbeafe;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 18px;
}
.cta-intent-headline {
    font-size: 13px;
    font-weight: 800;
    color: var(--brand-navy);
    margin-bottom: 12px;
    line-height: 1.35;
}
.cta-intent-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cta-intent-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1.5px solid transparent;
    background: #fff;
    transition: all 0.2s ease;
    font-size: 13px;
    color: #374151;
    font-weight: 500;
    line-height: 1.35;
    user-select: none;
}
.cta-intent-option:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
}
.cta-intent-option input[type="radio"] {
    display: none;
}
.cta-intent-option .cta-intent-radio-ui {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.cta-intent-option .cta-intent-radio-ui::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-blue);
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}
.cta-intent-option input[type="radio"]:checked + .cta-intent-radio-ui {
    border-color: var(--brand-blue);
    background: #eff6ff;
}
.cta-intent-option input[type="radio"]:checked + .cta-intent-radio-ui::after {
    opacity: 1;
    transform: scale(1);
}
.cta-intent-option:has(input:checked) {
    border-color: var(--brand-blue);
    background: #eff6ff;
    color: var(--brand-navy);
    font-weight: 700;
}

.gallery-hero-container {
    min-width: 0;
}
.gallery-hero-viewport {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 16px;
    overflow: hidden;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.gallery-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: opacity 0.2s ease;
}
.gallery-hero-viewport:hover .gallery-hero-img {
    opacity: 0.97;
}

.gallery-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #001a44;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    z-index: 10;
}
.gallery-arrow-btn:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.gallery-arrow-prev { left: 18px; }
.gallery-arrow-next { right: 18px; }

.gallery-counter-badge {
    position: absolute;
    bottom: 16px;
    right: 18px;
    background: rgba(0, 26, 68, 0.85);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.gallery-thumbs::-webkit-scrollbar {
    display: none;
}
.gallery-thumb {
    flex-shrink: 0;
    width: 88px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    object-position: center center;
    cursor: pointer;
    border: 2.5px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.65;
    background: #e2e8f0;
}
.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: #0066ff;
    opacity: 1;
    transform: translateY(-1px);
}

/* .detail-layout-grid foi substituído por .property-hero-grid */
.detail-tag-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #eff6ff;
    color: var(--brand-blue);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--r-sm);
    margin-bottom: 8px;
}
.detail-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--brand-navy);
    letter-spacing: -0.5px;
    line-height: 1.3;
    margin-bottom: 6px;
}
.detail-location {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.specs-bar {
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    margin-bottom: 24px;
}
.spec-item {
    flex: 1;
    padding: 16px 12px;
    text-align: center;
    border-right: 1px solid var(--border);
}
.spec-item:last-child { border-right: none; }
.spec-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}
.spec-value {
    font-size: 17px;
    font-weight: 800;
    color: var(--brand-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.spec-value svg {
    width: 18px;
    height: 18px;
    fill: var(--text-muted);
}

.detail-section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 24px;
    margin-bottom: 20px;
}
.detail-section-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--brand-navy);
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.detail-description {
    font-size: 14px;
    line-height: 1.85;
    color: var(--text-body);
    white-space: pre-line;
}

.comodidades-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.comodidade-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-navy);
}

/* Sidebar do imóvel — sticky dentro do hero grid */
.detail-sticky-sidebar { position: sticky; top: 88px; min-width: 0; }

.sidebar-lead-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 24px;
    box-shadow: var(--shadow-md);
}
.sidebar-transacao-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.sidebar-price-tag {
    font-size: 30px;
    font-weight: 800;
    color: var(--brand-navy);
    letter-spacing: -1px;
    margin-bottom: 4px;
}
.sidebar-fees {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    line-height: 1.7;
}
.sidebar-code {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 18px;
}

.btn-big-whats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 14px;
    background: var(--green);
    color: #fff;
    border-radius: var(--r-sm);
    font-size: 15px;
    font-weight: 800;
    transition: var(--ease);
    margin-bottom: 10px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}
.btn-big-whats:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}
.btn-big-whats svg { width: 20px; height: 20px; fill: #fff; }

.btn-visita {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 12px;
    background: var(--brand-navy);
    color: #fff;
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 700;
    transition: var(--ease);
}
.btn-visita:hover {
    background: var(--brand-blue);
    transform: translateY(-1px);
}

.sidebar-note {
    font-size: 11px;
    color: var(--text-light);
    text-align: center;
    margin-top: 12px;
    line-height: 1.5;
}

/* Ícones SVG nas opções de intenção */
.cta-intent-icon {
    width: 16px;
    height: 16px;
    fill: #6b7280;
    flex-shrink: 0;
    transition: fill 0.2s ease;
}
.cta-intent-option:has(input:checked) .cta-intent-icon { fill: var(--brand-blue); }

/* Legenda animada (movimento suave pra frente e pra trás) */
.cta-animated-hint {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #4b5563;
    text-align: center;
    margin-top: 2px;
    margin-bottom: 12px;
    line-height: 1.45;
    animation: nudge-horizontal 2.2s ease-in-out infinite;
}

@keyframes nudge-horizontal {
    0%, 100% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-5px);
    }
    40% {
        transform: translateX(5px);
    }
    60% {
        transform: translateX(-3px);
    }
    80% {
        transform: translateX(3px);
    }
}

/* Botão WhatsApp flutuante — Mobile only */
.btn-float-whats-wrap {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 16px 20px;
    background: linear-gradient(to top, rgba(255,255,255,0.98) 80%, transparent);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.btn-float-whats-wrap.visible { transform: translateY(0); }
.btn-float-whats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: var(--green);
    color: #fff;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(37,211,102,0.45);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-float-whats:active { transform: scale(0.97); box-shadow: 0 4px 12px rgba(37,211,102,0.3); }

/* Links SEO */
.seo-links-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.seo-links-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--brand-navy);
    margin-bottom: 16px;
}
.seo-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 24px;
}
.seo-links-grid a {
    font-size: 13px;
    color: var(--brand-blue);
    transition: var(--ease);
    display: block;
    padding: 3px 0;
}
.seo-links-grid a:hover { color: var(--brand-navy); text-decoration: underline; }

/* Modal Galeria — Centralizado Vertical e Horizontalmente */
.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 18, 51, 0.96);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.gallery-modal.open {
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-modal-img {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
    border-radius: var(--r-sm);
    margin: auto;
    display: block;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}
.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    background: none;
    line-height: 1;
    opacity: .8;
    transition: var(--ease);
}
.gallery-modal-close:hover { opacity: 1; }
.gallery-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.15);
    color: #fff;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: var(--ease);
    backdrop-filter: blur(4px);
}
.gallery-modal-nav:hover { background: rgba(255,255,255,.3); }
.gallery-modal-prev { left: 20px; }
.gallery-modal-next { right: 20px; }

/* ==========================================================================
   FOOTER COM SILOS DE SEO
   ========================================================================== */
.site-footer {
    background: var(--navy-dark);
    color: #94a3b8;
    padding: 60px 0 32px;
    margin-top: 64px;
    border-top: 3px solid var(--brand-blue);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 44px;
    margin-bottom: 44px;
}
.footer-brand-logo {
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    margin-left: 0;
    padding: 0;
}
.footer-logo-img {
    height: 30px !important;
    width: auto !important;
    max-width: 215px !important;
    object-fit: contain !important;
    filter: brightness(0) invert(1);
    transition: transform 0.25s ease;
    display: block;
}
.footer-logo-img:hover {
    transform: scale(1.02);
}
.footer-brand-desc {
    font-size: 14.5px;
    color: #cbd5e1;
    line-height: 1.75;
    margin-bottom: 18px;
    max-width: 360px;
}

/* Status dos Consultores Online no Rodapé */
.footer-consultores-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.footer-consultores-txt {
    font-size: 12px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 5px;
}
.footer-consultores-txt strong {
    color: #86efac;
}

/* Pilha de Avatares Sobrepostos (Avatar Stack) */
.consultores-avatar-stack {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-select: none;
}
.consultores-avatar-stack .consultor-avatar-img {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    border: 2px solid #001a44;
    object-fit: cover !important;
    object-position: center top !important;
    margin-left: -8px;
    flex-shrink: 0 !important;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-user-drag: none !important;
    -webkit-touch-callout: none !important;
    cursor: default !important;
}
.consultores-avatar-stack .consultor-avatar-img:first-child {
    margin-left: 0;
}
.consultores-avatar-stack:hover .consultor-avatar-img {
    transform: translateY(-2px);
}
.consultores-avatar-stack.mini .consultor-avatar-img {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
    aspect-ratio: 1 / 1 !important;
    border: 1.5px solid #001a44;
    margin-left: -6px;
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-user-drag: none !important;
    -webkit-touch-callout: none !important;
    cursor: default !important;
}
.consultores-avatar-stack.mini .consultor-avatar-img:first-child {
    margin-left: 0;
}

/* Ponto Verde Pulsante (Live Green Pulse) */
.live-dot-pulse {
    position: relative;
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #16a34a;
    border-radius: 50%;
    vertical-align: middle;
}
.live-dot-pulse::after {
    display: none !important;
}
/* Modo Madrugada (Ponto Amarelo) */
.live-dot-pulse.yellow {
    background: #ca8a04;
}
.live-dot-pulse.yellow::after {
    display: none !important;
}

@keyframes pulseGreen {
    0% {
        transform: scale(0.8);
        opacity: 0.9;
    }
    70% {
        transform: scale(2.2);
        opacity: 0;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

@keyframes pulseYellow {
    0% {
        transform: scale(0.8);
        opacity: 0.9;
    }
    70% {
        transform: scale(2.2);
        opacity: 0;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

@keyframes fadeInAvatar {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Botão Sou Imobiliária / Anunciar no Rodapé */
.btn-footer-anunciar {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 22px;
    background: linear-gradient(135deg, #0066ff 0%, #004ecc 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 102, 255, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}
.btn-footer-anunciar:hover {
    background: linear-gradient(135deg, #005ce6 0%, #003db3 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.45);
}
.btn-footer-anunciar:active {
    transform: translateY(0);
}

.footer-col-title {
    color: #f1f5f9;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.footer-links a {
    font-size: 13px;
    color: #94a3b8;
    transition: var(--ease);
    line-height: 1.4;
}
.footer-links a:hover { color: #60c5ff; }

.footer-bottom {
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.footer-bottom p { font-size: 12px; color: #64748b; }
.footer-bottom a { font-size: 12px; color: #64748b; transition: var(--ease); }
.footer-bottom a:hover { color: #94a3b8; }

/* ==========================================================================
   MODAL CHAT DE PARCERIAS (APPLE iOS UX STYLE)
   ========================================================================== */
.chat-parcerias-modal {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.3s ease;
}
.chat-parcerias-modal.open {
    opacity: 1;
    visibility: visible;
}
.chat-parcerias-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 15, 45, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.chat-parcerias-window {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    height: 640px;
    max-height: 88vh;
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 70px rgba(0, 20, 60, 0.38);
    transform: scale(0.92) translateY(24px);
    transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
    margin: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.chat-parcerias-modal.open .chat-parcerias-window {
    transform: scale(1) translateY(0);
}
.chat-modal-handle {
    display: none;
    width: 44px;
    height: 5px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    margin: 10px auto 4px;
    cursor: grab;
}
.chat-modal-header {
    background: linear-gradient(180deg, #001e4d 0%, #00163a 100%);
    color: #ffffff;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}
.chat-header-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.chat-header-bot {
    display: flex;
    align-items: center;
    gap: 12px;
}
.chat-bot-info h4 {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.2px;
}
.chat-bot-status {
    font-size: 11.5px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}
.chat-bot-status strong {
    color: #86efac;
}
.chat-avatar-mini-img {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center top !important;
    border: 1.5px solid #0066ff;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.35);
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-user-drag: none !important;
    -webkit-touch-callout: none !important;
    cursor: default !important;
}
.chat-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    border: none;
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
}
.chat-modal-close:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.05);
}
.chat-modal-close:active {
    transform: scale(0.92);
}

.chat-modal-body {
    flex: 1;
    padding: 18px 16px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 14px;
    -webkit-overflow-scrolling: touch;
}
.chat-msg-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    animation: fadeInMsg 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}
.chat-msg-row.user {
    flex-direction: row-reverse;
}
.chat-avatar-mini {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #0066ff 0%, #004ecc 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.chat-bubble {
    max-width: 86%;
    padding: 13px 17px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.5;
}
.chat-msg-row.bot .chat-bubble {
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #eef2f6;
    border-bottom-left-radius: 4px;
    box-shadow: 0 3px 12px rgba(0, 20, 50, 0.05);
}
.chat-msg-row.user .chat-bubble {
    background: linear-gradient(135deg, #007aff 0%, #0056cc 100%);
    color: #ffffff;
    border-bottom-right-radius: 4px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 122, 255, 0.3);
}

.chat-options-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}
.chat-option-btn {
    background: #ffffff;
    border: 1.5px solid #0066ff;
    color: #0066ff;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 13.5px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.06);
    -webkit-tap-highlight-color: transparent;
}
.chat-option-btn:hover {
    background: #0066ff;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.22);
}
.chat-option-btn:active {
    transform: scale(0.97);
    background: #f0f7ff;
}

.chat-modal-input-bar {
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    align-items: center;
}
.chat-modal-input {
    flex: 1;
    height: 44px;
    border: 1.5px solid #e2e8f0;
    border-radius: 22px;
    padding: 0 16px;
    font-size: 14px;
    outline: none;
    background: #f8fafc;
    transition: all 0.2s ease;
}
.chat-modal-input:focus {
    border-color: #0066ff;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}
.chat-modal-send-btn {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #007aff 0%, #0056cc 100%);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 122, 255, 0.3);
    transition: transform 0.15s ease;
    flex-shrink: 0;
}
.chat-modal-send-btn:active {
    transform: scale(0.92);
}

@media (max-width: 768px) {
    .chat-parcerias-modal {
        align-items: flex-end;
    }
    .chat-parcerias-window {
        max-width: 100%;
        height: 86vh;
        height: 86dvh;
        max-height: 86dvh;
        border-radius: 32px 32px 0 0;
        margin: 0;
        transform: translateY(100%);
        box-shadow: 0 -10px 45px rgba(0, 15, 45, 0.35);
        border-top: 1px solid rgba(255, 255, 255, 0.25);
    }
    .chat-parcerias-modal.open .chat-parcerias-window {
        transform: translateY(0);
    }
    .chat-modal-handle {
        display: block;
    }
    .chat-modal-header {
        padding: 8px 18px 14px;
    }
    .footer-logo-img {
        height: 28px !important;
        width: auto !important;
        max-width: 195px !important;
        object-fit: contain !important;
    }
    .footer-brand-desc {
        font-size: 13.5px !important;
        line-height: 1.65 !important;
        margin-bottom: 14px !important;
        max-width: 100% !important;
    }
    .btn-footer-anunciar {
        width: 100% !important;
        height: 46px !important;
        border-radius: 14px !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        box-shadow: 0 4px 14px rgba(0, 102, 255, 0.3) !important;
    }
}

/* Empty state */
.empty-state {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 60px 32px;
    text-align: center;
}
.empty-state h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 8px;
}
.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}
.btn { display: inline-flex; align-items: center; padding: 11px 22px; border-radius: var(--r-sm); font-weight: 700; font-size: 14px; transition: var(--ease); }
.btn-primary { background: var(--brand-gradient); color: #fff; box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3); }
.btn-primary:hover { background: var(--brand-gradient-hover); transform: translateY(-1px); }

/* ==========================================================================
   RESPONSIVIDADE & APPLE-LIKE MOBILE USER EXPERIENCE
   ========================================================================== */
@media (max-width: 1100px) {
    .listing-page-layout { grid-template-columns: 240px 1fr; }
    .gallery-grid { grid-template-columns: 1fr 260px; }
    .property-page-grid { grid-template-columns: 1fr 300px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991px) {
    .listing-page-layout { grid-template-columns: 1fr; }

    /* ─── Apple Bottom Sheet Drawer para Filtros (Safari & Chrome 100% Fixed) ─── */
    .filter-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        z-index: 99999;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.3s;
    }
    .filter-sidebar.mobile-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .mobile-sheet-backdrop {
        display: block;
        position: absolute;
        inset: 0;
        background: rgba(0, 15, 40, 0.5);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: 1;
    }

    .apple-sheet-handle {
        display: block;
        width: 44px;
        height: 5px;
        background: #cbd5e1;
        border-radius: 3px;
        margin: 2px auto 14px;
        cursor: grab;
        touch-action: none;
    }

    .mobile-sheet-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #f1f5f9;
        border: none;
        font-size: 13px;
        font-weight: 800;
        color: #64748b;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    .mobile-sheet-close:active {
        background: #e2e8f0;
        transform: scale(0.92);
    }

    .filter-header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .filter-card {
        position: relative;
        z-index: 2;
        width: 100%;
        max-width: 560px;
        max-height: 85vh;
        max-height: 85dvh;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        border-radius: 28px 28px 0 0;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-bottom: none;
        background: #ffffff;
        padding: 12px 20px max(32px, calc(env(safe-area-inset-bottom, 16px) + 20px));
        box-shadow: 0 -12px 48px rgba(0, 20, 60, 0.28);
        transform: translateY(100%);
        transition: transform 0.36s cubic-bezier(0.32, 0.72, 0, 1);
        margin: 0;
    }
    .filter-sidebar.mobile-open .filter-card {
        transform: translateY(0);
    }

    /* Botão Mobile de Filtros Estilo Apple Pill */
    .mobile-filter-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 44px;
        padding: 0 20px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 24px;
        font-size: 13.5px;
        font-weight: 800;
        color: #001a44;
        box-shadow: 0 4px 16px rgba(0, 26, 68, 0.07);
        margin: 0 0 16px;
        cursor: pointer;
        width: 100%;
        transition: all 0.2s cubic-bezier(0.32, 0.72, 0, 1);
        -webkit-tap-highlight-color: transparent;
    }
    .mobile-filter-btn:active {
        transform: scale(0.97);
        background: #f8fafc;
    }
    .mobile-filter-btn svg {
        fill: #0066ff;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .property-detail-page { padding: 16px 16px 48px; }

    /* Cabeçalho Mobile Compacto e Elegante */
    .site-header { padding: 0; }
    .header-inner {
        height: 58px;
        padding: 0 12px;
        gap: 8px;
        justify-content: space-between;
    }
    .logo-brand { flex-shrink: 0; }
    .site-logo-img {
        height: 36px;
        max-width: 156px;
    }
    .main-nav { display: none; }
    .btn-header-whats,
    .btn-header-anunciar {
        padding: 7px 12px;
        font-size: 12px;
        height: 34px;
        gap: 6px;
        flex-shrink: 0;
        border-radius: 10px;
    }
    .btn-header-whats svg,
    .btn-header-anunciar svg {
        width: 14px;
        height: 14px;
    }

    .hero-title { font-size: 28px; letter-spacing: -0.8px; }
    .hero-subtitle { font-size: 14px; }
    .search-box-card { padding: 20px; border-radius: 18px; }
    .search-form-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .search-form-grid > div:last-child { grid-column: span 2; }

    /* ─── Apple-like Property Cards ─── */
    .property-card {
        flex-direction: column;
        border-radius: 20px;
        border: 1px solid #eef2f6;
        box-shadow: 0 4px 20px rgba(0, 26, 68, 0.05);
        margin-bottom: 18px;
        overflow: hidden;
        background: #ffffff;
        transition: transform 0.2s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }
    .property-card:active {
        transform: scale(0.985);
        box-shadow: 0 2px 10px rgba(0, 26, 68, 0.08);
    }
    .card-img-wrap {
        width: 100%;
        height: 210px;
        border-radius: 20px 20px 0 0;
    }
    .badge-transacao {
        top: 12px;
        left: 12px;
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 11px;
        font-weight: 800;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    .badge-fotos-count {
        bottom: 12px;
        right: 12px;
        border-radius: 20px;
        padding: 4px 10px;
        font-size: 11px;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    .card-body {
        padding: 16px 18px 18px;
    }
    .card-title-text {
        font-size: 16px;
        line-height: 1.35;
        margin-bottom: 6px;
    }
    .card-location {
        font-size: 12.5px;
        margin-bottom: 12px;
    }
    .card-features {
        gap: 12px;
        font-size: 12.5px;
        padding: 8px 0 12px;
        border-bottom: 1px solid #f1f5f9;
        margin-bottom: 14px;
    }
    .card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding-top: 14px;
        border-top: 1px solid #f1f5f9;
        margin-top: auto;
    }
    .card-price {
        font-size: 22px;
        font-weight: 900;
        letter-spacing: -0.5px;
        color: var(--brand-navy);
    }
    .card-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }
    .btn-card-whats {
        height: 44px;
        padding: 0 12px;
        border-radius: 12px;
        font-size: 13px;
        font-weight: 800;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 100%;
        white-space: nowrap;
        background: #ecfdf5;
        color: #15803d;
        border: 1.5px solid rgba(37, 211, 102, 0.35);
        box-shadow: 0 2px 8px rgba(37, 211, 102, 0.15);
    }
    .btn-card-details {
        height: 44px;
        padding: 0 12px;
        border-radius: 12px;
        font-size: 13px;
        font-weight: 800;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        white-space: nowrap;
        background: linear-gradient(135deg, #0066ff 0%, #004ecc 100%);
        color: #ffffff;
        border: none;
        box-shadow: 0 2px 10px rgba(0, 102, 255, 0.25);
    }

    /* Botão Carregar Mais Imóveis no Mobile */
    .btn-load-more {
        width: 100%;
        height: 48px;
        border-radius: 14px;
        font-size: 15px;
    }

    .gallery-grid { grid-template-columns: 1fr; height: 280px; border-radius: var(--r-md); }
    .gallery-main-wrap { touch-action: pan-y; cursor: grab; }
    .gallery-sub-grid { display: none; }
    .gallery-thumbs { gap: 6px; margin-bottom: 16px; -webkit-overflow-scrolling: touch; }
    .gallery-thumb { width: 72px; height: 50px; }

    /* Grid principal empilha: conteúdo → CTA → semelhantes */
    .property-page-grid { grid-template-columns: 1fr; gap: 20px; }
    .detail-sticky-sidebar { position: static; width: 100%; }
    .sidebar-lead-card { border-radius: var(--r-md); }
    .sidebar-price-tag { font-size: 28px; }
    .gallery-hero-viewport { height: 300px; }
    .gallery-arrow-btn { display: none !important; }
    .detail-price-main { font-size: 26px; }
    .detail-section,
    .detail-header-card {
        padding: 18px 16px;
        margin-bottom: 16px;
    }
    .detail-section-title {
        font-size: 16px;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    /* Botão flutuante visível no mobile */
    .btn-float-whats-wrap { display: block; }
    .property-detail-page { padding-bottom: 100px; }

    .specs-bar { flex-wrap: wrap; }
    .spec-item { flex: none; width: 50%; border-bottom: 1px solid var(--border); }
    .spec-item:nth-child(odd) { border-right: 1px solid var(--border); }
    .spec-item:last-child,
    .spec-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }

    .breadcrumbs { font-size: 12px; gap: 4px; padding: 0 2px; margin-bottom: 14px; }
    .detail-title { font-size: 20px; margin-bottom: 8px; }
    .detail-location { font-size: 13px; flex-wrap: wrap; margin-bottom: 16px; }

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

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .property-detail-page { padding: 12px 14px 40px; }
    .detail-section,
    .detail-header-card {
        padding: 16px 14px;
        margin-bottom: 14px;
    }
    .detail-price-main {
        font-size: 23px;
        letter-spacing: -0.5px;
    }

    /* Cabeçalho Compacto para telas pequenas */
    .header-inner {
        height: 54px;
        padding: 0 10px;
        gap: 6px;
    }
    .site-logo-img {
        height: 32px;
        max-width: 142px;
    }
    .btn-header-whats,
    .btn-header-anunciar {
        padding: 6px 10px;
        font-size: 11px;
        height: 32px;
        gap: 5px;
    }
    .btn-header-whats span,
    .btn-header-anunciar span {
        font-size: 11px;
    }

    .search-form-grid { grid-template-columns: 1fr; }
    .search-form-grid > div:last-child { grid-column: span 1; }
    .properties-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .seo-links-grid { grid-template-columns: 1fr; }
    .page-btn { width: 34px; height: 34px; font-size: 13px; }
}

/* ==========================================================================
   COMBOBOX DIGITÁVEL DE CIDADES (DESKTOP & MOBILE)
   ========================================================================== */
.city-combobox-wrap {
    position: relative;
    width: 100%;
    z-index: 10;
}
.city-combobox-wrap.open {
    z-index: 99999 !important;
}
.search-form-grid .form-field:has(.city-combobox-wrap.open),
.form-field.city-field-open {
    z-index: 99999 !important;
    position: relative;
}
.city-combobox-input {
    width: 100%;
    height: 48px;
    padding: 0 40px 0 16px;
    background: #ffffff;
    background-image: none !important;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    cursor: text;
}
.city-combobox-input:focus {
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}
.city-combobox-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    transition: transform 0.2s ease;
    border-radius: 6px;
}
.city-combobox-wrap.open .city-combobox-toggle-btn {
    transform: translateY(-50%) rotate(180deg);
}
.city-combobox-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    min-width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(0, 26, 68, 0.22), 0 4px 12px rgba(0, 0, 0, 0.08);
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 999999 !important;
    display: none;
    padding: 6px;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE e Edge */
}
.city-combobox-dropdown::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
    width: 0;
    height: 0;
}
.city-combobox-wrap.open .city-combobox-dropdown {
    display: block;
    animation: fadeInDropdown 0.18s ease;
}
@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.city-optgroup-header {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0066ff;
    background: #f0f7ff;
    padding: 7px 12px;
    border-radius: 6px;
    margin: 6px 0 3px;
    user-select: none;
}
.city-optgroup-header:first-child {
    margin-top: 0;
}
.city-option-item {
    padding: 9px 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.15s ease, color 0.15s ease;
}
.city-option-item:hover, .city-option-item.highlighted {
    background: #f1f5f9;
    color: #0066ff;
}
.city-option-item.selected {
    background: #e0f2fe;
    color: #0284c7;
    font-weight: 700;
}
.city-option-count {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 20px;
}
.city-no-match {
    padding: 16px 12px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
}

/* ==========================================================================
   CITY FAQ SECTION & RICH SNIPPETS ACCORDION
   ========================================================================== */
.city-faq-section {
    margin-top: 44px;
    padding-top: 36px;
    border-top: 1px solid #e2e8f0;
}
.city-faq-header {
    margin-bottom: 22px;
}
.city-faq-title {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
}
.city-faq-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}
.city-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.city-faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.city-faq-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.city-faq-item[open] {
    border-color: #bfdbfe;
    background: #f8fafc;
}
.city-faq-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: color 0.15s ease;
}
.city-faq-summary::-webkit-details-marker {
    display: none;
}
.city-faq-item[open] .city-faq-summary {
    color: #0066ff;
}
.city-faq-chevron {
    flex-shrink: 0;
    color: #94a3b8;
    transition: transform 0.25s ease, color 0.2s ease;
}
.city-faq-item[open] .city-faq-chevron {
    transform: rotate(180deg);
    color: #0066ff;
}
.city-faq-answer {
    padding: 0 20px 18px 20px;
    border-top: 1px solid #f1f5f9;
}
.city-faq-answer p {
    font-size: 14px;
    line-height: 1.7;
    color: #475569;
    margin: 12px 0 0;
}


