/* ========================================
   Header Styles - Radix/shadcn Design System
   Clean, Minimal, Modern
   ======================================== */

/* Main Header */
.site-header,
body.page-template-template-home .site-header,
body.page-template-template-destination-details-php .site-header,
body.error404 .site-header {
    background: hsl(0, 0%, 100%) !important;
    color: hsl(222.2, 84%, 4.9%) !important;
    padding: 0 !important;
    height: 64px !important;
    border-bottom: 1px solid hsl(214.3, 31.8%, 91.4%) !important;
    position: relative !important;
    z-index: 1000 !important;
    transition: box-shadow 0.2s ease !important;
}

/* Sticky Header */
.site-header.sticky,
body.page-template-template-home .site-header.sticky,
body.page-template-template-destination-details-php .site-header.sticky,
body.error404 .site-header.sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: hsl(0, 0%, 100%) !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.sticky-spacer {
    height: 64px !important;
    display: none !important;
}

.site-header.sticky + .sticky-spacer {
    display: block !important;
}

/* Header Container */
.header-container,
body.page-template-template-home .header-container,
body.page-template-template-destination-details-php .header-container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    height: 64px !important;
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
}

/* Site Branding */
.site-branding {
    flex-shrink: 0 !important;
    margin-right: 24px !important;
}

.site-title {
    margin: 0 !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: -0.025em !important;
}

.site-title a,
body.page-template-template-home .site-title a,
body.page-template-template-destination-details-php .site-title a {
    color: hsl(222.2, 84%, 4.9%) !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.site-title a:hover,
body.page-template-template-home .site-title a:hover,
body.page-template-template-destination-details-php .site-title a:hover {
    color: hsl(222.2, 47.4%, 11.2%) !important;
}

.site-description {
    display: none !important;
}

/* Desktop Navigation */
.main-navigation,
.desktop-navigation {
    flex: 1;
    background: transparent;
}

@media (max-width: 767px) {
    .main-navigation,
    .desktop-navigation {
        display: none !important;
    }
}
/* Hide mobile drawer header elements by default (desktop) */
.main-navigation .menu-header,
.main-navigation .menu-title,
.main-navigation .menu-close {
    display: none !important;
}


/* Hide old mobile user section on desktop (legacy) */
.mobile-user-section {
    display: none !important;
}

/* Hide mobile panel elements on desktop only */
@media (min-width: 768px) {
    .mobile-side-panel,
    .mobile-panel-header,
    .mobile-panel-content,
    .mobile-panel-footer,
    .mobile-panel-user-section {
        display: none !important;
    }
}

.primary-menu,
body.page-template-template-home .primary-menu,
body.page-template-template-destination-details-php .primary-menu {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 4px !important;
}

.primary-menu li {
    margin: 0 !important;
}

/* Anchor dropdowns to their parent menu item */
.primary-menu > li {
    position: relative !important;
    overflow: visible !important;
}


.primary-menu a,
body.page-template-template-home .primary-menu a,
body.page-template-template-destination-details-php .primary-menu a {
    color: hsl(215.4, 16.3%, 46.9%) !important;
    text-decoration: none !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    transition: all 0.15s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    border: none !important;
    background: transparent !important;
}

.primary-menu a:hover,
.primary-menu a:focus,
body.page-template-template-home .primary-menu a:hover,
body.page-template-template-home .primary-menu a:focus,
body.page-template-template-destination-details-php .primary-menu a:hover,
body.page-template-template-destination-details-php .primary-menu a:focus {
    color: #f97316 !important;
    background: rgba(249, 115, 22, 0.08) !important;
    border: none !important;
}

.primary-menu a:focus-visible {
    outline: 2px solid #f97316 !important;
    outline-offset: 2px !important;
}

/* Active/Current menu item - Accent color */
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a,
body.page-template-template-home .primary-menu .current-menu-item > a,
body.page-template-template-destination-details-php .primary-menu .current-menu-item > a {
    color: #f97316 !important;
    background: rgba(249, 115, 22, 0.08) !important;
    border: none !important;
    position: relative !important;
}

/* Subtle underline indicator for active item */
.primary-menu .current-menu-item > a::after,
.primary-menu .current_page_item > a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 12px !important;
    right: 12px !important;
    height: 2px !important;
    background: #f97316 !important;
    border-radius: 2px !important;
}

/* Submenus - Modern Dropdown */
.primary-menu .sub-menu {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    background: hsl(0, 0%, 100%) !important;
    border: 1px solid hsl(214.3, 31.8%, 91.4%) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
                0 4px 6px -2px rgba(0, 0, 0, 0.05),
                0 0 0 1px rgba(0, 0, 0, 0.05) !important;
    min-width: 220px !important;
    padding: 8px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-8px) scale(0.95) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 1000 !important;
    list-style: none !important;
    margin: 0 !important;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}

.primary-menu .sub-menu li {
    margin: 0 !important;
}

.primary-menu .sub-menu a {
    display: block !important;
    padding: 10px 12px !important;
    color: hsl(222.2, 84%, 4.9%) !important;
    font-size: 0.875rem !important;
    border-radius: 8px !important;
}

.primary-menu .sub-menu a:hover {
    color: #f97316 !important;
    background: rgba(249, 115, 22, 0.08) !important;
}

.primary-menu .sub-menu a::after {
    display: none !important;
}

/* Header Search */
.header-search,
body.page-template-template-home .header-search,
body.page-template-template-destination-details-php .header-search {
    flex: 1 !important;
    max-width: 400px !important;
    /* margin: 0 16px !important; */
}

.search-toggle,
body.page-template-template-home .search-toggle,
body.page-template-template-destination-details-php .search-toggle {
    background: hsl(0, 0%, 100%) !important;
    border: 1px solid hsl(214.3, 31.8%, 91.4%) !important;
    color: hsl(215.4, 16.3%, 46.9%) !important;
    cursor: pointer !important;
    padding: 0 12px !important;
    height: 40px !important;
    border-radius: 24px !important;
    transition: all 0.15s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
    text-align: left !important;
    font-size: 0.875rem !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.search-toggle:hover,
.search-toggle:focus,
body.page-template-template-home .search-toggle:hover,
body.page-template-template-home .search-toggle:focus,
body.page-template-template-destination-details-php .search-toggle:hover,
body.page-template-template-destination-details-php .search-toggle:focus {
    background: hsl(210, 40%, 98%) !important;
    border-color: #f97316 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1) !important;
}

.search-text {
    flex: 1 !important;
    font-weight: 400 !important;
}

.icon-search {
    flex-shrink: 0 !important;
    opacity: 0.5 !important;
}

/* User Menu */
.header-user-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
    position: relative !important;
}

.user-menu-trigger,
body.page-template-template-home .user-menu-trigger,
body.page-template-template-destination-details-php .user-menu-trigger {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    outline: none !important;
}

.user-avatar,
body.page-template-template-home .user-avatar,
body.page-template-template-destination-details-php .user-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 2px solid #f97316 !important;
    object-fit: cover !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 4px 0 rgba(249, 115, 22, 0.15) !important;
}

.user-menu-trigger:hover .user-avatar,
.user-menu-trigger[aria-expanded="true"] .user-avatar {
    border-color: #ea580c !important;
    box-shadow: 0 4px 8px 0 rgba(249, 115, 22, 0.25),
                0 0 0 4px rgba(249, 115, 22, 0.1) !important;
    transform: scale(1.05) !important;
}

.user-name {
    display: none !important;
}

.icon-chevron {
    display: none !important;
}

/* User Dropdown - Aligned under avatar */
.user-dropdown-menu {
    position: absolute !important;
    top: calc(100% + 12px) !important;
    right: 0 !important;
    background: hsl(0, 0%, 100%) !important;
    border: 1px solid hsl(214.3, 31.8%, 91.4%) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
                0 4px 6px -2px rgba(0, 0, 0, 0.05),
                0 0 0 1px rgba(0, 0, 0, 0.05) !important;
    min-width: 240px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-8px) scale(0.95) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 1000 !important;
    transform-origin: top right !important;
}

.user-menu-trigger[aria-expanded="true"] + .user-dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}

/* Dropdown arrow indicator */
.user-dropdown-menu::before {
    content: '' !important;
    position: absolute !important;
    top: -6px !important;
    right: 12px !important;
    width: 12px !important;
    height: 12px !important;
    background: hsl(0, 0%, 100%) !important;
    border-left: 1px solid hsl(214.3, 31.8%, 91.4%) !important;
    border-top: 1px solid hsl(214.3, 31.8%, 91.4%) !important;
    transform: rotate(45deg) !important;
}

.user-dropdown-header {
    padding: 16px !important;
    border-bottom: 1px solid hsl(214.3, 31.8%, 91.4%) !important;
    background: linear-gradient(to bottom, hsl(0, 0%, 99%), hsl(0, 0%, 100%)) !important;
    border-radius: 12px 12px 0 0 !important;
}

.user-display-name {
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    color: hsl(222.2, 84%, 4.9%) !important;
    margin-bottom: 4px !important;
}

.user-email {
    font-size: 0.8125rem !important;
    color: hsl(215.4, 16.3%, 46.9%) !important;
    letter-spacing: -0.005em !important;
}




.user-dropdown-divider {
    height: 1px !important;
    background: hsl(214.3, 31.8%, 91.4%) !important;
    margin: 0 !important;
}

.user-dropdown-links {
    list-style: none !important;
    margin: 0 !important;
    padding: 4px !important;
}

.user-dropdown-link {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 12px !important;
    color: hsl(222.2, 84%, 4.9%) !important;
    text-decoration: none !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    transition: all 0.15s ease !important;
}

.user-dropdown-link:hover {
    background: rgba(249, 115, 22, 0.08) !important;
    color: #f97316 !important;
}

.user-dropdown-link svg {
    flex-shrink: 0 !important;
    opacity: 0.6 !important;
    transition: opacity 0.15s ease !important;
}

.user-dropdown-link:hover svg {
    opacity: 1 !important;
}

/* Login Button - Accent Color */
.user-login-btn,
body.page-template-template-home .user-login-btn,
body.page-template-template-destination-details-php .user-login-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 24px !important;
    height: 40px !important;
    background: #f97316 !important;
    color: hsl(0, 0%, 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.user-login-btn:hover,
.user-login-btn:focus,
body.page-template-template-home .user-login-btn:hover,
body.page-template-template-home .user-login-btn:focus,
body.page-template-template-destination-details-php .user-login-btn:hover,
body.page-template-template-destination-details-php .user-login-btn:focus {
    background: #ea580c !important;
    box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.3),
                0 2px 4px -1px rgba(249, 115, 22, 0.2) !important;
    transform: translateY(-1px) !important;
}

.user-login-btn svg {
    flex-shrink: 0 !important;
}

/* Mobile Menu Toggle */
.menu-toggle,
body.page-template-template-home .menu-toggle,
body.page-template-template-destination-details-php .menu-toggle {
    display: none !important;
    background: transparent !important;
    border: none !important;
    color: #696969 !important ;
    padding: 8px !important;
    cursor: pointer !important;
    font-size: 1.3rem !important;
    line-height: 1 !important;
    margin-left: auto !important;
}

.menu-toggle:hover,
.menu-toggle:focus,
body.page-template-template-home .menu-toggle:hover,
body.page-template-template-home .menu-toggle:focus,
body.page-template-template-destination-details-php .menu-toggle:hover,
body.page-template-template-destination-details-php .menu-toggle:focus {
    color: #f97316 !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .header-search {
        max-width: 300px !important;
    }
}

@media (max-width: 767px) {
    .header-container {
        padding: 0 16px !important;
        gap: 0 !important;
        justify-content: space-between !important;
        position: relative !important;
    }

    /* Search icon on the left */
    .header-search {
        order: 1 !important;
        flex: 0 0 auto !important;
        max-width: none !important;
        margin: 0 !important;
        width: auto !important;
    }

    .search-toggle,
    body.page-template-template-home .search-toggle,
    body.page-template-template-destination-details-php .search-toggle,
    body.error404 .search-toggle {
        width: 40px !important;
        height: 40px !important;
        padding: 8px !important;
        justify-content: center !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #696969 !important;
        border-radius: 50% !important;
        gap: 0 !important;
    }

    .search-toggle:hover,
    .search-toggle:focus,
    body.page-template-template-home .search-toggle:hover,
    body.page-template-template-home .search-toggle:focus,
    body.page-template-template-destination-details-php .search-toggle:hover,
    body.page-template-template-destination-details-php .search-toggle:focus,
    body.error404 .search-toggle:hover,
    body.error404 .search-toggle:focus {
        background: rgba(249, 115, 22, 0.08) !important;
        border: none !important;
        box-shadow: none !important;
        color: #f97316 !important;
    }

    .search-toggle .search-text,
    .search-toggle > .search-text,
    body.page-template-template-home .search-toggle .search-text,
    body.page-template-template-destination-details-php .search-toggle .search-text,
    body.error404 .search-toggle .search-text,
    .header-search .search-toggle .search-text,
    span.search-text {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        font-size: 0 !important;
        line-height: 0 !important;
    }

    .search-toggle .icon-search,
    body.page-template-template-home .search-toggle .icon-search,
    body.page-template-template-destination-details-php .search-toggle .icon-search,
    body.error404 .search-toggle .icon-search {
        opacity: 1 !important;
        width: 24px !important;
        height: 24px !important;
        flex-shrink: 0 !important;
    }

    .search-toggle .icon-search circle {
        stroke-width: 2.5 !important;
    }

    .search-toggle .icon-search line {
        stroke-width: 2.5 !important;
    }

    /* Logo in the center */
    .site-branding {
        order: 2 !important;
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
        flex: 0 0 auto !important;
    }

    /* Hamburger on the right - only on mobile */
    .menu-toggle,
    body.page-template-template-home .menu-toggle,
    body.page-template-template-destination-details-php .menu-toggle {
        order: 3 !important;
        display: flex !important;
        flex: 0 0 auto !important;
    }

    .main-navigation {
        order: 10 !important;
    }

    /* Hide desktop user menu on mobile */
    .header-user-menu {
        display: none !important;
    }

    /* ========================================
       MOBILE SIDE PANEL - NEW STRUCTURE
       ======================================== */

    /* Mobile side panel container */
    .mobile-side-panel {
        position: fixed;
        top: 0;
        right: -100%;
        width: 340px;
        max-width: 90vw;
        height: 100vh;
        background: #ffffff;
        background-color: #ffffff;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
        padding: 0;
        overflow-y: auto;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9999;
        display: flex;
        flex-direction: column;
    }

    /* Mobile panel open state */
    .mobile-side-panel.panel-open {
        right: 0;
    }

    /* Mobile panel header */
    .mobile-panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 24px;
        background: #ffffff;
        border-bottom: 1px solid hsl(0, 0%, 93%);
    }

    .mobile-panel-title {
        font-size: 18px;
        font-weight: 600;
        color: hsl(0, 0%, 13%);
    }

    .mobile-panel-close {
        background: none;
        border: none;
        color: hsl(0, 0%, 40%);
        cursor: pointer;
        padding: 4px;
        width: auto;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        border-radius: 4px;
    }

    .mobile-panel-close:hover {
        color: hsl(0, 0%, 13%);
        background: hsl(0, 0%, 95%);
    }

    .mobile-panel-close:active {
        transform: scale(0.95);
    }

    .mobile-panel-close svg {
        width: 24px;
        height: 24px;
        stroke-width: 2.5;
    }

    /* Mobile panel content */
    .mobile-panel-content {
        background: #ffffff;
        padding: 0;
        flex: 1;
        overflow-y: auto;
    }

    /* Mobile panel navigation */
    .mobile-panel-nav {
        background: #ffffff;
        padding: 16px 0;
    }

    .mobile-primary-menu {
        list-style: none;
        margin: 0;
        padding: 0;
        background: #ffffff;
    }

    .mobile-primary-menu li {
        margin: 0;
        padding: 0;
        background: #ffffff;
    }

    .mobile-primary-menu a {
        display: block;
        padding: 14px 24px;
        color: hsl(0, 0%, 20%);
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;
        transition: background-color 0.2s ease, color 0.2s ease;
        background: #ffffff;
    }

    .mobile-primary-menu a:hover {
        background: hsl(0, 0%, 97%);
        color: #f8961e;
    }

    .mobile-primary-menu .current-menu-item > a,
    .mobile-primary-menu .current_page_item > a {
        color: #f8961e;
        background: hsl(39, 100%, 97%);
    }

    /* Mobile panel submenus */
    .mobile-primary-menu .sub-menu {
        list-style: none;
        margin: 0;
        padding: 0;
        background: hsl(0, 0%, 98%);
        display: none;
    }

    .mobile-primary-menu li.menu-item-has-children.submenu-open > .sub-menu {
        display: block;
    }

    .mobile-primary-menu .sub-menu li {
        background: hsl(0, 0%, 98%);
    }

    .mobile-primary-menu .sub-menu a {
        padding: 12px 24px 12px 40px;
        font-size: 15px;
        color: hsl(0, 0%, 30%);
        background: hsl(0, 0%, 98%);
    }

    .mobile-primary-menu .sub-menu a:hover {
        background: hsl(0, 0%, 95%);
        color: #f8961e;
    }

    .mobile-primary-menu li.menu-item-has-children > a {
        position: relative;
        padding-right: 48px;
    }

    .mobile-primary-menu li.menu-item-has-children > a::after {
        content: '';
        position: absolute;
        right: 24px;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 6px solid currentColor;
        transition: transform 0.2s ease;
    }

    .mobile-primary-menu li.menu-item-has-children.submenu-open > a::after {
        transform: translateY(-50%) rotate(180deg);
    }

    /* Mobile panel footer (at bottom) */
    .mobile-panel-footer {
        margin-top: auto;
        background: hsl(0, 0%, 99%);
        border-top: 1px solid hsl(0, 0%, 93%);
    }

    /* Mobile panel user section */
    .mobile-panel-user-section {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 20px 24px;
        background: hsl(0, 0%, 99%);
    }

    .mobile-panel-user-avatar {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        object-fit: cover;
    }

    .mobile-panel-user-info {
        flex: 1;
        min-width: 0;
    }

    .mobile-panel-user-name {
        font-size: 15px;
        font-weight: 600;
        color: hsl(0, 0%, 13%);
        margin-bottom: 2px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-panel-user-email {
        font-size: 13px;
        color: hsl(0, 0%, 50%);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-panel-logout-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background: transparent;
        color: hsl(0, 0%, 50%);
        transition: background-color 0.2s ease, color 0.2s ease;
        text-decoration: none;
    }

    .mobile-panel-logout-btn:hover {
        background: hsl(0, 0%, 95%);
        color: hsl(0, 0%, 13%);
    }

    .mobile-panel-login-section {
        padding: 24px;
    }

    .mobile-panel-login-btn {
        width: 100%;
        padding: 14px 24px;
        background: #f8961e;
        color: #ffffff;
        border: none;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    .mobile-panel-login-btn:hover {
        background: #e07d0a;
    }

    /* Mobile panel overlay */
    body.mobile-panel-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 900;
        opacity: 1;
        transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Mobile menu overlay */
    body::before {
        content: '' !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0, 0, 0, 0.6) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 900 !important;
        pointer-events: none !important;
    }

    body.mobile-menu-open::before {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* Mobile menu header with close button */
    .main-navigation .menu-header {
        display: none !important;
    }

    .main-navigation .menu-title {
        display: none !important;
    }

    .main-navigation .menu-close {
        display: none !important;
    }

    @media (max-width: 767px) {
        .main-navigation .menu-header {
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
            padding: 20px 24px !important;
            border-bottom: 1px solid hsl(214.3, 31.8%, 91.4%) !important;
            background: hsl(0, 0%, 100%) !important;
            min-height: 64px !important;
        }

        .main-navigation .menu-title {
            display: block !important;
            font-size: 1.125rem !important;
            font-weight: 600 !important;
            color: hsl(222.2, 84%, 4.9%) !important;
            letter-spacing: -0.025em !important;
            line-height: 1 !important;
        }

        .main-navigation .menu-close {
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            width: 36px !important;
            height: 36px !important;
            background: transparent !important;
            border: none !important;
            border-radius: 8px !important;
            color: hsl(215.4, 16.3%, 46.9%) !important;
            cursor: pointer !important;
            transition: all 0.15s ease !important;
            font-size: 28px !important;
            line-height: 1 !important;
            padding: 0 !important;
            box-shadow: none !important;
        }

        .main-navigation .menu-close:hover,
        .main-navigation .menu-close:focus {
            background: hsl(210, 40%, 96.1%) !important;
            color: #f97316 !important;
            box-shadow: none !important;
        }
    }

    /* Menu content wrapper */
    .main-navigation .menu-content {
        display: flex !important;
        flex-direction: column !important;
        height: calc(100vh - 64px) !important;
        padding: 0 !important;
    }

    .main-navigation .menu-nav-wrapper {
        flex: 1 !important;
        overflow-y: auto !important;
        padding: 24px !important;
    }

    .primary-menu {
        flex-direction: column !important;
        gap: 2px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .primary-menu > li {
        border-radius: 8px !important;
        overflow: visible !important;
    }

    .primary-menu > li > a {
        padding: 16px 16px !important;
        font-size: 1rem !important;
        font-weight: 500 !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    /* Remove border/background from parent menu item when submenu is open */
    .primary-menu li.menu-item-has-children.open {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    .primary-menu li.menu-item-has-children.open > a,
    .primary-menu li.menu-item-has-children.open > a:hover,
    .primary-menu li.menu-item-has-children.open > a:focus {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
        color: hsl(222.2, 84%, 4.9%) !important;
    }

    /* Submenus in mobile - Accordion style */
    .primary-menu .sub-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 8px 0 8px 16px !important;
        background: hsl(0, 0%, 98%) !important;
        display: none !important;
    }

    .primary-menu li.menu-item-has-children.open > .sub-menu {
        display: block !important;
    }

    .primary-menu .sub-menu li {
        border-radius: 6px !important;
        overflow: hidden !important;
    }

    .primary-menu .sub-menu a {
        padding: 12px 16px !important;
        font-size: 0.9375rem !important;
        font-weight: 400 !important;
        color: hsl(215.4, 16.3%, 46.9%) !important;
        border-radius: 6px !important;
    }

    .primary-menu .sub-menu a:hover {
        color: #f97316 !important;
        background: rgba(249, 115, 22, 0.08) !important;
    }

    /* Submenu indicator - chevron */
    .primary-menu li.menu-item-has-children > a::after {
        content: '' !important;
        width: 20px !important;
        height: 20px !important;
        flex-shrink: 0 !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
        background-size: 20px 20px !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        transition: transform 0.2s ease !important;
        margin-left: 8px !important;
    }

    .primary-menu li.menu-item-has-children.open > a::after {
        transform: rotate(180deg) !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23f97316' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    }

    /* User section at bottom - footer style */
    .mobile-user-section {
        margin: 0 !important;
        padding: 20px !important; /* uniform padding */
        border-top: 1px solid hsl(214.3, 31.8%, 91.4%) !important;
        background: hsl(0, 0%, 99%) !important;
        flex-shrink: 0 !important;
    }

    /* Show user menu in mobile navigation */
    .main-navigation .mobile-user-section {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .main-navigation .mobile-user-section .user-avatar {
        width: 44px !important;
        height: 44px !important;
        border: 2px solid #f97316 !important;
        box-shadow: 0 2px 4px 0 rgba(249, 115, 22, 0.15) !important;
        flex-shrink: 0 !important;
    }

    .main-navigation .mobile-user-section .user-info {
        flex: 1 !important;
        min-width: 0 !important;
    }

    .main-navigation .mobile-user-section .user-display-name {
        font-size: 0.9375rem !important;
        font-weight: 600 !important;
        color: hsl(222.2, 84%, 4.9%) !important;
        margin-bottom: 2px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .main-navigation .mobile-user-section .user-email {
        font-size: 0.8125rem !important;
        color: hsl(215.4, 16.3%, 46.9%) !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .mobile-logout-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        background: hsl(0, 0%, 100%) !important;
        border: 1px solid hsl(214.3, 31.8%, 91.4%) !important;
        border-radius: 8px !important;
        color: hsl(215.4, 16.3%, 46.9%) !important;
        transition: all 0.15s ease !important;
        text-decoration: none !important;
        flex-shrink: 0 !important;
    }

    .mobile-logout-btn:hover {
        background: #fee2e2 !important;
        border-color: #ef4444 !important;
        color: #ef4444 !important;
    }

    .mobile-login-section {
        justify-content: center !important;
        padding: 20px 20px 32px 20px !important; 
        border: none !important;
        background: hsl(0, 0%, 99%) !important;
        border-top: 1px solid hsl(214.3, 31.8%, 91.4%) !important;
        min-height: 104px !important; /* Ensure enough height for the button */
    }

    .mobile-login-btn {
        width: 100% !important;
        justify-content: center !important;
        height: 44px !important;
        font-size: 0.9375rem !important;
        font-weight: 500 !important;
        gap: 0 !important; /* no icon, no gap needed */
        margin: 0 !important; /* ensure no extra margin */
    }
}
