/* --- Global Styles --- */
:root {
    --primary: #0d1b2a;
    --secondary: #1b263b;
    --accent: #c5a059;
    --accent-dark: #b08e4b;
    --text-dark: #0d1b2a;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

h1, h2, h3, .navbar-brand {
    font-family: 'Playfair Display', serif;
}

.text-gold { color: var(--accent); }
.bg-gold { background-color: var(--accent); }
.btn-gold {
    background-color: var(--accent);
    color: white;
    border: none;
    transition: var(--transition);
}
.btn-gold:hover {
    background-color: var(--accent-dark);
    color: white;
    transform: translateY(-2px);
}

/* --- Navbar --- */
.navbar {
    padding: 1.5rem 0;
    transition: var(--transition);
    background-color: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 2000;
}

.navbar.scrolled {
    background-color: rgba(13, 27, 42, 0.98);
    backdrop-filter: blur(15px);
    padding: 0.8rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@media (max-width: 575px) {
    .navbar-brand {
        font-size: 1.4rem;
    }
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(197, 160, 89, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.brand-elite { 
    color: var(--white); 
    letter-spacing: 1px;
}
.brand-estates { 
    color: var(--accent); 
    font-weight: 800;
}

.nav-link {
    font-weight: 500;
    margin-left: 1.5rem;
    color: var(--white) !important;
    position: relative;
}

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

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

/* --- Hero Section --- */
.hero-section {
    min-height: 85vh;
    background-color: var(--primary);
    background: url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&q=80&w=1920') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

@media (max-width: 991px) {
    .hero-section {
        min-height: 70vh;
        padding-top: 80px;
        text-align: center;
    }
    
    .hero-section .row {
        justify-content: center;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(13, 27, 42, 0.9) 0%, rgba(13, 27, 42, 0.4) 100%);
    z-index: 1;
}

@media (max-width: 991px) {
    .hero-overlay {
        background: linear-gradient(rgba(13, 27, 42, 0.8), rgba(13, 27, 42, 0.8));
    }
}

.hero-section h1 {
    line-height: 1.2;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
}

@media (max-width: 767px) {
    .hero-section h1 {
        font-size: 2.8rem;
        line-height: 1.1;
    }
    .hero-section .lead {
        font-size: 1.1rem !important;
        margin-bottom: 2rem !important;
    }
}

@media (max-width: 575px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section .d-flex {
        flex-direction: column;
    }
    .hero-section .btn {
        width: 100%;
    }
}

.z-2 { z-index: 2; }

/* --- Sidebar Filter --- */
.filter-sidebar {
    position: sticky;
    top: 100px;
    border: 1px solid rgba(0,0,0,0.05);
}

@media (max-width: 991px) {
    .filter-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 1rem;
        padding: 1.5rem !important;
        border: 1px solid #eee;
    }
    
    .filter-sidebar.collapse:not(.show) {
        display: none;
    }
    
    .filter-sidebar.collapse.show {
        display: block;
    }
}

.filter-sidebar .form-control, .filter-sidebar .form-select {
    border-radius: 10px;
    padding: 12px 15px;
    border: 1px solid #eee;
    font-size: 0.95rem;
}

.filter-sidebar .form-control:focus {
    border-color: var(--accent);
}

.filter-sidebar .btn-outline-secondary {
    border-color: #eee;
    color: #666;
    min-width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 600;
}

.filter-sidebar .btn-check:checked + .btn-outline-secondary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.filter-sidebar .btn-outline-dark {
    border-color: #eee;
    color: #666;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 600;
}

.filter-sidebar .btn-check:checked + .btn-outline-dark {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* --- Section Styling --- */
.section-title {
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--primary);
}

.title-underline {
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    margin: 1rem auto;
}

/* --- Property Cards --- */
.property-card {
    border: none;
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(13, 27, 42, 0.12) !important;
}

.property-img-container {
    position: relative;
    overflow: hidden;
}

.property-img-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(transparent, rgba(0,0,0,0.4));
    z-index: 1;
}

.property-img-container img {
    transition: var(--transition);
    height: 280px;
    width: 100%;
    object-fit: cover;
}

.property-card:hover .property-img-container img {
    transform: scale(1.1);
}

.property-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--accent);
    color: white;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.property-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.property-meta {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 12px;
}

.property-meta span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.property-meta i {
    color: var(--accent);
    margin-right: 6px;
}

.btn-view-details {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-view-details:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.02);
}

/* --- About & Testimonials --- */
.icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(197, 160, 89, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
}

.testimonial-card {
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.testimonial-card:hover {
    background-color: var(--primary) !important;
}

.testimonial-card:hover p, 
.testimonial-card:hover h6 {
    color: white !important;
}

/* --- Form Styles --- */
.form-control:focus {
    box-shadow: none;
    border-color: var(--accent);
}


 /* --- Footer --- */
.footer .text-muted {
    color: #adb5bd !important;
}

.footer a:hover {
    color: var(--accent) !important;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--accent);
    color: white !important;
    transform: translateY(-3px);
}

/* --- Modal Styling --- */
#modalContent .modal-img {
    height: 400px;
    object-fit: cover;
    width: 100%;
    border-radius: 1rem 1rem 0 0;
}

/* --- Mobile UI Fixes --- */
@media (max-width: 991px) {
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-collapse {
        background-color: var(--primary) !important;
        padding: 1.5rem !important;
        border-radius: 15px;
        margin-top: 1rem;
        box-shadow: 0 15px 40px rgba(0,0,0,0.4);
        border: 1px solid rgba(255,255,255,0.1);
        position: relative;
        z-index: 9999 !important;
    }
    
    .nav-link {
        margin-left: 0;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .about-section .row {
        flex-direction: column-reverse;
    }
}

@media (max-width: 575px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-section {
        padding-top: 120px;
        padding-bottom: 60px;
        min-height: auto;
    }
    
    .property-card .card-body {
        padding: 1.2rem !important;
    }
    
    .property-price {
        font-size: 1.3rem;
    }
}
