﻿
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1e2a3e;
    background: #ffffff;
}

:root {
    --primary: #c49a6c;
    --primary-dark: #a77c4e;
    --primary-light: #e8d5c0;
    --secondary: #2c3e50;
    --light-bg: #faf8f5;
    --shadow-sm: 0 10px 30px -10px rgba(0,0,0,0.05);
    --shadow-md: 0 20px 35px -12px rgba(0,0,0,0.08);
    --shadow-lg: 0 25px 40px -12px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
}

/* Logo Styling */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-emblem {
    background: linear-gradient(135deg, #c49a6c 0%, #e0b182 100%);
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .logo-emblem i {
        font-size: 28px;
        color: white;
    }

.logo-main {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    /*color: #1e2a3e;*/
    color: #9A7741;
    margin: 0;
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    font-weight: 600;
    /*color: var(--primary);*/
    color: #9A7741;
    text-transform: uppercase;
}

.logo-tag {
    font-size: 0.65rem;
    font-weight: 400;
    color: #7a8b9e;
}

/* Top Header */
.top-header {
    background: #1e2a3e;
    color: #cddfe7;
    font-size: 0.85rem;
    padding: 10px 0;
}

    .top-header a {
        color: #cddfe7;
        transition: var(--transition);
        text-decoration: none;
    }

        .top-header a:hover {
            color: var(--primary);
        }

.social-icons a {
    background: rgba(255,255,255,0.1);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 6px;
    transition: var(--transition);
}

    .social-icons a:hover {
        background: var(--primary);
        color: white;
    }

.auth-links a {
    margin-left: 20px;
    font-weight: 500;
}

/* Main Header */
.main-header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: #1e2a3e;
    padding: 0.5rem 0.9rem;
    transition: var(--transition);
    font-size: 0.95rem;
}

    .navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
        color: var(--primary);
    }

.btn-gold {
    background: var(--primary);
    border: none;
    padding: 8px 24px;
    font-weight: 600;
    color: white;
    border-radius: 40px;
    transition: var(--transition);
}

    .btn-gold:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
    }

/* ========= IMPROVED NESTED DROPDOWN STYLES ========= */
/* Base dropdown menu */
.dropdown-menu {
    border-radius: 16px;
    border: none;
    box-shadow: var(--shadow-md);
    padding: 12px 0;
    min-width: 240px;
    margin-top: 10px;
}

.dropdown-item {
    padding: 8px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .dropdown-item:hover {
        background-color: var(--light-bg);
        color: var(--primary);
        padding-left: 28px;
    }

/* Nested submenu container */
.dropdown-submenu {
    position: relative;
}

    /* Nested menu - appears to the right by default */
    .dropdown-submenu .dropdown-menu {
        position: absolute;
        top: 0;
        left: 100%;
        margin-top: -8px;
        margin-left: 6px;
        display: none;
        min-width: 210px;
        border-radius: 16px;
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 0.2s ease, transform 0.2s ease;
        pointer-events: none;
    }

    /* Show nested menu on hover (desktop) */
    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* Right edge detection: shift left if near viewport edge */
    .dropdown-submenu .dropdown-menu.dropdown-menu-end {
        left: auto;
        right: 100%;
        margin-left: 0;
        margin-right: 6px;
    }

/* Submenu toggle arrow using pseudo-element + FontAwesome */
.dropdown-toggle-submenu::after {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.75rem;
    margin-left: 10px;
    color: #9aa9b9;
    transition: var(--transition);
}

.dropdown-submenu:hover > .dropdown-toggle-submenu::after {
    color: var(--primary);
    transform: translateX(2px);
}

/* For root dropdown chevron (Bootstrap default modified) */
.dropdown-toggle::after {
    transition: transform 0.2s ease;
}

.dropdown.show > .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Mobile styles: nested menus become vertical accordion */
@media (max-width: 991.98px) {
    .dropdown-submenu .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0;
        margin-left: 20px;
        background-color: #f9f9fc;
        box-shadow: none;
        border-left: 2px solid var(--primary-light);
        border-radius: 12px;
        opacity: 1;
        transform: none;
        display: none;
        padding: 8px 0;
    }

    .dropdown-submenu.show-mobile > .dropdown-menu {
        display: block !important;
    }

    .dropdown-toggle-submenu::after {
        content: "\f078";
        font-size: 0.7rem;
        transition: transform 0.2s;
    }

    .dropdown-submenu.show-mobile > .dropdown-toggle-submenu::after {
        transform: rotate(180deg);
    }

    .dropdown-submenu .dropdown-item {
        padding-left: 40px;
    }

    .navbar-nav .dropdown-menu {
        border: none;
        box-shadow: none;
        background: #ffffff;
    }

    .btn-gold.ms-lg-3 {
        margin-top: 12px;
        display: inline-block;
        width: auto;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1e2a3e 0%, #2c3e50 100%);
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('https://images.pexels.com/photos/106399/pexels-photo-106399.jpeg?auto=compress&cs=tinysrgb&w=1600') center/cover no-repeat;
        opacity: 0.12;
        pointer-events: none;
    }

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

    .hero-content h1 {
        font-size: 3.2rem;
        font-weight: 800;
        margin-bottom: 1rem;
    }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.stat-badge {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
}

/* Search Card */
.search-card {
    background: white;
    border-radius: 28px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: var(--shadow-lg);
}

.search-tabs {
    border-bottom: 2px solid #eee;
    margin-bottom: 25px;
}

    .search-tabs .nav-link {
        font-weight: 700;
        color: #6c757d;
        border: none;
        padding: 12px 14px;
        border-radius: 0;
        margin-right: 10px;
    }

        .search-tabs .nav-link.active {
            color: var(--primary);
            background: transparent;
            border-bottom: 3px solid var(--primary);
        }

.search-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.search-input-group {
    flex: 1;
    min-width: 180px;
}

    .search-input-group label {
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        color: #6c757d;
        margin-bottom: 5px;
        display: block;
    }

.form-control, .form-select {
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
    font-size: 0.9rem;
}

.search-btn {
    background: var(--primary);
    border: none;
    border-radius: 16px;
    padding: 12px 32px;
    font-weight: 600;
    color: white;
    transition: var(--transition);
}

    .search-btn:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
    }

/* Localities */
.localities-section {
    padding: 60px 0;
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
}

    .section-title:after {
        content: '';
        position: absolute;
        bottom: -12px;
        left: 50%;
        transform: translateX(-50%);
        width: 70px;
        height: 3px;
        background: var(--primary);
    }

.locality-chip {
    display: inline-flex;
    align-items: center;
    background: white;
    padding: 12px 24px;
    border-radius: 50px;
    margin: 6px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
    color: #1e2a3e;
    font-weight: 500;
}

    .locality-chip:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md);
        color: var(--primary);
    }

    .locality-chip i {
        margin-right: 8px;
        color: var(--primary);
    }

/* Property Cards */
.property-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin-bottom: 30px;
}

    .property-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-md);
    }

.property-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
}

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.property-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.property-title {
    font-weight: 700;
    margin: 10px 0 5px;
    font-size: 1.1rem;
}

.property-location {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.property-features {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

    .property-features span {
        font-size: 0.8rem;
        color: #6c757d;
    }

    .property-features i {
        color: var(--primary);
        margin-right: 5px;
    }

/* Newsletter */
.newsletter-section {
    background: #1e2a3e;
    padding: 60px 0;
    color: white;
}

.newsletter-input {
    border-radius: 50px;
    padding: 14px 20px;
    border: none;
    width: 100%;
}

.btn-newsletter {
    background: var(--primary);
    border-radius: 50px;
    padding: 14px 28px;
    color: white;
    font-weight: 600;
    border: none;
    width: 100%;
}

/* Footer */
footer {
    background: #11181f;
    color: #cbd5e1;
    padding: 60px 0 30px;
}

    footer h5 {
        color: white;
        font-weight: 600;
        margin-bottom: 20px;
    }

    footer a {
        color: #b9c7d4;
        text-decoration: none;
        transition: var(--transition);
    }

        footer a:hover {
            color: var(--primary);
            padding-left: 4px;
        }

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
    z-index: 99;
    text-decoration: none;
}

    .back-to-top:hover {
        background: var(--primary-dark);
        transform: translateY(-4px);
    }

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .search-form-row {
        flex-direction: column;
    }

    .search-input-group {
        width: 100%;
    }
}
/* Testimonials Section */
.localities-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa, #eef4ff);
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 2.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 50px;
    position: relative;
}

    .section-title::after {
        content: '';
        width: 80px;
        height: 4px;
        background: linear-gradient(90deg, #0d6efd, #ffc107);
        display: block;
        margin: 12px auto 0;
        border-radius: 50px;
    }

/* Testimonial Card */
.testimonial-card {
    background: rgba(255,255,255,0.9);
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    position: relative;
    transition: all .35s ease;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    backdrop-filter: blur(10px);
}

    .testimonial-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(13,110,253,.15);
    }

    /* Quote Icon */
    .testimonial-card::before {
        content: "\201C";
        position: absolute;
        top: 10px;
        right: 20px;
        font-size: 80px;
        color: rgba(13,110,253,.08);
        font-family: Georgia, serif;
        line-height: 1;
    }

/* User Image */
.testimonial-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 15px;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,.12);
}

/* User Name */
.testimonial-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.testimonial-card .text-muted {
    font-size: 14px;
    color: #6c757d !important;
}

/* Review Text */
.testimonial-card p:last-child {
    margin-bottom: 0;
    margin-top: 15px;
    color: #495057;
    line-height: 1.8;
    font-size: 15px;
}

/* Star Rating */
.rating-stars {
    color: #ffc107;
    margin-bottom: 12px;
    font-size: 15px;
}

/* Mobile */
@media (max-width:768px) {

    .localities-section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .testimonial-card {
        padding: 25px;
    }
}

