/* ─── Mobile Menu ─────────────────────────────────────────────────────────────
   Replaces Divi's mobile nav with a custom full-screen overlay.
   Matches Figma nodes 473:5529 (main) and 628:13648 (bestemmingen submenu).
   ─────────────────────────────────────────────────────────────────────────── */

/* ── Suppress Divi's mobile dropdown and hamburger pseudo-elements ──────── */

@media (max-width: 980px) {
    .et_mobile_menu {
        display: none !important;
    }

    /* Divi draws the hamburger as pseudo-elements + the bar element itself */
    .mobile_menu_bar {
        background: transparent !important;
        height: auto !important;
        width: auto !important;
    }

    .mobile_menu_bar::before,
    .mobile_menu_bar::after {
        display: none !important;
        content: none !important;
    }
}

/* ── Sticky state: dark icon ─────────────────────────────────────────────── */

.et_pb_sticky .tb-mm-trigger svg rect,
.et_pb_sticky .tb-mm-trigger svg path {
    stroke: #364940;
}

/* ── Hamburger trigger (injected into Divi header via JS) ────────────────── */

.tb-mm-trigger {
    display: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

@media (max-width: 980px) {
    .tb-mm-trigger {
        display: flex;
    }

    .mobile_menu_bar {
        display: flex !important;
        justify-content: flex-end;
        align-items: center;
        width: 100%;
    }
}

/* ── Overlay ─────────────────────────────────────────────────────────────── */

.tb-mm {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: #364940;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tb-mm.is-open {
    opacity: 1;
    visibility: visible;
    max-width:100vw;
}

/* ── Two-panel sliding container ─────────────────────────────────────────── */

.tb-mm-panels {
    display: flex;
    width: 200%;
    height: 100%;
    transform: translateX(0);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.tb-mm-panels.show-sub {
    transform: translateX(-50%);
}

/* ── Single panel ────────────────────────────────────────────────────────── */

.tb-mm-panel {
    width: 50%; /* = 100vw within the 200%-wide container */
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

/* ── Panel header (logo + close) ─────────────────────────────────────────── */

.tb-mm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.tb-mm-logo {
    height: 32px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.tb-mm-logo a {
    display: block;
    line-height: 0;
}

.tb-mm-logo img {
    display: block;
    height: 32px;
    width: auto;
    max-width: 216px;
    object-fit: contain;
}

.tb-mm-close {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Scrollable body ─────────────────────────────────────────────────────── */

.tb-mm-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ── Main nav links ──────────────────────────────────────────────────────── */

.tb-mm-nav {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.tb-mm-nav-item {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.1;
    color: #ffffff;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: color 0.15s ease;
}

.tb-mm-nav-item.is-active {
    text-decoration: underline;
    text-decoration-color: #C6B69F;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
}

.tb-mm-nav-item:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ── Divider ─────────────────────────────────────────────────────────────── */

.tb-mm-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

/* ── Contact ─────────────────────────────────────────────────────────────── */

.tb-mm-contact {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.tb-mm-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #ffffff;
    text-decoration: none;
}

.tb-mm-contact-item svg {
    flex-shrink: 0;
}

/* ── CTA button ──────────────────────────────────────────────────────────── */

.tb-mm-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    padding: 0 28px;
    background: #79a870;
    color: #364940;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.16px;
    text-decoration: none;
    border-radius: 100px;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.tb-mm-cta:hover {
    background: #8fba87;
    color: #364940;
}

/* ── Submenu: back button ────────────────────────────────────────────────── */

.tb-mm-back {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #79a870;
    letter-spacing: 2.8px;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* ── Submenu: heading ────────────────────────────────────────────────────── */

.tb-mm-sub-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

.tb-mm-sub-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.1;
    color: #ffffff;
}

.tb-mm-sub-underline {
    height: 1px;
    background: rgba(255, 255, 255, 0.25);
}

/* ── Continents list ─────────────────────────────────────────────────────── */

.tb-mm-continents {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.tb-mm-continent {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tb-mm-continent-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.1;
    color: #c6b69f;
    margin: 0;
    padding: 0;
}

.tb-mm-continent-cols {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.tb-mm-continent-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.tb-mm-dest-link {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.1;
    color: #ffffff;
    text-decoration: none;
    display: block;
    transition: color 0.15s ease;
}

.tb-mm-dest-link:hover {
    color: #79a870;
}

/* ── Hide everything on desktop ──────────────────────────────────────────── */

@media (min-width: 981px) {
    .tb-mm,
    .tb-mm-trigger {
        display: none !important;
    }
}
