/**
 * Stresser Imóveis - Estilos Oficiais
 * CRECI F47964 &bull; "Encontre as melhores opções do litoral!"
 * Cores: Ouro Nobre (#c5a059), Fundo Profundo (#0f1115, #181c24)
 * Menu Flutuante com Redimensionamento Suave da Logo ao Rolar
 */

:root {
    --gold-primary: #c5a059;
    --gold-light: #dfba73;
    --gold-dark: #9e7933;
    --gold-gradient: linear-gradient(135deg, #dfba73 0%, #c5a059 50%, #9e7933 100%);
    --bg-dark: #0f1115;
    --bg-card: #181c24;
    --bg-card-hover: #1e2430;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(197, 160, 89, 0.25);
    --border-subtle: #2d3748;
    --shadow-gold: 0 8px 25px rgba(197, 160, 89, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
    overflow-x: hidden !important;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

/* Compensação do Menu Fixo/Flutuante no topo */
.site-body {
    padding-top: 150px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gold-text {
    color: var(--gold-primary) !important;
}

.gold-gradient-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header Flutuante Geral */
.header-floating-wrapper {
    z-index: 1030;
    transition: var(--transition);
}

/* Topbar */
.topbar {
    background-color: #08090b;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    font-size: 0.825rem;
    padding: 8px 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    max-height: 50px;
    opacity: 1;
}

.header-floating-wrapper.scrolled .topbar {
    max-height: 0;
    opacity: 0;
    padding: 0;
    border-bottom: none;
    overflow: hidden;
}

.topbar a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.topbar a:hover {
    color: var(--gold-primary);
}

/* Navbar Flutuante com Redimensionamento de Logo */
.navbar-custom {
    background-color: rgba(15, 17, 21, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    transition: padding 0.35s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Logo no Menu: Inicialmente Bem Maior e Proporcional */
.site-main-logo {
    height: 64px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s ease;
}

/* Estado Encolhido ao Rolar a Página (Scrolled) */
.header-floating-wrapper.scrolled .navbar-custom,
.navbar-custom.scrolled {
    padding: 6px 0;
    background-color: rgba(10, 12, 16, 0.98);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.75);
    border-bottom-color: rgba(197, 160, 89, 0.35);
}

.header-floating-wrapper.scrolled .site-main-logo,
.navbar-custom.scrolled .site-main-logo {
    height: 44px;
    max-width: 175px;
}

/* Links da Navegação em Linha Única Perfeita */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: nowrap;
}

.nav-link {
    color: #e2e8f0 !important;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 7px 11px !important;
    white-space: nowrap !important;
    transition: var(--transition);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
}

.nav-link:hover, .nav-link.active {
    color: var(--gold-primary) !important;
    background-color: rgba(197, 160, 89, 0.1);
}

/* Botão WhatsApp Ícone (Topo Header) */
.btn-whatsapp-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    border: none;
    padding: 0;
    flex-shrink: 0;
}

.btn-whatsapp-icon:hover {
    background: #20bd5a;
    color: #ffffff !important;
    transform: scale(1.08) translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.55);
}

/* Botões */
.btn-gold {
    background: var(--gold-gradient);
    color: #0b0c0e !important;
    font-weight: 700;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.45);
    background: linear-gradient(135deg, #f3cf65 0%, #dfba73 50%, #b28a3c 100%);
    color: #000 !important;
}

.btn-outline-gold {
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary) !important;
    background: transparent;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 8px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-outline-gold:hover {
    background: var(--gold-primary);
    color: #0b0c0e !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.25);
}

.btn-whatsapp-cta {
    background-color: #25d366;
    color: #fff !important;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 11px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
    transition: var(--transition);
    text-decoration: none;
}

.btn-whatsapp-cta:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.5);
    color: #fff !important;
}

/* Hero Section & Page Banners */
.hero-section,
.page-hero-banner {
    position: relative;
    padding: 60px 0 50px;
    background: radial-gradient(circle at top right, rgba(197, 160, 89, 0.15), transparent 50%),
                linear-gradient(rgba(15, 17, 21, 0.80), rgba(15, 17, 21, 0.92)),
                url('../images/hero_caioba.jpg') center/cover no-repeat;
    border-bottom: 1px solid var(--border-color);
}

.hero-title {
    font-size: 2.9rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.15rem;
    max-width: 650px;
    margin-bottom: 25px;
}

/* Card de Filtros */
.filter-card {
    background: rgba(24, 28, 36, 0.96);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.filter-nav-tabs {
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 18px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.filter-nav-tabs::-webkit-scrollbar {
    display: none;
}

.filter-nav-tabs .nav-link-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    padding: 9px 18px;
    border-bottom: 3px solid transparent;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.925rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-nav-tabs .nav-link-tab.active {
    color: var(--gold-primary);
    border-bottom-color: var(--gold-primary);
    background-color: rgba(197, 160, 89, 0.1);
}

.form-select-custom, .form-input-custom {
    background-color: #11141a;
    border: 1px solid #2d3748;
    color: #fff;
    padding: 11px 13px;
    border-radius: 8px;
    font-size: 0.925rem;
    transition: var(--transition);
}

.form-select-custom:focus, .form-input-custom:focus {
    background-color: #171b23;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 0.2rem rgba(197, 160, 89, 0.2);
    color: #fff;
}

/* Cards de Imóveis */
.property-card {
    background: var(--bg-card);
    border: 1px solid rgba(197, 160, 89, 0.18);
    border-radius: 14px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-gold);
}

.property-thumb {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: #0b0c0e;
}

.property-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-thumb img {
    transform: scale(1.05);
}

.badge-transaction {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    font-size: 0.725rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 6px;
    backdrop-filter: blur(8px);
}

.badge-venda {
    background: rgba(197, 160, 89, 0.95);
    color: #000;
}

.badge-locacao {
    background: rgba(59, 130, 246, 0.95);
    color: #fff;
}

.badge-temporada {
    background: rgba(16, 185, 129, 0.95);
    color: #fff;
}

.badge-beach-dist {
    position: absolute;
    bottom: 10px;
    left: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: #f1f5f9;
    padding: 4px 9px;
    font-size: 0.725rem;
    border-radius: 4px;
    border-left: 3px solid var(--gold-primary);
}

.property-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.property-code {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold-primary);
    letter-spacing: 0.5px;
}

.property-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 5px 0 8px;
    color: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    height: 2.7em;
}

.property-location {
    font-size: 0.825rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-features {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 14px;
    font-size: 0.825rem;
    color: #cbd5e1;
    flex-wrap: wrap;
    gap: 6px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.feature-item i {
    color: var(--gold-primary);
}

.property-price-box {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.price-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gold-light);
}

.price-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

/* Detalhes do Imóvel */
.gallery-main-img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.gallery-thumbs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.gallery-thumb-item {
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.gallery-thumb-item.active, .gallery-thumb-item:hover {
    border-color: var(--gold-primary);
}

.gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.amenity-pill {
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid rgba(197, 160, 89, 0.3);
    color: #f1f5f9;
    padding: 7px 14px;
    border-radius: 30px;
    font-size: 0.825rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.amenity-pill i {
    color: var(--gold-primary);
}

.contact-card-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 90px;
}

/* Multi-Broker Floating WhatsApp Widget */
.floating-wa-container {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 9999;
}

.floating-wa-btn {
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    transition: var(--transition);
    position: relative;
    border: none;
}

.floating-wa-btn:hover {
    transform: scale(1.08);
}

.wa-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25d366;
    opacity: 0.6;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; }
    70% { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.4); opacity: 0; }
}

.wa-popup-box {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 320px;
    max-width: calc(100vw - 32px);
    background: #181c24;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: none;
    animation: fadeInUp 0.3s ease;
}

.wa-popup-box.active {
    display: block;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.wa-popup-header {
    background: linear-gradient(135deg, #0d0f12, #181c24);
    border-bottom: 2px solid var(--gold-primary);
    padding: 14px;
}

.wa-agent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-subtle);
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.wa-agent-item:hover {
    background: rgba(197, 160, 89, 0.1);
    color: var(--gold-primary);
}

.wa-agent-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.wa-agent-info .name {
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1px;
}

.wa-agent-info .status {
    font-size: 0.725rem;
    color: #25d366;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wa-agent-info .status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #25d366;
    border-radius: 50%;
    display: inline-block;
}

/* Footer */
footer {
    background-color: #08090b;
    border-top: 1px solid var(--border-color);
    padding: 50px 0 20px;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 7px;
    font-size: 0.875rem;
}

.footer-link:hover {
    color: var(--gold-primary);
    transform: translateX(3px);
}

.social-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    margin-right: 6px;
    transition: var(--transition);
    text-decoration: none;
}

.social-circle:hover {
    background: var(--gold-primary);
    color: #000;
    transform: translateY(-2px);
}

/* Botão Discreto Alternador de Tema */
.btn-theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: rgba(197, 160, 89, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.btn-theme-toggle:hover {
    background: rgba(197, 160, 89, 0.25);
    border-color: var(--gold-primary);
    transform: scale(1.08);
}

.btn-theme-toggle .icon-sun {
    display: inline-block;
    font-size: 16px;
    transition: var(--transition);
}

.btn-theme-toggle .icon-moon {
    display: none;
    font-size: 16px;
    transition: var(--transition);
}

/* ==========================================================
   TEMA CLARO LUXO (LIGHT THEME)
   ========================================================== */
[data-theme="light"] {
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: rgba(197, 160, 89, 0.35);
    --border-subtle: #e2e8f0;
    --shadow-gold: 0 8px 25px rgba(197, 160, 89, 0.15);
}

[data-theme="light"] body {
    background-color: var(--bg-dark);
    color: var(--text-main);
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
    color: #0f172a;
}

[data-theme="light"] .text-white {
    color: #0f172a !important;
}

[data-theme="light"] .text-light {
    color: #334155 !important;
}

[data-theme="light"] .text-secondary {
    color: #64748b !important;
}

[data-theme="light"] .btn-theme-toggle .icon-sun {
    display: none;
}

[data-theme="light"] .btn-theme-toggle .icon-moon {
    display: inline-block;
    color: #0f172a !important;
}

[data-theme="light"] .btn-theme-toggle {
    background: rgba(197, 160, 89, 0.15);
    border-color: rgba(197, 160, 89, 0.4);
}

/* Header & Topbar Tema Claro */
[data-theme="light"] .topbar {
    background-color: #f1f5f9;
    border-bottom: 1px solid rgba(197, 160, 89, 0.25);
    color: #475569;
}

[data-theme="light"] .topbar a {
    color: #475569;
}

[data-theme="light"] .topbar a:hover {
    color: var(--gold-dark);
}

[data-theme="light"] .navbar-custom {
    background-color: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(197, 160, 89, 0.28);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .header-floating-wrapper.scrolled .navbar-custom,
[data-theme="light"] .navbar-custom.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .nav-link {
    color: #334155 !important;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
    color: #a17726 !important;
    background-color: rgba(197, 160, 89, 0.12);
}

/* Hero Section Tema Claro */
[data-theme="light"] .hero-section,
[data-theme="light"] .page-hero-banner {
    background: radial-gradient(circle at top right, rgba(197, 160, 89, 0.15), transparent 60%),
                linear-gradient(rgba(248, 250, 252, 0.85), rgba(248, 250, 252, 0.94)),
                url('../images/hero_caioba.jpg') center/cover no-repeat;
    border-bottom-color: rgba(197, 160, 89, 0.25);
}

[data-theme="light"] .hero-title {
    color: #0f172a;
}

[data-theme="light"] .hero-subtitle {
    color: #475569;
}

/* Card de Filtros Tema Claro */
[data-theme="light"] .filter-card {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(197, 160, 89, 0.35);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .filter-nav-tabs {
    border-bottom-color: #e2e8f0;
}

[data-theme="light"] .filter-nav-tabs .nav-link-tab {
    color: #64748b;
}

[data-theme="light"] .filter-nav-tabs .nav-link-tab.active {
    color: #a17726;
    background-color: rgba(197, 160, 89, 0.12);
    border-bottom-color: var(--gold-primary);
}

[data-theme="light"] .form-select-custom,
[data-theme="light"] .form-input-custom,
[data-theme="light"] .form-control,
[data-theme="light"] .form-select {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] .form-select-custom:focus,
[data-theme="light"] .form-input-custom:focus,
[data-theme="light"] .form-control:focus,
[data-theme="light"] .form-select:focus {
    border-color: var(--gold-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(197, 160, 89, 0.2) !important;
}

/* Cards de Imóveis Tema Claro */
[data-theme="light"] .property-card {
    background: #ffffff;
    border-color: rgba(197, 160, 89, 0.25);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .property-card:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 12px 30px rgba(197, 160, 89, 0.22);
}

[data-theme="light"] .property-title a {
    color: #0f172a !important;
}

[data-theme="light"] .property-title a:hover {
    color: var(--gold-primary) !important;
}

[data-theme="light"] .property-location {
    color: #64748b;
}

[data-theme="light"] .property-features {
    border-top-color: #e2e8f0;
    border-bottom-color: #e2e8f0;
    color: #475569;
}

[data-theme="light"] .price-value {
    color: #a17726;
}

[data-theme="light"] .badge-beach-dist {
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    border-left-color: var(--gold-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Seções e Caixas de Destaque Tema Claro */
[data-theme="light"] section[style*="background-color: #12151b"] {
    background-color: #f1f5f9 !important;
}

[data-theme="light"] section[style*="background-color: #0d0f13"] {
    background-color: #f8fafc !important;
    border-top-color: rgba(197, 160, 89, 0.25) !important;
}

[data-theme="light"] div[style*="background: #181c24"],
[data-theme="light"] div[style*="background-color: #181c24"] {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] div[style*="background: #11141a"],
[data-theme="light"] div[style*="background-color: #11141a"] {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .broker-box {
    background: #ffffff;
    border-color: rgba(197, 160, 89, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .contact-card-sidebar {
    background: #ffffff !important;
    border-color: rgba(197, 160, 89, 0.3) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .amenity-pill {
    background: rgba(197, 160, 89, 0.12);
    border-color: rgba(197, 160, 89, 0.3);
    color: #1e293b;
}

[data-theme="light"] div[style*="background: #090a0d"],
[data-theme="light"] div[style*="background: linear-gradient(135deg, #0d0f12, #181c24)"] {
    background: linear-gradient(135deg, #edf2f7, #f8fafc) !important;
    border-bottom-color: rgba(197, 160, 89, 0.25) !important;
}

[data-theme="light"] div[style*="background: radial-gradient(circle at top right, rgba(197, 160, 89, 0.15), transparent 50%), #0f1115"],
[data-theme="light"] div[style*="background: radial-gradient(circle at top, rgba(197, 160, 89, 0.15), transparent 60%), #0f1115"] {
    background: radial-gradient(circle at top, rgba(197, 160, 89, 0.12), transparent 60%), #f8fafc !important;
}

[data-theme="light"] section[style*="background: radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.1), transparent 50%), #12151b"] {
    background: radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.08), transparent 50%), #f1f5f9 !important;
}

[data-theme="light"] section[style*="background: linear-gradient(135deg, #14171d 0%, #08090b 100%)"] {
    background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%) !important;
}

[data-theme="light"] .sa-custom-toast {
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
}

/* WhatsApp Popup no Tema Claro */
[data-theme="light"] .wa-popup-box {
    background: #ffffff;
    border-color: rgba(197, 160, 89, 0.35);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .wa-popup-header {
    background: #f8fafc;
    border-bottom-color: var(--gold-primary);
}

[data-theme="light"] .wa-popup-header h6 {
    color: #0f172a;
}

[data-theme="light"] .wa-agent-item {
    color: #1e293b;
    border-bottom-color: #f1f5f9;
}

[data-theme="light"] .wa-agent-item:hover {
    background: rgba(197, 160, 89, 0.08);
}

[data-theme="light"] .wa-agent-info .name {
    color: #0f172a;
}

/* ==========================================================
   REGRAS ESPECÍFICAS DE RESPONSIVIDADE MOBILE (TELAS < 768px)
   ========================================================== */
@media (max-width: 767.98px) {
    .site-body {
        padding-top: 85px;
    }

    .navbar-custom {
        padding: 10px 0;
    }

    .btn-theme-toggle {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .btn-whatsapp-icon {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .site-main-logo {
        height: 54px;
        max-width: 190px;
    }

    .header-floating-wrapper.scrolled .site-main-logo,
    .navbar-custom.scrolled .site-main-logo {
        height: 40px;
        max-width: 150px;
    }

    .hero-section {
        padding: 30px 0 35px;
    }

    .hero-title {
        font-size: 1.85rem;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .filter-card {
        padding: 16px 12px;
        border-radius: 12px;
    }

    .filter-nav-tabs .nav-link-tab {
        padding: 7px 12px;
        font-size: 0.8rem;
    }

    .property-thumb {
        height: 200px;
    }

    .property-title {
        font-size: 1rem;
        height: auto;
        min-height: 2.6em;
    }

    .property-price-box .price-value {
        font-size: 1.15rem;
    }

    .gallery-main-img {
        height: 250px;
    }

    .gallery-thumbs-grid {
        gap: 6px;
    }

    .gallery-thumb-item {
        height: 65px;
    }

    .contact-card-sidebar {
        position: static;
        margin-top: 20px;
        padding: 18px;
    }

    .floating-wa-btn {
        width: 52px;
        height: 52px;
        font-size: 26px;
        bottom: 16px;
        right: 16px;
    }

    .wa-popup-box {
        bottom: 70px;
        right: 0;
        width: calc(100vw - 32px);
    }
}
