/* Header */
header {
    background: var(--white);
    border-bottom: 1px solid #eee;
}

.top-bar {
    background: #1a1a1a;
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: none;
}

.top-bar a {
    color: #eee;
    transition: 0.3s;
}

.top-bar a:hover {
    color: var(--theme-red);
}

.logo-area {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

/* Nav */
nav {
    background: var(--white);
    border-top: 1px solid #eee;
    border-bottom: 3px solid var(--primary);
    position: relative;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Top Bar Premium Styles */
.top-bar-left span {
    font-size: 13px;
    font-weight: 500;
}

.top-bar-right .sep {
    color: rgba(255,255,255,0.2);
}

.top-nav-link {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-nav-link:hover {
    color: var(--theme-red);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    color: #fff;
    font-size: 14px;
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.dark-mode-toggle {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.dark-mode-toggle:hover {
    background: var(--primary);
}

/* Logo Area & Search Box */
.logo-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
}

.search-box-desktop form {
    position: relative;
    width: 320px;
}

.search-box-desktop input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 14px;
    transition: 0.3s;
    font-family: var(--font-bn);
}

.search-box-desktop input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 80, 0, 0.1);
    outline: none;
}

.search-box-desktop button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.search-box-desktop button:hover {
    background: #003800;
}

/* Sticky Nav Enhancement */
nav.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Map Header Custom Styles */
.map_inner_block {
    margin-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

.catTitle {
    font-size: 18px;
    font-weight: 800;
    color: #222;
    margin: 0;
    position: relative;
    display: inline-block;
}

.catTitle .liner {
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
}

.premium-map-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid #edf2f7;
}

/* Add padding to body only on mobile/sticky */
@media (max-width: 991px) {
    body {
        padding-top: 50px;
    }
    nav {
        position: fixed;
        top: 0;
    }
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.sticky-logo {
    display: none; /* Hidden by default */
    margin-right: 20px;
    padding: 5px 0;
}

.sticky-logo img {
    height: 38px;
    width: auto;
    display: block;
}

nav.is-sticky .sticky-logo {
    display: flex !important;
    align-items: center !important;
    align-self: center !important;
    margin-right: 20px;
    padding: 0;
}

nav.is-sticky {
    padding: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    overflow: visible;
    margin: 0;
    padding: 0;
}

nav ul li {
    position: relative;
}

nav ul li a {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    font-weight: 600;
    color: var(--secondary);
    font-size: 16px; /* Slightly smaller to fit more */
    white-space: nowrap; /* Prevent wrapping */
}

nav.is-sticky ul li a {
    padding: 12px 10px;
    font-size: 15px;
}

nav ul li a:hover, nav ul li.active a {
    color: var(--primary);
}

/* Mobile Responsive Header */
@media (max-width: 991px) {
    .logo-area {
        display: none !important;
    }
    
    .search-box {
        display: none !important;
    }

    .top-bar {
        display: none !important;
    }

    .nav-container {
        padding: 5px 15px;
    }
    
    .mobile-menu-toggle {
        display: block;
        order: 1;
        font-size: 22px;
    }

    .sticky-logo {
        order: 2;
        margin: 0 auto;
        display: block !important;
    }

    .mobile-search-icon {
        display: block;
        order: 3;
        font-size: 20px;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        padding: 15px 0;
        max-height: 80vh;
        overflow-y: auto;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li a {
        padding: 12px 20px;
        border-bottom: 1px solid #f8fafc;
        width: 100%;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        background: #f8fafc;
        padding-left: 20px;
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }
}

/* Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1001;
    top: 100%;
    left: 0;
    border-top: 3px solid #005000;
    border-radius: 0 0 8px 8px;
    padding: 10px 0;
}

.dropdown-content a {
    color: var(--secondary) !important;
    padding: 12px 20px !important;
    display: block !important;
    border-bottom: 1px solid #f9f9f9;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-transform: none;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f8f8f8;
    color: var(--primary) !important;
    padding-left: 25px !important; /* Subtle slide effect */
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* =========================================
   CLASSIC NATIONAL DROPDOWN DESIGN
   ========================================= */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 230px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 1001;
    top: 100%;
    left: 0;
    border: 1px solid #ebebeb;
    border-top: 3px solid #005000;
    border-radius: 0;
    padding: 0;
}

@keyframes fadeInDropdown {
    0% { opacity: 0; transform: translateY(5px); }
    100% { opacity: 1; transform: translateY(0); }
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInDropdown 0.2s ease-out forwards;
}

.dropdown-content a {
    color: #222222 !important;
    padding: 12px 20px !important;
    display: block !important;
    border-bottom: 1px solid #f1f1f1 !important;
    border-left: none !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    transition: background-color 0.2s, color 0.2s !important;
    background: transparent !important;
}

.dropdown-content a:last-child {
    border-bottom: none !important;
}

.dropdown-content a:hover {
    background-color: #f8f9fa !important;
    color: #e00000 !important;
}

/* Dark mode adjustments for submenu */
.dark-mode .dropdown-content {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-top: 3px solid #005000;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.dark-mode .dropdown-content a {
    color: #e2e8f0 !important;
    border-bottom: 1px solid #2a2a2a !important;
}
.dark-mode .dropdown-content a:hover {
    background-color: #222 !important;
    color: #ff6b6b !important;
}

/* Mobile Dropdown Reset */
@media (max-width: 991px) {
    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        background: #f8fafc;
        padding: 0;
        animation: none;
        border-top: none;
    }
    .dark-mode .dropdown-content {
        background-color: #111;
    }
    .dropdown-content a {
        padding: 12px 20px 12px 30px !important;
    }
    .dropdown-content a:hover {
        background-color: transparent !important;
    }
}
/* =========================================
   STICKY LOGO - DESKTOP vs MOBILE
   ========================================= */

/* Desktop: show dark logo, hide white logo */
.logo-desktop { display: block; }
.logo-mobile  { display: none; }

/* Mobile: show white logo, hide dark logo */
@media (max-width: 991px) {
    .logo-desktop { display: none !important; }
    .logo-mobile  { display: block !important; }
}
nav.is-sticky .sticky-logo img {
        height: 42px !important;
        width: auto !important;
        display: block !important;
        object-fit: contain !important;
    }

    /* Also ensure nav-container vertically centers everything */
    #main-nav .nav-container {
        display: flex !important;
        align-items: center !important;
        min-height: 56px !important;
    }
}
nav.is-sticky .sticky-logo {
        display: flex !important;
        align-items: center !important;
        height: 56px !important;
        padding: 0 !important;
        margin: 0 !important;
        margin-right: 20px !important;
        flex-shrink: 0 !important;
    }

    nav.is-sticky .sticky-logo a {
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
    }

    nav.is-sticky .sticky-logo img {
        height: 38px !important;
        width: auto !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        vertical-align: middle !important;
    }
}
/* Desktop Sticky Logo - Final */
nav.is-sticky .sticky-logo {
    display: flex !important;
    align-items: center !important;
    align-self: center !important;
    height: 56px !important;
    margin-right: 20px !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}
nav.is-sticky .sticky-logo a {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}
nav.is-sticky .sticky-logo img {
    height: 38px !important;
    width: auto !important;
    display: block !important;
}
