/* 
  Design Original: Envato User 
  Licença de Uso: Comercial (Cliente Final)
  Proibida a revenda do código fonte.
*/
/* --- SYSTEM DESIGN --- */
        :root {
            --bg-body: #F4F5F7;
            --bg-card: #FFFFFF;
            --primary: #1A1A1A;
            --secondary: #6B7280;
            --accent: #2563EB; /* Azul Tech/Pro */
            --accent-dark: #1E40AF;
            --success: #10B981;
            --border: #E5E7EB;
            --radius: 12px;
            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            --container: 1300px;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        html, body {
            width: 100%;
            max-width: 100%;
            overflow-x: hidden;
            position: relative;
        }

        body {
            font-family: 'Outfit', sans-serif;
            background-color: var(--bg-body);
            color: var(--primary);
            line-height: 1.6;
        }

        h1, h2, h3, h4, h5 { font-weight: 700; letter-spacing: -0.02em; }
        .serif { font-family: 'Cormorant Garamond', serif; font-style: italic; }

        .container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
        .section { padding: 100px 0; }
        
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 600;
            transition: 0.2s;
            cursor: pointer;
            border: none;
            gap: 8px;
        }

        .btn-primary { background: var(--primary); color: #fff; }
        .btn-primary:hover { background: #333; transform: translateY(-2px); }
        
        .btn-accent { background: var(--accent); color: #fff; }
        .btn-accent:hover { background: var(--accent-dark); }

        .btn-outline { border: 1px solid var(--border); background: transparent; color: var(--primary); }
        .btn-outline:hover { border-color: var(--primary); background: var(--bg-card); }

        .badge {
            padding: 4px 12px;
            border-radius: 100px;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
        }
        .badge-new { background: #DBEAFE; color: var(--accent); }
        .badge-hot { background: #FEE2E2; color: #EF4444; }

        /* --- NAVBAR PRO --- */
        .navbar {
            background: rgba(255,255,255,0.9);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border);
            position: fixed;
            top: 0; width: 100%;
            z-index: 1000;
            padding: 16px 0;
        }

        .nav-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .brand {
            font-size: 1.5rem;
            font-weight: 800;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .brand i { color: var(--accent); }

        .nav-menu {
            display: flex;
            gap: 32px;
            list-style: none;
        }

        .nav-link {
            text-decoration: none;
            color: var(--secondary);
            font-weight: 500;
            font-size: 0.95rem;
            transition: 0.2s;
        }
        .nav-link:hover, .nav-link.active { color: var(--primary); }

        .nav-actions { display: flex; gap: 12px; }

        /* --- HERO DASHBOARD STYLE --- */
        .hero-pro {
            padding-top: 140px;
            padding-bottom: 80px;
            background: #fff;
            border-bottom: 1px solid var(--border);
        }

        .hero-grid {
            display: grid;
            grid-template-columns: 1.2fr 0.8fr;
            gap: 60px;
            align-items: center;
        }

        .hero-text h1 {
            font-size: 4rem;
            line-height: 1.1;
            margin-bottom: 24px;
            color: var(--primary);
        }

        .hero-text p {
            font-size: 1.25rem;
            color: var(--secondary);
            margin-bottom: 40px;
            max-width: 550px;
        }

        .search-bar-pro {
            background: #fff;
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 8px;
            box-shadow: var(--shadow-lg);
            display: flex;
            gap: 12px;
            max-width: 600px;
        }

        .search-input-group {
            flex: 1;
            position: relative;
            display: flex;
            align-items: center;
            padding: 0 16px;
            border-right: 1px solid var(--border);
        }
        .search-input-group:last-child { border-right: none; }

        .search-input-group i { color: var(--secondary); margin-right: 12px; }
        
        .search-input-group input {
            border: none;
            outline: none;
            width: 100%;
            font-family: 'Outfit', sans-serif;
            font-size: 1rem;
        }

        .hero-stats {
            display: flex;
            gap: 40px;
            margin-top: 60px;
        }
        .stat-box h4 { font-size: 2rem; color: var(--primary); }
        .stat-box span { color: var(--secondary); font-size: 0.9rem; }

        .hero-visual {
            position: relative;
        }

        .hero-card-float {
            background: #fff;
            padding: 20px;
            border-radius: 16px;
            box-shadow: var(--shadow-lg);
            position: absolute;
            bottom: -40px;
            left: -40px;
            width: 280px;
            z-index: 2;
            animation: float 6s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

        .hero-img-main {
            width: 100%;
            border-radius: 24px;
            box-shadow: var(--shadow-md);
        }

        /* --- MARKET INTELLIGENCE --- */
        .market-section {
            background: var(--primary);
            color: #fff;
            padding: 80px 0;
        }

        .market-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 24px;
        }

        .market-card {
            background: rgba(255,255,255,0.1);
            padding: 24px;
            border-radius: 16px;
            border: 1px solid rgba(255,255,255,0.1);
        }

        .market-card h3 { font-size: 0.9rem; color: rgba(255,255,255,0.6); margin-bottom: 8px; text-transform: uppercase; }
        .market-value { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
        .market-trend { font-size: 0.9rem; display: flex; align-items: center; gap: 4px; }
        .trend-up { color: var(--success); }

        /* --- PROPERTIES SWIPER --- */
        .properties-section { background: var(--bg-body); }
        
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: end;
            margin-bottom: 40px;
        }

        .prop-card {
            background: #fff;
            border-radius: 16px;
            overflow: hidden;
            border: 1px solid var(--border);
            transition: 0.3s;
        }
        .prop-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

        .prop-img-container {
            position: relative;
            height: 240px;
        }
        .prop-img { width: 100%; height: 100%; object-fit: cover; }
        
        .prop-badges {
            position: absolute;
            top: 16px; left: 16px;
            display: flex; gap: 8px;
        }

        .prop-content { padding: 24px; }
        
        .prop-price {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 4px;
        }
        
        .prop-address { color: var(--secondary); font-size: 0.95rem; margin-bottom: 16px; }

        .prop-features {
            display: flex;
            gap: 16px;
            padding-top: 16px;
            border-top: 1px solid var(--border);
            color: var(--secondary);
            font-size: 0.9rem;
        }
        .prop-features span { display: flex; align-items: center; gap: 6px; }

        /* --- CALCULATOR WIDGET --- */
        .calc-section {
            background: #fff;
            border-top: 1px solid var(--border);
            border-bottom: 1px solid var(--border);
        }

        .calc-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            background: var(--bg-body);
            padding: 40px;
            border-radius: 24px;
        }

        .calc-inputs { display: flex; flex-direction: column; gap: 24px; }

        .range-group label { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 12px; }
        .range-group input[type="range"] {
            width: 100%;
            height: 6px;
            background: #ddd;
            border-radius: 5px;
            appearance: none;
            outline: none;
        }
        .range-group input[type="range"]::-webkit-slider-thumb {
            appearance: none;
            width: 20px; height: 20px;
            background: var(--accent);
            border-radius: 50%;
            cursor: pointer;
        }

        .calc-result {
            background: var(--primary);
            color: #fff;
            border-radius: 16px;
            padding: 40px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            text-align: center;
        }

        .monthly-payment { font-size: 3.5rem; font-weight: 800; line-height: 1; margin: 16px 0; }
        .calc-note { font-size: 0.9rem; opacity: 0.7; }

        /* --- FOOTER --- */
        footer { background: #fff; padding: 80px 0 30px; border-top: 1px solid var(--border); }
        .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
        .footer-col h5 { margin-bottom: 20px; color: var(--primary); }
        .footer-col ul li { margin-bottom: 12px; }
        .footer-col a { color: var(--secondary); text-decoration: none; }
        .footer-col a:hover { color: var(--accent); }

        /* --- NEW SECTIONS CSS --- */
        .methodology-section { background: #fff; }
        .methodology-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 60px; }
        .method-card { padding: 32px; background: var(--bg-body); border-radius: 16px; transition: 0.3s; }
        .method-card:hover { background: var(--primary); color: #fff; transform: translateY(-5px); }
        .method-card:hover h3, .method-card:hover p { color: #fff; }
        .method-icon { font-size: 2rem; color: var(--accent); margin-bottom: 24px; }
        
        .neighborhood-section { background: var(--bg-body); }
        .neighborhood-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; height: 400px; }
        .neighborhood-card { 
            position: relative; border-radius: 16px; overflow: hidden; cursor: pointer; 
            grid-column: span 1; transition: 0.4s;
        }
        .neighborhood-card:first-child { grid-column: span 2; }
        .neighborhood-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
        .neighborhood-card:hover img { transform: scale(1.1); }
        .neighborhood-overlay {
            position: absolute; bottom: 0; left: 0; width: 100%; padding: 24px;
            background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); color: #fff;
        }

        .testimonials-section { background: #fff; }
        .testimonial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
        .testimonial-card { background: var(--bg-body); padding: 40px; border-radius: 24px; position: relative; }
        .quote-icon { font-size: 4rem; color: rgba(0,0,0,0.05); position: absolute; top: 20px; left: 20px; }
        .client-info { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
        .client-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }

        .newsletter-section { background: var(--primary); color: #fff; text-align: center; }
        .newsletter-box { max-width: 600px; margin: 0 auto; }
        .newsletter-form { display: flex; gap: 12px; margin-top: 32px; }
        .newsletter-input { 
            flex: 1; padding: 16px; border-radius: 8px; border: none; outline: none; 
            font-family: 'Outfit', sans-serif;
        }

        /* --- MAP MODAL --- */
        .map-modal {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.8); z-index: 2000;
            display: none; justify-content: center; align-items: center;
            opacity: 0; transition: opacity 0.3s;
        }
        .map-modal.active { display: flex; opacity: 1; }
        
        .map-content {
            width: 90%; height: 85%; background: #fff; border-radius: 24px;
            overflow: hidden; position: relative; display: flex; flex-direction: column;
        }
        
        .map-header {
            padding: 20px 30px; background: #fff; border-bottom: 1px solid var(--border);
            display: flex; justify-content: space-between; align-items: center;
        }
        
        .close-map {
            background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--secondary);
            transition: 0.2s;
        }
        .close-map:hover { color: var(--primary); transform: rotate(90deg); }
        
        #map-container { flex: 1; width: 100%; height: 100%; background: #eee; }

        /* Custom Map Styles */
        .leaflet-popup-content-wrapper { border-radius: 12px; padding: 0; overflow: hidden; }
        .leaflet-popup-content { margin: 0; width: 280px !important; }
        .map-popup-card img { width: 100%; height: 150px; object-fit: cover; }
        .map-popup-info { padding: 16px; }
        .map-popup-price { font-weight: 700; color: var(--primary); font-size: 1.1rem; }
        .map-popup-loc { font-size: 0.85rem; color: var(--secondary); margin-bottom: 8px; }

        /* RESPONSIVE */
        @media (max-width: 1024px) {
            .hero-grid { grid-template-columns: 1fr; text-align: center; }
            .hero-text p { margin: 0 auto 40px; }
            .search-bar-pro { margin: 0 auto; }
            .hero-stats { justify-content: center; }
            .hero-visual { display: none; }
            .market-grid { grid-template-columns: 1fr 1fr; }
            .calc-container { grid-template-columns: 1fr; }
        }

        @media (max-width: 768px) {
            .container { padding: 0 16px; width: 100%; }
            .section { padding: 60px 0; }
            
            /* Navbar Mobile */
            .nav-menu { 
                display: none; 
                position: fixed; /* Changed from absolute to fixed for better mobile behavior */
                top: 70px; /* Adjust based on navbar height */
                left: 0; 
                width: 100%; 
                height: calc(100vh - 70px);
                background: #fff; 
                flex-direction: column; 
                padding: 20px; 
                box-shadow: var(--shadow-lg); 
                gap: 16px; 
                text-align: center; 
                overflow-y: auto;
            }
            .nav-menu.active { display: flex; }
            .nav-actions { display: none; } /* Hide actions on mobile for simplicity or move to menu */
            .mobile-menu-btn { display: block !important; font-size: 1.5rem; background: none; border: none; cursor: pointer; color: var(--primary); }

            /* Hero */
            .hero-pro { padding-top: 100px; padding-bottom: 40px; overflow: hidden; }
            .hero-text h1 { font-size: 2.2rem; word-wrap: break-word; }
            .hero-text p { font-size: 1rem; }
            .search-bar-pro { flex-direction: column; padding: 16px; width: 100%; max-width: 100%; }
            .search-input-group { border-right: none; border-bottom: 1px solid var(--border); padding: 12px 0; width: 100%; }
            .search-input-group:last-child { border-bottom: none; }
            .hero-stats { flex-direction: column; gap: 24px; width: 100%; }

            /* Market */
            .market-grid { grid-template-columns: 1fr; width: 100%; }
            .market-card { width: 100%; }

            /* Methodology */
            .methodology-grid { grid-template-columns: 1fr; gap: 24px; width: 100%; }

            /* Neighborhoods */
            .neighborhood-grid { grid-template-columns: 1fr; height: auto; width: 100%; }
            .neighborhood-card:first-child { grid-column: span 1; }
            .neighborhood-card { height: 250px; width: 100%; }

            /* Testimonials */
            .testimonial-grid { grid-template-columns: 1fr; width: 100%; }
            .testimonial-card { padding: 24px; width: 100%; }

            /* Newsletter */
            .newsletter-form { flex-direction: column; width: 100%; }
            .newsletter-input { width: 100%; }
            .newsletter-box { width: 100%; max-width: 100%; }

            /* Footer */
            .footer-grid { grid-template-columns: 1fr; gap: 30px; width: 100%; }

            /* Modals */
            .map-content { width: 100%; height: 100%; border-radius: 0; }
            .map-header { padding: 16px; }
            
            /* Property Modal Specifics */
            #propertyModal .map-content { max-width: 100%; }
            #propertyModal .map-content > div > div { padding: 20px !important; } /* Override padding */
            #propertyModal .map-content > div > div > div { grid-template-columns: 1fr !important; gap: 30px !important; } /* Stack grid */
            #prop-img-main { height: 250px !important; }
            #prop-title { font-size: 1.8rem !important; }
            #prop-price { font-size: 1.5rem !important; margin-top: 8px; }
            
            /* Stats Grid in Modal */
            #propertyModal .map-content > div > div > div > div:first-child > div:nth-child(2) {
                display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
            }
        }

        .mobile-menu-btn { display: none; }
        .mobile-only-actions { display: none; }
        
        @media (max-width: 768px) {
            .mobile-only-actions { display: flex !important; }
        }