/* ===== Variables & Base Styles ===== */
:root {
    --primary-blue: #0d6efd;
    --primary-blue-dark: #0052cc;
    --text-dark: #3d4852;
    --text-muted: #9ca3af;
    --border-color: #e5e7eb;
    --bg-light: #f9fafb;
    --red-primary: #dc3545;
    --green-primary: #28a745;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ===== Logo / marca (PNG oficial) ===== */
.portal-brand-link {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    text-decoration: none !important;
}

.portal-brand-link:hover {
    opacity: 0.92;
}

.portal-brand-logo {
    height: 34px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    vertical-align: middle;
}

.portal-brand-logo--hero {
    height: 48px;
    max-width: 260px;
}

/* Header azul: logo azul escura vira branca */
.portal-brand-logo--invert {
    filter: brightness(0) invert(1);
}

/* ===== Logo Styles (texto legado, páginas sem imagem) ===== */
.logo {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -1px;
}

.logo-white {
    color: white !important;
}

.logo-text {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -2px;
    margin: 0;
}

.logo-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: -10px;
    text-align: right;
    padding-right: 10px;
}

/* ===== Hero Section - Home Page ===== */
.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    padding: 80px 20px 60px;
}

.hero-title {
    font-size: 42px;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-muted);
}

.logo-hero {
    margin-bottom: 40px;
}

/* ===== Category Icons ===== */
.category-icons {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 50px 0;
}

.category-icon-link {
    text-align: center;
    transition: transform 0.3s ease;
}

.category-icon-link:hover {
    transform: translateY(-5px);
}

.category-icon {
    width: 80px;
    height: 80px;
    border: 3px solid var(--primary-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: all 0.3s ease;
}

.category-icon i {
    font-size: 36px;
    color: var(--primary-blue);
}

.category-icon-red {
    border-color: var(--red-primary);
}

.category-icon-red i {
    color: var(--red-primary);
}

.category-icon-green {
    border-color: var(--green-primary);
}

.category-icon-green i {
    color: var(--green-primary);
}

.category-label {
    display: block;
    font-size: 16px;
    color: var(--primary-blue);
    font-weight: 500;
}

.category-label-red {
    color: var(--red-primary);
}

.category-label-green {
    color: var(--green-primary);
}

.category-icon-link:hover .category-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== Countries Section ===== */
.countries-section {
    background-color: var(--bg-light);
    padding: 40px 20px;
}

.country-link {
    color: var(--text-dark);
    font-size: 14px;
    display: block;
    padding: 5px 0;
}

.country-link:hover {
    color: var(--primary-blue);
}

/* ===== Cookie Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #f5f5f5;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-banner p {
    font-size: 13px;
    color: var(--text-dark);
}

/* ===== Imoveis Page ===== */
.header-page {
    padding: 15px 0;
}

.imoveis-hero-section {
    background-color: #ffffff;
    padding: 60px 20px 80px;
    text-align: center;
}

.imoveis-hero-icon i {
    font-size: 60px;
    color: var(--primary-blue);
    vertical-align: middle;
}

.imoveis-hero-icon .logo-text {
    vertical-align: middle;
}

.imoveis-hero-icon .portal-brand-logo--hero {
    vertical-align: middle;
}

/* ===== Search Form ===== */
.search-form-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.search-form {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-select {
    border: none;
    border-right: 1px solid var(--border-color);
    border-radius: 8px 0 0 8px;
    padding: 18px 20px;
    font-size: 16px;
    background-color: #f8f9fa;
    height: 60px;
}

.search-input {
    border: none;
    border-radius: 0;
    padding: 18px 20px;
    font-size: 16px;
    height: 60px;
}

.search-input:focus {
    outline: none;
    box-shadow: none;
}

.search-button {
    width: 100%;
    height: 60px;
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    font-weight: 600;
    border: none;
    background-color: var(--primary-blue);
}

.search-button:hover {
    background-color: var(--primary-blue-dark);
}

/* ===== Popular Cities Section ===== */
.popular-cities-section {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.city-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 20px 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.city-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.city-card-body {
    flex: 1;
}

.city-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.city-count {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.city-arrow {
    color: var(--primary-blue);
    font-size: 20px;
    margin-left: 15px;
}

/* ===== Header Blue (Listing Page) ===== */
.header-blue {
    background: linear-gradient(135deg, #1e73be 0%, #0d6efd 100%);
    color: white;
    padding: 10px 0;
}

.logo-header-white {
    font-size: 28px;
    font-weight: 700;
    color: white !important;
    letter-spacing: -1px;
    text-decoration: none;
}

.logo-header-white i {
    font-size: 24px;
}

.logo-header-white:hover {
    opacity: 0.9;
}

.header-search-form {
    max-width: 600px;
}

.header-search-wrapper {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    overflow: hidden;
    padding: 2px;
}

.header-search-select {
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    color: var(--text-dark);
    border-radius: 6px;
    padding: 10px 15px;
    width: 140px;
    margin-right: 8px;
}

.header-search-select option {
    color: var(--text-dark);
}

.header-search-input {
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 6px;
    padding: 10px 45px 10px 15px;
}

.header-search-input:focus {
    outline: none;
    box-shadow: none;
    background-color: white;
}

.header-search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.header-search-btn:hover {
    color: var(--primary-blue);
}

.header-actions {
    gap: 0;
}

.header-link {
    text-decoration: none !important;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.header-link:hover {
    opacity: 0.8;
}

.header-toolbar-end {
    margin-left: auto;
}

.header-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.55rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff !important;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition:
        background 0.2s ease,
        opacity 0.2s ease;
}

.header-share-btn:hover {
    background: rgba(255, 255, 255, 0.24);
    color: #fff !important;
}

.header-share-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.header-share-icon,
.header-share-btn svg {
    width: 1.35rem;
    height: 1.35rem;
    stroke: currentColor;
}

/* ===== Breadcrumb Section ===== */
.breadcrumb-section {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}


.breadcrumb {
    font-size: 13px;
    flex-wrap: wrap;
}

.breadcrumb-item a {
    color: var(--primary-blue);
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.results-count {
    font-size: 14px;
}

/* ===== Listing Section ===== */
.listing-section {
    background-color: var(--bg-light);
    min-height: 100vh;
}

.listing-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

/* ===== Filters Sidebar ===== */
.filters-sidebar {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    top: 20px;
}

.email-alert-box {
    background-color: #f0f7ff;
    border: 1px solid #d0e7ff;
    border-radius: 8px;
    padding: 20px;
}

.email-alert-box i {
    color: var(--primary-blue);
    font-size: 20px;
}

.filter-group {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    margin-bottom: 10px;
}

.form-select {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px;
    font-size: 14px;
}

/* Select2 na listagem (dropdown acima do overlay mobile) */
.select2-container--bootstrap-5.select2-container--open,
.select2-container--bootstrap-5.select2-container--focus {
    z-index: 10060;
}

.mobile-filter-sidebar .select2-dropdown {
    z-index: 10061;
}

/* Botão Buscar da lateral: logo abaixo de Área m², largura total, simples */
.btn-portal-buscar {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background-color: var(--primary-blue);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.btn-portal-buscar:hover {
    background-color: var(--primary-blue-dark);
    color: #fff;
}

.btn-portal-buscar:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.btn-group-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-filter {
    flex: 1;
    min-width: 50px;
    padding: 8px 12px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-filter:hover,
.btn-filter.active {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

/* Chips numéricos da busca (radio dentro do label, estilo demo/listagem) */
.portal-num-chips label.btn-filter:has(input[type="radio"]:checked) {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.portal-num-chips label.btn-filter:focus-within {
    outline: 2px solid rgba(13, 110, 253, 0.45);
    outline-offset: 2px;
}

.neighborhood-links {
    max-height: 400px;
    overflow-y: auto;
}

.neighborhood-link {
    display: block;
    font-size: 13px;
    color: var(--primary-blue);
    padding: 6px 0;
    border-bottom: 1px solid transparent;
}

.neighborhood-link:hover {
    text-decoration: underline;
}

/* ===== Property Cards ===== */
.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.property-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.property-card .row {
    min-height: 100%;
}

.property-image-wrapper {
    position: relative;
    height: 100%;
    min-height: 280px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Carrossel de fotos na listagem */
.property-listing-carousel {
    position: absolute;
    inset: 0;
    min-height: 280px;
}

.property-listing-carousel .carousel-inner,
.property-listing-carousel .carousel-item {
    height: 100%;
    min-height: 280px;
}

.property-listing-carousel .carousel-item {
    position: relative;
}

.property-listing-carousel .carousel-control-prev,
.property-listing-carousel .carousel-control-next {
    width: 2.25rem;
    opacity: 0.9;
    z-index: 3;
}

.property-listing-carousel .carousel-control-prev-icon,
.property-listing-carousel .carousel-control-next-icon {
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

.property-listing-carousel-indicators {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    margin: 0;
    z-index: 3;
    gap: 4px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.property-listing-carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    margin: 0;
    padding: 0;
    background-color: rgba(255, 255, 255, 0.55);
    opacity: 1;
}

.property-listing-carousel-indicators [data-bs-target].active {
    background-color: #fff;
}

.badge {
    position: absolute;
    z-index: 4;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
}

.badge-new {
    top: 15px;
    left: 15px;
    background-color: var(--primary-blue);
    color: white;
}

.badge-popular {
    top: 15px;
    right: 15px;
    background-color: var(--primary-blue);
    color: white;
}

.badge-popular i {
    margin-right: 4px;
}

.property-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.property-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
}

/* Venda / Locação ao lado do preço */
.portal-transacao-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.3rem 0.6rem;
    border-radius: 7px;
    background-color: #d3e6f7;
    color: #0f3050;
    line-height: 1.15;
    white-space: nowrap;
    vertical-align: middle;
}

.page-imovel-detalhe .detail-price-row .portal-transacao-badge {
    font-size: 0.75rem;
    padding: 0.32rem 0.65rem;
}

/* Valor por extenso — menor que .small, discreto */
.portal-valor-extenso {
    font-size: 0.65rem;
    line-height: 1.35;
    letter-spacing: 0.01em;
}

@media (min-width: 576px) {
    .portal-valor-extenso {
        font-size: 0.7rem;
    }
}

.property-transacao-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.35rem;
    line-height: 1.2;
}

.btn-favorite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-favorite:hover {
    color: #e53935;
}

.btn-favorite.active,
.btn-favorite.active i,
.btn-favorite.active .fa-heart {
    color: #e53935 !important;
}

.btn-favorite.active i {
    font-weight: 900;
}

/* Botão favoritar na página de detalhes */
.btn-favorite-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-favorite-detail:hover {
    background: #fff5f5;
    border-color: #ffcdd2;
    color: #e53935;
}

.btn-favorite-detail.active,
.btn-favorite-detail.active i {
    color: #e53935 !important;
    background: #ffebee;
    border-color: #ef9a9a;
}

.btn-favorite-detail i {
    color: inherit;
}

/* Botão WhatsApp - estilo discreto */
.btn-whatsapp {
    background-color: transparent !important;
    border: 1px solid #25D366 !important;
    color: #25D366 !important;
}

.btn-whatsapp:hover {
    background-color: rgba(37, 211, 102, 0.08) !important;
    border-color: #25D366 !important;
    color: #1da851 !important;
}

/* WhatsApp em destaque (página do imóvel) */
@keyframes whatsapp-cta-pulse-soft {
    0%,
    100% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.42), 0 2px 8px rgba(0, 0, 0, 0.12);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.58), 0 3px 10px rgba(0, 0, 0, 0.14);
        transform: scale(1.015);
    }
}

.btn-whatsapp-cta {
    background: linear-gradient(180deg, #2fe06d 0%, #25d366 45%, #1ebe57 100%) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    letter-spacing: 0.01em;
    padding: 0.85rem 1.25rem !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
    animation: whatsapp-cta-pulse-soft 2.5s ease-in-out infinite;
}

.btn-whatsapp-cta:hover {
    color: #fff !important;
    filter: brightness(1.05);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.5), 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: none;
}

.btn-whatsapp-cta:active {
    transform: scale(0.99);
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    .btn-whatsapp-cta {
        animation: none;
    }
}

.btn-whatsapp-cta .fab {
    font-size: 1.25rem;
    vertical-align: middle;
}

/* Rodapé fixo na galeria: banner promocional (clique → WhatsApp), em vez do botão verde */
.imovel-whatsapp-lightbox-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1085;
    padding: 0 10px calc(10px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, transparent 0%, rgba(3, 5, 8, 0.75) 35%, rgba(3, 5, 8, 0.92) 100%);
    pointer-events: none;
}

.imovel-whatsapp-lightbox-bar-inner {
    max-width: 520px;
    margin: 0 auto;
    pointer-events: auto;
}

.imovel-lightbox-footer-banner-link {
    display: block;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    line-height: 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
    outline: none;
}

.imovel-lightbox-footer-banner-link:focus-visible {
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(37, 211, 102, 0.55);
}

.imovel-lightbox-footer-banner-img {
    display: block;
    width: 100%;
    max-height: min(120px, 22vh);
    object-fit: cover;
    object-position: center;
}

/* Evita barra WhatsApp da página por baixo do lightbox */
body.imovel-lightbox-open .imovel-detail-wa-sticky {
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
}

.btn-whatsapp-cta--bar {
    padding: 0.95rem 1.25rem !important;
    font-size: 1.08rem !important;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.btn-whatsapp-cta--listing {
    font-size: 0.98rem !important;
    padding: 0.72rem 1rem !important;
}

/* Página detalhe imóvel: barra WhatsApp fixa no rodapé (mobile) */
body.page-imovel-detalhe {
    padding-bottom: 0;
}

@media (max-width: 991.98px) {
    body.page-imovel-detalhe {
        padding-bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
    }
}

.imovel-detail-wa-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.92) 28%, #fff 55%);
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 -10px 32px rgba(15, 23, 42, 0.08);
}

.imovel-detail-wa-sticky-inner {
    max-width: 720px;
    margin: 0 auto;
}

.btn-whatsapp-cta--sticky-bar {
    padding: 0.88rem 1.1rem !important;
    font-size: 1.02rem !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.42), 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

body.modal-open .imovel-detail-wa-sticky {
    visibility: hidden;
    pointer-events: none;
}

.property-title {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.5;
}

.property-title strong {
    font-weight: 700;
}

.property-description {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-features {
    display: flex;
    flex-wrap: wrap;
}

.feature-item {
    font-size: 14px;
    color: var(--text-dark);
}

.feature-item i {
    margin-right: 6px;
    color: var(--text-muted);
}

.property-badges .badge {
    position: static;
    margin-right: 8px;
    margin-bottom: 8px;
}

.property-date {
    flex: 1;
}

.property-date small {
    display: block;
    margin-bottom: 4px;
}

.property-source {
    font-size: 13px;
    color: var(--text-muted);
}

.property-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
}

.property-card-footer .btn-primary {
    white-space: nowrap;
}

/* ===== View Controls ===== */
.view-controls {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.view-controls-inner {
    width: 100%;
}

.view-sort-wrap {
    min-width: 0;
}

@media (max-width: 991.98px) {
    .view-controls .view-sort-wrap .select2-container {
        width: 100% !important;
        max-width: 100%;
    }
}

@media (min-width: 992px) {
    .view-controls .view-sort-wrap .select2-container {
        width: 260px !important;
        max-width: 100%;
    }
}

.view-sort select {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
}

.view-toggle {
    display: flex;
    gap: 8px;
}

.btn-view {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-muted);
}

.btn-view:hover {
    background-color: #f0f7ff;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-view.active {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

.btn-view i {
    font-size: 16px;
}

/* Grid View Styles */
.properties-container.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.properties-container.grid-view .property-card {
    margin-bottom: 0 !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 550px;
}

.properties-container.grid-view .property-card .row {
    flex-direction: column;
    flex: 1;
    display: flex;
    height: 100%;
}

.properties-container.grid-view .property-card .col-md-5,
.properties-container.grid-view .property-card .col-md-7 {
    width: 100%;
    max-width: 100%;
}

.properties-container.grid-view .property-card .col-md-7 {
    display: flex;
    flex: 1;
}

.properties-container.grid-view .property-image-wrapper {
    height: 220px;
    min-height: 220px;
}

.properties-container.grid-view .property-listing-carousel,
.properties-container.grid-view .property-listing-carousel .carousel-inner,
.properties-container.grid-view .property-listing-carousel .carousel-item {
    min-height: 220px;
}

.properties-container.grid-view .property-card-body {
    display: flex;
    flex-direction: column;
    padding: 20px;
    flex: 1;
}

.properties-container.grid-view .property-card-body > div:first-child {
    flex: 0 0 auto;
}

.properties-container.grid-view .property-card-body > div:first-child > div:first-child {
    margin-bottom: 10px !important;
}

.properties-container.grid-view .property-price {
    font-size: 22px;
}

.properties-container.grid-view .btn-favorite {
    width: 36px;
    height: 36px;
    font-size: 18px;
}

.properties-container.grid-view .property-title {
    font-size: 14px;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 8px !important;
}

.properties-container.grid-view .property-description {
    font-size: 13px;
    line-height: 1.5;
    height: 3em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 12px !important;
}

.properties-container.grid-view .property-features {
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px !important;
}

.properties-container.grid-view .feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
}

.properties-container.grid-view .feature-item i {
    font-size: 16px;
}

.properties-container.grid-view .property-badges {
    text-align: center;
    min-height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.properties-container.grid-view .property-card-footer {
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.properties-container.grid-view .property-card-footer .btn-primary {
    width: 100%;
    margin: 0;
}

.properties-container.grid-view .property-date {
    text-align: center;
    width: 100%;
}

.properties-container.grid-view .property-date small {
    font-size: 12px;
}

.properties-container.grid-view .property-source {
    font-size: 11px;
    line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ===== Pagination ===== */
.pagination {
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-link {
    color: var(--primary-blue);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin: 2px;
    padding: 10px 16px;
    min-width: 44px;
    text-align: center;
}

.page-link:hover {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.page-item.active .page-link {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

@media (max-width: 576px) {
    .page-link {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 40px;
    }
    
    .pagination {
        justify-content: center;
    }
}

/* ===== Mobile Filter Button & Sidebar ===== */
.mobile-filter-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e73be 0%, #0d6efd 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.4);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-filter-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(13, 110, 253, 0.5);
}

.mobile-filter-btn i {
    font-size: 24px;
}

.mobile-filter-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: white;
    z-index: 1001;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
}

.mobile-filter-sidebar.active {
    left: 0;
}

.mobile-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #1e73be 0%, #0d6efd 100%);
    color: white;
    position: relative;
    top: 0;
    z-index: 10;
}

.mobile-filter-header h5 {
    margin: 0;
    font-weight: 700;
}

.mobile-filter-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-filter-content {
    padding: 20px;
}

.mobile-filters-cloned {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    position: static;
}

.mobile-filter-content .listing-title {
    display: none;
}

.mobile-filter-content .email-alert-box {
    margin-bottom: 20px;
}

.mobile-filter-content .filter-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.mobile-filter-content .neighborhood-links {
    max-height: 300px;
}

.mobile-filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-filter-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== Responsive Design ===== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 32px;
    }
    
    .logo-text {
        font-size: 36px;
    }

    .portal-brand-logo--hero {
        height: 40px;
        max-width: 220px;
    }
    
    .category-icons {
        gap: 40px;
    }
    
    .filters-sidebar {
        margin-bottom: 30px;
        position: static;
    }
    
    .header-search-form {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }
    
    .category-icons {
        gap: 30px;
    }
    
    .category-icon {
        width: 70px;
        height: 70px;
    }
    
    .category-icon i {
        font-size: 30px;
    }
    
    .search-form .col-lg-3,
    .search-form .col-lg-6 {
        width: 100%;
    }
    
    .search-select,
    .search-input,
    .search-button {
        border-radius: 8px !important;
        margin-bottom: 10px;
    }
    
    .property-image-wrapper {
        height: 250px;
        min-height: 250px;
    }
    
    .property-image {
        position: static;
    }
    
    .listing-title {
        font-size: 22px;
    }
    
    .view-controls {
        padding: 12px 16px;
    }
    
    .properties-container.grid-view {
        grid-template-columns: 1fr;
    }
    
    .properties-container.grid-view .property-card {
        min-height: auto;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 50px 15px 40px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .category-icons {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    
    .city-card {
        padding: 16px 20px;
    }
    
    .city-name {
        font-size: 16px;
    }
    
    .property-price {
        font-size: 24px;
    }
    
    .property-card-body {
        padding: 16px;
    }
}

/* ===== Custom Scrollbar ===== */
.neighborhood-links::-webkit-scrollbar {
    width: 6px;
}

.neighborhood-links::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.neighborhood-links::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.neighborhood-links::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.property-card {
    animation: fadeIn 0.5s ease-out;
}

/* ===== Detail Page ===== */
.detail-section {
    background-color: var(--bg-light);
    min-height: 100vh;
}

.detail-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ----- Detalhe imóvel: tipografia + Lucide + cartões ----- */
.page-imovel-detalhe {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.page-imovel-detalhe .detail-description,
.page-imovel-detalhe .detail-description p {
    font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    font-size: 1.0625rem;
    line-height: 1.78;
    letter-spacing: 0.012em;
    font-weight: 400;
    color: rgba(15, 23, 42, 0.9);
    text-rendering: optimizeLegibility;
    max-width: 65ch;
}

.page-imovel-detalhe .detail-description p {
    margin-bottom: 0.85rem;
}

.page-imovel-detalhe .detail-description p + p {
    margin-top: 0.15em;
}

.breadcrumb-section--detail {
    background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.page-imovel-detalhe .breadcrumb {
    font-size: 0.8125rem;
    font-weight: 500;
}

.page-imovel-detalhe .detail-section {
    background: linear-gradient(180deg, #e8edf4 0%, #f0f3f8 35%, #f7f8fa 100%);
}

.page-imovel-detalhe .detail-card {
    border-radius: 16px;
    padding: 26px 28px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow:
        0 4px 24px rgba(15, 23, 42, 0.06),
        0 1px 3px rgba(15, 23, 42, 0.04);
}

.page-imovel-detalhe .detail-whatsapp-banner {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.page-imovel-detalhe .detail-whatsapp-banner__link {
    text-decoration: none;
    color: inherit;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.page-imovel-detalhe .detail-whatsapp-banner__link:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.55);
    outline-offset: 3px;
}

.page-imovel-detalhe .detail-whatsapp-banner__img {
    display: block;
    border-radius: 14px;
}

/* Botão abaixo do banner, com margem — não sobrepõe a imagem */
.page-imovel-detalhe .detail-whatsapp-banner__cta {
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 26rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.btn-whatsapp-cta--banner {
    font-size: 1.08rem !important;
    padding: 0.95rem 1.35rem !important;
    border-radius: 14px !important;
}

@media (min-width: 768px) {
    .btn-whatsapp-cta--banner {
        font-size: 1.14rem !important;
        padding: 1.05rem 1.6rem !important;
    }
}

.page-imovel-detalhe .detail-image-main {
    border-radius: 16px;
    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.14),
        0 8px 20px rgba(15, 23, 42, 0.08);
}

/* Galeria do imóvel: menos “moldura” no card, foto maior; miniaturas numa linha com scroll */
.page-imovel-detalhe .detail-card.detail-card--imovel-gallery {
    padding: 8px 10px 14px;
    border-radius: 12px;
}

.page-imovel-detalhe .detail-card.detail-card--imovel-gallery .detail-image-main {
    border-radius: 10px;
    box-shadow:
        0 12px 36px rgba(15, 23, 42, 0.11),
        0 4px 14px rgba(15, 23, 42, 0.06);
}

.page-imovel-detalhe .detail-card.detail-card--imovel-gallery .detail-image-main img.detail-main-img {
    border-radius: 0;
}

.page-imovel-detalhe .detail-card.detail-card--imovel-gallery .detail-image-main img {
    max-height: 580px;
}

.page-imovel-detalhe .detail-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.65rem;
}

.page-imovel-detalhe .detail-price {
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    margin-bottom: 0 !important;
}

.page-imovel-detalhe .detail-transacao-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #64748b;
    line-height: 1.2;
}

.page-imovel-detalhe .detail-title {
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.45;
}

.page-imovel-detalhe .detail-title strong {
    font-weight: 700;
}

.detail-section-title--with-icon {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.detail-section-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(13, 110, 253, 0.14) 0%, rgba(13, 110, 253, 0.06) 100%);
    color: var(--primary-blue);
}

.detail-section-title-icon .lucide,
.detail-section-title-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary-blue);
}

.detail-section-title-icon--muted {
    background: linear-gradient(145deg, rgba(13, 110, 253, 0.1) 0%, rgba(13, 110, 253, 0.04) 100%);
}

.lucide-nav {
    width: 1.125rem;
    height: 1.125rem;
}

.navbar-brand .lucide-nav {
    width: 1.25rem;
    height: 1.25rem;
}

.page-imovel-detalhe .navbar-brand svg {
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.header-search-btn .lucide-nav {
    width: 1.1rem;
    height: 1.1rem;
}

.lucide-badge {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
}

.badge-popular svg.lucide {
    stroke: currentColor;
}

.page-imovel-detalhe .detail-feature {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    padding: 6px 14px 6px 8px;
    background: rgba(15, 23, 42, 0.035);
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.page-imovel-detalhe .detail-feature svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: var(--primary-blue);
}

.page-imovel-detalhe .detail-sidebar {
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
}

.lucide-btn {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: currentColor;
}

.lucide-lb {
    width: 22px;
    height: 22px;
    stroke: currentColor;
}

.imovel-photo-lightbox-nav svg.lucide {
    width: 22px;
    height: 22px;
}

button.detail-thumb-more svg {
    width: 1.35rem;
    height: 1.35rem;
    stroke: #fff;
}

.char-item.char-item--icon {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    background: linear-gradient(135deg, #ffffff 0%, #f6f8fb 100%);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.char-item-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(13, 110, 253, 0.14) 0%, rgba(13, 110, 253, 0.06) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.char-item-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--primary-blue);
}

.char-item-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.char-item--icon .char-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.char-item--icon .char-value {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
}

.detail-characteristics .char-item.char-item--icon {
    justify-content: flex-start;
}

.page-imovel-detalhe .btn-voltar-listagem {
    font-weight: 600;
    border-radius: 12px;
    padding: 0.65rem 1.25rem;
    border-width: 2px;
}

.page-imovel-detalhe .imovel-localizacao-card .detail-section-title--with-icon {
    margin-bottom: 0.65rem !important;
}

/* Imóveis similares (detalhe): faixa azul escura em largura total; cards brancos */
.page-imovel-detalhe .imovel-similar-wrapper {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
    margin-top: 0.35rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(165deg, #0a1a2e 0%, #0f2744 42%, #153252 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-imovel-detalhe .imovel-similar-wrapper .imovel-similar-section {
    padding-top: 0;
}

.page-imovel-detalhe .imovel-similar-wrapper .imovel-similar-head .imovel-similar-title {
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
    color: #f1f5f9;
}

.page-imovel-detalhe .imovel-similar-wrapper .imovel-similar-title.detail-section-title {
    color: #f8fafc;
}

.page-imovel-detalhe .imovel-similar-wrapper .imovel-similar-sub {
    font-size: 0.9375rem;
    max-width: 42rem;
    color: rgba(248, 250, 252, 0.78) !important;
}

.page-imovel-detalhe .imovel-similar-wrapper .imovel-similar-title-icon.detail-section-title-icon {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
}

.page-imovel-detalhe .imovel-similar-wrapper .imovel-similar-title-icon svg,
.page-imovel-detalhe .imovel-similar-wrapper .imovel-similar-title-icon .lucide {
    stroke: #e2e8f0;
}

.page-imovel-detalhe .imovel-similar-wrapper .property-card--similar:last-child {
    margin-bottom: 0 !important;
}

.page-imovel-detalhe .imovel-similar-wrapper .property-card--similar {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.property-card--similar {
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.property-card--similar .property-image-wrapper {
    border-radius: 0;
}

@media (max-width: 767.98px) {
    .property-card--similar .property-card-footer {
        flex-direction: column;
    }
}

.detail-image-thumbs-strip {
    gap: 6px;
    margin-top: 4px;
}

.detail-image-thumbs-scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 23, 42, 0.28) rgba(15, 23, 42, 0.06);
    padding-bottom: 6px;
    margin-bottom: -2px;
}

.detail-image-thumbs-scroll::-webkit-scrollbar {
    height: 5px;
}

.detail-image-thumbs-scroll::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.06);
    border-radius: 3px;
}

.detail-image-thumbs-scroll::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.22);
    border-radius: 3px;
}

.detail-image-main {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background-color: #e8ecf1;
    border: none;
}

.detail-image-main .badge {
    position: absolute;
    z-index: 2;
}

.detail-image-main .badge-new {
    top: 15px;
    left: 15px;
}

.detail-image-main .badge-popular {
    top: 15px;
    right: 15px;
}

.detail-image-main img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    min-height: 220px;
    object-fit: cover;
}

/* Miniaturas: maior, sem borda pesada, destaque por sombra */
img.detail-thumb {
    flex-shrink: 0;
    width: 118px;
    height: 84px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1);
    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}

img.detail-thumb:hover {
    opacity: 1;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
    transform: translateY(-2px);
}

img.detail-thumb.active {
    box-shadow:
        0 0 0 2px #fff,
        0 0 0 4px var(--primary-blue),
        0 8px 24px rgba(13, 110, 253, 0.28);
    transform: translateY(-2px);
}

button.detail-thumb-more.detail-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 118px;
    height: 84px;
    padding: 0;
    background: linear-gradient(145deg, #1e73be 0%, #0d6efd 55%, #0b5ed7 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    line-height: 1;
    box-sizing: border-box;
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.35);
    -webkit-tap-highlight-color: transparent;
    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease,
        filter 0.2s ease;
}

button.detail-thumb-more.detail-thumb:hover {
    opacity: 1;
    filter: brightness(1.06);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.45);
    transform: translateY(-2px);
}

button.detail-thumb-more.detail-thumb.active {
    box-shadow:
        0 0 0 2px #fff,
        0 0 0 4px rgba(255, 255, 255, 0.5),
        0 8px 24px rgba(13, 110, 253, 0.5);
    transform: translateY(-2px);
}

button.detail-thumb-more.detail-thumb:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.detail-gallery-main {
    cursor: zoom-in;
}

/* Galeria / lightbox do imóvel (fundo escuro, navegação clara) */
.imovel-photo-lightbox .modal-content {
    background: linear-gradient(165deg, #121820 0%, #070a0e 55%, #030508 100%);
    color: #fff;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

body.modal-open:has(.imovel-photo-lightbox.show) .modal-backdrop.show {
    background-color: #000;
    opacity: 0.94 !important;
}

/* Barra superior clara: compartilhar + contador à esquerda, fechar à direita */
.imovel-photo-lightbox-toolbar {
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
    padding: 0.55rem 0.85rem;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

@media (min-width: 992px) {
    .imovel-photo-lightbox .imovel-photo-lightbox-toolbar {
        border-radius: 14px 14px 0 0;
    }
}

.imovel-photo-lightbox-toolbar-start {
    min-width: 0;
}

.imovel-photo-lightbox-counter {
    color: #475569;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.imovel-photo-lightbox-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0.4rem 0.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    border: none;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a !important;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.imovel-photo-lightbox-share-btn:hover {
    background: rgba(15, 23, 42, 0.1);
    color: #0f172a !important;
}

.imovel-photo-lightbox-share-btn:focus-visible {
    outline: 2px solid var(--primary-blue, #2563eb);
    outline-offset: 2px;
}

.imovel-photo-lightbox-share-icon,
.imovel-photo-lightbox-share-btn svg {
    width: 1.3rem;
    height: 1.3rem;
    stroke: currentColor;
}

.imovel-photo-lightbox-close {
    opacity: 0.65;
    flex-shrink: 0;
}

.imovel-photo-lightbox-close:hover {
    opacity: 1;
}

.imovel-photo-lightbox-sheet {
    padding-bottom: clamp(100px, 22vh, 150px);
}

.imovel-photo-lightbox-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0.5rem 0.35rem 0.35rem;
    gap: 0;
}

.imovel-photo-lightbox-mainrow {
    flex: 1 1 auto;
    min-height: 0;
    gap: 0.35rem;
    padding: 0 0.15rem;
}

@media (min-width: 992px) {
    .imovel-photo-lightbox-dialog.modal-fullscreen-lg-down {
        height: min(90vh, 860px);
        max-height: calc(100vh - 2rem);
    }

    .imovel-photo-lightbox .modal-content {
        border-radius: 14px !important;
        overflow: hidden;
        box-shadow: 0 25px 90px rgba(0, 0, 0, 0.75);
        min-height: auto;
    }

    .imovel-photo-lightbox-body {
        min-height: min(58vh, 620px);
        padding: 0.65rem 1rem 0.5rem;
    }

    .imovel-photo-lightbox-mainrow {
        gap: 0.5rem;
        padding: 0 0.35rem;
    }
}

.imovel-photo-lightbox-frame {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
}

.imovel-photo-lightbox-img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: min(52vh, calc(100vh - 260px));
    object-fit: contain;
    transition: opacity 0.2s ease;
    border-radius: 12px;
}

.imovel-photo-lightbox-thumbs-strip {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.45rem 0 0.15rem;
    margin-top: 0.35rem;
}

.imovel-photo-lightbox-thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.45rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.2rem 0.5rem 0.35rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
    -webkit-overflow-scrolling: touch;
}

.imovel-photo-lightbox-thumbs::-webkit-scrollbar {
    height: 5px;
}

.imovel-photo-lightbox-thumbs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.imovel-photo-lightbox-thumb {
    flex: 0 0 auto;
    width: 68px;
    height: 52px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    opacity: 0.65;
    cursor: pointer;
    transition:
        opacity 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
}

.imovel-photo-lightbox-thumb:hover,
.imovel-photo-lightbox-thumb:focus-visible {
    opacity: 0.95;
    outline: none;
}

.imovel-photo-lightbox-thumb.active {
    border-color: rgba(255, 255, 255, 0.95);
    opacity: 1;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.imovel-photo-lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.imovel-photo-lightbox-nav {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    z-index: 2;
}

.imovel-photo-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.imovel-photo-lightbox-nav:active {
    transform: scale(0.94);
}

@media (max-width: 575.98px) {
    .imovel-photo-lightbox-nav {
        width: 42px;
        height: 42px;
    }

    .imovel-photo-lightbox-img {
        max-height: min(48vh, calc(100vh - 300px));
    }

    .imovel-photo-lightbox-thumb {
        width: 56px;
        height: 44px;
    }
}

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

.detail-sidebar {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.detail-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-blue);
}

.detail-title {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.5;
}

.detail-title strong {
    font-weight: 700;
}

.detail-features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.detail-feature {
    font-size: 15px;
    color: var(--text-dark);
}

.detail-feature i {
    margin-right: 8px;
    color: var(--text-muted);
}

.detail-badges .badge {
    position: static;
    margin-right: 8px;
    margin-bottom: 8px;
}

.detail-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.detail-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-dark);
}

.detail-description p {
    margin-bottom: 1rem;
}

.detail-leaflet-map {
    height: 320px;
    width: 100%;
    background: var(--bg-light, #f0f3f5);
}

.detail-leaflet-map .leaflet-container {
    height: 100%;
    width: 100%;
    font-family: inherit;
}

.detail-leaflet-map-loading {
    z-index: 500;
    pointer-events: none;
}

.imovel-localizacao-linha {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.detail-characteristics .char-item:not(.char-item--icon) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: var(--bg-light);
    border-radius: 8px;
}

.char-label {
    font-size: 14px;
    color: var(--text-muted);
}

.char-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.detail-source {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Contact Form Card */
.detail-contact-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-top: 24px;
}

.detail-contact-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.detail-contact-title i {
    color: var(--primary-blue);
}

.detail-contact-form .form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.detail-contact-form .form-control {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
}

.detail-contact-form .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.detail-contact-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Detail Page Responsiveness */
@media (max-width: 991px) {
    .detail-sidebar-sticky {
        position: static;
    }
    
    .detail-contact-card {
        margin-top: 20px;
    }
    
    .detail-image-main img {
        max-height: 420px;
    }

    .page-imovel-detalhe .detail-card.detail-card--imovel-gallery {
        padding: 6px 8px 12px;
    }

    .page-imovel-detalhe .detail-card.detail-card--imovel-gallery .detail-image-main img {
        max-height: 460px;
    }
    
    .detail-price {
        font-size: 28px;
    }
    
    .detail-title {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .detail-section {
        padding-top: 1rem;
        padding-bottom: 2rem;
    }
    
    .breadcrumb-section {
        padding: 12px 0;
    }
    
    .breadcrumb {
        font-size: 12px;
        flex-wrap: wrap;
    }
    
    .breadcrumb-item {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }
    
    .breadcrumb-item:last-child {
        max-width: none;
    }
    
    .detail-card {
        padding: 16px;
    }

    .page-imovel-detalhe .detail-card.detail-card--imovel-gallery {
        padding: 6px 6px 10px;
    }

    .page-imovel-detalhe .detail-card.detail-card--imovel-gallery .detail-image-main {
        border-radius: 8px;
    }
    
    .detail-image-main {
        border-radius: 12px;
    }
    
    .detail-image-main img {
        max-height: 300px;
        min-height: 200px;
    }

    .page-imovel-detalhe .detail-card.detail-card--imovel-gallery .detail-image-main img {
        max-height: 360px;
        min-height: 200px;
    }
    
    .detail-image-thumbs-strip {
        gap: 5px;
    }
    
    img.detail-thumb {
        width: 96px;
        height: 68px;
        border-radius: 9px;
    }
    
    button.detail-thumb-more.detail-thumb {
        width: 96px;
        height: 68px;
        border-radius: 9px;
    }
    
    button.detail-thumb-more svg {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .detail-sidebar,
    .detail-contact-card {
        padding: 20px;
    }
    
    .detail-price {
        font-size: 26px;
    }
    
    .detail-title {
        font-size: 15px;
    }
    
    .detail-features {
        gap: 12px;
    }
    
    .detail-feature {
        font-size: 14px;
    }
    
    .detail-actions .btn {
        font-size: 15px;
        padding: 12px 16px;
    }
    
    .detail-section-title {
        font-size: 18px;
    }
    
    .page-imovel-detalhe .detail-description,
    .page-imovel-detalhe .detail-description p {
        font-size: 1rem;
        max-width: none;
    }

    .detail-description {
        font-size: 14px;
    }
    
    .detail-characteristics .char-item:not(.char-item--icon) {
        padding: 10px 12px;
    }

    .detail-characteristics .char-item.char-item--icon {
        padding: 10px 12px;
    }
    
    .char-item:not(.char-item--icon) .char-label,
    .char-item:not(.char-item--icon) .char-value {
        font-size: 13px;
    }
    
    .detail-contact-title {
        font-size: 16px;
    }
    
    .detail-contact-form .form-control {
        padding: 10px 14px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .detail-image-main img {
        max-height: 270px;
        min-height: 180px;
    }

    .page-imovel-detalhe .detail-card.detail-card--imovel-gallery .detail-image-main img {
        max-height: 300px;
        min-height: 180px;
    }

    img.detail-thumb {
        width: 88px;
        height: 62px;
    }
    
    button.detail-thumb-more.detail-thumb {
        width: 88px;
        height: 62px;
    }
    
    .detail-sidebar,
    .detail-contact-card {
        padding: 16px;
    }
    
    .detail-price {
        font-size: 24px;
    }
    
    .detail-badges .badge {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .breadcrumb-item {
        max-width: 90px;
    }
    
    .header-blue .navbar {
        padding: 12px 0;
    }
    
    .breadcrumb-section .container {
        overflow-x: hidden;
    }
}

/* ===== Detalhe imóvel — mobile: coluna única, blocos empilhados ===== */
.detail-mobile .detail-features--mobile-stack {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
}

.page-imovel-detalhe .detail-mobile .detail-features--mobile-stack .detail-feature {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 15px;
    box-sizing: border-box;
}

.page-imovel-detalhe .detail-mobile .detail-features--mobile-stack .detail-feature svg {
    width: 22px;
    height: 22px;
}

.detail-mobile .detail-badges {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.detail-mobile .detail-badges .badge {
    margin: 0;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    border-radius: 12px;
}

/* ===== Card de Características - Versão Mobile ===== */
.detail-mobile .detail-characteristics .row {
    --bs-gutter-x: 0;
    --bs-gutter-y: 12px;
}

.detail-mobile .detail-characteristics .char-item.char-item--icon {
    padding: 14px 16px;
    gap: 14px;
}

.detail-mobile .detail-characteristics .char-item.char-item--icon .char-item-icon {
    width: 38px;
    height: 38px;
}

.detail-mobile .detail-characteristics .char-item.char-item--icon .char-item-icon svg {
    width: 18px;
    height: 18px;
}

.detail-mobile .detail-characteristics .char-item.char-item--icon .char-label {
    font-size: 10px;
}

.detail-mobile .detail-characteristics .char-item.char-item--icon .char-value {
    font-size: 13px;
}

.detail-mobile .detail-characteristics .char-item:not(.char-item--icon) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 14px;
    background-color: #f3f4f6;
    border-radius: 10px;
    min-height: 56px;
}

.detail-mobile .detail-characteristics .char-item:not(.char-item--icon) .char-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.detail-mobile .detail-characteristics .char-item:not(.char-item--icon) .char-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
    max-width: 100%;
}

/* Detalhe imóvel — mobile: topo mais baixo, fotos em destaque; miniaturas 3 + botão sem scroll */
@media (max-width: 991.98px) {
    .page-imovel-detalhe .header-blue {
        padding: 4px 0;
    }

    .page-imovel-detalhe .header-blue .navbar {
        padding-top: 0.35rem !important;
        padding-bottom: 0.35rem !important;
    }

    .page-imovel-detalhe .logo-header-white {
        font-size: 1.15rem;
        letter-spacing: -0.02em;
    }

    .header-blue .portal-brand-logo {
        height: 28px;
        max-width: 150px;
    }

    .page-imovel-detalhe .detail-section.py-4 {
        padding-top: 0.65rem !important;
    }

    .page-imovel-detalhe .detail-mobile .detail-image-thumbs--mobile-row {
        flex-wrap: nowrap;
        overflow: hidden;
        gap: 5px;
        margin-top: 2px;
        padding-bottom: 0;
    }

    .page-imovel-detalhe .detail-mobile .detail-image-thumbs--mobile-row img.detail-thumb,
    .page-imovel-detalhe .detail-mobile .detail-image-thumbs--mobile-row button.detail-thumb-more.detail-thumb {
        flex: 1 1 0;
        min-width: 0;
        width: auto !important;
        max-width: none;
        height: 56px;
        border-radius: 8px;
    }

    .page-imovel-detalhe .detail-mobile .detail-image-thumbs--mobile-row img.detail-thumb {
        object-fit: cover;
    }

    .page-imovel-detalhe .detail-mobile .detail-image-thumbs--mobile-row button.detail-thumb-more--count {
        font-size: 1rem;
        font-weight: 700;
    }

    .page-imovel-detalhe .detail-mobile .detail-image-thumbs--mobile-row .detail-thumb-more-plus {
        display: block;
        line-height: 1;
    }
}

@media (max-width: 575.98px) {
    .page-imovel-detalhe .detail-mobile .detail-image-thumbs--mobile-row img.detail-thumb,
    .page-imovel-detalhe .detail-mobile .detail-image-thumbs--mobile-row button.detail-thumb-more.detail-thumb {
        height: 52px;
        border-radius: 7px;
    }

    .page-imovel-detalhe .detail-mobile .detail-image-thumbs--mobile-row button.detail-thumb-more--count {
        font-size: 0.9375rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    .header-blue,
    .filters-sidebar,
    .cookie-banner,
    .detail-actions,
    .mobile-filter-btn {
        display: none;
    }
}

