/* Megamenu styles */
.megamenu-container {
    position: relative;
    z-index: 1050;
}

.megamenu-toggle {
    background: linear-gradient(135deg, #4361ee, #3a56d4);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
    transition: all 0.3s ease;
}

.megamenu-toggle:hover {
    background: linear-gradient(135deg, #3a56d4, #304ac9);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(67, 97, 238, 0.4);
}

.megamenu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 650px;
    max-width: 90vw;
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: none;
    z-index: 1050;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

.megamenu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.megamenu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
}

.megamenu-title {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    margin: 0;
}

.megamenu-close {
    background: none;
    border: none;
    color: #777;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s ease;
}

.megamenu-close:hover {
    color: #333;
}

.megamenu-content {
    display: flex;
    flex-wrap: wrap;
}

.megamenu-column {
    flex: 1 1 200px;
    padding: 0 10px;
    min-width: 180px;
}

.category-item {
    margin-bottom: 25px;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4361ee;
    text-decoration: none;
    transition: color 0.2s ease;
    position: sticky;
    top: 60px;
    background: white;
    z-index: 1;
    padding: 5px 0;
}

.category-header:hover {
    color: #304ac9;
}

.category-header i {
    margin-right: 8px;
    min-width: 20px;
    text-align: center;
}

.location-list {
    list-style: none;
    padding-left: 28px;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

.location-list::-webkit-scrollbar {
    width: 6px;
}

.location-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.location-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.location-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.location-item {
    margin-bottom: 6px;
}

.location-item a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.location-item a:hover {
    color: #4361ee;
}

.location-item a i {
    font-size: 10px;
    margin-right: 5px;
    color: #aaa;
}

.view-all {
    font-size: 12px;
    color: #888;
    margin-left: 5px;
    font-weight: normal;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .megamenu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        margin: 0;
        border-radius: 0;
        overflow-y: auto;
        z-index: 2000;
    }
    
    .megamenu-content {
        flex-direction: column;
    }
    
    .megamenu-column {
        flex: 0 0 100%;
        padding: 0;
        margin-bottom: 15px;
    }
    
    .location-list {
        max-height: none;
        overflow-y: visible;
    }
}
