/* =============================================================
   BASE
   ============================================================= */
* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.container {
    width: min(1260px, calc(100% - 32px));
    margin: 0 auto;
}

/* =============================================================
   TOPBAR
   ============================================================= */
.topbar {
    background: #0f172a;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.topbar-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
}

.brand-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.topnav {
    display: flex;
    gap: 18px;
    font-size: 14px;
    color: #cbd5e1;
}

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

/* =============================================================
   HERO COMPACTO
   ============================================================= */
.hero-compact {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #fff;
    padding: 36px 0 32px;
}

.hero-compact-title {
    margin: 0 0 8px;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
}

.hero-compact-sub {
    margin: 0;
    opacity: .75;
    font-size: 15px;
}

/* =============================================================
   LISTING LAYOUT (sidebar + results)
   ============================================================= */
.listing-container {
    padding: 28px 0 56px;
}

.listing-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 28px;
    align-items: start;
}

.listing-sidebar {
    position: sticky;
    top: 20px;
}

.listing-results {
    min-width: 0;
}

/* Cards em 2 colunas quando há sidebar */
.listing-results .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* =============================================================
   FILTER CARD (sidebar)
   ============================================================= */
.filter-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, .06);
}

.filter-section {
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #f3f4f6;
}

.filter-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #9ca3af;
    margin-bottom: 10px;
}

.filter-input {
    width: 100%;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 14px;
    background: #f9fafb;
    color: #1f2937;
    transition: border-color .15s, background .15s;
}

.filter-input:focus {
    outline: none;
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.filter-select {
    width: 100%;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 14px;
    background: #f9fafb;
    color: #1f2937;
    cursor: pointer;
    transition: border-color .15s;
}

.filter-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.field-stack-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 5px;
}

/* Radio buttons de negócio */
.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.radio-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    text-align: center;
    transition: all .15s;
    user-select: none;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-option.radio-active,
.radio-option:has(input:checked) {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1d4ed8;
}

/* Pills de quartos */
.quartos-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.quartos-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: #4b5563;
    transition: all .15s;
    user-select: none;
}

.quartos-pill input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.quartos-pill.active,
.quartos-pill:has(input:checked) {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

/* Faixa de preço */
.price-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-range .filter-input {
    flex: 1;
    min-width: 0;
}

.price-sep {
    color: #9ca3af;
    flex-shrink: 0;
    font-weight: 700;
}

/* Botões do filtro */
.filter-actions {
    display: grid;
    gap: 8px;
}

/* =============================================================
   ACTIVE CHIPS
   ============================================================= */
.active-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 16px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 30px;
    padding: 0 8px 0 11px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .15s;
    text-decoration: none;
}

.filter-chip:hover { opacity: .8; }

.chip-label { opacity: .7; }
.chip-val   { font-weight: 700; }

.filter-chip-x {
    font-size: 17px;
    line-height: 1;
    opacity: .5;
    margin-left: 1px;
}

.filter-chip-clear {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

/* =============================================================
   RESULTS HEADER
   ============================================================= */
.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.results-count {
    margin: 0;
    color: #374151;
    font-size: 14px;
}

.results-count strong {
    color: #111827;
    font-size: 16px;
}

.results-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.sort-label {
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
}

.sort-select-input {
    height: 36px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0 10px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
    color: #1f2937;
}

.sort-select-input:focus {
    outline: none;
    border-color: #2563eb;
}

/* =============================================================
   CARDS GRID (base)
   ============================================================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/* =============================================================
   CARD IMÓVEL
   ============================================================= */
.card-imovel {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(15, 23, 42, .07);
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}

.card-imovel:hover {
    box-shadow: 0 8px 32px rgba(15, 23, 42, .13);
    transform: translateY(-2px);
}

/* Imagem */
.card-image-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.card-image {
    width: 100%;
    height: 200px;
    display: block;
    object-fit: cover;
    transition: transform .3s;
}

.card-imovel:hover .card-image {
    transform: scale(1.03);
}

.no-image {
    background: #e5e7eb;
    color: #9ca3af;
    display: grid;
    place-items: center;
    font-size: 13px;
}

/* Badges sobrepostos na imagem */
.card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none;
}

.card-badges .badge {
    pointer-events: auto;
}

/* Body */
.card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-codigo {
    margin: 0 0 4px;
    font-size: 11px;
    color: #9ca3af;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.card-title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
    /* Limitar a 2 linhas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title a { color: inherit; }
.card-title a:hover { color: #2563eb; }

.card-location {
    margin: 0 0 10px;
    font-size: 13px;
    color: #6b7280;
}

/* Preço */
.card-price-line {
    margin: 0 0 10px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-value {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}

.price-sufx {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
}

.price-consult {
    font-size: 14px;
    color: #9ca3af;
    font-style: italic;
}

/* Specs */
.card-specs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}

.card-specs-row span {
    font-size: 12px;
    background: #f3f4f6;
    border-radius: 6px;
    padding: 3px 8px;
    color: #374151;
    font-weight: 600;
}

/* Footer do card */
.card-footer {
    margin-top: auto;
    border-top: 1px solid #f3f4f6;
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-broker-name {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-actions {
    display: flex;
    gap: 8px;
}

/* =============================================================
   BADGES
   ============================================================= */
.badge {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
}

.badge-tipo            { }
.badge-tipo-venda      { background: #dbeafe; color: #1e40af; }
.badge-tipo-aluguel    { background: #dcfce7; color: #166534; }
.badge-tipo-temporada  { background: #fef9c3; color: #854d0e; }
.badge-tipo-imovel     { background: #f3f4f6; color: #374151; }

.badge-destaque {
    background: #f97316;
    color: #fff;
    box-shadow: 0 2px 8px rgba(249, 115, 22, .4);
}

/* Backward compat: usado no show.blade.php */
.badge-type     { background: #e0f2fe; color: #075985; }
.badge-featured { position: absolute; top: 12px; left: 12px; background: #f97316; color: #fff; }

/* =============================================================
   BOTÕES
   ============================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity .15s, transform .1s;
}

.btn:hover  { opacity: .9; }
.btn:active { transform: scale(.98); }

.btn-primary { background: #2563eb; color: #fff; }
.btn-dark    { background: #111827; color: #fff; }
.btn-light   { background: #fff; color: #111827; border-color: #d1d5db; }
.btn-success { background: #16a34a; color: #fff; }
.btn-block   { width: 100%; }

/* Botões compactos do card */
.btn-ver {
    background: #1e3a8a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 9px;
    flex: 1;
}

.btn-whats {
    background: #25d366;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 9px;
    flex-shrink: 0;
}

/* =============================================================
   LOADING STATE
   ============================================================= */
#listagem-ajax {
    transition: opacity .15s;
}

#listagem-ajax.is-loading {
    opacity: .4;
    pointer-events: none;
    user-select: none;
}

/* =============================================================
   PAGINAÇÃO
   ============================================================= */
.pagination-wrap {
    margin-top: 28px;
}

.pagination-nav {
    display: flex;
    justify-content: center;
}

.pagination-pages {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    transition: all .15s;
    cursor: pointer;
}

.page-btn:hover:not(.page-current):not(.page-btn-disabled):not(.page-dots) {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1d4ed8;
}

.page-current {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    cursor: default;
}

.page-btn-disabled {
    opacity: .35;
    cursor: not-allowed;
}

.page-dots {
    border-color: transparent;
    background: transparent;
    letter-spacing: .12em;
    cursor: default;
}

/* =============================================================
   EMPTY STATE
   ============================================================= */
.empty-box {
    background: #fff;
    border-radius: 20px;
    padding: 48px 22px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(15, 23, 42, .05);
    text-align: center;
}

.empty-listing {
    margin-top: 4px;
}

.empty-icon {
    font-size: 52px;
    margin-bottom: 16px;
    display: block;
}

.empty-box h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.empty-box p {
    margin: 0 0 20px;
    color: #6b7280;
}

/* =============================================================
   DETALHE DO IMÓVEL (show.blade.php — sem alteração)
   ============================================================= */
.section { padding: 24px 0 48px; }
.section-light { background: #eef2f7; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-head h2 { margin: 0 0 6px; font-size: 28px; }

.breadcrumbs {
    display: flex;
    gap: 8px;
    color: #6b7280;
    margin-bottom: 18px;
    font-size: 14px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 360px;
    gap: 24px;
}

.gallery-main img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    border-radius: 18px;
    display: block;
}

.gallery-thumbs {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.gallery-thumbs img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.detail-card {
    background: #fff;
    border-radius: 20px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(15, 23, 42, .05);
    margin-top: 18px;
}

.detail-card:first-child { margin-top: 0; }

.card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.codigo { font-size: 13px; color: #6b7280; }

.detail-title { margin: 0 0 12px; font-size: 34px; line-height: 1.2; }
.detail-location { color: #6b7280; margin-bottom: 16px; }
.detail-price { margin: 0 0 14px; font-size: 28px; font-weight: 800; color: #0f172a; }

.detail-specs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.spec-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
    text-align: center;
}

.spec-item strong { display: block; font-size: 22px; margin-bottom: 4px; }

.stack-actions { display: grid; gap: 10px; margin-top: 18px; }
.sticky { position: sticky; top: 20px; }
.content-html p { line-height: 1.7; }

/* Card de contato lateral */
.contact-card {
    padding: 24px;
}

.contact-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.contact-logo {
    max-height: 68px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

.contact-name {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 14px;
    text-align: center;
}

.contact-details {
    display: grid;
    gap: 10px;
    margin-bottom: 4px;
}

.contact-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #9ca3af;
}

.contact-value {
    font-size: 14px;
    color: #374151;
    text-decoration: none;
    word-break: break-all;
}

.contact-value:hover {
    color: #2563eb;
}

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
    background: #0f172a;
    color: #fff;
    margin-top: 40px;
}

.footer-inner {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 14px;
    color: #94a3b8;
}

.footer-inner p { margin: 4px 0 0; }

/* =============================================================
   FLASH
   ============================================================= */
.flash { border-radius: 16px; padding: 14px 16px; margin-bottom: 16px; }
.flash-success { background: #e7f8ee; color: #146a35; border: 1px solid #bfe9cf; }
.flash-error   { background: #fdecec; color: #b42318; border: 1px solid #f7c6c2; }

/* =============================================================
   RESPONSIVO
   ============================================================= */
@media (max-width: 1040px) {
    .listing-layout {
        grid-template-columns: 240px 1fr;
        gap: 20px;
    }
}

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

    .listing-sidebar {
        position: static;
    }

    /* Sidebar compacta: form em grid */
    .radio-group {
        grid-template-columns: repeat(4, 1fr);
    }

    .listing-results .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 600px) {
    .listing-results .cards-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-compact-title {
        font-size: 26px;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

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

    .detail-specs,
    .gallery-thumbs {
        grid-template-columns: repeat(2, 1fr);
    }

    .topbar-inner,
    .footer-inner,
    .card-actions {
        flex-direction: column;
        align-items: stretch;
    }

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

/* ==========================================================
   FASE 4 — PORTAL / PRODUTO
========================================================== */
.brand-subtext {
    display: block;
    font-size: 11px;
    color: #6b7280;
    font-weight: 600;
    margin-top: 2px;
}

.hero-search {
    background: linear-gradient(135deg, #f8fafc 0%, #eef4ff 100%);
    padding: 42px 0 30px;
    border-bottom: 1px solid #e5e7eb;
}

.hero-search-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, .9fr);
    gap: 24px;
    align-items: stretch;
}

.hero-kicker,
.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #2563eb;
    margin-bottom: 10px;
}

.hero-search-title {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    margin: 0 0 12px;
    color: #0f172a;
}

.hero-search-sub {
    max-width: 760px;
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #475569;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.hero-stat,
.hero-panel-card,
.discover-card,
.filter-summary-card,
.results-hero,
.detail-hero-card,
.highlight-chip,
.detail-data-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .06);
}

.hero-stat {
    border-radius: 18px;
    padding: 16px;
}

.hero-stat strong {
    display: block;
    font-size: 24px;
    line-height: 1;
    color: #0f172a;
}

.hero-stat span {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #64748b;
}

.hero-panel-card {
    height: 100%;
    border-radius: 22px;
    padding: 22px;
}

.hero-panel-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
}

.hero-panel-text {
    margin: 10px 0 18px;
    color: #475569;
    line-height: 1.7;
}

.hero-quick-links,
.discover-tags,
.highlight-grid,
.detail-inline-specs,
.card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-pill,
.discover-tag,
.spec-chip,
.detail-chip,
.highlight-chip {
    border-radius: 999px;
}

.quick-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: none;
}

.quick-pill.disabled-pill {
    opacity: .55;
    pointer-events: none;
}

.section-soft {
    background: #f8fafc;
}

.discover-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.discover-card {
    border-radius: 20px;
    padding: 22px;
}

.compact-head {
    margin-bottom: 14px;
}

.discover-tag {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 150px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: #0f172a;
    font-weight: 700;
}

.discover-tag strong {
    color: #2563eb;
}

.mobile-filter-bar,
.mobile-sidebar-head,
.listing-overlay {
    display: none;
}

.filter-summary-card {
    border-radius: 18px;
    padding: 16px 18px;
    margin-bottom: 14px;
}

.filter-summary-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.filter-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.filter-summary-grid strong {
    display: block;
    font-size: 22px;
    color: #111827;
}

.filter-summary-grid span,
.filter-help,
.results-subcount,
.contact-subtitle {
    color: #64748b;
}

.filter-help {
    display: block;
    margin-top: 8px;
    font-size: 12px;
}

.grouped-pills .quartos-pill {
    min-width: 64px;
}

.results-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.cards-grid-portal {
    gap: 18px;
}

.portal-card {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .08);
}

.portal-card .card-image-wrap {
    display: block;
    position: relative;
}

.portal-card .card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.portal-card .card-body {
    padding: 18px;
}

.portal-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.card-code {
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 6px;
}

.card-broker-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 6px;
    flex-shrink: 0;
}

.card-price-wrap {
    margin: 14px 0 12px;
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.card-price-label,
.card-footer-meta,
.detail-inline-specs {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.card-price span {
    font-size: 14px;
    margin-left: 4px;
    color: #64748b;
}

.spec-chip,
.detail-chip,
.highlight-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.card-footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
}

.broker-name {
    color: #0f172a;
}

.portal-card-actions {
    margin-top: 14px;
}

.portal-card-actions .btn {
    min-width: 140px;
}

.detail-hero-section {
    padding-top: 26px;
    padding-bottom: 10px;
}

.detail-hero-card {
    border-radius: 24px;
    padding: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(240px, .7fr);
    gap: 20px;
    align-items: end;
}

.detail-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.detail-inline-specs span {
    display: inline-flex;
    padding: 7px 11px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    color: #1d4ed8;
}

.detail-price-strong {
    margin: 12px 0 0;
}

.detail-price-strong span {
    font-size: 16px;
    color: #64748b;
    margin-left: 4px;
}

.detail-hero-actions {
    display: grid;
    gap: 10px;
}

.detail-gallery-card {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .06);
}

.highlight-grid,
.detail-data-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.highlight-chip {
    padding: 14px 16px;
    border-radius: 16px;
}

.detail-data-item {
    border-radius: 18px;
    padding: 16px;
}

.detail-data-item span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #64748b;
    margin-bottom: 6px;
    font-weight: 700;
}

.detail-data-item strong {
    color: #0f172a;
}

.contact-card .btn + .btn {
    margin-top: 10px;
}

@media (max-width: 1024px) {
    .hero-search-inner,
    .detail-hero-card,
    .discover-grid,
    .detail-data-grid,
    .highlight-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .mobile-filter-bar,
    .mobile-sidebar-head {
        display: block;
    }

    .mobile-filter-bar {
        margin-bottom: 14px;
    }

    .listing-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(92vw, 380px);
        max-width: 380px;
        padding: 16px;
        background: #f8fafc;
        transform: translateX(-105%);
        transition: transform .25s ease;
        z-index: 60;
        overflow-y: auto;
    }

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

    .mobile-sidebar-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 18px;
        margin-bottom: 14px;
        color: #0f172a;
    }

    .mobile-sidebar-close {
        width: 40px;
        height: 40px;
        border: none;
        border-radius: 999px;
        background: #fff;
        font-size: 24px;
        cursor: pointer;
        box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
    }

    .listing-overlay.is-visible {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, .42);
        z-index: 50;
    }

    body.filters-open {
        overflow: hidden;
    }

    .results-hero,
    .portal-card-top,
    .card-footer-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .hero-search {
        padding-top: 26px;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }

    .discover-tag,
    .hero-stat,
    .results-hero,
    .detail-hero-card,
    .detail-data-item,
    .highlight-chip {
        border-radius: 16px;
    }

    .portal-card .card-body,
    .detail-hero-card,
    .discover-card {
        padding: 16px;
    }
}


/* =============================================================
   PATCH DE CONSOLIDAÇÃO — GALERIA, ÍCONES E AJUSTES DE ALINHAMENTO
   ============================================================= */
.icon-inline,
.btn-icon-svg,
.contact-icon,
.spec-icon,
.property-feature-icon,
.card-spec-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    line-height: 0;
    vertical-align: middle;
}

.icon-inline svg,
.btn-icon-svg svg,
.contact-icon svg,
.spec-icon svg,
.property-feature-icon svg,
.card-spec-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

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

.detail-topline-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

.detail-chip,
.detail-chip-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.detail-location-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gallery-card {
    overflow: hidden;
}

.gallery-main-wrap {
    position: relative;
}

.gallery-open {
    width: 100%;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: zoom-in;
    position: relative;
    display: block;
}

.gallery-open img,
.gallery-main img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 18px;
    display: block;
}

.gallery-zoom-hint {
    position: absolute;
    right: 16px;
    bottom: 16px;
    background: rgba(15, 23, 42, .72);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 999px;
    pointer-events: none;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 0;
    background: rgba(15, 23, 42, .74);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav svg,
.gallery-modal-nav svg,
.gallery-modal-close svg {
    width: 20px;
    height: 20px;
}

.gallery-nav-prev { left: 16px; }
.gallery-nav-next { right: 16px; }

.gallery-thumbs {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.gallery-thumb,
.gallery-modal-thumb {
    border: 2px solid transparent;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
}

.gallery-thumb.is-active,
.gallery-modal-thumb.is-active {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.gallery-thumb img,
.gallery-modal-thumb img {
    width: 100%;
    height: 96px;
    object-fit: cover;
    display: block;
}

.detail-specs-chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.spec-item-icon {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px 18px;
    min-height: 88px;
}

.spec-item-icon strong,
.spec-item-icon span {
    display: block;
}

.spec-item-icon strong {
    font-size: 28px;
    color: #0f172a;
    line-height: 1;
}

.spec-item-icon span:last-child {
    margin-top: 6px;
    color: #475569;
    font-size: 14px;
}

.spec-icon,
.property-feature-icon,
.contact-icon,
.card-spec-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
}

.property-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.property-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
    background: #fff;
}

.property-feature-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #94a3b8;
    margin-bottom: 4px;
}

.property-feature-value {
    color: #0f172a;
    font-size: 16px;
}

.contact-caption {
    margin: 0 0 18px;
    color: #64748b;
    text-align: center;
}

.contact-details-icons {
    display: grid;
    gap: 14px;
    margin-bottom: 8px;
}

.contact-row-icon {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
}

.contact-row-icon > div {
    min-width: 0;
}

.card-specs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 18px;
}

.card-spec-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 13px;
    color: #334155;
}

.card-spec-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
}

.gallery-modal-open {
    overflow: hidden;
}

.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
}

.gallery-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, .82);
}

.gallery-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(1400px, calc(100% - 24px));
    height: calc(100% - 24px);
    margin: 12px auto;
    background: transparent;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 72px;
    gap: 12px;
    align-items: center;
}

.gallery-modal-body {
    min-width: 0;
}

.gallery-modal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #fff;
    margin-bottom: 14px;
}

.gallery-modal-counter {
    font-weight: 800;
}

.gallery-modal-title {
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
}

.gallery-modal-stage {
    background: rgba(15, 23, 42, .45);
    border-radius: 24px;
    padding: 12px;
}

.gallery-modal-stage img {
    width: 100%;
    height: min(72vh, 860px);
    object-fit: contain;
    display: block;
    border-radius: 18px;
    background: rgba(255, 255, 255, .02);
}

.gallery-modal-thumbs {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.gallery-modal-nav,
.gallery-modal-close {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 0;
    background: rgba(15, 23, 42, .74);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
}

@media (max-width: 991px) {
    .detail-specs-chips,
    .property-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-open img,
    .gallery-main img {
        height: 420px;
    }

    .gallery-modal-dialog {
        width: calc(100% - 16px);
        height: calc(100% - 16px);
        margin: 8px auto;
        grid-template-columns: 56px minmax(0, 1fr) 56px;
    }

    .gallery-modal-thumbs {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .detail-topline-icons {
        gap: 8px;
    }

    .detail-specs-chips,
    .property-feature-grid {
        grid-template-columns: 1fr;
    }

    .gallery-open img,
    .gallery-main img {
        height: 300px;
        border-radius: 16px;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .gallery-nav {
        width: 38px;
        height: 38px;
    }

    .gallery-modal-dialog {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .gallery-modal-prev,
    .gallery-modal-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }

    .gallery-modal-prev { left: 14px; }
    .gallery-modal-next { right: 14px; }

    .gallery-modal-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-modal-title {
        font-size: 13px;
    }
}

/* ── Chips de diferenciais/características ─────────────────────────── */
.caracteristicas-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0;
}

.caracteristica-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 20px;
    background: #f0f4ff;
    color: #3a5cc5;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #c7d4f7;
    line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════════════
   CARROSSEL DE DESTAQUE — home
   ═══════════════════════════════════════════════════════════════════════ */

.section-destaque-carousel {
    background: #0b1220;
    padding: 40px 0 0;
}

.destaque-carousel-head {
    margin-bottom: 24px;
    color: #fff;
}

.destaque-carousel-head .eyebrow {
    color: #7ea4f8;
}

.destaque-carousel-head h2 {
    color: #fff;
    margin: 0;
}

/* ── Wrapper do carrossel ─────────────────────────── */
.destaque-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0b1220;
    user-select: none;
    -webkit-user-select: none;
}

.destaque-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ── Slide ─────────────────────────────────────────── */
.destaque-slide {
    min-width: 100%;
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
}

.destaque-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.destaque-slide-nophoto {
    background: linear-gradient(135deg, #1a2540 0%, #0d1829 100%);
}

/* Overlay: escurece mais à esquerda para legibilidade do texto */
.destaque-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(8, 12, 24, 0.88) 0%,
        rgba(8, 12, 24, 0.65) 45%,
        rgba(8, 12, 24, 0.20) 100%
    );
    pointer-events: none;
}

/* ── Conteúdo do slide ────────────────────────────── */
.destaque-slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 48px 60px;
}

.destaque-slide-info {
    max-width: 540px;
    color: #fff;
}

/* Badges */
.destaque-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.destaque-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.92);
}

.destaque-badge-gold {
    background: #c97d10;
    border-color: #e8a020;
    color: #fff;
}

/* Título */
.destaque-titulo {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 10px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
    color: #fff;
}

/* Localização */
.destaque-local {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.destaque-local-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    opacity: 0.75;
    display: inline-flex;
}

.destaque-local-icon svg {
    width: 16px;
    height: 16px;
}

/* Preço */
.destaque-preco {
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    font-weight: 700;
    color: #ffd27d;
    margin: 0 0 16px;
    line-height: 1;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.destaque-preco-sufx {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 210, 125, 0.8);
    margin-left: 3px;
}

/* Specs */
.destaque-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.destaque-spec {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.88);
    display: flex;
    align-items: center;
    gap: 5px;
}

.destaque-spec-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: inline-flex;
    opacity: 0.75;
}

.destaque-spec-icon svg {
    width: 16px;
    height: 16px;
}

/* CTA */
.destaque-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 13px 28px;
    background: #fff;
    color: #0b1220;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.destaque-cta:hover {
    background: #e8f0ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.3);
}

.destaque-cta-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    flex-shrink: 0;
}

.destaque-cta-icon svg {
    width: 16px;
    height: 16px;
}

/* ── Botões prev/next ─────────────────────────────── */
.destaque-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, transform 0.18s ease;
    padding: 0;
}

.destaque-nav svg {
    width: 20px;
    height: 20px;
}

.destaque-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.08);
}

.destaque-nav-prev { left: 20px; }
.destaque-nav-next { right: 20px; }

/* ── Dots indicadores ─────────────────────────────── */
.destaque-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.destaque-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, width 0.25s ease;
}

.destaque-dot.is-active {
    background: #fff;
    transform: scale(1.25);
    width: 22px;
    border-radius: 4px;
}

/* ── Contador de slides ───────────────────────────── */
.destaque-counter {
    position: absolute;
    top: 18px;
    right: 20px;
    background: rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(4px);
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 20px;
    z-index: 10;
    pointer-events: none;
}

/* ── Responsivo — mobile ──────────────────────────── */
@media (max-width: 767px) {
    .destaque-slide {
        height: 460px;
        align-items: flex-end;
    }

    /* No mobile o overlay escurece de baixo pra cima */
    .destaque-slide-overlay {
        background: linear-gradient(
            to top,
            rgba(8, 12, 24, 0.93) 0%,
            rgba(8, 12, 24, 0.65) 45%,
            rgba(8, 12, 24, 0.10) 100%
        );
    }

    .destaque-slide-content {
        padding: 20px 20px 56px;
    }

    .destaque-slide-info {
        max-width: 100%;
    }

    .destaque-nav {
        display: none; /* swipe no mobile */
    }

    .destaque-titulo {
        font-size: 1.25rem;
    }

    .destaque-preco {
        font-size: 1.3rem;
    }

    .destaque-carousel-head {
        padding: 0 16px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .destaque-slide {
        height: 440px;
    }

    .destaque-slide-content {
        padding: 40px 40px;
    }
}

/* =============================================================
   DETALHE DO IMÓVEL — FASE 1 PREMIUM
   ============================================================= */
.detail-section { padding-top: 18px; }
.detail-breadcrumbs { margin-bottom: 14px; }

.detail-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.detail-toolbar-left,
.detail-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-toolbar-chip,
.detail-action-btn,
.detail-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #dbe3ef;
    background: #fff;
    color: #111827;
    font-size: 13px;
    font-weight: 700;
}

.detail-toolbar-chip-highlight {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

.detail-action-btn {
    cursor: pointer;
    transition: .15s ease;
}

.detail-action-btn:hover {
    border-color: #c7d2fe;
    color: #1d4ed8;
    transform: translateY(-1px);
}

.detail-action-btn svg,
.detail-toolbar-chip svg,
.detail-chip svg,
.detail-summary-card svg {
    width: 16px;
    height: 16px;
}

.detail-action-btn.is-done {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #166534;
}

.detail-hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) 360px;
    gap: 24px;
    margin-bottom: 18px;
}

.detail-hero-copy,
.detail-hero-panel {
    margin-top: 0;
}

.detail-hero-copy {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.detail-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-chip-ok {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.detail-title-hero {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 12px;
}

.detail-location-hero {
    font-size: 15px;
    margin-bottom: 14px;
}

.detail-summary {
    margin: 0 0 18px;
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
    max-width: 820px;
}

.detail-specs-premium {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.spec-item-premium {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

.spec-item-premium strong {
    margin: 0 0 2px;
    font-size: 22px;
}

.spec-item-premium span:last-child {
    display: block;
    font-size: 12px;
    color: #64748b;
}

.spec-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #eff6ff;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.spec-icon svg { width: 20px; height: 20px; }

.detail-hero-panel {
    padding: 26px;
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: #fff;
    border-color: #0f172a;
    box-shadow: 0 22px 50px rgba(15, 23, 42, .22);
}

.detail-price-kicker {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 11px;
    color: rgba(255,255,255,.65);
    font-weight: 700;
}

.detail-price-hero {
    color: #fff;
    font-size: 34px;
    margin-bottom: 10px;
}

.detail-price-meta {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
    color: rgba(255,255,255,.78);
    font-size: 14px;
}

.detail-price-meta strong { color: #fff; }

.detail-hero-panel .btn-light {
    border-color: rgba(255,255,255,.22);
    background: rgba(255,255,255,.08);
    color: #fff;
}

.detail-hero-panel .btn-light:hover {
    background: rgba(255,255,255,.16);
}

.detail-gallery-card { padding: 0; overflow: hidden; }
.hero-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) 340px;
    min-height: 540px;
}

.hero-gallery-main,
.hero-gallery-side {
    min-width: 0;
}

.hero-gallery-open,
.hero-gallery-thumb,
.hero-gallery-more {
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: #dbe1ea;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.hero-gallery-open img,
.hero-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.hero-gallery-open:hover img,
.hero-gallery-thumb:hover img {
    transform: scale(1.03);
}

.hero-gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 22px;
    background: linear-gradient(to top, rgba(15,23,42,.75), rgba(15,23,42,.05));
}

.hero-gallery-zoom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.92);
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 999px;
}

.hero-gallery-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, 1fr);
    gap: 1px;
    background: #fff;
}

.hero-gallery-thumb { min-height: 0; }
.hero-gallery-more {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 18px;
}

.hero-gallery-more strong {
    font-size: 34px;
    line-height: 1;
}

.detail-section-head {
    margin-bottom: 18px;
}

.detail-section-head h2 {
    margin: 0 0 4px;
    font-size: 26px;
}

.detail-section-head p {
    margin: 0;
    color: #64748b;
}

.property-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.property-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
}

.property-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.property-feature-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.property-feature-value {
    font-size: 15px;
    color: #0f172a;
}

.detail-sidebar .contact-card {
    margin-top: 0;
}

.detail-no-image {
    min-height: 320px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: #64748b;
    font-weight: 600;
}

.icon-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-svg svg,
.icon-inline svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 1199px) {
    .detail-hero-shell,
    .detail-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-gallery-side {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        grid-template-rows: 120px;
    }
}

@media (max-width: 767px) {
    .detail-title-hero { font-size: 30px; }
    .detail-toolbar { align-items: stretch; }
    .detail-toolbar-actions { width: 100%; }
    .detail-toolbar-actions .detail-action-btn { flex: 1; justify-content: center; }
    .detail-specs-premium,
    .property-feature-grid {
        grid-template-columns: 1fr;
    }
    .hero-gallery {
        min-height: auto;
    }
    .hero-gallery-main .hero-gallery-open {
        min-height: 280px;
    }
    .hero-gallery-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(3, 110px);
    }
}


/* =============================================================
   DETALHE DO IMÓVEL — FASE 2 CONVERSÃO
   ============================================================= */
.site-flash-wrap { padding-top: 14px; }
.site-flash {
    border-radius: 14px;
    padding: 14px 16px;
    font-weight: 600;
    border: 1px solid transparent;
}
.site-flash-success { background: #ecfdf5; color: #166534; border-color: #bbf7d0; }
.site-flash-error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }

.detail-action-btn.is-favorited {
    background: #fff1f2;
    color: #be123c;
    border-color: #fecdd3;
}

.contact-card-premium .detail-section-head h2 {
    font-size: 24px;
}

.lead-form,
.report-form {
    display: grid;
    gap: 12px;
    margin: 14px 0 18px;
}

.form-group {
    display: grid;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.form-input,
.form-textarea {
    width: 100%;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #fff;
    min-height: 46px;
    padding: 12px 14px;
    font: inherit;
    color: #0f172a;
}

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

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(59,130,246,.12);
}

.contact-quick-questions {
    margin: 6px 0 18px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
}

.contact-quick-title {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.quick-question-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-question-btn {
    border: 1px solid #cbd5e1;
    background: #fff;
    border-radius: 999px;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: .15s ease;
}

.quick-question-btn:hover {
    border-color: #93c5fd;
    color: #1d4ed8;
}

.report-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
}

.report-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.72);
}

.report-modal-dialog {
    position: relative;
    width: min(720px, calc(100vw - 24px));
    max-height: calc(100vh - 32px);
    overflow: auto;
    margin: 16px auto;
    background: #fff;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 24px 60px rgba(15,23,42,.3);
    z-index: 1;
}

.report-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
}

.report-modal h3 {
    margin: 0 0 6px;
    font-size: 26px;
}

.report-modal p {
    margin: 0 0 18px;
    color: #64748b;
}

.report-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.report-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mobile-cta-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 50;
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(15,23,42,.92);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(15,23,42,.28);
}

.mobile-cta-primary,
.mobile-cta-secondary {
    min-height: 48px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-cta-primary {
    flex: 1;
    background: #2563eb;
    color: #fff;
}

.mobile-cta-secondary {
    width: 130px;
    background: rgba(255,255,255,.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,.12);
}

@media (max-width: 767px) {
    .mobile-cta-bar { display: flex; }
    .report-options,
    .report-grid {
        grid-template-columns: 1fr;
    }
    .section { padding-bottom: 98px; }
}


/* =============================================================
   DETALHE DO IMÓVEL — FASE 3 LGPD / MAPA / COMPLEMENTOS
   ============================================================= */
.cookie-banner {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(15,23,42,.96);
    color: #fff;
    box-shadow: 0 8px 24px rgba(15,23,42,.18);
}

.cookie-banner-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.cookie-banner-copy {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cookie-banner-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255,255,255,.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cookie-banner-copy p {
    margin: 4px 0 0;
    color: rgba(255,255,255,.76);
    font-size: 14px;
}

.cookie-banner-copy a { color: #fff; text-decoration: underline; }
.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.form-disclaimer {
    margin: -2px 0 0;
    font-size: 12px;
    line-height: 1.6;
    color: #64748b;
}

.content-html-collapsed {
    max-height: 180px;
    overflow: hidden;
    position: relative;
}

.content-html-collapsed::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 56px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
}

.content-html-collapsed.is-open {
    max-height: none;
}

.content-html-collapsed.is-open::after {
    display: none;
}

.description-toggle {
    margin-top: 14px;
}

.location-box,
.broker-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.location-box-copy,
.broker-box-copy {
    display: grid;
    gap: 4px;
}

.location-box-copy strong,
.broker-box-copy h3 {
    font-size: 20px;
    color: #0f172a;
    margin: 0;
}

.location-box-copy span,
.broker-box-copy p {
    color: #64748b;
    margin: 0;
}

.broker-box-logo,
.imobiliaria-profile-logo {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

.broker-box-logo img,
.imobiliaria-profile-logo img {
    max-width: 88%;
    max-height: 88%;
    object-fit: contain;
}

.broker-box-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.imobiliaria-profile {
    display: flex;
    gap: 18px;
    align-items: center;
}

.legal-card h1 { margin: 0; }

@media (max-width: 767px) {
    .cookie-banner-inner,
    .location-box,
    .broker-box,
    .imobiliaria-profile {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* =============================================================
   AJUSTES DE CORREÇÃO — DESCRIÇÃO / MAPA / RESPIRO DA GALERIA
   ============================================================= */
.detail-gallery-card {
    margin-bottom: 24px;
    padding: 14px;
    border-radius: 24px;
    background: #fff;
}

.hero-gallery {
    gap: 14px;
    min-height: 520px;
}

.hero-gallery-main .hero-gallery-open,
.hero-gallery-side,
.hero-gallery-thumb,
.hero-gallery-more {
    border-radius: 20px;
}

.hero-gallery-side {
    gap: 12px;
    background: transparent;
    grid-auto-rows: minmax(0, 1fr);
}

.hero-gallery-thumb,
.hero-gallery-more {
    min-height: 0;
}

.hero-gallery-more {
    padding: 14px;
}

.content-html {
    color: #1f2937;
}

.content-html p:first-child { margin-top: 0; }
.content-html p:last-child { margin-bottom: 0; }
.content-html ul,
.content-html ol {
    padding-left: 22px;
    margin: 0 0 14px;
}

.location-panel {
    display: grid;
    gap: 16px;
}

.location-map {
    width: 100%;
    min-height: 320px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #dbe3ef;
    background: linear-gradient(180deg, #eef4ff, #e2e8f0);
}

.location-box {
    align-items: flex-start;
}

.location-box-copy small {
    font-size: 12px;
    color: #64748b;
}

.leaflet-container {
    font: inherit;
}

@media (max-width: 1199px) {
    .detail-gallery-card { margin-bottom: 22px; }
    .hero-gallery {
        gap: 12px;
    }
}

@media (max-width: 767px) {
    .detail-gallery-card {
        padding: 10px;
        border-radius: 20px;
        margin-bottom: 18px;
    }

    .hero-gallery {
        gap: 10px;
    }

    .hero-gallery-main .hero-gallery-open {
        border-radius: 18px;
    }

    .hero-gallery-side {
        gap: 10px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(3, 92px);
    }

    .hero-gallery-thumb,
    .hero-gallery-more {
        border-radius: 16px;
    }

    .location-map {
        min-height: 260px;
    }
}
