/* ZoekVoorJou's compact Astra header geometry in the LuckyNightLife palette. */

@media (min-width: 922px) {
    #masthead #ast-desktop-header .site-primary-header-wrap.ast-container {
        max-width: 1320px !important;
        padding-inline: 20px;
    }

    #masthead #ast-desktop-header .ast-builder-grid-row {
        grid-template-columns: auto minmax(0, 1fr) !important;
        column-gap: 12px;
    }

    #masthead #ast-desktop-header .site-header-primary-section-right {
        min-width: 0;
    }

    #masthead #ast-desktop-header .custom-logo-link .custom-logo {
        width: clamp(262px, calc(100vw - 660px), 276px) !important;
        max-width: 100% !important;
        height: auto !important;
    }

    #masthead #ast-desktop-header .main-header-menu {
        align-items: center;
        justify-content: flex-end;
    }

    #masthead #ast-desktop-header .main-header-menu > .menu-item > .menu-link {
        font-size: 15px;
        padding-inline: 7px !important;
    }

    #masthead #ast-desktop-header .main-header-menu a.menu-link:hover,
    #masthead #ast-desktop-header .main-header-menu .current-menu-item > .menu-link,
    #masthead #ast-desktop-header .main-header-menu .current-menu-ancestor > .menu-link {
        color: #76571a;
    }

    #masthead #ast-desktop-header .main-header-menu .sub-menu {
        border-top-color: #d4af37;
    }

    #masthead #ast-desktop-header .main-header-menu > .menu-item-170 > .menu-link {
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 44px;
        padding-inline: 16px !important;
        border-radius: 10px;
        background-color: #d4af37;
        color: #172033;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.25;
    }

    #masthead #ast-desktop-header .main-header-menu > .menu-item-170 > .menu-link:hover {
        background-color: #be9b2d;
        color: #172033;
    }

    #masthead #ast-desktop-header .main-header-menu a.menu-link:focus-visible {
        outline: 3px solid #8c6518;
        outline-offset: -3px;
    }
}

@media (min-width: 922px) and (max-width: 1000px) {
    #masthead #ast-desktop-header .ast-builder-menu-1 {
        min-width: 0;
    }

    #masthead #ast-desktop-header .main-header-menu {
        flex-wrap: wrap !important;
    }
}

@media (min-width: 1350px) {
    #masthead #ast-desktop-header .ast-builder-grid-row {
        column-gap: 20px;
    }

    #masthead #ast-desktop-header .custom-logo-link .custom-logo {
        width: 402px !important;
    }

    #masthead #ast-desktop-header .main-header-menu > .menu-item > .menu-link {
        padding-inline: 8px !important;
    }

    #masthead #ast-desktop-header .main-header-menu > .menu-item-170 > .menu-link {
        font-size: 15px;
    }
}

@media (max-width: 921px) {
    /* Keep the target's fixed, independently scrolling Astra dropdown. */
    #masthead #ast-mobile-header .main-header-bar-navigation.toggle-on {
        top: calc(var(--lnl-menu-top, 125px) + 8px) !important;
        inset-inline: 12px !important;
        width: auto !important;
        max-height: calc(100dvh - var(--lnl-menu-top, 125px) - 16px) !important;
        padding: 8px 8px 12px !important;
        border: 1px solid #e7dfc7 !important;
        border-radius: 16px !important;
        box-shadow: 0 10px 28px rgba(54, 41, 20, .12) !important;
    }

    #masthead #ast-mobile-header #ast-hf-mobile-menu {
        gap: 0 !important;
    }

    #masthead #ast-mobile-header #ast-hf-mobile-menu > .menu-item {
        border-bottom: 1px solid #f2ece0 !important;
    }

    #masthead #ast-mobile-header #ast-hf-mobile-menu > .menu-item:last-child {
        border-bottom: 0 !important;
    }

    #masthead #ast-mobile-header #ast-hf-mobile-menu > .menu-item > .menu-link {
        min-height: 48px !important;
        margin: 0 !important;
        padding: 12px 52px 12px 14px !important;
        justify-content: flex-start !important;
        border: 0 !important;
        border-radius: 8px !important;
        background: #fff !important;
        color: #252b38 !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        line-height: 1.5 !important;
    }

    #masthead #ast-mobile-header #ast-hf-mobile-menu > .current-menu-item > .menu-link,
    #masthead #ast-mobile-header #ast-hf-mobile-menu > .menu-item > .menu-link:hover {
        background: #f9f2df !important;
        color: #76571a !important;
    }

    #masthead #ast-mobile-header #ast-hf-mobile-menu .ast-menu-toggle {
        top: 4px;
        right: 4px;
        width: 40px;
        height: 40px;
        padding: 8px;
        border: 1px solid #e7dfc7;
        border-radius: 9px;
        background: #faf7f0;
        color: #76571a;
        box-shadow: none;
    }

    #masthead #ast-mobile-header #ast-hf-mobile-menu .sub-menu {
        margin: 0 0 8px;
        padding: 4px 0;
        border: 0;
        border-radius: 9px;
        background: #faf7f0 !important;
    }

    #masthead #ast-mobile-header #ast-hf-mobile-menu .sub-menu .menu-link {
        min-height: 44px;
        padding: 11px 16px 11px 24px !important;
        font-size: 14px;
        line-height: 42px;
    }

    #masthead #ast-mobile-header #ast-hf-mobile-menu > .menu-item-170 > .menu-link {
        box-sizing: border-box;
        width: calc(100% - 16px) !important;
        min-height: 44px !important;
        height: 44px;
        margin: 10px 8px !important;
        padding: 0 16px !important;
        justify-content: center !important;
        border-radius: 10px !important;
        background: #d4af37 !important;
        color: #172033 !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
    }

    #masthead #ast-mobile-header #ast-hf-mobile-menu :is(.menu-link, .ast-menu-toggle):focus-visible {
        outline: 3px solid #8c6518;
        outline-offset: -3px;
    }
}
