/* Destinations Mega Menu Styles - Inspired by go2africa.com */
.destinations-mega-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: #fff;
    border-top: 1px solid #eaeaea;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px 0;
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999;
    overflow: hidden;
}

/* Show on hover */
.mega-destinations.destinations-mega:hover .destinations-mega-menu,
.mega-destinations.destinations-mega:focus-within .destinations-mega-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.mega-menu-navs {
    display: flex;
    gap: 40px;
    position: relative;
}

/* Columns */
.mega-menu-column {
    flex: 1;
    min-width: 200px;
}

h5.column-title {
font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0a526;
  font-style: normal;

}

.mega-menu-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-menu-nav .menu-item {
    margin-bottom: 8px;
}

.mega-menu-nav .menu-item a {
    font-size: 14px;
    color: #555;
    text-decoration: none;
    padding: 6px 0;
    display: block;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
    padding-left: 10px;
}

.mega-menu-nav .menu-item a:hover,
.mega-menu-nav .menu-item.active a {
    color: #e0a526;
    border-left-color: #e0a526;
    padding-left: 15px;
}

/* Map Container */
.mega-menu-map-container {
    flex: 1.5;
    min-width: 300px;
    position: relative;
}

.map-wrapper {
    position: relative;
    height: 100%;
    min-height: 300px;
}

.africa-map {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Map Pins */
.map-pins-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.map-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    pointer-events: auto;
    z-index: 10;
}

.pin-dot {
    width: 12px;
    height: 12px;
    background: #e0a526;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 1px rgba(224, 165, 38, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.pin-label {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #e0a526;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.pin-label:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #e0a526;
}

.map-pin.active .pin-dot {
    width: 16px;
    height: 16px;
    background: #ff6b00;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.2);
}

.map-pin.active .pin-label {
    opacity: 1;
    visibility: visible;
    top: -35px;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .mega-menu-navs {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .mega-menu-column {
        flex: 0 0 calc(50% - 15px);
    }
    
    .mega-menu-map-container {
        flex: 0 0 100%;
        order: 5;
    }
}

@media (max-width: 768px) {
    .mega-menu-inner {
        padding: 0 20px;
    }
    
    .mega-menu-navs {
        flex-direction: column;
        gap: 25px;
    }
    
    .mega-menu-column {
        flex: 0 0 100%;
    }
    
    .destinations-mega-menu {
        position: static;
        width: 100%;
        margin-left: 0;
        box-shadow: none;
        padding: 20px 0;
    }
    
    /* Mobile toggle functionality */
    .destinations-mega-menu.mobile-closed {
        display: none !important;
    }
    
    .mega-destinations.destinations-mega > a .mobile-toggle {
        display: inline-block;
        margin-left: 5px;
    }
}

/* Animation for menu entrance */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.destinations-mega-menu {
    animation: slideDown 0.3s ease forwards;
}