/* ==========================================================================
   Damasco Imóveis - Design System & Modern CSS (Estilo Inspirado em MyHome)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #0A1420;
    --primary-light: #162232;
    --accent: #DC2626;
    --accent-hover: #B91C1C;
    --dark-text: #0A1420;
    --body-text: #4A5568;
    --light-bg: #F8FAFC;
    --card-bg: #FFFFFF;
    --border-color: #E2E8F0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 35px -10px rgba(10,20,32,0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--body-text);
    background-color: var(--light-bg);
    line-height: 1.6;
    /* overflow-x: clip evita rolagem horizontal sem quebrar o position: sticky dos filhos */
    overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

/* Containers */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 20, 32, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

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

.site-logo {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.site-logo img {
    height: 44px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

select option {
    color: #0A1420 !important;
    background-color: #FFFFFF !important;
    padding: 10px;
    font-size: 0.95rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

@media (max-width: 992px) {
    .main-nav {
        display: none !important;
    }
    .mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    .top-bar-contact-info {
        display: none !important;
    }
}

.mobile-drawer-container.is-open {
    right: 0 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.nav-link {
    color: #E2E8F0;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: #FFF;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
}

.btn-whatsapp {
    background: #25D366;
    color: #FFF;
}

.btn-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: #FFF;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #FFF;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Cards de Imóveis */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.property-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card-image-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #1A2634;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .card-image-wrap img {
    transform: scale(1.06);
}

.badge-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.badge-venda { background: #047857; color: #FFFFFF; font-weight: 800; }
.badge-locacao { background: #B45309; color: #FFFFFF; font-weight: 800; }

.card-code {
    position: absolute;
    bottom: 12px;
    right: 15px;
    background: rgba(10, 20, 32, 0.8);
    backdrop-filter: blur(4px);
    color: #FFF;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-location {
    font-size: 0.88rem;
    color: #718096;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-features {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    font-size: 0.88rem;
    color: #4A5568;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

/* Footer */
.site-footer {
    background: var(--primary);
    color: #A0AEC0;
    padding: 70px 0 30px;
    margin-top: 80px;
    border-top: 3px solid var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: #FFF;
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--accent);
}

.footer-info p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--accent);
    color: #FFF;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 25px;
    text-align: center;
    font-size: 0.88rem;
}

/* Responsive */
@media (max-width: 992px) {
    .main-nav { display: none; }
    .mobile-toggle { display: block; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* MyHome 3 Property Mosaic & Lightbox */
.property-mosaic-5-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, 215px);
    gap: 12px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
}
.mosaic-item-main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    overflow: hidden;
    cursor: pointer;
}
.mosaic-item-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}
.mosaic-item-sub {
    overflow: hidden;
    cursor: pointer;
}
.mosaic-item-sub img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}
.mosaic-item-main:hover img, .mosaic-item-sub:hover img {
    transform: scale(1.04);
}

/* Lightbox Modal Tela Cheia */
.lightbox-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(10, 20, 32, 0.96);
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
}
.lightbox-btn-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #FFF;
    font-size: 2.2rem;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 100000;
}
.lightbox-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    color: #FFF;
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.lightbox-nav-arrow:hover {
    background: var(--accent);
    color: #FFF;
}
.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

/* Tabela de Detalhes Técnicos */
.details-table-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 40px;
    border-top: 1px solid #E2E8F0;
    padding-top: 20px;
}
.detail-table-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #E2E8F0;
    font-size: 0.95rem;
}
.detail-table-label {
    font-weight: 700;
    color: #0A1420;
}
.detail-table-val {
    color: #4A5568;
}

@media (max-width: 992px) {
    .property-mosaic-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    .mosaic-sub-grid {
        display: none;
    }
    .details-table-grid {
        grid-template-columns: 1fr;
    }
}
.hero-tab-btn {
    padding: 13px 26px;
    background: rgba(255, 255, 255, 0.25);
    color: #FFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    font-weight: 800;
    font-size: 0.98rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}
.hero-tab-btn.active {
    background: #FFF !important;
    color: #0A1420 !important;
    border-color: #FFF !important;
}
.hero-tab-btn.tab-btn-ia {
    background: #7E22CE;
    color: #FFF;
    border-color: #9333EA;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.hero-tab-btn.tab-btn-anuncie {
    background: var(--accent);
    color: #FFF;
    border-color: var(--accent);
    display: inline-flex;
    align-items: center;
}

.category-btn {
    padding: 10px 22px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    background: #FFF;
    color: #4A5568;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}
.category-btn.active, .category-btn:hover {
    background: var(--accent);
    color: #FFF;
    border-color: var(--accent);
}

/* Dobra 3: Masonry Grid Regiões em Destaque */
.locations-masonry {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: repeat(2, 220px);
    gap: 20px;
}
.location-card-big {
    grid-row: 1 / span 2;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
}
.location-card-small {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
}
.location-card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.location-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 20, 32, 0.1) 0%, rgba(10, 20, 32, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    color: #FFF;
}
.location-card-overlay h3 {
    color: #FFF;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}
.location-card-overlay span {
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}
.location-card-big:hover .location-card-bg,
.location-card-small:hover .location-card-bg {
    transform: scale(1.06);
}

/* Dobra 4 & 5: Quote Box & Cards */
.quote-box {
    border-left: 4px solid var(--accent);
    padding: 15px 25px;
    background: #F8FAFC;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #334155;
    margin: 25px 0;
}

@media (max-width: 992px) {
    .locations-masonry {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .location-card-big {
        grid-row: auto;
        height: 260px;
    }
    .location-card-small {
        height: 200px;
    }
    .hero-search-grid {
        grid-template-columns: 1fr !important;
    }
    .hero-tabs-wrapper {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }
    .hero-tab-btn {
        padding: 10px 18px;
        font-size: 0.88rem;
    }
    .property-detail-layout {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    .property-specs-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        padding: 15px !important;
        gap: 12px !important;
    }
}

.catalog-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 992px) {
    .top-bar-address {
        display: none !important;
    }
    .top-bar-contact-info {
        width: 100%;
        justify-content: space-between;
    }
    .header-desktop-whatsapp {
        display: none !important;
    }
    .catalog-layout {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    .mobile-filter-toggle-wrap {
        display: block !important;
    }
    .catalog-sidebar-responsive {
        display: none;
        position: static !important;
        max-height: none !important;
        margin-bottom: 25px;
    }
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .anuncie-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

@media (max-width: 576px) {
    .top-bar {
        display: none !important;
    }
    .footer-grid { grid-template-columns: 1fr; }
    .property-grid { 
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 20px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    .property-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .card-image-wrap {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    .card-image-wrap img {
        width: 100% !important;
        max-width: 100% !important;
        object-fit: cover !important;
    }
    .card-title, .card-title a {
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }
    .card-features {
        font-size: 0.78rem !important;
        gap: 6px !important;
        flex-wrap: wrap !important;
    }
    .hero-section h1 { font-size: 2.1rem !important; }
    .hero-section p { font-size: 1rem !important; }
    .property-specs-grid { grid-template-columns: repeat(2, 1fr) !important; }
    
    /* Mosaico 5 fotos vira Galeria de Slide Unico no Celular */
    .property-mosaic-5-grid {
        display: block !important;
        position: relative;
        height: 280px !important;
        border-radius: 12px;
        overflow: hidden;
    }
    .mosaic-item-main {
        height: 100% !important;
    }
    .mosaic-item-sub {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .desktop-mosaic-gallery {
        display: none !important;
    }
    .desktop-gallery-actions {
        display: none !important;
    }
    .mobile-swipe-gallery {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .mobile-sticky-action-bar {
        display: flex;
    }
    body.has-sticky-bar {
        padding-bottom: 75px;
    }
}

/* Garantia estrita de zero overflow horizontal no mobile */
html, body {
    max-width: 100% !important;
    overflow-x: clip !important;
}

.hero-search-grid select,
.hero-search-grid input,
.hero-search-grid button {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   PURE CSS MOBILE DRAWER TOGGLE (Sem Dependência de JS)
   ========================================================================== */
.mobile-drawer-backdrop-native {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 20, 32, 0.85);
    backdrop-filter: blur(4px);
    z-index: 999998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-drawer-native {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    bottom: 0;
    background: #FFFFFF !important;
    color: #0A1420 !important;
    z-index: 999999;
    box-shadow: -10px 0 35px rgba(0,0,0,0.4);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

/* Quando o Checkbox está marcado (Menu Aberto) */
#mobileMenuCheckbox:checked ~ .mobile-drawer-backdrop-native {
    display: block !important;
    opacity: 1 !important;
}

#mobileMenuCheckbox:checked ~ .mobile-drawer-native {
    right: 0 !important;
}

/* ==========================================================================
   BLOG FEATURED POST CARD RESPONSIVO (GERADO VIA OLLAMA OLLAMA-LOCAL)
   ========================================================================== */
.blog-featured-card {
    background: #FFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: 50px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
}

.blog-featured-img-wrap {
    height: 380px;
    overflow: hidden;
}

.blog-featured-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-featured-body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 992px) {
    .blog-featured-card {
        display: flex !important;
        flex-direction: column !important;
        margin-bottom: 30px !important;
    }
    .blog-featured-img-wrap {
        height: 220px !important;
        width: 100% !important;
    }
    .blog-featured-body {
        padding: 20px !important;
    }
}

/* ==========================================================================
   CARROSSEL DE DESTAQUES DA HOMEPAGE (TRILHO NATIVO RESPONSIVO)
   ========================================================================== */
.home-carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 15px;
    margin-bottom: -15px;
    scrollbar-width: none; /* Firefox */
}

.home-carousel-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.home-carousel-slide {
    flex: 0 0 calc(33.333% - 14px) !important;
    scroll-snap-align: start;
    box-sizing: border-box;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-carousel-slide:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08) !important;
}

@media (max-width: 992px) {
    .home-carousel-slide {
        flex: 0 0 calc(50% - 10px) !important;
    }
}

@media (max-width: 640px) {
    .home-carousel-slide {
        flex: 0 0 85% !important;
    }
    .carousel-nav-btn {
        display: none !important;
    }
}

/* Setas Laterais Flutuantes do Carrossel */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: #0A1420;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(10, 20, 32, 0.15);
    transition: all 0.25s ease;
}

.carousel-nav-btn:hover {
    background: var(--accent);
    color: #FFF;
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
}

.nav-btn-left {
    left: -22px;
}

.nav-btn-right {
    right: -22px;
}

/* ==========================================================================
   WATERMARK OVERLAY — Marca d'água da Damasco nas fotos de imóveis
   - CSS overlay: exibido instantaneamente (proteção visual imediata)
   - Removido via .wm-done quando a imagem processada substitui a original
   ========================================================================== */
.wm-wrap {
    position: relative;
    display: block;
    overflow: hidden;
}

/* Transição suave durante a troca de src da imagem */
.wm-wrap img {
    transition: opacity 0.3s ease;
}

.wm-wrap img.wm-fading {
    opacity: 0.08;
}

/* ==========================================================================
   HERO SPLIT CAROUSEL (ITEM 1 PRINT MYHOME — 3 COLUNAS IGUAIS FULL-WIDTH)
   ========================================================================== */
.hero-split-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    overflow: hidden;
    background: #FFFFFF;
    margin-bottom: 25px;
    padding: 0 15px;
    box-sizing: border-box;
}

.hero-split-side, .hero-split-main {
    flex: 1 1 0;
    width: 33.333%;
    height: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #E2E8F0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-split-side:hover, .hero-split-main:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.hero-split-side img, .hero-split-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Setas Flutuantes Elegantes */
.hero-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #0A1420;
    border: 1px solid #E2E8F0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    transition: all 0.2s ease;
}

.hero-nav-arrow:hover {
    background: #FFFFFF;
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

.hero-nav-prev-btn { left: 25px; }
.hero-nav-next-btn { right: 25px; }

/* Botão de Tela Inteira (Fullscreen Expand Icon) */
.hero-fullscreen-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 12;
    background: rgba(255, 255, 255, 0.95);
    color: #0A1420;
    border: 1px solid #CBD5E1;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.hero-fullscreen-btn:hover {
    background: var(--accent);
    color: #FFF;
    border-color: var(--accent);
    transform: scale(1.05);
}

/* Tag de Contagem no Canto Superior */
.hero-counter-badge {
    position: absolute;
    top: 16px;
    left: 25px;
    z-index: 12;
    background: rgba(10, 20, 32, 0.85);
    color: #FFF;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 800;
    backdrop-filter: blur(4px);
}

/* OTIMIZAÇÃO EXCLUSIVA DE UX E RESPONSIVIDADE PARA CELULAR (<= 768px) */
@media (max-width: 768px) {
    .desktop-hero-split {
        display: none !important;
    }
    .mobile-hero-gallery {
        display: block !important;
    }
    .hero-nav-arrow {
        display: none !important; /* Esconde setas gigantes no mobile */
    }
    .hero-fullscreen-btn {
        display: none !important; /* Esconde botão duplicado no mobile */
    }
    .hero-section {
        padding: 50px 15px 40px !important;
    }
    .hero-section h1 {
        font-size: 2rem !important;
    }
    .hero-section p {
        font-size: 1rem !important;
        margin-bottom: 25px !important;
    }
    .hero-tabs-wrapper {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
        width: 100% !important;
    }
    .desktop-only-tab {
        display: none !important;
    }
    .hero-tab-btn {
        border-radius: 8px !important;
        padding: 10px 12px !important;
        font-size: 0.88rem !important;
        text-align: center !important;
        justify-content: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .hero-search-card {
        border-radius: 12px !important;
        padding: 16px !important;
    }
    .ai-search-input-group {
        flex-direction: column !important;
    }
    .ai-search-input-group button {
        width: 100% !important;
        padding: 12px !important;
    }
    .hero-search-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    #advancedSearchPanel {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
}

/* ==========================================================================
   ACESSIBILIDADE: FOCO VISÍVEL, MOVIMENTO REDUZIDO E ANIMAÇÃO DE MODAL
   ========================================================================== */

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

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   RESPONSIVIDADE MOBILE (FASE 4)
   ========================================================================== */

/* Sobre Nós (home): colunas empilham no tablet/celular */
@media (max-width: 992px) {
    .home-about-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .home-about-img {
        height: 260px !important;
    }
}

/* Form de contato (home) e barra sticky de filtros (imoveis): coluna única */
@media (max-width: 640px) {
    .home-form-grid-2col {
        grid-template-columns: 1fr !important;
    }
    .qa-sticky-search-bar .container > div > div {
        width: 100% !important;
    }
}

/* Busca avançada (home): coluna única em telas muito pequenas */
@media (max-width: 480px) {
    #advancedSearchPanel {
        grid-template-columns: 1fr !important;
    }
}
