/* ============================================
   MEGA MENU DESTINATIONS - Menu Vertical
   Style personnalisé pour éviter les conflits
   ============================================ */

/* Container principal du mega menu */
.vmenu-destinations-mega {
    position: fixed;
    top: 0;
    left: -600px;
    width: 550px;
    height: 100vh;
    background: #ffffff;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 1150;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.vmenu-destinations-mega.active {
    left: 380px; /* S'ouvre juste après le menu vertical (380px de largeur) */
}

/* Header du mega menu */
.vmenu-destinations-mega-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: #f8f9fa;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    flex-shrink: 0;
}

.vmenu-destinations-mega-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a2942;
    letter-spacing: 0.5px;
}

.vmenu-destinations-mega-icon {
    width: 28px;
    height: 28px;
    stroke-width: 2.5;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.vmenu-destinations-mega-close {
    background: rgba(212, 175, 55, 0.1);
    border: none;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vmenu-destinations-mega-close:hover {
    background: rgba(212, 175, 55, 0.2);
}

.vmenu-destinations-mega-close svg {
    width: 20px;
    height: 20px;
    stroke: #1a2942;
}

/* Contenu scrollable */
.vmenu-destinations-mega-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
}

/* Scrollbar personnalisée */
.vmenu-destinations-mega-content::-webkit-scrollbar {
    width: 8px;
}

.vmenu-destinations-mega-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.vmenu-destinations-mega-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.vmenu-destinations-mega-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Loader */
.vmenu-destinations-mega-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 20px;
}

.vmenu-destinations-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #d4af37;
    border-radius: 50%;
}

.vmenu-destinations-mega-loader p {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

/* État vide */
.vmenu-destinations-mega-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 15px;
}

.vmenu-destinations-mega-empty svg {
    width: 60px;
    height: 60px;
    stroke: #6c757d;
}

.vmenu-destinations-mega-empty p {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

/* Grille des destinations */
.vmenu-destinations-mega-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Section de destination (Continent) */
.vmenu-dest-section {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.vmenu-dest-section:hover {
    background: #ffffff;
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Header de section (Continent) */
.vmenu-dest-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 18px;
    cursor: pointer;
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
}

.vmenu-dest-section-header:hover {
    background: rgba(212, 175, 55, 0.05);
}

.vmenu-dest-section-image {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vmenu-dest-section-info {
    flex: 1;
    min-width: 0;
}

.vmenu-dest-section-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a2942;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vmenu-dest-name-link {
    color: #1a2942;
    text-decoration: none;
}

.vmenu-dest-name-link:hover {
    color: #d4af37;
    text-decoration: underline;
}

.vmenu-dest-section-count {
    font-size: 12px;
    color: #6c757d;
    margin: 0;
}

.vmenu-dest-section-arrow {
    width: 20px;
    height: 20px;
    stroke: #6c757d;
    flex-shrink: 0;
}

/* Contenu de section (Pays) */
.vmenu-dest-section-content {
    max-height: 0;
    overflow: hidden;
}

.vmenu-dest-section.expanded .vmenu-dest-section-content {
    max-height: 2000px;
}

.vmenu-dest-section-list {
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

/* Sous-sections (pays, provinces, régions, villes) */
.vmenu-dest-subsection {
    grid-column: 1 / -1;
    margin-bottom: 8px;
}

.vmenu-dest-subsection .vmenu-dest-section-header {
    padding: 12px 15px;
    background: #f8f9fa;
}

.vmenu-dest-subsection .vmenu-dest-section-image {
    width: 40px;
    height: 40px;
}

.vmenu-dest-subsection .vmenu-dest-section-name {
    font-size: 14px;
}

.vmenu-dest-subsection .vmenu-dest-section-count {
    font-size: 11px;
}

.vmenu-dest-subsection .vmenu-dest-section-arrow {
    width: 16px;
    height: 16px;
}

/* Niveaux imbriqués - réduire la taille progressivement */
.vmenu-dest-subsection .vmenu-dest-subsection .vmenu-dest-section-header {
    padding: 10px 12px;
    padding-left: 25px;
}

.vmenu-dest-subsection .vmenu-dest-subsection .vmenu-dest-section-image {
    width: 35px;
    height: 35px;
}

.vmenu-dest-subsection .vmenu-dest-subsection .vmenu-dest-section-name {
    font-size: 13px;
}

.vmenu-dest-subsection .vmenu-dest-subsection .vmenu-dest-subsection .vmenu-dest-section-header {
    padding: 8px 10px;
    padding-left: 35px;
}

.vmenu-dest-subsection .vmenu-dest-subsection .vmenu-dest-subsection .vmenu-dest-section-image {
    width: 30px;
    height: 30px;
}

.vmenu-dest-subsection .vmenu-dest-subsection .vmenu-dest-subsection .vmenu-dest-section-name {
    font-size: 12px;
}

/* Loader dans les sections */
.vmenu-dest-section-loader {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

/* Item de destination (Pays, Ville, etc.) */
.vmenu-dest-item {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid #e9ecef;
    min-height: 120px;
}

.vmenu-dest-item:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vmenu-dest-item-image {
    width: 100%;
    height: 70px;
    object-fit: cover;
    background: #f8f9fa;
    flex-shrink: 0;
}

.vmenu-dest-item-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vmenu-dest-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a2942;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vmenu-dest-item-type {
    font-size: 11px;
    color: #6c757d;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Badge pour le nombre d'enfants */
.vmenu-dest-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
    .vmenu-destinations-mega {
        width: 100%;
        left: -100%;
    }
    
    .vmenu-destinations-mega.active {
        left: 0;
    }
}

@media (max-width: 768px) {
    .vmenu-dest-section-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .vmenu-dest-item-image {
        height: 60px;
    }
    
    .vmenu-dest-subsection .vmenu-dest-section-header {
        padding: 10px 12px;
    }
    
    .vmenu-dest-subsection .vmenu-dest-subsection .vmenu-dest-section-header {
        padding-left: 20px;
    }
    
    .vmenu-dest-subsection .vmenu-dest-subsection .vmenu-dest-subsection .vmenu-dest-section-header {
        padding-left: 30px;
    }
}
