/* ######### HEADER STYLE ######### */

/* 1. CORE HEADER & UTILITIES */
.main-header {
    background: #09121c;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.text-success { color: #2ecc71 !important; }
.bg-soft-blue { background-color: #f8fbff; }

/* 2. MEGA MENU (For Buyers) - FIXED TO MATCH YOUR IMAGE */
@media (min-width: 992px) {
    .mega-dropdown { position: static !important; }
    .mega-dropdown:hover .mega-menu {
        display: block !important;
        opacity: 1;
        visibility: visible;
    }
}
.mega-menu {
    display: none;
    width: 100%;
    left: 0 !important;
    right: 0 !important;
    padding-top: 15px !important; /* Bridge */
    margin-top: -10px; 
    border: none;
    background: transparent; 
    z-index: 1050;
}
.mega-menu-content {
    background: white;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    margin-left: auto; /* Aligns the box to the right side of the container */
    margin-right: 5%;   /* Matches the padding of your logo/icons */
    max-width: 900px;  /* Slightly tighter for a cleaner look */
}
.hover-link:hover {
    color: #0061ff !important;
    text-decoration: underline !important;
}

/* 3. CONTACT DROPDOWN */
@media (min-width: 992px) {
    .contact-dropdown:hover .contact-mega-box {
        display: block; opacity: 1; visibility: visible;
    }
}
.contact-mega-box {
    width: 320px;
    top: 100%;
    right: 0;
    left: auto !important;
    padding-top: 25px !important; 
    margin-top: -15px; 
    border: none;
    background: transparent;
}
.contact-box-content {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* 4. SIDEBAR (OFFCANVAS) - CLEAN ALIGNMENT */
.sidebar-custom { width: 320px !important; }
.sidebar-nav-list { margin: 0; padding: 0; }
.sidebar-nav-list li { border-bottom: 1px solid #f1f3f5; }
.sidebar-nav-list li a {
    display: flex;
    align-items: center;
    padding: 15px 24px;
    color: #4a5568;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: 0.2s;
}
.sidebar-nav-list li a:hover {
    background: #f8fbff;
    color: #0061ff;
    padding-left: 30px;
}
.sidebar-nav-list li a i {
    width: 25px; /* Fixed width ensures perfect vertical text alignment */
    font-size: 18px;
    margin-right: 15px;
    color: #94a3b8;
}
.sidebar-label {
    padding: 20px 24px 10px;
    font-size: 11px;
    font-weight: 800;
    color: #cbd5e0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Layout Alignment */
.navbar-nav-custom { margin-left: auto !important; margin-right: 1rem !important; }


/* ######### HERO SECTION STYLE ######### */

/* --- 1. HERO & SLIDER --- */
.hero-container {
    height: 350px;
    position: relative;
    overflow: visible; /* CRITICAL: Allows search bar to overlap bottom */
}

.hero-slide-img {
    height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
}

/* --- 2. THE SEARCH WRAPPER --- */
.hero-overlay-content {
    position: absolute;
    bottom: -75px; /* Pushes box half-off the slider */
    left: 0;
    right: 0;
    z-index: 100;
}

.search-wrapper-slim {
    max-width: 750px; /* Slimmer width as requested */
    margin: 0 auto;
}

/* --- 3. THE UNIFIED WHITE BOX (99acres Fix) --- */
.main-search-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    overflow: hidden; /* Keeps tabs and inputs perfectly aligned */
}

/* --- 4. TABS (Solid White Row) --- */
.search-type-tabs {
    background: white; 
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 0 15px;
}

.search-type-tabs .nav-link {
    border: none !important;
    color: #4a5568 !important;
    font-size: 14px;
    font-weight: 600;
    padding: 16px 20px;
    background: none !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0;
    transition: 0.2s;
}

.search-type-tabs .nav-link.active {
    color: #0078d4 !important;
    border-bottom: 3px solid #0078d4 !important;
}

/* --- 5. SEARCH INPUT AREA --- */
.search-inner-area {
    padding: 15px 20px 20px 20px;
}

.search-input-group {
    background-color: #f8f9fa; /* Subtle gray background like 99acres */
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: 0.3s;
}

.search-input-group:focus-within {
    border-color: #0078d4;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.1);
}

.search-inner-area .form-control {
    background: transparent;
    height: 54px;
    font-size: 16px;
}

.search-inner-area .form-control:focus {
    box-shadow: none;
}

.search-btn-main {
    background-color: #0078d4;
    border: none;
    height: 54px;
    padding: 0 40px;
    font-weight: 700;
    border-radius: 6px;
    letter-spacing: 0.5px;
    transition: 0.2s;
}

.search-btn-main:hover {
    background-color: #005a9e;
    transform: translateY(-1px);
}

/* --- 6. MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-container, .hero-slide-img { height: 320px; }
    .hero-overlay-content { bottom: -80px; }
    .search-wrapper-slim { max-width: 92%; }
    .search-type-tabs .nav-link { padding: 12px 10px; font-size: 12px; }
}

/* ######### Recommended Properties ######### */
.property-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
}
.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* ######### Nearby Localities ######### */
.popular-localities-grid {
    position: relative;
}

.locality-card {
    transition: 0.3s;
}

.locality-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.locality-icon-wrapper {
    transition: 0.3s;
}

.locality-card:hover .locality-icon-wrapper {
    background-color: #0078d4 !important; /* Changes icon background on hover */
}

.locality-card:hover .locality-icon-wrapper i {
    color: white !important; /* Changes icon color on hover */
}

/* Footer styling */
.locality-card-footer a {
    font-size: 14px;
    font-weight: 600;
}

.locality-card-footer a:hover {
    background-color: #f8fbff; /* Subtle background color on footer hover */
}


/* ######### Highlighted Properties ######### */

.bg-gradient-dark {
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.card h5:hover {
    color: #0078d4 !important;
    cursor: pointer;
}