/* ============================================================
   vImob — Design System inspirado em JETImob/Bravier
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: var(--font-size-base, 16px);
    background-color: var(--color-background, #f8f9fa);
    color: var(--color-text, #1a1a2e);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-heading, 'Inter', sans-serif);
    font-weight: 700; line-height: 1.2;
}

a { color: var(--color-primary, #1a56db); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ── Layout ── */
.container      { width:100%; max-width:1240px; margin:0 auto; padding:0 20px; }
.container-sm   { width:100%; max-width:860px;  margin:0 auto; padding:0 20px; }
.container-lg   { width:100%; max-width:1400px; margin:0 auto; padding:0 20px; }

/* ── Grid e Flex ── */
.flex          { display:flex; }
.flex-col      { flex-direction:column; }
.flex-wrap     { flex-wrap:wrap; }
.items-center  { align-items:center; }
.items-start   { align-items:flex-start; }
.items-end     { align-items:flex-end; }
.justify-between { justify-content:space-between; }
.justify-center  { justify-content:center; }
.justify-end     { justify-content:flex-end; }
.flex-1        { flex:1; }
.flex-shrink-0 { flex-shrink:0; }
.gap-2{gap:8px} .gap-3{gap:12px} .gap-4{gap:16px} .gap-5{gap:20px} .gap-6{gap:24px} .gap-8{gap:32px}

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

/* ── Spacing ── */
.p-2{padding:8px} .p-3{padding:12px} .p-4{padding:16px} .p-5{padding:20px} .p-6{padding:24px} .p-8{padding:32px}
.px-3{padding-left:12px;padding-right:12px} .px-4{padding-left:16px;padding-right:16px} .px-6{padding-left:24px;padding-right:24px} .px-8{padding-left:32px;padding-right:32px}
.py-2{padding-top:8px;padding-bottom:8px} .py-3{padding-top:12px;padding-bottom:12px} .py-4{padding-top:16px;padding-bottom:16px} .py-6{padding-top:24px;padding-bottom:24px}
.py-8{padding-top:32px;padding-bottom:32px} .py-12{padding-top:48px;padding-bottom:48px} .py-16{padding-top:64px;padding-bottom:64px} .py-20{padding-top:80px;padding-bottom:80px}
.pt-4{padding-top:16px} .pb-4{padding-bottom:16px} .pt-8{padding-top:32px}
.mt-1{margin-top:4px} .mt-2{margin-top:8px} .mt-3{margin-top:12px} .mt-4{margin-top:16px}
.mt-6{margin-top:24px} .mt-8{margin-top:32px} .mt-10{margin-top:40px} .mt-12{margin-top:48px}
.mb-1{margin-bottom:4px} .mb-2{margin-bottom:8px} .mb-3{margin-bottom:12px}
.mb-4{margin-bottom:16px} .mb-6{margin-bottom:24px} .mb-8{margin-bottom:32px}
.ml-2{margin-left:8px} .mr-2{margin-right:8px} .mx-auto{margin-left:auto;margin-right:auto}

/* ── Tipografia ── */
.text-xs{font-size:12px} .text-sm{font-size:14px} .text-base{font-size:16px}
.text-lg{font-size:18px} .text-xl{font-size:20px} .text-2xl{font-size:24px}
.text-3xl{font-size:30px} .text-4xl{font-size:36px} .text-5xl{font-size:48px}
.font-medium{font-weight:500} .font-semibold{font-weight:600}
.font-bold{font-weight:700} .font-extrabold{font-weight:800}
.text-center{text-align:center} .text-right{text-align:right} .text-left{text-align:left}
.uppercase{text-transform:uppercase} .capitalize{text-transform:capitalize}
.tracking-wide{letter-spacing:.05em} .tracking-wider{letter-spacing:.1em}
.leading-tight{line-height:1.2} .leading-relaxed{line-height:1.7}
.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.line-clamp-2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.line-clamp-3{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

/* ── Cores ── */
.text-white{color:#fff} .text-black{color:#000}
.text-gray-400{color:#9ca3af} .text-gray-500{color:#6b7280} .text-gray-600{color:#4b5563}
.text-gray-700{color:#374151} .text-gray-800{color:#1f2937} .text-gray-900{color:#111827}
.text-green-600{color:#16a34a} .text-red-500{color:#ef4444} .text-yellow-500{color:#eab308}
.text-primary{color:var(--color-primary)}
.bg-white{background:#fff} .bg-gray-50{background:#f9fafb} .bg-gray-100{background:#f3f4f6}
.bg-gray-200{background:#e5e7eb} .bg-primary{background:var(--color-primary)}
.bg-transparent{background:transparent}
.opacity-0{opacity:0} .opacity-50{opacity:.5} .opacity-70{opacity:.7} .opacity-100{opacity:1}

/* ── Utilitários ── */
.hidden{display:none!important} .block{display:block} .inline-block{display:inline-block}
.inline-flex{display:inline-flex;align-items:center}
.w-full{width:100%} .w-auto{width:auto} .h-full{height:100%} .min-h-screen{min-height:100vh}
.max-w-full{max-width:100%} .overflow-hidden{overflow:hidden} .overflow-x-auto{overflow-x:auto}
.relative{position:relative} .absolute{position:absolute} .fixed{position:fixed} .sticky{position:sticky}
.inset-0{top:0;right:0;bottom:0;left:0} .top-0{top:0} .bottom-0{bottom:0}
.right-0{right:0} .left-0{left:0} .top-4{top:16px} .right-4{right:16px}
.z-10{z-index:10} .z-20{z-index:20} .z-50{z-index:50} .z-100{z-index:100}
.rounded{border-radius:6px} .rounded-lg{border-radius:10px} .rounded-xl{border-radius:14px}
.rounded-2xl{border-radius:18px} .rounded-full{border-radius:9999px}
.shadow{box-shadow:0 2px 8px rgba(0,0,0,.08)}
.shadow-md{box-shadow:0 4px 16px rgba(0,0,0,.10)}
.shadow-lg{box-shadow:0 8px 32px rgba(0,0,0,.14)}
.shadow-xl{box-shadow:0 16px 48px rgba(0,0,0,.18)}
.border{border:1px solid #e5e7eb} .border-0{border:none}
.border-t{border-top:1px solid #e5e7eb} .border-b{border-bottom:1px solid #e5e7eb}
.object-cover{object-fit:cover} .object-contain{object-fit:contain}
.cursor-pointer{cursor:pointer} .select-none{user-select:none}
.transition{transition:all .2s ease} .transition-fast{transition:all .15s ease}
.pointer-events-none{pointer-events:none}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.whitespace-nowrap{white-space:nowrap}

/* ══════════════════════════════════════════════
   HEADER — Transparente no topo, branco ao rolar
   ══════════════════════════════════════════════ */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: transparent;
    transition: background .3s ease, box-shadow .3s ease;
    padding: 0 20px;
}
.site-header.scrolled {
    background: var(--color-header-bg, #fff) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,.08);
}
.site-header .header-inner {
    max-width: 1240px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: var(--header-height, 120px);
    max-height: 154px; /* trava: 130px (logo) + 24px de respiro */
    transition: height .25s ease;
}
.site-header .logo-wrap {
    display: flex; align-items: center; gap: 18px;
    flex-shrink: 0; min-width: 0; flex-wrap: nowrap;
}
.site-header .logo {
    display: inline-flex; align-items: center;
    text-decoration: none; flex-shrink: 0;
    min-width: 0;
}
.site-header .logo img {
    height: var(--logo-max-height, 96px);
    max-height: 130px; /* teto absoluto pra proteger contra valores fora de faixa */
    width: auto; max-width: 320px;
    object-fit: contain;
    transition: height .25s ease, max-height .25s ease;
}
.site-header.scrolled .logo img {
    height: var(--logo-max-height-scrolled, 76px);
    max-height: 102px; /* 130 * 0.78 */
}
.site-header.scrolled .header-inner { height: var(--header-height-scrolled, 100px); max-height: 130px; }
.site-header .logo-text  { font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.site-header.scrolled .logo-text { color: var(--color-primary); font-size: 24px; }

/* CRECI ao lado do logo (header) — divisor vertical separa visualmente do logo */
.site-header .logo-creci {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 4px 0 4px 18px;
    border: 0;
    border-left: 1px solid rgba(255,255,255,.35);
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    color: rgba(255,255,255,.92);
    white-space: nowrap;
    line-height: 1.2;
    transition: color .25s ease, border-color .25s ease;
}
.site-header.scrolled .logo-creci {
    color: var(--color-text, #1a1a2e);
    border-left-color: rgba(0,0,0,.18);
    background: transparent;
}
@media (max-width: 900px) {
    .site-header .logo-wrap { gap: 12px; }
    .site-header .logo-creci { font-size: 10px; padding-left: 12px; }
}
/* Barra mobile com CRECI + Telefone */
.mobile-info-bar { display: none; }
@media (max-width: 900px) {
    .mobile-info-bar {
        display: flex; align-items: center; justify-content: center; gap: 16px;
        background: rgba(0,0,0,.15); padding: 4px 16px;
        font-size: 11px; font-weight: 600; color: rgba(255,255,255,.9);
    }
    .site-header.scrolled .mobile-info-bar {
        background: var(--color-primary, #1a56db); color: #fff;
    }
    .mobile-info-creci { letter-spacing: .03em; white-space: nowrap; }
    .mobile-info-phone {
        display: inline-flex; align-items: center; gap: 4px;
        color: inherit; text-decoration: none; white-space: nowrap;
    }
    .mobile-info-phone:hover { opacity: .85; }
    /* Esconder CRECI e phone text do header principal no mobile */
    .site-header .logo-creci { display: none; }
    .header-phone-text { display: none; }
}
@media (max-width: 600px) {
    .site-header .header-inner { gap: 8px; }
    .menu-toggle { order: -1; flex-shrink: 0; }
    .site-header .logo-wrap { order: 0; flex: 1; justify-content: center; min-width: 0; }
    .site-header .logo img { max-width: 140px; }
    .header-phone { order: 1; flex-shrink: 0; }
    .mobile-info-bar { font-size: 10px; gap: 12px; padding: 3px 12px; }
}
@media(max-width:900px) {
    .site-header .header-inner { height: 84px !important; }
    .site-header .logo img {
        height: 60px !important; max-height: 60px !important; max-width: 220px;
    }
    .site-header.scrolled .logo img { height: 52px !important; max-height: 52px !important; }
    .site-header.scrolled .header-inner { height: 72px !important; }
}

.site-header nav { display: flex; align-items: center; gap: 4px; }
.site-header nav a {
    font-size: 13px; font-weight: 500;
    padding: 8px 14px; border-radius: 8px;
    color: rgba(255,255,255,.92);
    transition: all .2s;
}
.site-header nav a:hover {
    background: rgba(255,255,255,.15);
    color: #fff; opacity: 1;
}
.site-header.scrolled nav a { color: var(--color-text, #1a1a2e); }
.site-header.scrolled nav a:hover {
    background: rgba(0,0,0,.05);
    color: var(--color-primary);
}
.site-header .header-phone {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600;
    color: rgba(255,255,255,.9);
    padding: 8px 16px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,.3);
    transition: all .2s;
}
.site-header.scrolled .header-phone {
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.site-header .header-phone:hover { background: rgba(255,255,255,.15); opacity:1; }
.site-header.scrolled .header-phone:hover { background: var(--color-primary); color:#fff; }

/* Header nav highlight for active panel button */
.site-header nav a.nav-btn-panel {
    background: var(--color-primary); color: #fff !important;
    border-radius: 8px; padding: 8px 16px;
    font-size: 13px;
}
.site-header nav a.nav-btn-panel:hover {
    filter: brightness(.9); background: var(--color-primary);
}

/* CTA "Anuncie seu imóvel" — destaca-se em todos os skins */
.site-header nav a.nav-btn-anuncie {
    background: var(--color-accent, #ff5a1f);
    color: #fff !important;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    transition: transform .15s, filter .15s;
}
.site-header nav a.nav-btn-anuncie:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    background: var(--color-accent, #ff5a1f);
}
.site-header.scrolled nav a.nav-btn-anuncie { color: #fff !important; }

/* Menu mobile */
.menu-toggle {
    display: none; background: none; border: none;
    color: #fff; padding: 8px; border-radius: 6px;
}
.site-header.scrolled .menu-toggle { color: var(--color-text); }
@media(max-width:900px) {
    .menu-toggle { display: flex; align-items:center; }
    .site-header nav { display: none; }
    .site-header nav.open {
        display: flex; flex-direction: column;
        position: absolute; top: 108px; left: 0; right: 0;
        background: var(--color-header-bg, #fff);
        padding: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12);
    }
    .site-header nav.open a { color: var(--color-text) !important; }
    .header-phone-text { font-size: 12px; white-space: nowrap; }
}

/* ══════════════════════════════════════════════
   HERO — Fullscreen com imagem de fundo
   ══════════════════════════════════════════════ */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,.55) 0%,
        rgba(0,0,0,.4) 60%,
        rgba(0,0,0,.7) 100%);
}
.hero-content {
    position: relative; z-index: 2;
    text-align: center; padding: 100px 20px 60px;
    width: 100%; max-width: 1240px; margin: 0 auto;
}
.hero h1 {
    font-size: clamp(32px, 6vw, 64px);
    font-weight: 800; color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,.4);
    margin-bottom: 12px; letter-spacing: -.5px;
}
.hero .hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255,255,255,.85);
    margin-bottom: 40px; font-weight: 400;
}
.hero-logo-bottom {
    position: absolute; bottom: 24px; left: 50%;
    transform: translateX(-50%); z-index: 2;
    opacity: .6; filter: brightness(0) invert(1);
    height: 36px; width: auto;
}

/* ── Barra de busca do hero ── */
.hero-search {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 6px 6px 6px 6px;
    display: flex; align-items: stretch;
    max-width: 900px; margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    gap: 0;
}
.hero-search-field {
    flex: 1; padding: 14px 20px;
    border: none; background: transparent; outline: none;
    border-right: 1px solid #e5e7eb;
    min-width: 0;
}
.hero-search-field:last-of-type { border-right: none; }
.hero-search-field .field-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: #9ca3af; margin-bottom: 4px;
}
.hero-search-field select,
.hero-search-field input {
    width: 100%; border: none; background: transparent; outline: none;
    font-size: 15px; font-weight: 500; color: #1a1a2e;
    padding: 0; appearance: none; cursor: pointer;
}
.hero-search-field select { cursor: pointer; }
.hero-search-btn {
    background: var(--color-button-bg, #1a56db);
    color: var(--color-button-text, #fff);
    border: none; border-radius: 12px;
    width: 60px; height: 60px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; transition: filter .2s; cursor: pointer;
    align-self: center; margin: 4px;
}
.hero-search-btn:hover { filter: brightness(.88); }
.hero-search-codigo {
    color: rgba(255,255,255,.7); font-size: 13px; margin-top: 14px;
    display: block; text-decoration: underline; cursor: pointer;
    transition: color .2s;
}
.hero-search-codigo:hover { color: #fff; opacity:1; }

@media(max-width:640px) {
    .hero-search { flex-direction: column; border-radius: 14px; padding: 10px; }
    .hero-search-field { border-right: none; border-bottom: 1px solid #e5e7eb; }
    .hero-search-field:last-of-type { border-bottom: none; }
    .hero-search-btn { width: 100%; height: 48px; border-radius: 10px; margin:0; font-size:16px; }
    .hero { min-height: 100svh; }
}

/* ══════════════════════════════════════════════
   CARDS DE IMÓVEIS — Estilo JETImob/Bravier
   ══════════════════════════════════════════════ */
.imovel-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    display: flex; flex-direction: column;
    border: 1px solid #ebebeb;
    transition: transform .25s ease, box-shadow .25s ease;
    text-decoration: none; color: inherit;
}
.imovel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0,0,0,.13);
    opacity: 1;
}
.imovel-card .card-img {
    position: relative; overflow: hidden;
    aspect-ratio: 16/9; background: #f3f4f6; flex-shrink: 0;
}
.imovel-card .card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s ease;
}
.imovel-card:hover .card-img img { transform: scale(1.06); }

/* Chips de operação e situação no corpo do card (elegante, discreto) */
.imovel-chips {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 8px;
}
.imovel-chips .chip {
    font-size: 10.5px; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase;
    padding: 3px 9px; border-radius: 4px;
    line-height: 1.4; white-space: nowrap;
}
.imovel-chips .chip-op {
    background: var(--chip-bg); color: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.imovel-chips .chip-sit {
    background: transparent;
    color: var(--chip-color);
    border: 1px solid var(--chip-color);
    opacity: .92;
}

/* Badge de operação */
.imovel-card .badge-operacao {
    position: absolute; bottom: 12px; left: 12px;
    padding: 4px 12px; border-radius: 20px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em;
}
.badge-venda    { background: var(--color-primary); color: #fff; }
.badge-aluguel  { background: #f59e0b; color: #fff; }
.badge-venda_aluguel { background: #8b5cf6; color: #fff; }
.badge-lancamento { background: #ef4444; color: #fff; }

/* Botão favoritar */
.btn-favoritar {
    position: absolute; top: 10px; right: 10px;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,.92); border: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; cursor: pointer;
    transition: all .2s; color: #9ca3af;
    backdrop-filter: blur(4px); z-index: 5;
}
.btn-favoritar:hover, .btn-favoritar.ativo { color: #ef4444; transform: scale(1.1); }
.btn-favoritar.ativo { background: #fff; }

/* Checkbox comparar (no card-body, ao lado do compartilhar) */
.cb-comparar {
    display: inline-flex; align-items: center; gap: 4px;
    cursor: pointer; user-select: none; font-size: 11px;
    color: #9ca3af; transition: color .2s;
}
.cb-comparar:hover { color: var(--color-primary, #1a56db); }
.cb-comparar-box {
    width: 18px; height: 18px; border-radius: 4px;
    border: 2px solid #d1d5db; display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 11px; color: transparent; transition: all .2s;
    background: #fff; flex-shrink: 0;
}
.cb-comparar.ativo .cb-comparar-box {
    background: var(--color-primary, #1a56db); border-color: var(--color-primary, #1a56db);
    color: #fff;
}
.cb-comparar.ativo { color: var(--color-primary, #1a56db); font-weight: 600; }
.cb-comparar-label { white-space: nowrap; }

/* Dentro do rodapé compacto do card: esconder o label "Comparar" (só o ✓ visível) */
.imovel-card .card-actions .cb-comparar-label { display: none; }
.imovel-card .card-actions .cb-comparar { gap: 0; }

/* Conteúdo do card */
.imovel-card .card-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.imovel-card .card-tipo {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: var(--color-primary);
    margin-bottom: 6px;
}
.imovel-card .card-title {
    font-size: 15px; font-weight: 600; color: #1f2937;
    line-height: 1.4; margin-bottom: 10px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.imovel-card .card-precos { margin-bottom: 12px; }
.imovel-card .card-precos.card-precos-dual {
    display: flex; gap: 16px; align-items: flex-start;
}
.imovel-card .card-precos.card-precos-dual .card-preco-col {
    flex: 1 1 0; min-width: 0;
    padding-right: 12px; border-right: 1px solid #f3f4f6;
}
.imovel-card .card-precos.card-precos-dual .card-preco-col:last-child {
    border-right: none; padding-right: 0;
}
.imovel-card .card-precos.card-precos-dual .card-price {
    font-size: 17px;
}
.imovel-card .card-precos.card-precos-dual .card-price small {
    font-size: 11px;
}
.imovel-card .card-price {
    font-size: 22px; font-weight: 800;
    color: var(--color-primary); line-height: 1.1;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.imovel-card .card-price-label {
    font-size: 12px; font-weight: 800; color: #374151;
    display: block; margin-bottom: 3px;
    text-transform: uppercase; letter-spacing: .05em;
}
.imovel-card .card-price small { font-size: 13px; font-weight: 500; color: #6b7280; }
.imovel-card .card-features {
    display: flex; flex-wrap: wrap; gap: 10px 16px;
    font-size: 13px; color: #4b5563;
    padding: 10px 0; border-top: 1px solid #f3f4f6;
    margin-top: auto;
}
.imovel-card .card-features span { display: flex; align-items: center; gap: 5px; }
.imovel-card .card-location {
    font-size: 12px; color: #9ca3af;
    margin-top: 10px; padding-top: 10px;
    border-top: 1px solid #f3f4f6;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    min-height: 28px;
}
.imovel-card .card-loc-text {
    flex: 1 1 auto; min-width: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.imovel-card .card-actions {
    display: inline-flex; align-items: center; gap: 6px;
    flex-shrink: 0;
}

/* Chip de referência (inline, bem legível) */
.imovel-card .card-ref-chip {
    font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
    font-size: 11px; font-weight: 800;
    color: #1f2937; background: #e5e7eb;
    border: 1px solid #d1d5db;
    padding: 3px 8px; border-radius: 5px;
    letter-spacing: .05em; white-space: nowrap;
}

/* Favoritar inline no rodapé do card */
.imovel-card .btn-fav-inline {
    background: #f9fafb; border: 1px solid #e5e7eb;
    width: 30px; height: 30px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 17px; color: #374151; cursor: pointer;
    transition: all .15s; padding: 0; line-height: 1;
}
.imovel-card .btn-fav-inline:hover { color: #ef4444; background: #fef2f2; border-color: #fecaca; }
.imovel-card .btn-fav-inline.ativo { color: #ef4444; background: #fef2f2; border-color: #ef4444; font-weight: 700; }

/* Compartilhar inline */
.imovel-card .btn-share-inline {
    background: #f9fafb; border: 1px solid #e5e7eb;
    width: 30px; height: 30px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #374151; cursor: pointer;
    transition: all .15s; padding: 0;
}
.imovel-card .btn-share-inline svg { width: 15px; height: 15px; stroke-width: 2.4; }
.imovel-card .btn-share-inline:hover { color: #25d366; background: #f0fdf4; border-color: #86efac; }

/* ── Sem foto placeholder ── */
.card-no-photo {
    width:100%; height:100%; background:#f3f4f6;
    display:flex; align-items:center; justify-content:center;
    font-size:52px; color:#d1d5db;
}

/* ══════════════════════════════════════════════
   BARRA DE FILTROS — Horizontal (sem sidebar)
   ══════════════════════════════════════════════ */
.filters-bar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
    position: sticky; top: 72px; z-index: 40;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.filters-bar .filters-inner {
    max-width: 1240px; margin: 0 auto; padding: 0 20px;
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px;
}
.filter-group { display: flex; flex-direction: column; gap: 4px; min-width: 130px; }
.filter-group label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #9ca3af; }
.filter-group select,
.filter-group input {
    border: 1px solid #e5e7eb; border-radius: 8px;
    padding: 9px 14px; font-size: 14px; font-weight: 500;
    background: #f9fafb; outline: none; cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
    min-width: 130px; appearance: none;
    font-family: inherit; color: inherit;
}
.filter-group select:focus,
.filter-group input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 12%, transparent);
    background: #fff;
}
.filter-price { display: flex; gap: 6px; align-items: center; }
.filter-price input { min-width: 110px; }
.filter-price span { color: #9ca3af; font-size: 13px; }
.btn-filter {
    padding: 10px 24px; border-radius: 8px; border: none;
    background: var(--color-button-bg, #1a56db);
    color: var(--color-button-text, #fff);
    font-size: 14px; font-weight: 700; cursor: pointer;
    white-space: nowrap; transition: filter .15s;
    align-self: flex-end; font-family: inherit;
}
.btn-filter:hover { filter: brightness(.9); }
.btn-filter-clear {
    padding: 10px 16px; border-radius: 8px; font-size: 13px;
    border: 1px solid #e5e7eb; background: #fff; color: #6b7280;
    cursor: pointer; align-self: flex-end; white-space: nowrap;
    transition: all .15s; display: inline-flex; align-items: center;
    text-decoration: none;
}
.btn-filter-clear:hover { border-color: #ef4444; color: #ef4444; opacity: 1; }

@media(max-width:768px) {
    .filters-bar { top: 0; }
    .filter-group { min-width: calc(50% - 6px); }
    .filter-price input { min-width: 90px; }
}

/* ── Cabeçalho da listagem ── */
.listing-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 0 16px; flex-wrap: wrap; gap: 12px;
}
.listing-header h1 { font-size: 24px; font-weight: 700; }
.listing-header .listing-count { font-size: 14px; color: #6b7280; margin-top: 2px; }
.listing-sort select {
    border: 1px solid #e5e7eb; border-radius: 8px;
    padding: 8px 14px; font-size: 14px; background: #fff; outline: none; cursor: pointer;
    font-family: inherit;
}

/* ── Grid de imóveis ── */
.imoveis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px; padding: 8px 0 48px;
}
@media(max-width:1024px) { .imoveis-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:600px)  { .imoveis-grid { grid-template-columns: 1fr; } }

/* ── Estado vazio ── */
.empty-state {
    grid-column: 1/-1; text-align: center;
    padding: 80px 20px; color: #6b7280;
}
.empty-state .empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; font-weight: 600; color: #374151; margin-bottom: 8px; }

/* ══════════════════════════════════════════════
   SEÇÕES DA HOME
   ══════════════════════════════════════════════ */
.section-header { text-align: center; margin-bottom: 40px; }
.section-header .section-tag {
    display: inline-block; padding: 4px 16px; border-radius: 20px;
    background: color-mix(in srgb, var(--color-primary) 10%, transparent);
    color: var(--color-primary); font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px;
}
.section-header h2 { font-size: clamp(24px,4vw,36px); font-weight: 800; margin-bottom: 12px; }
.section-header p  { font-size: 16px; color: #6b7280; max-width: 520px; margin: 0 auto; }

/* Tipos de imóveis (grid de ícones) */
.tipos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}
.tipo-card {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 24px 12px; background: #fff; border-radius: 14px;
    border: 1px solid #e5e7eb; text-align: center;
    text-decoration: none; color: inherit;
    transition: all .2s ease;
}
.tipo-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    color: var(--color-primary); opacity: 1;
}
.tipo-card .tipo-emoji { font-size: 36px; line-height: 1; }
.tipo-card .tipo-label { font-size: 13px; font-weight: 600; color: #374151; }
.tipo-card .tipo-count { font-size: 11px; color: #9ca3af; }

/* ══════════════════════════════════════════════
   FORMULÁRIOS
   ══════════════════════════════════════════════ */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #374151; }
.form-control {
    width: 100%; padding: 11px 16px; border-radius: 10px;
    border: 1.5px solid #e5e7eb; font-size: 14px; background: #fff;
    transition: border-color .15s, box-shadow .15s; outline: none;
    font-family: inherit; color: inherit; appearance: none;
}
.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 12%, transparent);
}
textarea.form-control { resize: vertical; min-height: 100px; }

/* ══════════════════════════════════════════════
   BOTÕES
   ══════════════════════════════════════════════ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 24px; border-radius: 10px; font-size: 14px;
    font-weight: 600; cursor: pointer; border: none;
    text-decoration: none; transition: all .2s; white-space: nowrap;
    font-family: inherit;
}
.btn-primary {
    background: var(--color-button-bg, #1a56db);
    color: var(--color-button-text, #fff) !important;
}
.btn-primary:hover { filter: brightness(.9); opacity:1; }
.btn-secondary {
    background: var(--color-secondary, #7e3af2); color: #fff !important;
}
.btn-outline {
    background: transparent; border: 2px solid var(--color-primary);
    color: var(--color-primary) !important;
}
.btn-outline:hover { background: var(--color-primary); color: #fff !important; opacity:1; }
.btn-white { background: #fff; color: var(--color-primary) !important; }
.btn-success { background: #25D366; color: #fff !important; }
.btn-sm  { padding: 7px 16px; font-size: 13px; border-radius: 8px; }
.btn-lg  { padding: 15px 32px; font-size: 16px; border-radius: 12px; }
.btn-xl  { padding: 18px 40px; font-size: 18px; border-radius: 14px; }
.btn-block { width: 100%; }

/* ══════════════════════════════════════════════
   PAGINAÇÃO
   ══════════════════════════════════════════════ */
.pagination {
    display: flex; gap: 6px; align-items: center;
    justify-content: center; flex-wrap: wrap; padding: 24px 0 48px;
    list-style: none;
}
.pagination a, .pagination span {
    padding: 9px 16px; border-radius: 9px; font-size: 14px; font-weight: 500;
    border: 1.5px solid #e5e7eb; color: #374151; transition: all .15s;
    text-decoration: none; display: inline-block;
}
.pagination a:hover { border-color: var(--color-primary); color: var(--color-primary); opacity:1; }
.pagination .active span {
    background: var(--color-primary); color: #fff !important;
    border-color: var(--color-primary);
}
.pagination span[aria-disabled] { opacity: .35; cursor: not-allowed; }
.pagination li { list-style: none; }

/* ══════════════════════════════════════════════
   ALERTAS
   ══════════════════════════════════════════════ */
.alert { padding: 14px 18px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

/* ══════════════════════════════════════════════
   GALERIA DO IMÓVEL
   ══════════════════════════════════════════════ */
.gallery-wrap { border-radius: 16px; overflow: hidden; margin-bottom: 8px; }
.gallery-main {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: pointer;
    background: #f3f4f6;
    border-radius: 16px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s ease; }

/* Zonas de clique invisíveis (esquerda/direita) sobre a foto principal */
.gallery-zone {
    position: absolute; top: 0; bottom: 0; width: 50%;
    z-index: 3; cursor: pointer; background: transparent;
}
.gallery-zone.prev { left: 0;  cursor: w-resize; }
.gallery-zone.next { right: 0; cursor: e-resize; }

/* Setas de navegação visuais */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    background: rgba(255,255,255,.92);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.22);
    transition: background .15s, transform .15s, opacity .15s;
    z-index: 5;
    opacity: .85;
}
.gallery-main:hover .gallery-nav { opacity: 1; }
.gallery-nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }
.gallery-nav svg { width: 22px; height: 22px; fill: #1a1a2e; pointer-events: none; }
@media (max-width: 600px) {
    .gallery-nav { width: 38px; height: 38px; }
    .gallery-nav.prev { left: 8px; }
    .gallery-nav.next { right: 8px; }
}
.gallery-thumbs {
    display: flex; gap: 8px; margin-top: 8px; overflow-x: auto;
    padding-bottom: 4px; scrollbar-width: thin;
}
.gallery-thumbs img {
    width: 88px; height: 66px; object-fit: cover;
    border-radius: 8px; cursor: pointer; flex-shrink: 0;
    border: 2.5px solid transparent; transition: border-color .15s;
    opacity: .75; transition: opacity .15s, border-color .15s;
}
.gallery-thumbs img.active, .gallery-thumbs img:hover {
    border-color: var(--color-primary); opacity: 1;
}
.gallery-counter {
    position: absolute; bottom: 12px; right: 12px;
    background: rgba(0,0,0,.6); color: #fff;
    padding: 4px 12px; border-radius: 20px;
    font-size: 12px; font-weight: 600;
}

/* ══════════════════════════════════════════════
   DETALHE DO IMÓVEL
   ══════════════════════════════════════════════ */
.detalhe-layout {
    display: grid; grid-template-columns: 1fr 380px;
    gap: 32px; padding: 32px 0 64px; align-items: start;
}
@media(max-width:960px) { .detalhe-layout { grid-template-columns: 1fr; } }

.detalhe-features {
    display: grid; grid-template-columns: repeat(4,1fr);
    gap: 16px; margin: 24px 0;
    padding: 20px; background: #f9fafb; border-radius: 14px;
}
@media(max-width:600px) { .detalhe-features { grid-template-columns: repeat(2,1fr); } }
.feature-item { text-align: center; }
.feature-item .feature-icon { font-size: 28px; margin-bottom: 6px; }
.feature-item .feature-value { font-size: 22px; font-weight: 800; color: var(--color-primary); }
.feature-item .feature-label { font-size: 12px; color: #6b7280; margin-top: 2px; }

.contact-card {
    background: #fff; border-radius: 16px;
    border: 1px solid #e5e7eb; padding: 24px;
    position: sticky; top: 90px;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
}
.contact-card .contact-price {
    font-size: 30px; font-weight: 800;
    color: var(--color-primary); margin-bottom: 6px;
}
.contact-card .contact-price-label {
    font-size: 12px; color: #9ca3af; margin-bottom: 20px;
}

/* Corretor card */
.corretor-card {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 20px; padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}
.corretor-card .corretor-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    object-fit: cover; background: #f3f4f6;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #9ca3af; flex-shrink: 0;
    overflow: hidden;
}
.corretor-card .corretor-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Comodidades */
.comodidades-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 8px; margin: 16px 0;
}
@media(max-width:600px) { .comodidades-grid { grid-template-columns: repeat(2, 1fr); } }
.comodidade-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; background: #f0fdf4; border-radius: 8px;
    font-size: 13px; color: #166534; font-weight: 500;
}

/* Mapa */
.mapa-wrap {
    border-radius: 14px; overflow: hidden; margin: 24px 0;
}
.mapa-wrap iframe { width: 100%; height: 300px; border: 0; display: block; }

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.site-footer {
    background: var(--color-footer-bg, #1a1a2e);
    color: var(--color-footer-text, #fff);
    padding: 56px 0 0;
}
.site-footer h4 {
    font-size: 14px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; margin-bottom: 20px;
    color: var(--color-footer-text, #fff);
}
.site-footer a {
    color: rgba(255,255,255,.65); font-size: 14px;
    display: block; margin-bottom: 10px; transition: color .15s;
}
.site-footer a:hover { color: #fff; opacity:1; }
.site-footer .footer-creci-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    border-left: 3px solid var(--color-accent, #ff5a1f);
    color: rgba(255,255,255,.95);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 16px;
    width: fit-content;
}
.site-footer .footer-creci {
    color: rgba(255,255,255,.7);
    font-weight: 600;
    letter-spacing: .02em;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px; margin-bottom: 40px;
}
@media(max-width:768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media(max-width:480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 16px 0; text-align: center;
    font-size: 13px; color: rgba(255,255,255,.4);
    margin-top: 8px;
}

/* ══════════════════════════════════════════════
   WHATSAPP FLOAT
   ══════════════════════════════════════════════ */
.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 999;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25D366;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,.4);
    transition: transform .2s; text-decoration:none;
}
.whatsapp-float:hover { transform: scale(1.1); opacity:1; }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

/* ══════════════════════════════════════════════
   BREADCRUMB
   ══════════════════════════════════════════════ */
.breadcrumb {
    padding: 12px 0; font-size: 13px; color: #9ca3af;
    display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
    list-style: none;
}
.breadcrumb a { color: #6b7280; }
.breadcrumb a:hover { color: var(--color-primary); opacity:1; }
.breadcrumb .sep { color: #d1d5db; margin: 0 4px; }
.breadcrumb-wrap { background: #f9fafb; border-bottom: 1px solid #f0f0f0; padding: 12px 0; }

/* Páginas sem hero (body.no-hero): empurra o conteúdo principal pra baixo do header fixed,
   evitando que o conteúdo passe por trás do header. */
body.no-hero main { padding-top: var(--header-height-scrolled, 100px); }
@media (max-width: 900px) {
    body.no-hero main { padding-top: 108px; }
}

/* ══════════════════════════════════════════════
   ADMIN — Base (sem Tailwind)
   ══════════════════════════════════════════════ */
.badge {
    display: inline-block; padding: 3px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef9c3; color: #854d0e; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-info    { background: #dbeafe; color: #1e40af; }
.badge-gray    { background: #f3f4f6; color: #374151; }

/* ══════════════════════════════════════════════
   DETALHE — Seção similares
   ══════════════════════════════════════════════ */
.similares-section {
    padding: 48px 0; border-top: 1px solid #e5e7eb; margin-top: 24px;
}
