@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors - Real Estate Premium Palette */
    --teal-900: #04252a;
    --teal-700: #005a66;
    --teal-500: #008aa0;
    --coral: #ff6f61;
    --sand-100: #faf8f5;
    --sand-200: #f4eee2;
    --sand-300: #ede7d9;
    
    --white: #ffffff;
    --text: #1a1a1a;
    --text-2: #555555;
    --text-3: #999999;
    --border: #e8e8e8;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.12);
    
    --r-sm: 6px;
    --r-md: 12px;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .title-display {
    font-family: 'Playfair Display', serif;
}

.container {
    width: 80%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

/* NAVBAR */
.navbar {
    background: var(--white);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 90px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    margin: 0 auto;
}

.logo-img { height: 50px; width: auto; }

.mobile-toggle {
    display: none;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-2);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--teal-700);
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--r-sm);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.btn-primary {
    background: var(--teal-900);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--teal-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--teal-900);
    color: var(--teal-900);
}

/* PROPERTY CARDS */
.property-card {
    background: var(--white);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--border);
    height: 100%;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0,0,0,0);
}

.property-img {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: var(--sand-200);
}

.property-badge {
    position: absolute; top: 16px; left: 16px;
    background: var(--teal-900);
    color: white;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 2;
}

.property-info {
    padding: 24px;
}

.property-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--teal-900);
    margin-bottom: 8px;
}

.property-title {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 48px;
}

.property-location {
    font-size: 14px;
    color: var(--text-2);
    margin-bottom: 16px;
}

.property-features {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-2);
}

/* FORMS */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--teal-500);
}

/* FOOTER */
.footer {
    background: var(--teal-900);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 40px;
}

/* ── RESPONSIVE RESPONSIVE ── */
@media (max-width: 992px) {
    .container { width: 95% !important; padding: 0 20px; }
    .section { padding: 40px 0; }
    
    /* Navbar Mobile Fix */
    .navbar { height: 80px !important; display: flex; align-items: center; }
    .nav-container { flex-direction: row !important; justify-content: space-between !important; width: 100% !important; padding: 0 20px !important; }
    
    .mobile-toggle {
        display: flex !important;
        flex-direction: column;
        gap: 6px;
        z-index: 1001;
    }
    
    .mobile-toggle span { display: block; width: 28px; height: 2px; background: var(--teal-900); transition: 0.3s; }
    .mobile-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-toggle.open span:nth-child(2) { opacity: 0; }
    .mobile-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: auto;
        background: white !important;
        flex-direction: column !important;
        padding: 30px !important;
        gap: 20px !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border-bottom: 2px solid var(--teal-900);
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        visibility: hidden;
        display: flex !important; /* Overriding possible display:none */
    }
    .nav-links.active { transform: translateY(0); visibility: visible; }
    
    .nav-links li { width: 100%; text-align: left; }
    .nav-links a { 
        display: block; 
        width: 100%; 
        font-size: 16px; 
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
        color: var(--text-2) !important;
    }
    .btn-nav { background: var(--teal-900) !important; color: white !important; text-align: center !important; margin-top: 10px; }

    /* Grids & Layouts */
    .catalog-layout { grid-template-columns: 1fr !important; }
    .hero-home { height: auto !important; padding: 60px 0 !important; }
    .hero-title { font-size: 32px !important; }
    .results-grid { grid-template-columns: 1fr !important; }
    .footer-grid { grid-template-columns: 1fr !important; gap: 40px; }
    .property-detail-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
    .btn { width: 100%; text-align: center; }
    .property-img { height: 200px; }
}
