/*
=================================================
05-drawers.css
Mobile right-side drawer navigation
Site: fishbucklake.com (staging)
=================================================
*/

/* =====================================================
   DESKTOP — HIDE ALL MOBILE ELEMENTS
   ===================================================== */
@media (min-width: 981px) {
    #fbl-mm-open,
    #fbl-mm-bottom-sheet,
    #fbl-mm-overlay {
        display: none !important;
    }
    .fbl-mobile-menu-wrapper {
        display: none !important;
    }
}

/* =====================================================
   GLOBAL — HIDE MENU WRAPPERS OUTSIDE DRAWER
   ===================================================== */
.fbl-mobile-menu-wrapper {
    display: none !important;
}

#fbl-mm-bottom-sheet .fbl-mm-sheet-body .fbl-mobile-menu-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.6rem;
}

/* =====================================================
   MOBILE
   ===================================================== */
@media (max-width: 980px) {

    /* Hamburger button — fixed top right */
    #fbl-mm-open {
        position: fixed !important;
        top: 12px !important;
        right: 12px !important;
        z-index: 9999999 !important;
        width: 44px !important;
        height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(0,0,0,.85) !important;
        border: 1px solid var(--fbl-border-color) !important;
        border-radius: 8px !important;
        cursor: pointer !important;
        padding: 0 !important;
    }

    .fbl-mm-open-icon::before {
        content: "\61";
        font-family: "ETmodules";
        font-size: 22px;
        color: var(--fbl-gold);
    }

    body.fbl-mm-open #fbl-mm-open .fbl-mm-open-icon::before {
        content: "\4d";
    }

    /* Overlay */
    #fbl-mm-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.55);
        z-index: 999998;
        display: none;
        pointer-events: auto;
    }

    body.fbl-mm-open #fbl-mm-overlay {
        display: block;
    }

    /* Right-side drawer */
    #fbl-mm-bottom-sheet {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        width: 80vw !important;
        max-width: 320px !important;
        height: 100% !important;
        max-height: 100% !important;
        overflow-y: auto !important;
        background: var(--fbl-drawer-bg) !important;
        border-left: 2px solid var(--fbl-border-color) !important;
        transform: translateX(100%);
        transition: transform .25s ease-out;
        display: flex !important;
        flex-direction: column;
        z-index: 999999 !important;
    }

    body.fbl-mm-open #fbl-mm-bottom-sheet {
        transform: translateX(0) !important;
    }

    /* Drawer header */
    .fbl-mm-sheet-header {
        padding: .7rem 1rem;
        border-bottom: 1px solid var(--fbl-border-light);
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: sticky;
        top: 0;
        background: var(--fbl-drawer-bg);
        z-index: 1;
    }

    .fbl-mm-sheet-title {
        font-weight: 600;
        color: var(--fbl-dark) !important;
    }

    #fbl-mm-close {
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 4px;
    }

    #fbl-mm-close-icon::before {
        content: "\4d";
        font-family: "ETmodules";
        font-size: 22px;
        color: var(--fbl-dark) !important;
    }

    /* Drawer body */
    .fbl-mm-sheet-body {
        padding: 0.75rem;
        overflow-y: auto;
        flex: 1;
    }

    /* Menu sections */
    .fbl-mm-section {
        margin-bottom: 0.75rem;
    }

    .fbl-mm-heading {
        color: var(--fbl-dark) !important;
        font-size: 1.05rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
        padding-bottom: 0.2rem;
        border-bottom: 1px solid var(--fbl-border-color);
    }

    .fbl-mm-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .fbl-mm-item {
        margin-bottom: 0.1rem;
    }

    .fbl-mm-item a {
        display: block;
        padding: 2px 0;
        color: var(--fbl-dark) !important;
        text-decoration: none;
        line-height: 1.4;
    }

    .fbl-mm-item a:hover {
        opacity: 0.65;
    }

    /* Sub-menus */
    .fbl-mm-list ul.sub-menu {
        margin-left: 1rem;
        padding-left: 0.75rem;
        border-left: 1px solid var(--fbl-border-color);
        margin-top: 0.25rem;
    }

    .fbl-mm-list ul.sub-menu .fbl-mm-item a {
        font-size: 0.95em;
        opacity: 0.85;
    }

    /* Activities — no link */
    .fbl-mm-item.menu-item-221224 > a {
        pointer-events: none !important;
        cursor: default !important;
    }

    /* Restricted items */
    .fbl-mm-item.fbl-restricted {
        display: none !important;
    }

    /* Collapsible sections */
.fbl-mm-toggle {
    cursor: pointer !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    user-select: none !important;
}

.fbl-mm-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
    color: var(--fbl-border-color);
    flex-shrink: 0;
}

.fbl-mm-collapsed {
    display: none !important;
}
}

/* =====================================================
   MENU VISIBILITY — SHOWS AND EVENTS
   ===================================================== */
body.fbl-no-shows li.menu-item-221698,
body.fbl-no-shows li.menu-item-10557 {
    display: none !important;
}

body.fbl-no-events li.menu-item-223594 {
    display: none !important;
}