.flex_layout.hero_flipcard { }

#pk_flex_content .flex_layout.hero_flipcard .rank-math-breadcrumb {
    background-color: var(--wp--preset--color--fl-footer-link);
}

.flex_layout.hero_flipcard .flex_container_inner {
    gap: 50px;
    position: relative;
    display: flex;
    align-items: center;
    padding-block: 10px 50px;
}

.flex_layout.hero_flipcard .gmw-field-type-taxonomy-wrapper {
    display: none;
}

.flex_layout.hero_flipcard .flex_image_wrapper {
    position: relative;
    overflow: hidden;
}

/* 👇 Carrousel-afbeeldingen (als divs met achtergrond) */
.flex_layout.hero_flipcard .flex_image_wrapper.achtergrond-carousel .bg-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

/* 👇 Scroll down blijft zichtbaar boven de slides */
.flex_layout.hero_flipcard #scroll_down {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 1;
}

.flex_layout.hero_flipcard .light_gmwp_search {
    max-width: 400px;
    margin-top: 30px;
}

.flex_layout.hero_flipcard .gerelateerde_locaties {
    margin-top: -20px;
    margin-bottom: 20px;
}

/* === DESKTOP STYLING === */
@media screen and (min-width: 993px) {

    .flex_layout.hero_flipcard .flex_container_inner.image_right {
        flex-direction: row-reverse;
    }

    .flex_layout.hero_flipcard .flex_image_wrapper {
        width: 45%;
        aspect-ratio: 1;
    }

    .flex_layout.hero_flipcard .flex_content_wrapper {
        width: 55%;
    }

    /* Afbeelding als <img> */
    .flex_layout.hero_flipcard .flex_image_wrapper img {
        height: 100%;
        width: 100%;
        object-fit: contain;
        aspect-ratio: 1;
        display: block;
    }
}

/* === MOBIEL STYLING === */
@media screen and (max-width: 992px) {
    .flex_layout.hero_flipcard .flex_container_inner {
        flex-direction: column;
        padding-block: 0px 30px;
    }

    .flex_layout.hero_flipcard .light_gmwp_search {
        max-width: unset;
    }

    .flex_layout.hero_flipcard .flex_content_wrapper {
        width: 100%;
    }

    /* <img> fallback */
    .flex_layout.hero_flipcard .flex_image_wrapper img {
        aspect-ratio: 1;
        object-fit: contain;
        height: 100%;
        width: 100%;
        display: block;
    }

    .flex_layout.hero_flipcard .flex_image_wrapper {
        width: 100%;
        aspect-ratio: 1;
    }
}


/* =========================
   BOTTOM HERO BANNER
   (alleen site 11)
========================= */

.site-id-11 .hero_locaties_bottom_banner {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    z-index: 10;
    pointer-events: none;
}

.site-id-11 .hero_locaties_bottom_inner {
    display: flex;
    gap: 16px;
    padding: 0 40px;
    overflow: hidden;
	flex-wrap: wrap; 
    justify-content: flex-start;
    pointer-events: auto;
}

/* cards */
.site-id-11 .hero_locatie_bottom_link {
    flex: 0 0 auto;
    min-width: 220px;
    max-width: 260px;
    padding: 16px 18px;
    background: rgb(226 234 230);
    border-radius: 16px 16px 0px 0px;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(0,0,0,0.14);
    transform: translateY(10px);
    transition: transform 0.5s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* hover omhoog */
.site-id-11 .hero_locatie_bottom_link:hover {
    transform: translateY(0px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

/* tekst */
.site-id-11 .hero_locatie_opvangsoorten {
    font-size: 12px;
    font-weight: 700;
    opacity: 0.7;
}

.site-id-11 .hero_locatie_naam {
    font-size: 16px;
    font-weight: 700;
    
}
.site-id-11 .hero_locatie_bottom_link {color: #759b89}

/* =========================
   MOBIEL
========================= */

@media screen and (max-width: 767px) {

    .site-id-11 .hero_locaties_bottom_banner {
        bottom: -30px;
    }

    .site-id-11 .hero_locaties_bottom_inner {
        gap: 10px;
        padding: 0 20px;
    }

    .site-id-11 .hero_locatie_bottom_link {
        min-width: 180px;
        padding: 12px 14px;
        transform: translateY(10px);
    }

    .site-id-11 .hero_locatie_naam {
        font-size: 14px;
    }

    .site-id-11 .hero_locatie_opvangsoorten {
        font-size: 11px;
    }
}
/* Chrome / Safari */
.site-id-11 .hero_locaties_bottom_inner::-webkit-scrollbar {
    display: none;
}

/* Firefox */
.site-id-11 .hero_locaties_bottom_inner {
    scrollbar-width: none;
}

.site-id-11 .hero_locaties_bottom_label {
    flex: 0 0 100%;
    font-size: 14px;
    font-weight: 700;
    /* margin-bottom: 4px; */
    opacity: 0.8;
}

.site-id-11 .hero_locatie_bottom_link.is-current {
    background: #759b89; /* pas aan naar jouw kleur */
    color: #ffffff!important;
}

.site-id-11 .hero_locatie_bottom_link.is-current .hero_locatie_opvangsoorten {
    opacity: 0.85;
}

.site-id-11 .hero_locatie_bottom_link.is-current:hover {
    background: #759b89; /* iets donkerder hover */
}

.site-id-11 .hero_locaties_bottom_inner {
    display: flex;
    gap: 16px;
    padding: 0 40px;
    flex-wrap: wrap; /* belangrijk */
}

@media screen and (max-width: 767px) {

    .site-id-11 .hero_locaties_bottom_inner {
        flex-wrap: nowrap;          /* alles op 1 rij */
        overflow-x: auto;           /* ✅ scroll aan */
        overflow-y: hidden;
        gap: 10px;
        padding: 0 20px;

        -webkit-overflow-scrolling: touch; /* smooth iOS */
        scroll-snap-type: x mandatory;
    }

    .site-id-11 .hero_locatie_bottom_link {
        flex: 0 0 180px;
        min-width: 180px;
        max-width: 180px;

        scroll-snap-align: start;
    }

}

@media screen and (max-width: 767px) {

    .site-id-11 .hero_locaties_bottom_label {
        font-size: 13px;
    }

}
@media screen and (max-width: 767px) {

    .site-id-11 .hero_locaties_bottom_inner {
        display: flex;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 10px;
        padding: 0 20px;
        align-items: stretch;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .site-id-11 .hero_locaties_bottom_label {
        position: absolute;
        left: 20px;
        top: -24px;
        flex: none;
        width: auto;
        white-space: nowrap;
    }

    .site-id-11 .hero_locatie_bottom_link {
        flex: 0 0 180px;
        min-width: 180px;
        max-width: 180px;
        scroll-snap-align: start;
    }
}

/* =========================================================
   HERO FLIPCARD
========================================================= */

.hero_flipcard {
    width: 100%;
    height: 100%;

    min-height: 100%;

    position: relative;

    perspective: 1800px;
}

.hero_flipcard_inner {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    transform-style: preserve-3d;

    transition:
        transform .8s cubic-bezier(.23,1,.32,1);
}

.hero_flipcard_front {
    transform: rotate(0deg);
    transition: transform .4s ease;
}

.hero_flipcard_front:hover {
    transform: rotate(-3deg);
}

.hero_flipcard_front,
.hero_flipcard_back {

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    backface-visibility: hidden;

    border-radius: 30px;

    overflow: hidden;
}

.hero_flipcard.is-flipped .hero_flipcard_inner {
    transform: rotateY(180deg);
}

.hero_flipcard_front {
    cursor: pointer;
}


.hero_flipcard_front img {

    width: 100%;
    height: 100%;

    object-fit: contain;
}

.hero_flipcard_back {

    transform: rotateY(180deg);

    background: #ffffff;

    display: flex;
    justify-content: center;
    align-items: center;

    /*padding: 50px;*/
}

.hero_flipcard_content {
    text-align: center;
}

.hero_flipcard_content p {
    font-size: 18px;
    line-height: 1.8;
	margin-top: 40px;
}

.hero_flipcard_button {

    display: inline-flex;

    margin-top: 20px;

    padding: 14px 24px;

    border-radius: 999px;

    background:
        var(--wp--preset--color--fl-accent);

    color: white;
}

.flip_hint {
    position: absolute;

    right: 20px;
    bottom: 20px;

    padding: 10px 16px;

    background: rgba(255,255,255,.9);

    border-radius: 999px;

    font-size: 14px;
    font-weight: 600;
    box-shadow:
        0 5px 20px rgba(0,0,0,.08);

    z-index: 5;

    transition:
        transform .3s ease,
        opacity .3s ease;
}

.hero_flipcard_front:hover .flip_hint {
    transform: scale(1.05);
}

.flip_back_button {

    position: absolute;

    top: -10px;
    right: 20px;

    cursor: pointer;

    /*background: rgb(123 156 136);*/

    padding: 8px 14px;
	color: #212020;
    border-radius: 15px;

    font-size: 11px;
    font-weight: 600;

    backdrop-filter: blur(10px);

    z-index: 20;

    transition: all .3s ease;
}

.flip_back_button:hover {
    transform: scale(1.05);
}

.hero_flipcard_back {
    position: relative;

    transform: rotateY(180deg);

    background: #ffffff;

    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;

    
}

.hero_flipcard_bg {

    position: absolute;
    inset: 0;
	background-repeat: no-repeat;
    background-size: contain;
    background-position: center;

    transform: scaleX(-1);

    opacity: .28;

    filter: grayscale(100%);

    z-index: 1;
}

.hero_flipcard_content {

    position: relative;

    z-index: 2;

    text-align: center;

    max-width: 500px;
}