:root {
    --primary-color: #0e4e6c;
    --primary-hover: #0a3d54;
    --secondary-color: #b8860b;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #f4f7f6;
    --white: #ffffff;
    --border-color: #ddd;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Navbar */
.navbar {
    background-color: var(--white);
    min-height: 70px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 15px;
}

.logo img {
    height: 90px;
    width: auto;
    display: block;
}

@media (min-width: 768px) {
    .logo img {
        height: 100px;
    }

    .navbar {
        min-height: 110px;
    }
}

.nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--white);
    flex-direction: column;
    padding: 30px 15px;
    transition: var(--transition);
    z-index: 999;
    display: flex;
    gap: 20px;
    box-shadow: 10px 0 15px rgba(0, 0, 0, 0.1);
}

.nav-links.active {
    left: 0;
}

.nav-links a {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--secondary-color);
    width: 100%;
    display: block;
}

.nav-search {
    display: none;
}

.nav-buttons {
    display: none;
}

.nav-links .nav-search-mobile {
    display: block;
    margin-bottom: 20px;
}

.menu-toggle {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }

    .nav-links {
        position: static;
        height: auto;
        width: auto;
        flex-direction: row;
        padding: 0;
        box-shadow: none;
        gap: 25px;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .nav-search {
        display: block;
        margin: 0 20px;
        max-width: 200px;
    }

    .nav-search form {
        display: flex;
        background: #f1f5f9;
        border-radius: 50px;
        padding: 5px 15px;
        border: 1px solid #e2e8f0;
    }

    .nav-search input {
        border: none;
        background: transparent;
        padding: 5px;
        outline: none;
        width: 100%;
    }

    .nav-search button {
        background: transparent;
        border: none;
        color: var(--primary-color);
    }

    .nav-buttons {
        display: flex;
        gap: 10px;
    }
}

/* Hero Section */
.hero {
    min-height: 60vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/banners/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 60px 0;
}

.hero-content {
    max-width: 800px;
    padding: 0 15px;
}


.hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--white);
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .hero {
        min-height: 80vh;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }
}

/* Search Bar (Main) */
.search-container {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-top: -30px;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (min-width: 768px) {
    .search-container {
        padding: 30px;
        margin-top: -60px;
    }

    .search-form {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        align-items: flex-end;
    }
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.85rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
}

/* Section Styling */
.section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h2 {
    margin-bottom: 10px;
}

.section-title .underline {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

@media (min-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .section-title {
        margin-bottom: 50px;
    }
}

/* Property Grid */
.property-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .property-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .property-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.property-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.property-image {
    position: relative;
    height: 200px;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.property-price {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--secondary-color);
    color: var(--white);
    padding: 10px 20px;
    border-top-left-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
}

.property-details {
    padding: 20px;
}


.property-details h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    height: 3.2em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.property-location {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-bottom: 12px;
}


/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-info .logo img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Properties Layout (Sidebar) */
.properties-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.main-title-box {
    text-align: center;
    margin-bottom: 30px;
}

.main-title-box .underline {
    margin: 0 auto;
}

@media (min-width: 768px) {
    .properties-layout {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 40px !important;
    }

    .main-title-box {
        text-align: left !important;
        margin-bottom: 40px;
    }

    .main-title-box .underline {
        margin: 0 !important;
    }

    .sidebar-wrapper {
        flex: 0 0 320px !important;
        position: sticky;
        top: 20px;
        margin-top: 0;
    }

    .properties-main {
        flex: 1 !important;
        min-width: 0;
        /* Prevents overflow in flex items */
    }
}




/* Sidebar Styling (Reference Image Match) */
.filter-sidebar {
    background: #fcfaf0;
    /* Creamy background */
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: none;
    margin-bottom: 30px;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 30px;
}

.sidebar-main-title {
    font-size: 1.4rem;
    color: #8b6508;
    /* Dark gold/bronze color */
    margin-bottom: 10px;
    font-weight: 700;
}

.sidebar-underline {
    width: 40px;
    height: 3px;
    background: #ffcc00;
    margin: 0 auto;
}

.filter-form .form-group label {
    font-weight: 500;
    color: #666;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.filter-form input,
.filter-form select {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 30px;
    /* Fully rounded inputs */
    padding: 12px 20px;
    font-size: 0.9rem;
}

.btn-gold {
    background: #facd1e;
    color: #333;
    width: 100%;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    display: block;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-gold:hover {
    background: #e6b800;
}

.filter-btn-container {
    margin-top: 10px;
}

/* Property Card Match */
.property-card {
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}


/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
        gap: 50px;
    }
}

.map-section {
    height: 300px;
    width: 100%;
}

@media (min-width: 768px) {
    .map-section {
        height: 400px;
    }
}