/* MAXIMUM PRIORITY MOBILE MENU FIXES */

@media (max-width: 992px) {

    /* 1. FORCE TOGGLE BUTTON VISIBILITY & POSITION */
    .nav-toggle {
        display: flex !important;
        position: fixed !important;
        /* Fixed to screen */
        top: 25px !important;
        right: 20px !important;
        /* LTR default */
        inset-inline-end: 20px !important;
        /* RTL support */
        z-index: 2147483647 !important;
        /* Max Z-Index */
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        border: none;
        background: transparent;
        padding: 0;
    }

    /* RTL Support: Move toggle to left */
    html[dir="rtl"] .nav-toggle,
    body.rtl .nav-toggle {
        right: auto !important;
        left: 20px !important;
    }

    .nav-toggle span {
        background-color: #ffffff !important;
        height: 2px;
        width: 100%;
        border-radius: 2px;
        transition: all 0.3s ease;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
        /* Shadow to ensure visibility on light backgrounds */
    }

    /* Active State (X Shape) */
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -7px);
    }

    /* 2. FORCE SOLID BLACK BACKGROUND & REMOVE TRANSPARENCY */
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;

        background-color: #000000 !important;
        /* PURE BLACK */
        background: #000000 !important;

        /* KILL TRANSPARENCY */
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        opacity: 1 !important;
        /* Reset base opacity */

        /* Layout */
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 2rem !important;

        /* Animation Logic */
        transform: translateX(100%) !important;
        opacity: 0 !important;
        /* Hidden state */
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.4s ease !important;

        z-index: 2147483640 !important;
        /* Below toggle */
        padding: 0 !important;
        margin: 0 !important;
    }

    .nav-menu.active {
        transform: translateX(0) !important;
        opacity: 1 !important;
        /* Visible state */
    }

    /* 3. ENSURE LINKS ARE VISIBLE */
    .nav-menu li {
        width: 100%;
        text-align: center;
        list-style: none;
    }

    .nav-menu a {
        font-size: 1.5rem !important;
        color: #ffffff !important;
        text-transform: uppercase;
        letter-spacing: 2px;
        text-decoration: none;
        display: block;
        padding: 10px;
    }

    /* FIX BOOK NOW BUTTON */
    .nav-menu .btn-nav {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: #ffffff !important;
        color: #000000 !important;
        padding: 12px 24px !important;
        border-radius: 4px !important;
        font-size: 1rem !important;
        margin-top: 1rem !important;
    }
}