/* قائمة الموبايل الجديدة */

/* الخلفية المظلمة */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* القائمة الجانبية */
.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-sidebar.active {
    right: 0;
}

/* هيدر القائمة */
.mobile-menu-header {
    background: linear-gradient(135deg, #4a9b8e, #2c3e50);
    color: white;
    padding: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-title {
    flex: 1;
    text-align: center;
}

.mobile-menu-title h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.mobile-menu-title p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.mobile-menu-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* عناصر القائمة */
.mobile-menu-items {
    padding: 1rem 0;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f3f4;
    position: relative;
}

.mobile-menu-item:hover {
    background: #f8f9fa;
    padding-right: 2rem;
}

.mobile-menu-item.active {
    background: linear-gradient(90deg, #fff3cd, #ffffff);
    border-right: 4px solid #ffc107;
    font-weight: 600;
}

.mobile-menu-item.active .menu-item-icon {
    background: #ffc107;
    color: white;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.mobile-menu-item.active span {
    color: #2c3e50;
    font-weight: 600;
}

/* أيقونات العناصر */
.menu-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.menu-item-icon.home {
    background: linear-gradient(135deg, #ffc107, #ffed4e);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.menu-item-icon.hotels {
    background: linear-gradient(135deg, #e91e63, #f06292);
    color: white;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

.menu-item-icon.buses {
    background: linear-gradient(135deg, #2196f3, #64b5f6);
    color: white;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.menu-item-icon.packages {
    background: linear-gradient(135deg, #4caf50, #81c784);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.menu-item-icon.return {
    background: linear-gradient(135deg, #ff9800, #ffb74d);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.menu-item-icon.help {
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
    color: white;
    box-shadow: 0 2px 8px rgba(156, 39, 176, 0.3);
}

.mobile-menu-item span {
    flex: 1;
    font-weight: 500;
    font-size: 1rem;
}

.mobile-menu-item > i {
    color: #bdc3c7;
    font-size: 0.8rem;
}

/* أزرار الإجراءات */
.mobile-menu-actions {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
}

.mobile-action-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.mobile-action-btn.book-now {
    background: linear-gradient(135deg, #4a9b8e, #5fb3a3);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 155, 142, 0.3);
}

.mobile-action-btn.book-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 155, 142, 0.4);
}

.mobile-action-btn.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.mobile-action-btn.whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* فوتر القائمة */
.mobile-menu-footer {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.mobile-menu-footer p {
    margin: 0.3rem 0;
    font-size: 0.85rem;
    color: #6c757d;
}

/* الاستجابة للشاشات الصغيرة */
@media (max-width: 480px) {
    .mobile-menu-sidebar {
        width: 100%;
        max-width: 100%;
    }
    
    .mobile-menu-header {
        padding: 1rem;
    }
    
    .mobile-menu-title h3 {
        font-size: 1.1rem;
    }
    
    .mobile-menu-item {
        padding: 0.8rem 1rem;
    }
    
    .menu-item-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* تأثيرات الحركة */
@keyframes slideInRight {
    from {
        right: -100%;
    }
    to {
        right: 0;
    }
}

@keyframes slideOutRight {
    from {
        right: 0;
    }
    to {
        right: -100%;
    }
}

/* إخفاء القائمة على الشاشات الكبيرة */
@media (min-width: 769px) {
    .mobile-menu-overlay,
    .mobile-menu-sidebar {
        display: none !important;
    }
}
