/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(47, 45, 65, 0.95);
    z-index: 10000; /* Increased to ensure menu appears above all other content */
    display: none;
    overflow-y: auto;
    overflow-x: hidden;
}

.mobile-menu-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

/* Ensure nav elements are properly visible and positioned */
.mobile-menu-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: rgb(255, 255, 255);
    z-index: 100;
    overflow: hidden !important;
    width: 100%;
}

/* Mobile menu header - MidnightBrunch specific */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    background-color: rgb(255, 255, 255);
}

.mobile-menu-logo {
    width: 128px;
    height: 64px;
}

.mobile-menu-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mobile-menu-close {
    padding: 8px;
    background: none;
    border: none;
    border-radius: 50%;
    transition: background-color 0.3s;
    cursor: pointer;
}

.mobile-menu-close:hover {
    background-color: #f3f4f6;
}

/* Mobile menu items container - MidnightBrunch specific */
.mobile-menu-items {
    flex: 1;
    padding: 0 24px;
    overflow-y: auto;
    overflow-x: hidden;
    display: block;
    min-height: 0;
    scrollbar-gutter: stable;
    background-color: rgb(255, 255, 255);
}

/* Mobile nav container */
.mobile-nav {
    display: block !important;
    min-height: 100%;
    position: unset;
    width: 100%;
    overflow: visible;
    background-color: rgb(255, 255, 255);
}

/* Mobile nav - Level 1 structure (adopted from MobileNav - simple vertical list) */
.mobile-menu-items .nav-lvl1 {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: rgb(255, 255, 255);
}

.mobile-menu-items .nav-lvl1 > .nav-item {
    display: block;
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    background-color: rgb(255, 255, 255);
    text-align: left;
}

.mobile-menu-items .nav-lvl1 > .nav-item:last-child {
    border-bottom: none;
}

.mobile-menu-items .nav-lvl1 > .nav-item > .nav-link {
    display: flex;
    color: rgb(31, 41, 55);
    font-family: Futura, "Futura PT", "Century Gothic", "Trebuchet MS", Arial, sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    padding: 8px 0;
    text-decoration: none;
    transition: color 0.3s ease;
    background-color: transparent;
}

.mobile-menu-items .nav-lvl1 > .nav-item:hover > .nav-link,
.mobile-menu-items .nav-lvl1 > .nav-item.sfHover > .nav-link {
    color: rgb(234, 179, 8);
    background-color: transparent;
}

/* Hide icons in level 1 for clean text-only display */
.mobile-menu-items .nav-lvl1 .nav-icon {
    display: none !important;
}

/* Level 1 title styling - simple and clean */
.mobile-menu-items .nav-lvl1 .nav-title {
    font-size: 24px;
    width: auto;
    margin: 0;
    text-transform: unset;
}

/* Level 2 and above - MobileNav approach */
.mobile-menu-content .nav-lvl2 {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    overflow-y: auto;
    background-color: rgb(255, 255, 255);
    display: none;
}

.mobile-menu-content .nav-lvl2 .nav-listInner {
    width: 100%;
    position: relative;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgb(255, 255, 255);
}

/* Submenu item styling - Level 2 */
.mobile-menu-content .nav-lvl2 > .nav-listInner > .nav-item {
    white-space: nowrap;
    overflow: hidden;
}

.mobile-menu-content .nav-lvl2 > .nav-listInner > .nav-item:last-child {
    border-bottom: none;
}

.mobile-menu-content .nav-lvl2 .nav-link {
    font-family: Futura, "Futura PT", "Century Gothic", "Trebuchet MS", Arial, sans-serif;
    color: rgb(31, 41, 55);
}

.mobile-menu-content .nav-active > .nav-link,
.mobile-menu-content .nav-active > .nav-link .nav-title {
    color: #FFCC00;
}

.mobile-menu-content .nav-lvl2 .nav-link:hover {
    color: rgb(234, 179, 8);
}

.mobile-menu-content .nav-lvl2 .nav-title {
    font-size: 0.95em;
    font-weight: 600;
}

/* Level 3 menu items */
.mobile-menu-content .nav-lvl3 > .nav-item {
    margin-bottom: 0;
    border-bottom: none;
    background-color: rgb(255, 255, 255);
}

.mobile-menu-content .nav-lvl3 .nav-title {
    font-size: 0.8em;
    font-weight: 400;
}

.mobile-menu-content .nav-lvl3 .nav-link:hover {
    color: rgb(234, 179, 8);
}

/* Level 3+ menus display inline within their parent */
.mobile-menu-content .nav-lvl3,
.mobile-menu-content .nav-lvl4,
.mobile-menu-content .nav-lvl5 {
    display: none;
    background-color: rgb(255, 255, 255);
}

/* Back button styling */
.mobile-menu-content .nav-back {
    display: block;
}


.mobile-menu-content .nav-back:hover {
    color: rgb(234, 179, 8);
}

.mobile-menu-content .nav-lvl2 .nav-lvlHeading i {
    /*display: none !important;*/
    color: rgb(31, 41, 55);
}

/* Mobile menu social - MidnightBrunch specific */
.mobile-menu-social {
    padding: 32px 24px;
    border-top: 1px solid #e5e7eb;
    background-color: rgb(255, 255, 255);
}

.social-label {
    font-size: 14px;
    font-weight: 500;
    color: rgb(31, 41, 55);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin: 0 0 16px 0;
    font-family: 'Futura', 'Futura PT', 'Century Gothic', 'Trebuchet MS', Arial, sans-serif;
    letter-spacing: 0.05em;
}

.mobile-menu-social a {
    transition: all 0.3s;
    touch-action: manipulation;
}

.mobile-menu-social a:hover {
    transform: scale(1.1);
}

.mobile-menu-social img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(20%) sepia(15%) saturate(1000%) hue-rotate(225deg) brightness(95%) contrast(95%);
    transition: all 0.3s;
}

/* Mobile Hamburger */
.mobile-hamburger {
    display: none;
    flex-shrink: 0;
    align-items: flex-end;
    height: 64px;
    margin-left: auto;
}

.hamburger-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    touch-action: manipulation;
}

.hamburger-lines {
    margin-bottom: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: white;
    margin-bottom: 4px;
}

.hamburger-line:last-child {
    margin-bottom: 0;
}

.hamburger-text {
    color: white;
    font-size: 7px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    width: 24px;
    text-align: center;
    font-family: 'Futura', 'Futura PT', 'Century Gothic', 'Trebuchet MS', Arial, sans-serif;
}

/* Legacy styles preserved for compatibility - minimal overrides */
.nav_mobile {
    background-color: rgb(255, 255, 255);
    width: 0;
    display: none;
}

.nav_mobile-btn {
    display: none;
    z-index: 3;
    color: rgb(31, 41, 55);
    padding: 1rem;
    outline: none;
    position: relative;
    top: .3rem;
}

.nav_mobile-btn i {
    font-size: 30px;
}

.nav_mobile-btn span {
    display: block;
    font-size: 9px;
}

.nav_mobile-menu {
    display: none;
    z-index: 999;
    padding-bottom: 1rem;
    position: fixed;
    top:0; right:0; bottom:0; left:0;
    color: rgb(31, 41, 55);
    background-color: rgb(255, 255, 255);
}

.nav_mobile .nav-list {
    position: absolute;
    top:0; right:0; bottom:0; left:0;
    background-color: rgb(255, 255, 255);
}

.nav_mobile .nav-back {
    display: block;
}

.nav_mobile-close {
    position: absolute;
    z-index: 1;
    right: 0;
    top: 0;
    font-size: 1.75em;
    padding: .3em .7em .25em .25em;
    cursor: pointer;
}

.nav_mobile-close:hover, .nav_mobile-close:focus {
    color: rgb(234, 179, 8);
}

.nav_mobile .nav-active .nav-icon:after {
    bottom: -1.4em;
    top: auto;
    right: 0;
    left: 0;
    margin: 0 auto;
    background-color: rgb(234, 179, 8);
}

/* Legacy lvl2 styles */
.mobile-nav .nav-lvl2 {
    z-index: 1;
    background-color: rgb(255, 255, 255);
}

.mobile-nav .nav-lvlHeading {
    font-family: 'Futura', 'Futura PT', 'Century Gothic', 'Trebuchet MS', Arial, sans-serif;
    padding-bottom: 1.5em;
    color: rgb(31, 41, 55);
}

.search-container {
    background-color: unset;
}

.searchResults {
    font-family: Futura, "Futura PT", "Century Gothic", "Trebuchet MS", Arial, sans-serif;
    color: rgb(31, 41, 55);
}

.searchForm {
    border: 1px solid #979797
}

/* Responsive breakpoints for legacy styles */
@media (max-width: 1023px) {
    .mobile-hamburger {
        display: block;
    }
    .mobile-nav {
        font-size: 1.4rem;
        background-color: rgb(255, 255, 255);
    }
    .mobile-nav .nav-lvl2 {
        font-size: 1.25rem;
        background-color: rgb(255, 255, 255);
    }
}

@media (max-width: 400px) {
    .mobile-nav {
        font-size: 1.3rem;
        background-color: rgb(255, 255, 255);
    }
    .mobile-nav .nav-lvl2 {
        font-size: 1.1rem;
        background-color: rgb(255, 255, 255);
    }
    .mobile-nav .nav-listInner {
        padding: 1.5rem;
        background-color: rgb(255, 255, 255);
    }
    .mobile-nav .nav-back {
        left: .25em;
        top: 0;
    }
}