/*
Theme Name: Casa Nilo
Theme URI: https://casanilo.com.br
Author: Casa Nilo
Author URI: https://casanilo.com.br
Description: Tema premium para imobiliária de alto padrão no Brasil. Inclui gerenciamento de imóveis, filtros avançados, mapa interativo e landing pages.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: imoveispoa
Tags: real-estate, custom-colors, custom-logo, featured-images, full-width-template, theme-options, translation-ready

Casa Nilo - Imóveis de Alto Padrão
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&family=Lato:wght@300;400;500;600&display=swap');

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --primary: #1a1a1a;
    --secondary: #2d2d2d;
    --accent: #c9a962;
    --accent-light: #d4b978;
    --accent-dark: #a68b4a;
    --accent-glow: rgba(201, 169, 98, 0.25);
    --accent-shimmer: rgba(212, 185, 120, 0.4);
    --text: #ffffff;
    --text-muted: #a0a0a0;
    --bg-dark: #0d0d0d;
    --bg-elevated: #141414;
    --card-bg: #1a1a1a;
    /* Altura da navbar para sticky (filtros, cabeçalho de resultados, mapa) */
    --navbar-height: 80px;
    --border-color: rgba(255, 255, 255, 0.06);
    --border-gold: rgba(201, 169, 98, 0.15);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.25);
    --shadow-gold: 0 8px 32px rgba(201, 169, 98, 0.15);
    --shadow-card-hover: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(201, 169, 98, 0.1);
    --mask-color: #0d0d0d;
    --transition-premium: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   LIGHT THEME - PREMIUM ELEGANCE (Reference Implementation)
   ========================================================================== */
[data-theme="light"] {
    /* Dourados Sofisticados (Champagne/Old Gold) */
    --accent: #B08D55;
    /* Slightly darker for better contrast on light bg */
    --accent-light: #C5A059;
    --accent-dark: #8A6E3E;
    --accent-glow: rgba(176, 141, 85, 0.15);
    --accent-shimmer: rgba(197, 160, 89, 0.25);
    --gold-shimmer: rgba(176, 141, 85, 0.1);

    /* Fundos Premium - Suavizados */
    --primary: #FDFDFD;
    /* Cleaner white */
    --secondary: #F2F2F2;
    /* Soft grey */
    --bg-dark: #ffffff;
    --bg-elevated: #F7F7F7;
    --card-bg: #ffffff;

    /* Textos Elegantes - Contraste Aumentado */
    --text: #1a1a1a;
    /* Almost black for sharpness */
    --text-muted: #555555;
    /* Darker grey for readability */
    --text-light: #777777;

    /* Bordas Refinadas & Suaves */
    --border-color: #E2E2E2;
    --border-medium: #D1D1D1;
    --border-gold: rgba(176, 141, 85, 0.25);

    /* Sombras Elegantes & Difusas */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* Softer, larger spread */
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 60px rgba(0, 0, 0, 0.12);
    --shadow-gold: rgba(176, 141, 85, 0.15);
    --mask-color: #ffffff;
}

/* Light Theme Overrides - Softness & Clarity */
[data-theme="light"] .btn,
[data-theme="light"] .btn-primary,
[data-theme="light"] .search-button,
[data-theme="light"] .apply-filters-btn,
[data-theme="light"] .quick-search {
    border-radius: 12px !important;
}

[data-theme="light"] .property-card {
    border-radius: 24px !important;
    /* Extra soft */
}

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] .custom-multiselect .select-trigger {
    border-radius: 12px !important;
}

[data-theme="light"] .filters-sidebar {
    border-radius: 16px !important;
}

[data-theme="light"] .transaction-tab {
    border-radius: 50px !important;
    /* Pill shape */
}

[data-theme="light"] .page-btn {
    border-radius: 12px !important;
}

[data-theme="light"] .filter-checkbox {
    border-radius: 5px !important;
    /* Softer square */
}

[data-theme="light"] .select-dropdown {
    border-radius: 12px !important;
}

/* Clarity & Legibility */
[data-theme="light"] body {
    font-weight: 500 !important;
    /* Slightly heavier base font */
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5 {
    color: #000000 !important;
    font-weight: 600 !important;
}

[data-theme="light"] .text-muted,
[data-theme="light"] .property-location,
[data-theme="light"] .feature-item {
    color: #444444 !important;
    font-weight: 500 !important;
}

/* Light Theme overrides for Rounded Corners & Softness */
[data-theme="light"] .btn,
[data-theme="light"] .btn-primary,
[data-theme="light"] .search-button,
[data-theme="light"] .apply-filters-btn {
    border-radius: 8px !important;
}

[data-theme="light"] .property-card {
    border-radius: 20px !important;
    /* Mais arredondado */
}

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] .custom-multiselect .select-trigger {
    border-radius: 8px !important;
}

[data-theme="light"] .filters-sidebar {
    border-radius: 12px !important;
}

/* ============================================
   LIGHT MODE - COMPLETE OVERRIDE
   ============================================ */

/* Global Background & Text */
[data-theme="light"],
[data-theme="light"] html,
[data-theme="light"] body {
    background-color: var(--bg-dark) !important;
    color: var(--text) !important;
}

/* ===== NAVBAR ELEGANTE ===== */
[data-theme="light"] .navbar {
    background: var(--bg-dark) !important;
    border-bottom: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-soft) !important;
}

[data-theme="light"] .navbar a,
[data-theme="light"] .nav-menu a,
[data-theme="light"] .nav-menu li a {
    color: #1C1C1C !important;
}

/* Nav Menu Links - Gradient Underline */
[data-theme="light"] .nav-menu a:hover,
[data-theme="light"] .nav-menu a:focus {
    color: var(--accent-dark) !important;
}

[data-theme="light"] .nav-menu a::after {
    background: linear-gradient(90deg, var(--accent), transparent) !important;
}

[data-theme="light"] .nav-menu a:hover,
[data-theme="light"] .nav-menu a:focus {
    color: var(--accent-dark) !important;
}

[data-theme="light"] .navbar .logo span {
    color: var(--text) !important;
    font-weight: 600;
}

[data-theme="light"] .logo {
    color: var(--accent-dark) !important;
}

/* ===== HERO - MANTÉM ESCURO COM IMAGEM ===== */
/* Hero permanece escuro para contraste com imagem de fundo */
/* Textos ficam brancos/dourados para legibilidade */
[data-theme="light"] .hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.80)),
        url('assets/images/hero-bg.jpg') center/cover no-repeat !important;
}

[data-theme="light"] .hero-title {
    color: #ffffff !important;
}

[data-theme="light"] .hero-title span {
    color: var(--accent) !important;
}

[data-theme="light"] .hero-subtitle {
    color: rgba(255, 255, 255, 0.8) !important;
}

[data-theme="light"] .hero-tagline {
    color: rgba(255, 255, 255, 0.9) !important;
}

[data-theme="light"] .hero-badge {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

/* Navbar Logo Fix */
[data-theme="light"] .navbar .logo {
    color: var(--accent-dark) !important;
}

[data-theme="light"] .navbar .logo span {
    color: var(--text) !important;
}

/* Light Mode Search - Glassmorphism */
[data-theme="light"] .quick-search {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid var(--border-gold) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="light"] .quick-search input {
    color: #ffffff !important;
}

[data-theme="light"] .quick-search input::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ===== MAIN CONTENT ===== */
[data-theme="light"] .main-content,
[data-theme="light"] .results-area,
[data-theme="light"] .main-grid,
[data-theme="light"] .main-container {
    background: var(--bg-dark) !important;
}

/* ===== FILTERS SIDEBAR ELEGANTE ===== */
[data-theme="light"] .filters-sidebar,
[data-theme="light"] .filters-sticky-wrapper .filters-sidebar {
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-soft) !important;
}

[data-theme="light"] .filters-header {
    border-bottom: 1px solid var(--border-color) !important;
}

[data-theme="light"] .filters-title,
[data-theme="light"] .filter-group-title {
    color: var(--accent-dark) !important;
    font-weight: 600 !important;
}

[data-theme="light"] .filter-group {
    border-bottom: 1px solid var(--border-color) !important;
}

[data-theme="light"] .filter-label {
    color: var(--text) !important;
}

/* Filter Controls */
[data-theme="light"] .select-trigger,
[data-theme="light"] .custom-multiselect .select-trigger {
    background: var(--primary) !important;
    /* bg-secondary */
    border: 1px solid var(--border-color) !important;
    color: var(--text) !important;
}

[data-theme="light"] .select-trigger:hover,
[data-theme="light"] .select-trigger:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--gold-shimmer) !important;
}

[data-theme="light"] .select-options,
[data-theme="light"] .multiselect-options {
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-md) !important;
}

[data-theme="light"] .filter-checkbox+label,
[data-theme="light"] .checkbox-label {
    color: var(--secondary) !important;
}

[data-theme="light"] #clearFilters,
[data-theme="light"] .clear-filters {
    color: var(--text-light) !important;
    font-weight: 600 !important;
}

[data-theme="light"] #clearFilters:hover,
[data-theme="light"] .clear-filters:hover {
    color: var(--accent-dark) !important;
    letter-spacing: 1.5px !important;
}

/* ===== RESULTS HEADER ===== */
[data-theme="light"] .results-header {
    background: var(--primary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-muted) !important;
}

[data-theme="light"] .results-count {
    color: var(--accent-dark) !important;
    font-weight: 800 !important;
}

/* ===== PROPERTY CARDS ELEGANTES ===== */
[data-theme="light"] .property-card {
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-soft) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

[data-theme="light"] .property-card:hover {
    border-color: var(--border-gold) !important;
    box-shadow: var(--shadow-lg), 0 20px 40px var(--shadow-gold) !important;
    transform: translateY(-5px) !important;
}

[data-theme="light"] .property-title {
    color: var(--text) !important;
}

[data-theme="light"] .property-location {
    color: var(--text-muted) !important;
}

[data-theme="light"] .property-location::before {
    color: var(--accent) !important;
}

[data-theme="light"] .property-price {
    color: var(--accent-dark) !important;
    font-weight: 600 !important;
}

[data-theme="light"] .property-features,
[data-theme="light"] .feature-item {
    color: var(--text-light) !important;
}

[data-theme="light"] .property-badge {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark)) !important;
    color: #ffffff !important;
}

/* ===== BUTTONS DOURADOS ===== */
[data-theme="light"] .btn-gold,
[data-theme="light"] .btn-primary,
[data-theme="light"] .search-button {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%) !important;
    color: #0a0a0a !important;
    border: none !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
}

[data-theme="light"] .btn-gold:hover,
[data-theme="light"] .search-button:hover,
[data-theme="light"] .btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%) !important;
    box-shadow: 0 8px 30px rgba(197, 160, 89, 0.5) !important;
    transform: translateY(-2px) !important;
}

/* ===== FOOTER ELEGANTE ===== */
[data-theme="light"] footer,
[data-theme="light"] .site-footer,
[data-theme="light"] .footer {
    background: var(--primary) !important;
    border-top: 1px solid var(--border-color) !important;
    color: var(--text) !important;
}

[data-theme="light"] footer a,
[data-theme="light"] .footer a,
[data-theme="light"] .footer-links a {
    color: var(--text-muted) !important;
}

[data-theme="light"] footer a:hover,
[data-theme="light"] .footer a:hover,
[data-theme="light"] .footer-links a:hover {
    color: var(--accent-dark) !important;
}

[data-theme="light"] .footer-title,
[data-theme="light"] footer h4,
[data-theme="light"] .footer h4 {
    color: var(--text) !important;
}

[data-theme="light"] .footer h4::after {
    background: var(--accent) !important;
}

[data-theme="light"] .footer-logo,
[data-theme="light"] .footer .logo {
    color: var(--accent-dark) !important;
}

[data-theme="light"] .footer-description,
[data-theme="light"] .footer p {
    color: var(--text-muted) !important;
}

[data-theme="light"] .footer-copyright {
    color: var(--text-light) !important;
    border-top: 1px solid var(--border-color) !important;
}

/* ===== TEXT COLORS ===== */
/* ===== HEADINGS & TEXT ===== */
[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: var(--text) !important;
}

[data-theme="light"] p {
    color: #2D2D2D !important;
}

[data-theme="light"] .text-muted {
    color: #5C5C5C !important;
}

/* ===== SVG ICONS ===== */
[data-theme="light"] svg {
    stroke: #5C5C5C !important;
}

[data-theme="light"] .property-card svg,
[data-theme="light"] .feature-item svg {
    stroke: #C5A059 !important;
}

/* ===== FORM ELEMENTS ===== */
[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
    background: #FAFAF9 !important;
    border: 1px solid #E8E4DE !important;
    color: #1C1C1C !important;
}

[data-theme="light"] input:focus,
[data-theme="light"] select:focus {
    border-color: #C5A059 !important;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15) !important;
}

[data-theme="light"] input::placeholder {
    color: #8A8A8A !important;
}

/* ===== RANGE SLIDERS ===== */
[data-theme="light"] .range-slider-container {
    background: transparent !important;
}

[data-theme="light"] .dual-range {
    background: #E6E2DC !important;
    /* Visible inactive track */
}

[data-theme="light"] .dual-range .track {
    background: #C5A059 !important;
    /* Gold active track */
}

[data-theme="light"] .dual-range input[type="range"]::-webkit-slider-thumb {
    border-color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(197, 160, 89, 0.4) !important;
}

/* ===== THEME TOGGLE ===== */
[data-theme="light"] .theme-toggle {
    border: 1px solid #D4CFC7 !important;
    color: #8A8A8A !important;
}

[data-theme="light"] .theme-toggle:hover {
    border-color: #C5A059 !important;
    color: #9A7B4A !important;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15) !important;
}

/* ===== MAP SECTION ===== */
[data-theme="light"] .map-sticky-wrapper,
[data-theme="light"] #mapView {
    border: 1px solid #E8E4DE !important;
    border-radius: 4px !important;
}

/* ===== SCROLLBAR ===== */
[data-theme="light"] ::-webkit-scrollbar {
    width: 8px;
}

[data-theme="light"] ::-webkit-scrollbar-track {
    background: #F5F5F0;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #D4CFC7;
    border-radius: 4px;
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: #C5A059;
}

/* ==========================================================================
   Premium Animations
   ========================================================================== */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(201, 169, 98, 0.1);
    }

    50% {
        box-shadow: 0 0 35px rgba(201, 169, 98, 0.25);
    }
}

@keyframes subtleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes goldLineExpand {
    from {
        width: 0;
    }

    to {
        width: 60px;
    }
}

@keyframes heroParticle {

    0%,
    100% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }

    50% {
        opacity: 0.6;
        transform: translateY(-80px) scale(1);
    }
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: clip;
    overflow-y: visible;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-weight: 500;
    letter-spacing: 0.02em;
}

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

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.4s var(--transition-premium);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    overflow: hidden;
}

/* Shimmer sweep effect on buttons */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(201, 169, 98, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 169, 98, 0.4);
}

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

.btn-outline:hover {
    background: var(--accent);
    color: #1a1a1a;
    box-shadow: 0 5px 20px rgba(201, 169, 98, 0.25);
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-height: var(--navbar-height);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-gold);
    transition: all 0.4s var(--transition-premium);
}

/* Gold accent line at bottom of navbar */
.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.4;
}

/* SVG Logo styles */
.logo-svg {
    display: inline-flex;
    align-items: center;
    transition: all 0.4s var(--transition-premium);
}

.logo-svg svg {
    filter: drop-shadow(0 0 8px rgba(201, 169, 98, 0));
    transition: filter 0.4s ease;
}

.logo:hover .logo-svg svg {
    filter: drop-shadow(0 0 12px rgba(201, 169, 98, 0.3));
}

.logo {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.logo span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    transition: all 0.3s var(--transition-premium);
    position: relative;
    padding: 0.25rem 0;
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transition: all 0.4s var(--transition-premium);
    transform: translateX(-50%);
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.92), rgba(20, 20, 20, 0.88)),
        url('assets/images/hero-bg.jpg') center/cover no-repeat;
    padding: 9rem 5% 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .hero {
    background: linear-gradient(135deg, rgba(245, 245, 245, 0.95), rgba(255, 255, 255, 0.90)),
        url('assets/images/hero-bg.jpg') center/cover no-repeat;
}

/* Decorative floating particles */
.hero::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    top: 30%;
    left: 15%;
    animation: heroParticle 6s ease-in-out infinite;
    opacity: 0;
}

.hero::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent-light);
    border-radius: 50%;
    top: 50%;
    right: 20%;
    animation: heroParticle 8s ease-in-out infinite 2s;
    opacity: 0;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s var(--transition-premium);
}

.hero-title {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    margin-bottom: 1rem;
    line-height: 1.15;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-title span {
    color: var(--accent);
    font-style: italic;
}

.hero-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight: 300;
    color: var(--text);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    opacity: 0.85;
    animation: fadeInUp 1.2s var(--transition-premium) 0.2s backwards;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.quick-search {
    display: flex;
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-gold);
    backdrop-filter: blur(12px);
    transition: all 0.4s var(--transition-premium);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.quick-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 3px var(--accent-glow);
}

.quick-search input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 300;
}

.quick-search input:focus {
    outline: none;
}

.quick-search input::placeholder {
    color: var(--text-muted);
    font-weight: 300;
}

/* ==========================================================================
   Main Layout
   ========================================================================== */
.main-container {
    width: 100%;
    margin: 0;
    padding: 1rem;
    display: grid;
    overflow: visible !important;
    /* Critical for sticky elements */
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* ==========================================================================
   Filters Sidebar
   ========================================================================== */
/* Filters Sticky Wrapper (NEW) */
/* DO NOT MODIFY - START CRITICAL LAYOUT STRUCTURE */
.filters-sticky-wrapper {
    position: sticky;
    top: 80px;
    /* Standard Safe Offset */
    align-self: start;
    z-index: 90;
}

/* Ceiling Mask for Filters */
.filters-sticky-wrapper::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--mask-color);
    /* Dynamic Mask */
    z-index: -1;
    pointer-events: none;
}

/* DO NOT MODIFY - END CRITICAL LAYOUT STRUCTURE */

/* Filters Sidebar (Inner Content) */
.filters-sidebar {
    background: var(--card-bg);
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    /* No sticky here, handled by wrapper */
}

/* Scrollbar Styling for Sidebar */
.filters-sidebar::-webkit-scrollbar {
    width: 6px;
}

.filters-sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.filters-sidebar::-webkit-scrollbar-thumb {
    background: var(--accent-dark);
    border-radius: 3px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(201, 169, 98, 0.15);
}

.filters-header h3 {
    font-size: 1.3rem;
    color: var(--accent);
    margin: 0;
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.clear-filters {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.72rem;
    padding: 5px 12px;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: all 0.3s var(--transition-premium);
    font-weight: 500;
}

.clear-filters:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(201, 169, 98, 0.1);
    transform: translateY(-1px);
}

.filter-section {
    margin-bottom: 0.6rem;
}

.filter-section h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.filter-section select {
    width: 100%;
    padding: 0.4rem 0.5rem;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text);
    font-size: 0.85rem;
    border-radius: 4px;
    height: 38px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c9a962' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.filter-section select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(201, 169, 98, 0.2);
}

/* Custom Multi-Select */
.custom-multiselect {
    position: relative;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 0.5rem;
}

.select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: var(--text);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    user-select: none;
}

.select-trigger:hover {
    border-color: rgba(201, 169, 98, 0.5);
}

.custom-multiselect.open .select-trigger {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(201, 169, 98, 0.2);
}

.arrow-icon {
    font-size: 0.7rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.custom-multiselect.open .arrow-icon {
    transform: rotate(180deg);
}

.select-dropdown {
    position: absolute;
    top: 105%;
    left: 0;
    width: 100%;
    background: #1a1a1a;
    border: 1px solid var(--accent);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    padding: 0.5rem 0;
}

.custom-multiselect.open .select-dropdown {
    display: flex;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text);
    transition: background 0.2s ease;
}

.checkbox-item:hover {
    background: rgba(201, 169, 98, 0.1);
}

.filter-checkbox {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    display: grid;
    place-content: center;
    transition: all 0.2s ease;
}

.filter-checkbox:checked {
    background: var(--accent);
    border-color: var(--accent);
}

.filter-checkbox::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1rem 1rem var(--primary);
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.filter-checkbox:checked::before {
    transform: scale(1);
}

/* Price/Area Sliders */
.range-slider-container {
    padding: 0.3rem 0;
}

.dual-range {
    position: relative;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 1.5rem 0 0.5rem;
}

.dual-range .track {
    position: absolute;
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
}

.dual-range input[type="range"] {
    position: absolute;
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    background: transparent;
    pointer-events: none;
    top: 0;
    z-index: 2;
}

.dual-range .track {
    z-index: 1;
}

.dual-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-dark);
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.range-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.range-values span {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 3px;
}

/* Apply Filters Button */
.apply-filters-btn {
    width: 100%;
    padding: 0.85rem;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: none;
    border-radius: 6px;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.4s var(--transition-premium);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(201, 169, 98, 0.2);
}

.apply-filters-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.apply-filters-btn:hover::before {
    left: 100%;
}

.apply-filters-btn:hover {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 169, 98, 0.4);
}

/* ==========================================================================
   Results Area
   ========================================================================== */
.results-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-content: start;
    align-items: start;
    overflow: visible !important;
}

.results-header {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
    position: sticky;
    top: 80px;
    /* Standard Safe Offset */
    background: var(--bg-dark);
    /* Ensure opacity */
    z-index: 80;
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    /* Proper border for stickiness */
}

/* Ceiling Mask for Results Header */
/* DO NOT MODIFY - START CRITICAL LAYOUT STRUCTURE */
.results-header::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--mask-color);
    /* Dynamic Mask */
    z-index: -1;
    pointer-events: none;
}

/* DO NOT MODIFY - END CRITICAL LAYOUT STRUCTURE */

.results-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.results-count strong {
    color: var(--accent);
}

/* ==========================================================================
   Property Cards
   ========================================================================== */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.property-card {
    background: var(--card-bg);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.5s var(--transition-premium);
    position: relative;
    animation: fadeInUp 0.6s var(--transition-premium) backwards;
}

/* Staggered entrance for cards */
.property-card:nth-child(1) {
    animation-delay: 0.05s;
}

.property-card:nth-child(2) {
    animation-delay: 0.1s;
}

.property-card:nth-child(3) {
    animation-delay: 0.15s;
}

.property-card:nth-child(4) {
    animation-delay: 0.2s;
}

.property-card:nth-child(5) {
    animation-delay: 0.25s;
}

.property-card:nth-child(6) {
    animation-delay: 0.3s;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(201, 169, 98, 0.25);
}

/* Gold glow on card hover */
.property-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(135deg, transparent, rgba(201, 169, 98, 0.15), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.property-card:hover::after {
    opacity: 1;
}

.property-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #1a1a1a;
    padding: 0.35rem 0.9rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 4px;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(201, 169, 98, 0.3);
}

.property-image {
    position: relative;
    height: 210px;
    overflow: hidden;
}

/* Image overlay gradient for elegance */
.property-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    pointer-events: none;
    z-index: 1;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--transition-premium);
}

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

.property-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.action-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--transition-premium);
}

.action-btn:hover {
    background: var(--accent);
    color: #1a1a1a;
    border-color: var(--accent);
    transform: scale(1.1);
}

.property-content {
    padding: 1.3rem;
}

.property-title {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.property-card:hover .property-title {
    color: var(--accent);
}

.property-location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.property-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.01em;
}

.property-features {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 400;
}

.feature-item svg {
    color: var(--accent);
    opacity: 0.8;
}

/* ==========================================================================
   Map View
   ========================================================================== */
/* Map Sticky Wrapper - para de rolar junto com filtros e "X imóveis encontrados" */
.map-sticky-wrapper {
    position: sticky;
    top: var(--navbar-height);
    width: 100%;
    align-self: start;
    z-index: 50;
    pointer-events: none;
}

/* Ceiling Mask for Map */
/* DO NOT MODIFY - START CRITICAL LAYOUT STRUCTURE */
.map-sticky-wrapper::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--mask-color);
    /* Dynamic Mask */
    z-index: -1;
    pointer-events: none;
}

/* DO NOT MODIFY - END CRITICAL LAYOUT STRUCTURE */

/* Re-enable pointer events for map */
.map-sticky-wrapper>* {
    pointer-events: auto;
}

#mapView {
    width: 100%;
    height: 600px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    /* Removed sticky from here to avoid Leaflet conflict */
}

.mobile-map-view {
    display: none;
}

/* Custom Map Markers */
.price-marker-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #1a1a1a;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.custom-cluster-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 4px 15px rgba(201, 169, 98, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.4);
}

/* Leaflet Popup Styling */
.leaflet-popup-content-wrapper {
    background: var(--card-bg);
    color: var(--text);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(201, 169, 98, 0.2);
}

.leaflet-popup-tip {
    background: var(--card-bg);
}

/* ==========================================================================
   Single Property Page
   ========================================================================== */
.single-property {
    padding-top: 80px;
}

.property-gallery {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.property-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
}

.gallery-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-btn:hover {
    background: var(--accent);
    color: #1a1a1a;
}

.property-details {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.property-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.property-info .price {
    font-size: 2rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 2rem;
}

.property-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.feature-box {
    text-align: center;
    padding: 1rem;
}

.feature-box .icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.feature-box .value {
    font-size: 1.5rem;
    font-weight: 700;
}

.feature-box .label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.property-description {
    line-height: 1.8;
    color: var(--text-muted);
}

.property-description h2 {
    color: var(--text);
    margin-bottom: 1rem;
}

/* Contact Sidebar */
.contact-sidebar {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 100px;
}

.contact-sidebar h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

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

.whatsapp-btn {
    width: 100%;
    padding: 1rem;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background: #1da851;
    transform: translateY(-2px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: var(--primary);
    padding: 4rem 5% 2rem;
    margin-top: 4rem;
    border-top: none;
    position: relative;
}

/* Gold gradient divider at top of footer */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-brand .logo {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.footer-social {
    display: flex;
    gap: 0.8rem;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.4s var(--transition-premium);
}

.footer-social a:hover {
    background: var(--accent);
    color: #1a1a1a;
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(201, 169, 98, 0.3);
}

.footer-column h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 0.8rem;
}

/* Gold underline on footer headings */
.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 300;
    transition: all 0.3s var(--transition-premium);
    position: relative;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 0.5rem;
}

.footer-bottom {
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   WhatsApp Float Button
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #25D366;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.whatsapp-float a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float .whatsapp-text {
    display: block;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 0;
    grid-column: 1 / -1;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: var(--accent);
    color: #1a1a1a;
    border-color: var(--accent);
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-page {
    padding: 8rem 5% 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-page h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info-box {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info-box h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-item .icon {
    width: 40px;
    height: 40px;
    background: rgba(201, 169, 98, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

/* ==========================================================================
   About Page
   ========================================================================== */
.about-page {
    padding: 8rem 5% 4rem;
}

.about-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   Landing Page Template
   ========================================================================== */
.landing-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.landing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
}

.landing-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 5%;
}

.urgency-bar {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    text-align: center;
    padding: 0.8rem;
    font-weight: 600;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

/* Fix: Hide Mobile Filter Toggle by Default */
.mobile-filter-toggle {
    display: none;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Large Desktop */
@media (min-width: 1400px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .navbar {
        padding: 0.8rem 4%;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .main-container {
        grid-template-columns: 220px 1fr;
        gap: 1rem;
    }

    .mobile-map-view {
        display: block !important;
        width: 100%;
        height: 250px;
        border-radius: 8px;
        margin-bottom: 1rem;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .property-details {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 4%;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero {
        min-height: 50vh;
        padding: 6rem 4% 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .quick-search {
        flex-direction: column;
    }

    .main-container {
        grid-template-columns: 1fr;
        padding: 1rem 4%;
    }

    .filters-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        max-height: 100vh;
        z-index: 2000;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 0;
        background: var(--bg-dark);
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .filters-sidebar.active {
        left: 0;
    }

    /* Overlay for sidebar */
    .filters-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.8);
        z-index: 1500;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(5px);
    }

    .filters-sidebar.active+.filters-overlay,
    .filters-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-filter-toggle {
        display: flex !important;
        position: fixed;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 100;
        background: var(--accent);
        color: #1a1a1a;
        padding: 0.8rem 1.5rem;
        border-radius: 50px;
        font-weight: 600;
        box-shadow: 0 5px 20px rgba(201, 169, 98, 0.4);
    }

    .results-area {
        grid-template-columns: 1fr;
    }

    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .property-gallery {
        height: 300px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .whatsapp-float .whatsapp-text {
        display: none;
    }

    .whatsapp-float a {
        padding: 1rem;
        border-radius: 50%;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .properties-grid {
        grid-template-columns: 1fr;
    }

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

    .about-content {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   WordPress Specific
   ========================================================================== */
.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
}

/* Admin Bar Offset & Sticky Fixes */
body.admin-bar .navbar {
    top: 32px;
}

@media (min-width: 769px) {
    body.admin-bar .filters-sticky-wrapper {
        top: calc(var(--navbar-height) + 32px);
    }

    body.admin-bar .filters-sidebar {
        max-height: calc(100vh - 132px);
    }

    body.admin-bar .results-header {
        top: calc(var(--navbar-height) + 32px);
    }

    body.admin-bar .map-sticky-wrapper {
        top: calc(var(--navbar-height) + 60px + 32px);
        /* 140 + 32 = 172px */
    }
}

@media (max-width: 782px) {
    body.admin-bar .navbar {
        top: 46px;
    }
}

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Fix: Hide Mobile Filter Toggle on Desktop */
@media (min-width: 769px) {
    .mobile-filter-toggle {
        display: none !important;
    }
}

/* ==========================================================================
   Theme Toggle
   ========================================================================== */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 1rem;
}

.theme-toggle:hover {
    background: rgba(201, 169, 98, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.theme-toggle svg {
    display: none;
}

/* ==========================================================================
   Landing Page Components (Added Fix)
   ========================================================================== */

/* Landing Page Wrapper Background */
.landing-page-wrapper {
    background-color: var(--bg-dark);
    color: var(--text);
    transition: background-color 0.4s ease, color 0.4s ease;
}

[data-theme="light"] .landing-page-wrapper {
    background-color: var(--bg-dark);
    /* Should be lighter in light mode via var */
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 5%;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-width: 180px;
    transition: all 0.3s ease;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Light Mode Overrides for Landing Page */
[data-theme="light"] .stats-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .stat-item {
    background: #ffffff;
    border: 1px solid #d1d1d1;
    /* Stronger border for visibility */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .stat-number {
    color: var(--accent-dark);
}

[data-theme="light"] .stat-label {
    color: #555;
    font-weight: 600;
}

/* Feature Boxes / Generic Boxes Enhancement */
[data-theme="light"] .wp-block-group,
[data-theme="light"] .wp-block-columns,
[data-theme="light"] .feature-item,
[data-theme="light"] .contact-form-wrapper {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
}

[data-theme="light"] .landing-contact {
    background: #f9f9f9 !important;
}

[data-theme="light"] .section-title {
    color: #1a1a1a;
}

/* AGGRESSIVE LANDING PAGE LIGHT MODE FIXES - FINAL */
[data-theme="light"] body.page-template-template-landing {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
}

/* Force backgrounds on all grouping elements */
[data-theme="light"] .landing-page-wrapper,
[data-theme="light"] .landing-content-wrapper,
[data-theme="light"] .landing-main-content,
[data-theme="light"] .landing-contact,
[data-theme="light"] article,
[data-theme="light"] section,
[data-theme="light"] .entry-content,
[data-theme="light"] .wp-site-blocks,
[data-theme="light"] .gutenberg-block,
[data-theme="light"] .block-editor-block-list__block {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
}

/* Force Text Colors */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6,
[data-theme="light"] p,
[data-theme="light"] li,
[data-theme="light"] span,
[data-theme="light"] div {
    color: #1a1a1a;
}

/* Exceptions for specific UI elements */
[data-theme="light"] .btn-primary,
[data-theme="light"] .badge,
[data-theme="light"] .label,
[data-theme="light"] .landing-contact h2 {
    color: #000 !important;
    /* Ensure headers in contact section are dark */
}

/* Fix specific dark utility classes */
[data-theme="light"] .bg-dark,
[data-theme="light"] .has-background-dark,
[data-theme="light"] .has-black-background-color {
    background-color: #f2f2f2 !important;
    color: #1a1a1a !important;
}

/* Property Cards & Contour Improvements */
[data-theme="light"] .property-card,
[data-theme="light"] .card,
[data-theme="light"] .box,
[data-theme="light"] .feature-box,
[data-theme="light"] .wp-block-group,
[data-theme="light"] .wp-block-column,
[data-theme="light"] .stat-item,
[data-theme="light"] .contact-form-wrapper {
    background-color: #ffffff !important;
    border: 1px solid #d1d1d1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* Accent Colors Visibility */
[data-theme="light"] .stat-number,
[data-theme="light"] .price-value,
[data-theme="light"] .accent-text,
[data-theme="light"] a {
    color: #B08D55 !important;
    /* Darker Gold for visibility on white */
}

[data-theme="light"] a:hover {
    color: #8A6E3E !important;
}

[data-theme="light"] .btn-primary {
    background-color: #B08D55 !important;
    color: #ffffff !important;
    border: none !important;
}

/* Inputs */
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
    background-color: #ffffff !important;
    border: 1px solid #ccc !important;
    color: #1a1a1a !important;
}

[data-theme="light"] ::placeholder {
    color: #666 !important;
}

/* ==========================================================================
   Forminator Contact Form Styling (Landing Page)
   ========================================================================== */

#forminator-module-28 {
    background: var(--bg-elevated);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    max-width: 600px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

/* Labels */
#forminator-module-28 .forminator-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text) !important;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

/* Inputs & Textarea */
#forminator-module-28 .forminator-input,
#forminator-module-28 .forminator-textarea {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    color: var(--text) !important;
    padding: 12px 16px !important;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#forminator-module-28 .forminator-input:focus,
#forminator-module-28 .forminator-textarea:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 2px var(--accent-glow);
    background-color: rgba(255, 255, 255, 0.08) !important;
}

/* Submit Button */
#forminator-module-28 .forminator-button-submit {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 14px 32px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(201, 169, 98, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

#forminator-module-28 .forminator-button-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 98, 0.4);
}

/* Forminator Row Spacing */
#forminator-module-28 .forminator-row {
    margin-bottom: 1.5rem !important;
}

/* Floating Label Tweaks (if enabled in Forminator) */
#forminator-module-28 .forminator-floating--input.forminator-has_focus {
    color: var(--accent) !important;
}

/* Light Mode Overrides for Form */
[data-theme="light"] #forminator-module-28 {
    background: #ffffff !important;
    border: 1px solid #dcdcdc !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] #forminator-module-28 .forminator-label {
    color: #333 !important;
}

[data-theme="light"] #forminator-module-28 .forminator-input,
[data-theme="light"] #forminator-module-28 .forminator-textarea {
    background-color: #f9f9f9 !important;
    border: 1px solid #ccc !important;
    color: #1a1a1a !important;
}

[data-theme="light"] #forminator-module-28 .forminator-input:focus,
[data-theme="light"] #forminator-module-28 .forminator-textarea:focus {
    background-color: #ffffff !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.15);
}

[data-theme="light"] #forminator-module-28 .forminator-button-submit {
    /* Slightly darker gradient for light mode contrast */
    background: linear-gradient(135deg, #B08D55 0%, #8A6E3E 100%) !important;
    color: #ffffff !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #forminator-module-28 {
        padding: 1.5rem;
    }
}

[data-theme="light"] footer {
    background-color: #f9f9f9 !important;
    color: #333 !important;
    border-top: 1px solid #e0e0e0;
}

[data-theme="light"] footer h4 {
    color: #000 !important;
}

[data-theme="light"] footer a {
    color: #555 !important;
}

[data-theme="light"] footer a:hover {
    color: #B08D55 !important;
}