/* Mobile Menu Fixes for Destinations Page */

/* Ensure mobile menu works properly */
@media only screen and (max-width: 991px) {
    /* Mobile menu container */
    .menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: linear-gradient(135deg, #fa9e1b 0%, #8d4fff 100%);
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        backdrop-filter: blur(10px);
    }
    
    .menu.active {
        opacity: 0.98;
        visibility: visible;
    }
    
    /* Menu content */
    .menu_content {
        width: 100%;
        height: 100%;
        padding: 60px 30px 30px;
        position: relative;
    }
    
    /* Menu logo */
    .menu_logo {
        margin-bottom: 40px;
        padding: 20px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 20px;
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .menu_logo a {
        font-size: 24px;
        font-weight: 700;
        color: #FFFFFF;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    
    .menu_logo a img {
        width: 35px !important;
        height: auto;
    }
    
    /* Menu list */
    .menu_list {
        list-style: none;
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 400px;
    }
    
    /* Menu items */
    .menu_item {
        position: relative;
        margin-bottom: 8px;
        width: 100%;
    }
    
    .menu_item:last-child {
        margin-bottom: 0;
    }
    
    .menu_item a {
        display: block;
        position: relative;
        font-family: 'Open Sans', sans-serif;
        font-size: 20px;
        color: #FFFFFF;
        font-weight: 600;
        padding: 18px 30px;
        margin: 0;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 15px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;
        text-transform: capitalize;
        letter-spacing: 0.5px;
        text-decoration: none;
        text-align: center;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .menu_item a:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
        color: #FFFFFF;
    }
    
    /* Close button */
    .menu_close_container {
        position: absolute;
        top: 25px;
        right: 25px;
        width: 35px;
        height: 35px;
        cursor: pointer;
        z-index: 1002;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    
    .menu_close_container:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }
    
    .menu_close {
        position: relative;
        width: 20px;
        height: 2px;
        background: #FFFFFF;
        transform: rotate(45deg);
        transition: all 0.3s ease;
    }
    
    .menu_close::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 20px;
        height: 2px;
        background: #FFFFFF;
        transform: rotate(-90deg);
        transition: all 0.3s ease;
    }
    
    .menu_close_container:hover .menu_close,
    .menu_close_container:hover .menu_close::after {
        background: #fa9e1b;
    }
    
    /* Hamburger improvements */
    .hamburger {
        display: block;
        padding: 12px;
        min-height: 48px;
        min-width: 48px;
        cursor: pointer;
        transition: all 0.3s ease;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }
    
    .hamburger:hover {
        background: rgba(250, 158, 27, 0.2);
        transform: scale(1.05);
    }
    
    .hamburger i {
        font-size: 22px;
        color: #2d2c2c;
        transition: all 0.3s ease;
    }
    
    .hamburger:hover i {
        color: #fa9e1b;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    /* Header adjustments for mobile */
    .header {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }
    
    .main_nav_col {
        height: 70px;
        padding: 0 20px;
    }
    
    /* Logo adjustments */
    .logo a {
        font-size: 20px;
        font-weight: 700;
    }
    
    .logo a img {
        width: 28px;
        margin-right: 8px;
    }
}

/* Extra small devices */
@media only screen and (max-width: 575px) {
    .menu_content {
        padding: 50px 20px 20px;
    }
    
    .menu_item a {
        font-size: 18px;
        padding: 15px 25px;
        min-height: 55px;
    }
    
    .menu_logo {
        margin-bottom: 30px;
        padding: 15px;
    }
    
    .menu_logo a {
        font-size: 20px;
    }
    
    .menu_logo a img {
        width: 30px !important;
    }
    
    .hamburger {
        padding: 10px;
        min-height: 44px;
        min-width: 44px;
    }
    
    .hamburger i {
        font-size: 20px;
    }
    
    .main_nav_col {
        height: 65px;
        padding: 0 15px;
    }
    
    .logo a {
        font-size: 18px;
    }
    
    .logo a img {
        width: 24px;
    }
}

/* Animation improvements */
@keyframes slideInFromTop {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.menu.active .menu_logo {
    animation: slideInFromTop 0.6s ease-out 0.2s both;
}

.menu.active .menu_item {
    animation: slideInFromRight 0.5s ease-out both;
}

.menu.active .menu_item:nth-child(1) { animation-delay: 0.3s; }
.menu.active .menu_item:nth-child(2) { animation-delay: 0.4s; }
.menu.active .menu_item:nth-child(3) { animation-delay: 0.5s; }
.menu.active .menu_item:nth-child(4) { animation-delay: 0.6s; }
.menu.active .menu_item:nth-child(5) { animation-delay: 0.7s; }
.menu.active .menu_item:nth-child(6) { animation-delay: 0.8s; }

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .menu_item a {
        padding: 20px 30px;
        min-height: 65px;
    }
    
    .hamburger {
        min-height: 50px;
        min-width: 50px;
    }
    
    .menu_close_container {
        width: 40px;
        height: 40px;
    }
}