/* =========================================
   THEME: HIGH-CONVERTING REAL ESTATE
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* PALETTE */
    --navy-dark: #091323;       /* Authority */
    --navy-light: #1C2436;      
    --brand-red: #B91C1C;       /* Action Color */
    --gold-star: #F59E0B;       /* Trust Color */
    --bg-page: #F9FAFB;
    --bg-white: #FFFFFF;
    --text-main: #111827;
    --text-muted: #4B5563;
    --border: #E5E7EB;
    
    /* UI SETTINGS */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

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

body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-page); 
    color: var(--text-main); 
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 { 
    font-family: 'DM Serif Display', serif; 
    color: var(--navy-dark); 
    line-height: 1.2; 
}

a { text-decoration: none; color: inherit; transition: 0.2s ease; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- 1. NAVIGATION (Actionable) --- */
.navbar { 
    background: rgba(255,255,255,0.98); 
    height: 80px; 
    position: fixed; top: 0; width: 100%; z-index: 1000; 
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
    display: flex; align-items: center;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.logo-text { font-size: 1.8rem; font-family: 'DM Serif Display', serif; color: var(--navy-dark); }
.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
.nav-links a:hover { color: var(--brand-red); }

/* CTA Button */
.btn-nav { 
    padding: 12px 24px; background: var(--navy-dark); color: white !important; 
    font-size: 0.9rem; font-weight: 600; border-radius: 4px; 
}
.btn-nav:hover { background: var(--brand-red); transform: translateY(-1px); }
.mobile-menu-btn { display: none; font-size: 1.5rem; cursor: pointer; }

/* --- 2. HERO SECTION (Conversion Focused) --- */
.hero { 
    position: relative; height: 800px; 
    background: linear-gradient(rgba(9, 19, 35, 0.5), rgba(9, 19, 35, 0.4)), 
                url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover; background-position: center; 
    display: flex; align-items: center; justify-content: center;
    margin-top: 80px;
}
.hero-content { width: 100%; max-width: 900px; text-align: center; color: white; padding: 20px; z-index: 2; }

/* Social Proof Badge in Hero */
.hero-badge { 
    display: inline-block; background: rgba(255,255,255,0.2); 
    backdrop-filter: blur(4px); padding: 6px 16px; border-radius: 50px; 
    font-size: 0.85rem; font-weight: 600; margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.3);
}

.hero-content h1 { font-size: 3.8rem; margin-bottom: 15px; color: white; text-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.hero-content p { font-size: 1.25rem; margin-bottom: 40px; opacity: 0.95; font-weight: 400; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Floating Search Card */
.search-container {
    background: white; padding: 24px; border-radius: var(--radius);
    box-shadow: var(--shadow-float);
    display: inline-block; width: 100%; max-width: 850px; text-align: left;
}
.search-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--border); padding-bottom: 10px; margin-bottom: 20px; }
.tab-btn { background: none; border: none; font-weight: 600; color: var(--text-muted); cursor: pointer; font-size: 1rem; padding-bottom: 5px; position: relative; }
.tab-btn.active { color: var(--navy-dark); border-bottom: 3px solid var(--brand-red); }

.search-inputs { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 15px; }
.input-group label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--text-muted); margin-bottom: 5px; text-transform: uppercase; }
.custom-input { width: 100%; padding: 14px; border: 1px solid var(--border); border-radius: 4px; font-size: 1rem; color: var(--navy-dark); }
.btn-search { 
    height: 52px; padding: 0 32px; margin-top: 21px; 
    background: var(--brand-red); color: white; border: none; 
    font-weight: 700; border-radius: 4px; cursor: pointer; font-size: 1rem;
}
.btn-search:hover { background: #991b1b; }

/* Secondary Mobile CTA */
.hero-secondary-cta { display: none; margin-top: 20px; }
.btn-browse-all { 
    display: inline-block; padding: 16px 32px; background: white; color: var(--navy-dark); 
    font-weight: 700; border-radius: 4px; text-transform: uppercase; font-size: 0.9rem;
}

/* --- 3. TRUST STRIP --- */
.trust-section { background: white; padding: 40px 0; border-bottom: 1px solid var(--border); text-align: center; }
.trust-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; margin-bottom: 20px; display: block; }
.logos { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; opacity: 0.6; filter: grayscale(100%); }
.logos span { font-family: 'DM Serif Display', serif; font-size: 1.5rem; color: var(--navy-dark); }

/* --- 4. LISTINGS (Visual Cards) --- */
.section { padding: 100px 0; }
.section-header { margin-bottom: 60px; display: flex; justify-content: space-between; align-items: flex-end; }
.view-all { color: var(--brand-red); font-weight: 600; border-bottom: 1px solid transparent; }

.property-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }

.property-card { 
    background: white; border-radius: var(--radius); 
    border: 1px solid var(--border); overflow: hidden;
    transition: transform 0.3s; cursor: pointer;
}
.property-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

/* Slideshow */
.card-slideshow { position: relative; height: 320px; background: #eee; overflow: hidden; }
.slide-track { display: flex; height: 100%; transition: transform 0.4s ease-in-out; }
.slide-image { min-width: 100%; width: 100%; height: 100%; object-fit: cover; }
.slide-nav { 
    position: absolute; top: 50%; transform: translateY(-50%); 
    width: 36px; height: 36px; background: white; border-radius: 50%; border: none; 
    cursor: pointer; display: flex; align-items: center; justify-content: center; 
    font-size: 1.2rem; opacity: 0; transition: opacity 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.card-slideshow:hover .slide-nav { opacity: 1; }
.slide-prev { left: 15px; } 
.slide-next { right: 15px; }
.status-badge { position: absolute; top: 15px; left: 15px; background: white; padding: 6px 12px; border-radius: 4px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

.card-content { padding: 25px; }
.card-price { font-size: 1.6rem; font-weight: 700; color: var(--navy-dark); margin-bottom: 5px; }
.card-address { color: var(--text-muted); margin-bottom: 20px; display: block; }
.card-specs { display: flex; gap: 20px; padding-top: 15px; border-top: 1px solid var(--border); margin-bottom: 20px; }
.spec-item { display: flex; align-items: center; gap: 6px; font-weight: 500; color: var(--navy-dark); }

/* Card CTA Button */
.btn-card { 
    display: block; width: 100%; padding: 14px; text-align: center;
    border: 1px solid var(--navy-dark); color: var(--navy-dark); 
    font-weight: 700; border-radius: 4px; transition: 0.2s;
}
.btn-card:hover { background: var(--navy-dark); color: white; }

/* --- 5. VALUE PROPS --- */
.features-section { background: white; padding: 80px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.feature-icon { 
    width: 60px; height: 60px; background: #FEF2F2; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    color: var(--brand-red); margin: 0 auto 20px auto; 
}
.feature-item h3 { font-size: 1.25rem; margin-bottom: 10px; }
.feature-item p { color: var(--text-muted); font-size: 0.95rem; }

/* --- 6. SOCIAL PROOF (Testimonials) --- */
.testimonials-section { background: var(--navy-dark); color: white; padding: 100px 0; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.testimonial-card { background: rgba(255,255,255,0.05); padding: 30px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); }
.stars { color: var(--gold-star); margin-bottom: 15px; }
.quote { font-style: italic; margin-bottom: 20px; opacity: 0.9; }
.client { font-weight: 700; font-family: 'DM Serif Display', serif; }

/* --- 7. CONTACT & MAP --- */
.contact-section { display: flex; background: white; }
.map-container { flex: 1; min-height: 500px; background: #eee; }
.contact-form-container { flex: 1; padding: 80px; display: flex; flex-direction: column; justify-content: center; }
.contact-form-container h2 { font-size: 2.5rem; margin-bottom: 20px; }
.form-group { margin-bottom: 15px; }
.form-input { width: 100%; padding: 15px; border: 1px solid var(--border); border-radius: 4px; font-family: inherit; }
.btn-submit { width: 100%; padding: 16px; background: var(--brand-red); color: white; border: none; font-weight: 700; cursor: pointer; border-radius: 4px; font-size: 1rem; }
.btn-submit:hover { background: #991b1b; }

/* FOOTER */
footer { padding: 60px 0; text-align: center; color: var(--text-muted); font-size: 0.9rem; background: var(--bg-page); border-top: 1px solid var(--border); }

/* MODAL */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 2000; display: none; justify-content: center; align-items: center; }
.modal-overlay.active { display: flex; }
.modal-card { background: white; width: 100%; max-width: 500px; padding: 40px; border-radius: var(--radius); position: relative; }
.close-btn { position: absolute; top: 15px; right: 20px; border: none; background: none; font-size: 2rem; cursor: pointer; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero { height: auto; padding: 160px 0 100px; }
    .hero-content h1 { font-size: 2.5rem; }
    .search-inputs { grid-template-columns: 1fr; }
    .btn-search { width: 100%; margin-top: 10px; }
    .hero-secondary-cta { display: block; } /* Show Browse Button on Mobile */
    .property-grid, .testimonial-grid, .features-grid { grid-template-columns: 1fr; gap: 30px; }
    .contact-section { flex-direction: column; }
    .map-container { height: 300px; min-height: 300px; }
    .contact-form-container { padding: 40px 20px; }
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
}