/* ─── Bestemming Mega-Menu ────────────────────────────────────────────────────
   Full mega-menu that drops below the header on hover of .bestemming-menu-item.
   Matches Figma node 635:27575.
   ─────────────────────────────────────────────────────────────────────────── */

/* ── Overlay & positioning ───────────────────────────────────────────────── */

.bsm-submenu {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 9999;
    /* top is set by JS to match the header's bottom edge */
    padding: 0 40px;
    pointer-events: none;
    /* Hidden state */
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.bsm-submenu.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ── Inner card ──────────────────────────────────────────────────────────── */

.bsm-inner {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0px 6px 16px 0px rgba(0, 0, 0, 0.08);
    padding: 52px 32px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    max-width: 1200px;
    margin: 8px auto 0;
}

/* ── Panel (one column of continents) ───────────────────────────────────── */

.bsm-panel {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 0 32px;
    flex: 1;
    min-width: 0;
}

/* ── Vertical divider between panels ────────────────────────────────────── */

.bsm-v-divider {
    width: 1px;
    align-self: stretch;
    background-color: #e8e0d5;
    flex-shrink: 0;
}

/* ── Horizontal divider between continents within a panel ────────────────── */

.bsm-h-divider {
    border: none;
    border-top: 1px solid #e8e0d5;
    margin: 0;
    width: 100%;
}

/* ── Continent block ─────────────────────────────────────────────────────── */

.bsm-continent {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ── Continent title ─────────────────────────────────────────────────────── */

.bsm-continent-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    color: #ab9472;
    margin: 0;
    padding: 0;
    width: 160px;
}

/* ── Destination columns ─────────────────────────────────────────────────── */

.bsm-destinations {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.bsm-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 160px;
    flex-shrink: 0;
}

/* ── Destination link ────────────────────────────────────────────────────── */

.bsm-dest-link {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1em;
    color: #504d49;
    text-decoration: none !important;
    display: block;
    transition: color 0.15s ease;
}

.bsm-dest-link:hover {
    color: #79A870;
}

/* ── Caret on the trigger menu item ─────────────────────────────────────── */

.bsm-caret {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: 6px;
    margin-bottom: 3px;
    vertical-align: middle;
    transition: transform 0.2s ease, margin-bottom 0.2s ease;
    flex-shrink: 0;
}

.bestemming-menu-item.is-open .bsm-caret {
    transform: rotate(-135deg);
    margin-bottom: -3px;
}

/* ── Mobile: hide entirely ───────────────────────────────────────────────── */

@media (max-width: 980px) {
    .bsm-submenu {
        display: none;
    }
}
