/* === POOLBAAS MOBILE TOPBAR V4 === */

@media (max-width: 760px) {

    /*
     * Fixed in plaats van sticky.
     * Hierdoor blijft de header altijd zichtbaar,
     * ongeacht overflow of transforms op parents.
     */

    html body .pb-unified-header,
    html body .pb-nav-v2-header {
        position: fixed !important;
        z-index: 9999 !important;

        top: 0 !important;
        right: 0 !important;
        left: 0 !important;

        width: 100% !important;
        min-height:
            calc(
                132px
                + env(safe-area-inset-top)
            ) !important;

        margin: 0 !important;
        padding-top:
            env(safe-area-inset-top) !important;

        overflow: visible !important;
        contain: none !important;

        transform: none !important;
        translate: none !important;

        border-bottom:
            1px solid
            rgba(255, 255, 255, 0.09) !important;

        background:
            linear-gradient(
                105deg,
                rgba(18, 8, 50, 0.985),
                rgba(8, 5, 27, 0.99)
            ) !important;

        box-shadow:
            0 15px 38px
            rgba(0, 0, 0, 0.34) !important;

        backdrop-filter:
            blur(20px)
            saturate(145%) !important;
    }


    /*
     * De fixed header zit niet meer in de normale
     * documentstroom. Deze ruimte voorkomt dat de
     * bovenkant van pagina's eronder verdwijnt.
     */

    html body {
        padding-top:
            calc(
                132px
                + env(safe-area-inset-top)
            ) !important;
    }


    html body
    .pb-unified-header
    .pb-unified-header__inner,
    html body
    .pb-nav-v2-header
    .pb-unified-header__inner {
        display: grid !important;
        grid-template-columns:
            120px
            minmax(0, 1fr) !important;

        align-items: center !important;
        gap: 12px !important;

        width: 100% !important;
        max-width: none !important;

        min-height: 132px !important;

        margin: 0 !important;
        padding:
            6px
            13px !important;

        overflow: visible !important;
    }


    /*
     * Merkblok: alleen het logo.
     */

    html body
    .pb-unified-header
    .pb-unified-brand,
    html body
    .pb-nav-v2-header
    .pb-unified-brand {
        display: block !important;

        width: 120px !important;
        min-width: 120px !important;
        max-width: 120px !important;

        height: 120px !important;
        min-height: 120px !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: visible !important;

        border: 0 !important;
        border-radius: 0 !important;

        background: transparent !important;
        box-shadow: none !important;
    }


    /*
     * Geen tegel, vlak, rand of achtergrond
     * achter het logo.
     */

    html body
    .pb-unified-header
    .pb-unified-brand__logo,
    html body
    .pb-nav-v2-header
    .pb-unified-brand__logo {
        display: block !important;

        width: 120px !important;
        min-width: 120px !important;
        max-width: 120px !important;

        height: 120px !important;
        min-height: 120px !important;
        max-height: 120px !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: visible !important;

        border: 0 !important;
        border-radius: 0 !important;
        outline: 0 !important;

        background: none !important;
        background-color: transparent !important;
        background-image: none !important;

        box-shadow: none !important;
        filter: none !important;
    }


    html body
    .pb-unified-header
    .pb-unified-brand__logo::before,
    html body
    .pb-unified-header
    .pb-unified-brand__logo::after,
    html body
    .pb-nav-v2-header
    .pb-unified-brand__logo::before,
    html body
    .pb-nav-v2-header
    .pb-unified-brand__logo::after {
        display: none !important;
        content: none !important;
    }


    html body
    .pb-unified-header
    .pb-unified-brand__logo img,
    html body
    .pb-nav-v2-header
    .pb-unified-brand__logo img {
        display: block !important;

        width: 120px !important;
        min-width: 120px !important;
        max-width: 120px !important;

        height: 120px !important;
        min-height: 120px !important;
        max-height: 120px !important;

        margin: 0 !important;
        padding: 0 !important;

        object-fit: contain !important;
        object-position: center !important;

        border: 0 !important;
        border-radius: 0 !important;

        background: transparent !important;
        box-shadow: none !important;
        filter: none !important;
    }


    /*
     * Alle merk- en contexttekst naast het logo weg.
     */

    html body
    .pb-unified-header
    .pb-unified-brand__copy,
    html body
    .pb-nav-v2-header
    .pb-unified-brand__copy,
    html body
    .pb-unified-header
    .pb-unified-mobile-context,
    html body
    .pb-nav-v2-header
    .pb-unified-mobile-context {
        display: none !important;
    }


    html body
    .pb-unified-header
    .pb-unified-centre,
    html body
    .pb-nav-v2-header
    .pb-unified-centre {
        display: none !important;
    }


    /*
     * Acties blijven rechts naast het grote logo.
     */

    html body
    .pb-unified-header
    .pb-unified-actions,
    html body
    .pb-nav-v2-header
    .pb-unified-actions {
        position: static !important;

        grid-column: 2 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 7px !important;

        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;

        transform: none !important;
    }


    html body
    .pb-unified-header
    .pb-unified-actions > *,
    html body
    .pb-nav-v2-header
    .pb-unified-actions > * {
        display: none !important;
    }


    html body
    .pb-unified-header
    .pb-unified-actions
    .pb-notification-bell,
    html body
    .pb-nav-v2-header
    .pb-unified-actions
    .pb-notification-bell {
        display: grid !important;

        width: 48px !important;
        height: 48px !important;

        border-radius: 15px !important;
    }


    html body
    .pb-unified-header
    .pb-unified-actions
    .pb-language-switcher--header,
    html body
    .pb-nav-v2-header
    .pb-unified-actions
    .pb-language-switcher--header {
        display: flex !important;
    }


    html body
    .pb-unified-header
    .pb-nav-v2-bell-icon,
    html body
    .pb-nav-v2-header
    .pb-nav-v2-bell-icon {
        width: 25px !important;
        height: 25px !important;
    }

}


@media (max-width: 370px) {

    html body
    .pb-unified-header
    .pb-unified-actions
    .pb-language-switcher--header,
    html body
    .pb-nav-v2-header
    .pb-unified-actions
    .pb-language-switcher--header {
        display: none !important;
    }

}


@media (prefers-reduced-motion: reduce) {

    html body .pb-unified-header,
    html body .pb-nav-v2-header {
        transition: none !important;
    }

}

/* === POOLBAAS MOBILE TOPBAR V5 START === */

@media (max-width: 760px) {

    /*
     * Fixed V4 terugdraaien.
     * De topbar blijft in de normale paginaopbouw
     * en plakt bovenaan tijdens het scrollen.
     */

    html body .pb-unified-header,
    html body .pb-nav-v2-header {
        position: sticky !important;
        z-index: 9999 !important;

        top: 0 !important;
        right: auto !important;
        left: auto !important;

        width: 100% !important;
        margin: 0 !important;

        transform: none !important;
        translate: none !important;
    }


    /*
     * De extra ruimte van de fixed header
     * is niet meer nodig.
     */

    html body {
        padding-top: 0 !important;
    }


    /*
     * Logo volledig wit maken.
     * Transparantie van de PNG blijft behouden.
     */

    html body
    .pb-unified-header
    .pb-unified-brand__logo img,
    html body
    .pb-nav-v2-header
    .pb-unified-brand__logo img {
        filter:
            brightness(0)
            saturate(100%)
            invert(100%) !important;

        opacity: 1 !important;

        background: transparent !important;
        box-shadow: none !important;
    }


    html body
    .pb-unified-header
    .pb-unified-brand__logo,
    html body
    .pb-nav-v2-header
    .pb-unified-brand__logo {
        border: 0 !important;
        outline: 0 !important;

        background: transparent !important;
        background-image: none !important;

        box-shadow: none !important;
    }

}

/* === POOLBAAS MOBILE TOPBAR V5 END === */

/* === POOLBAAS MOBILE TOPBAR V6 START === */

@media (max-width: 760px) {

    /*
     * Compacte sticky topbar.
     * Ongeveer de helft van de vorige hoogte.
     */

    html body .pb-unified-header,
    html body .pb-nav-v2-header {
        position: sticky !important;
        z-index: 9999 !important;
        top: 0 !important;

        width: 100% !important;

        min-height:
            calc(
                68px
                + env(safe-area-inset-top)
            ) !important;

        padding-top:
            env(safe-area-inset-top) !important;

        overflow: visible !important;

        transform: none !important;
        translate: none !important;
    }


    html body {
        padding-top: 0 !important;
    }


    html body
    .pb-unified-header
    .pb-unified-header__inner,
    html body
    .pb-nav-v2-header
    .pb-unified-header__inner {
        display: grid !important;

        grid-template-columns:
            58px
            minmax(0, 1fr) !important;

        align-items: center !important;
        gap: 8px !important;

        width: 100% !important;
        min-width: 0 !important;
        min-height: 68px !important;

        margin: 0 !important;

        padding:
            5px
            9px !important;

        overflow: visible !important;
    }


    /*
     * Wit logo zonder vlak.
     */

    html body
    .pb-unified-header
    .pb-unified-brand,
    html body
    .pb-nav-v2-header
    .pb-unified-brand {
        display: block !important;

        width: 58px !important;
        min-width: 58px !important;
        max-width: 58px !important;

        height: 58px !important;
        min-height: 58px !important;
        max-height: 58px !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: visible !important;

        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }


    html body
    .pb-unified-header
    .pb-unified-brand__logo,
    html body
    .pb-nav-v2-header
    .pb-unified-brand__logo {
        display: block !important;

        width: 58px !important;
        min-width: 58px !important;
        max-width: 58px !important;

        height: 58px !important;
        min-height: 58px !important;
        max-height: 58px !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: visible !important;

        border: 0 !important;
        border-radius: 0 !important;
        outline: 0 !important;

        background: transparent !important;
        background-image: none !important;

        box-shadow: none !important;
    }


    html body
    .pb-unified-header
    .pb-unified-brand__logo img,
    html body
    .pb-nav-v2-header
    .pb-unified-brand__logo img {
        display: block !important;

        width: 58px !important;
        min-width: 58px !important;
        max-width: 58px !important;

        height: 58px !important;
        min-height: 58px !important;
        max-height: 58px !important;

        margin: 0 !important;
        padding: 0 !important;

        object-fit: contain !important;

        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;

        filter:
            brightness(0)
            saturate(100%)
            invert(100%) !important;
    }


    html body
    .pb-unified-header
    .pb-unified-brand__copy,
    html body
    .pb-nav-v2-header
    .pb-unified-brand__copy,
    html body
    .pb-unified-header
    .pb-unified-mobile-context,
    html body
    .pb-nav-v2-header
    .pb-unified-mobile-context,
    html body
    .pb-unified-header
    .pb-unified-centre,
    html body
    .pb-nav-v2-header
    .pb-unified-centre {
        display: none !important;
    }


    /*
     * Rechterkant mag nooit buiten het scherm lopen.
     */

    html body
    .pb-unified-header
    .pb-unified-actions,
    html body
    .pb-nav-v2-header
    .pb-unified-actions {
        grid-column: 2 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 5px !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: visible !important;
    }


    html body
    .pb-unified-header
    .pb-unified-actions > *,
    html body
    .pb-nav-v2-header
    .pb-unified-actions > * {
        flex: 0 0 auto;
    }


    html body
    .pb-unified-header
    .pb-notification-bell,
    html body
    .pb-nav-v2-header
    .pb-notification-bell {
        display: grid !important;
        place-items: center !important;

        flex: 0 0 38px !important;

        width: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;

        height: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;

        padding: 0 !important;

        border-radius: 12px !important;
    }


    html body
    .pb-unified-header
    .pb-nav-v2-bell-icon,
    html body
    .pb-nav-v2-header
    .pb-nav-v2-bell-icon {
        width: 21px !important;
        height: 21px !important;
    }


    /*
     * Compacte taalkeuze.
     */

    html body
    .pb-unified-header
    .pb-language-switcher--header,
    html body
    .pb-nav-v2-header
    .pb-language-switcher--header {
        display: flex !important;
        flex: 0 0 auto !important;

        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;

        width: auto !important;
        min-width: 0 !important;
        max-width: 72px !important;

        margin: 0 !important;
        padding: 2px !important;

        overflow: hidden !important;

        border:
            1px solid
            rgba(255, 255, 255, 0.11) !important;

        border-radius: 11px !important;

        background:
            rgba(255, 255, 255, 0.045) !important;

        box-shadow: none !important;
    }


    html body
    .pb-unified-header
    .pb-language-switcher--header a,
    html body
    .pb-unified-header
    .pb-language-switcher--header button,
    html body
    .pb-nav-v2-header
    .pb-language-switcher--header a,
    html body
    .pb-nav-v2-header
    .pb-language-switcher--header button {
        display: grid !important;
        place-items: center !important;

        flex: 0 0 30px !important;

        width: 30px !important;
        min-width: 30px !important;
        max-width: 30px !important;

        height: 30px !important;
        min-height: 30px !important;

        margin: 0 !important;
        padding: 0 !important;

        border: 0 !important;
        border-radius: 8px !important;

        font-size: 0.55rem !important;
        font-weight: 900 !important;
        line-height: 1 !important;
    }


    html body
    .pb-unified-header
    .pb-language-switcher--header a.is-active,
    html body
    .pb-unified-header
    .pb-language-switcher--header button.is-active,
    html body
    .pb-nav-v2-header
    .pb-language-switcher--header a.is-active,
    html body
    .pb-nav-v2-header
    .pb-language-switcher--header button.is-active {
        background:
            rgba(155, 98, 255, 0.86) !important;

        color: #fff !important;
    }

}


@media (max-width: 340px) {

    html body
    .pb-unified-header
    .pb-language-switcher--header,
    html body
    .pb-nav-v2-header
    .pb-language-switcher--header {
        max-width: 62px !important;
    }


    html body
    .pb-unified-header
    .pb-language-switcher--header a,
    html body
    .pb-unified-header
    .pb-language-switcher--header button,
    html body
    .pb-nav-v2-header
    .pb-language-switcher--header a,
    html body
    .pb-nav-v2-header
    .pb-language-switcher--header button {
        flex-basis: 27px !important;

        width: 27px !important;
        min-width: 27px !important;
        max-width: 27px !important;
    }

}

/* === POOLBAAS MOBILE TOPBAR V6 END === */
