/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* =========================================================
   ALGEMEEN
   ========================================================= */

.is-pwa .hidestore {
    display: none !important;
}

:target {
    scroll-margin-top: 120px;
}


/* =========================================================
   MENUKNOP TABLET EN MOBIEL
   ========================================================= */

@media (max-width: 1200px) {
    .elementor-menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .elementor-menu-toggle::after {
        content: "Menu";
        font-size: 16px;
        font-weight: 500;
        line-height: 1;
    }

    .elementor-menu-toggle[aria-expanded="true"]::after {
        content: "Sluiten";
    }
}


/* =========================================================
   MENUREGELS DRINKS & BITES
   ========================================================= */

.menu-regel {
    display: flex !important;
    flex: 1 1 0 !important;
    flex-flow: row nowrap !important;
    align-items: baseline !important;
    gap: 0.5rem;
    width: auto !important;
    min-width: 0 !important;
}

.menu-regel > .menu-titel {
    order: 1;
    display: flex !important;
    flex: 1 1 auto !important;
    align-items: baseline !important;
    gap: 0.5rem;
    width: auto !important;
    min-width: 0 !important;
}

.menu-regel > .menu-titel > .elementor-widget-container {
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
}

.menu-regel > .menu-titel::after {
    content: "";
    flex: 1 1 2rem;
    min-width: 1.5rem;
    border-bottom: 2px dotted currentColor;
    transform: translateY(-0.2em);
    opacity: 0.55;
}

.menu-regel > .menu-prijs {
    order: 2;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: max-content !important;
    white-space: nowrap !important;
}

.e-con:has(> .menu-regel):has(> #menu-zijcontainer) {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
}

.e-con:has(> .menu-regel):has(> #menu-zijcontainer)
> #menu-zijcontainer {
    flex: 0 0 24px !important;
    align-self: flex-start !important;
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
}

#menu-zijcontainer .elementor-widget-image,
#menu-zijcontainer .elementor-widget-container {
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
}

#menu-zijcontainer img,
#menu-zijcontainer svg {
    display: block !important;
    width: 24px !important;
    max-width: 24px !important;
    height: auto !important;
}

@media (max-width: 767px) {
    .e-con:has(> .menu-regel):has(> #menu-zijcontainer) {
        gap: 6px !important;
    }

    .menu-regel,
    .menu-regel > .menu-titel {
        gap: 0.4rem !important;
    }

    .menu-regel > .menu-titel::after {
        min-width: 0.75rem;
    }
}


/* =========================================================
   DETAILHERO'S – BASIS EN DESKTOP

   De algemene klasse blijft ook bruikbaar voor de bestaande
   linkeruitlijning van gewone inhoudsblokken. Hero-specifieke
   regels hieronder zijn daarom altijd op de echte hero-ouder
   met zowel tekst als afbeelding begrensd.
   ========================================================= */

.zuidje-hero-content {
    box-sizing: border-box;
    min-width: 0;
    padding-left: max(15px, calc((100vw - 1280px) / 2));
}

.hero-breadcrumb {
    position: absolute;
    top: 12px;
    left: max(30px, calc((100vw - 1280px) / 2));
    z-index: 10;
    width: auto;
}

.hero-image-curve {
    position: relative;
    min-width: 0;
    overflow: hidden;

    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M180 0H1000V1000H180C105 720 105 280 180 0Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M180 0H1000V1000H180C105 720 105 280 180 0Z'/%3E%3C/svg%3E");
    -webkit-mask-size: 102% 102%;
    mask-size: 102% 102%;
    -webkit-mask-position: left top;
    mask-position: left top;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.hero-image-curve::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000' preserveAspectRatio='none'%3E%3Cpath d='M180 0C105 280 105 720 180 1000' fill='none' stroke='%23ffffff' stroke-width='12'/%3E%3C/svg%3E");
    background-size: 102% 102%;
    background-position: left top;
    background-repeat: no-repeat;
}


/* =========================================================
   TABLET LANDSCAPE – HERO MET BOOG
   900 t/m 1200 px, uitsluitend liggend
   ========================================================= */

@media
    (min-width: 900px)
    and (max-width: 1200px)
    and (orientation: landscape) {

    .e-con:has(> .zuidje-hero-content):has(> .hero-image-curve) {
        --padding-top: 0px !important;
        --padding-right: 0px !important;
        --padding-bottom: 0px !important;
        --padding-left: 0px !important;
        --padding-block-start: 0px !important;
        --padding-block-end: 0px !important;
        --padding-inline-start: 0px !important;
        --padding-inline-end: 0px !important;

        display: flex !important;
        flex-flow: row nowrap !important;
        align-items: stretch !important;
        gap: 0 !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: none !important;
        min-height: var(--min-height, 55vh) !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .e-con:has(> .zuidje-hero-content):has(> .hero-image-curve)
    > .zuidje-hero-content,
    .e-con:has(> .zuidje-hero-content):has(> .hero-image-curve)
    > .hero-image-curve {
        flex: 0 0 50% !important;
        align-self: stretch !important;
        width: 50% !important;
        max-width: 50% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
    }

    .e-con:has(> .zuidje-hero-content):has(> .hero-image-curve)
    > .zuidje-hero-content {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .e-con:has(> .zuidje-hero-content):has(> .hero-image-curve)
    > .hero-image-curve {
        border-radius: 0 !important;
    }

    .e-con:has(> .zuidje-hero-content):has(> .hero-image-curve)
    > .hero-image-curve::after {
        display: block !important;
    }
}


/* =========================================================
   TABLET PORTRAIT EN KLEIN TABLET
   Tekst boven, afbeelding onder, geen boog
   ========================================================= */

@media
    (min-width: 768px)
    and (max-width: 1200px)
    and (orientation: portrait),
    (min-width: 768px)
    and (max-width: 899px) {

    .e-con:has(> .zuidje-hero-content):has(> .hero-image-curve) {
        --padding-top: 0px !important;
        --padding-right: 0px !important;
        --padding-bottom: 0px !important;
        --padding-left: 0px !important;
        --padding-block-start: 0px !important;
        --padding-block-end: 0px !important;
        --padding-inline-start: 0px !important;
        --padding-inline-end: 0px !important;

        display: flex !important;
        flex-flow: column nowrap !important;
        align-items: stretch !important;
        gap: 0 !important;
        width: 100% !important;
        max-width: none !important;
        min-height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .e-con:has(> .zuidje-hero-content):has(> .hero-image-curve)
    > .zuidje-hero-content,
    .e-con:has(> .zuidje-hero-content):has(> .hero-image-curve)
    > .hero-image-curve {
        flex: 0 0 auto !important;
        align-self: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    .e-con:has(> .zuidje-hero-content):has(> .hero-image-curve)
    > .zuidje-hero-content {
        min-height: auto !important;
        padding: 40px 20px !important;
    }

    .e-con:has(> .zuidje-hero-content):has(> .hero-image-curve)
    .hero-breadcrumb {
        position: static !important;
        width: 100% !important;
        margin-bottom: 12px !important;
    }

    .e-con:has(> .zuidje-hero-content):has(> .hero-image-curve)
    > .hero-image-curve {
        -webkit-mask-image: none !important;
        mask-image: none !important;
        align-self: center !important;
        width: calc(100% - 30px) !important;
        max-width: calc(100% - 30px) !important;
        min-height: 280px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        border-radius: 20px 20px 0 0 !important;
    }

    .e-con:has(> .zuidje-hero-content):has(> .hero-image-curve)
    > .hero-image-curve::after {
        display: none !important;
    }
}


/* =========================================================
   MOBIELE HERO
   ========================================================= */

@media (max-width: 767px) {
    .e-con:has(> .zuidje-hero-content):has(> .hero-image-curve) {
        --padding-top: 0px !important;
        --padding-right: 0px !important;
        --padding-bottom: 0px !important;
        --padding-left: 0px !important;
        --padding-block-start: 0px !important;
        --padding-block-end: 0px !important;
        --padding-inline-start: 0px !important;
        --padding-inline-end: 0px !important;

        display: flex !important;
        flex-flow: column nowrap !important;
        align-items: stretch !important;
        gap: 0 !important;
        width: 100% !important;
        max-width: none !important;
        min-height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .e-con:has(> .zuidje-hero-content):has(> .hero-image-curve)
    > .zuidje-hero-content,
    .e-con:has(> .zuidje-hero-content):has(> .hero-image-curve)
    > .hero-image-curve {
        flex: 0 0 auto !important;
        align-self: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    .e-con:has(> .zuidje-hero-content):has(> .hero-image-curve)
    > .zuidje-hero-content {
        min-height: auto !important;
        padding: 32px 20px !important;
    }

    .e-con:has(> .zuidje-hero-content):has(> .hero-image-curve)
    .hero-breadcrumb {
        position: static !important;
        width: 100% !important;
        margin-bottom: 12px !important;
    }

    .e-con:has(> .zuidje-hero-content):has(> .hero-image-curve)
    > .hero-image-curve {
        -webkit-mask-image: none !important;
        mask-image: none !important;
        align-self: center !important;
        width: calc(100% - 30px) !important;
        max-width: calc(100% - 30px) !important;
        min-height: 250px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        border-radius: 20px 20px 0 0 !important;
    }

    .e-con:has(> .zuidje-hero-content):has(> .hero-image-curve)
    > .hero-image-curve::after {
        display: none !important;
    }
}


/* =========================================================
   HULPKLAS 1: TABLETKOLOMMEN ONDER ELKAAR
   Elementor-klasse: zuidje-tablet-stack
   ========================================================= */

@media (max-width: 1200px) {
    .zuidje-tablet-stack,
    .zuidje-tablet-stack > .e-con-inner {
        display: flex !important;
        flex-flow: column nowrap !important;
        align-items: stretch !important;
        gap: 32px !important;
    }

    .zuidje-tablet-stack > .elementor-element,
    .zuidje-tablet-stack > .e-con-inner > .elementor-element {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .zuidje-tablet-stack .elementor-widget-shortcode,
    .zuidje-tablet-stack .elementor-widget-html,
    .zuidje-tablet-stack .elementor-shortcode,
    .zuidje-tablet-stack .gform_wrapper,
    .zuidje-tablet-stack .gform_wrapper form {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 767px) {
    .zuidje-tablet-stack,
    .zuidje-tablet-stack > .e-con-inner {
        gap: 24px !important;
    }
}


/* =========================================================
   OVER ONS – UITLIJNING INHOUDSBLOK

   De bovenliggende sectie blijft bewust schermbreed, zodat
   "Café & 't Zuidje Benee" op desktop en tablet rechts tegen
   de viewport staat en op mobiel volledig schermbreed blijft.
   Alleen het inhoudsblok erboven krijgt op tablet en mobiel
   dezelfde 15 px ruimte aan beide kanten.
   ========================================================= */

@media (max-width: 1200px) {
    body.page-id-1012 .zuidje-tablet-stack
    > .zuidje-hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Grote tablet landscape: caféblok 15 px van links,
   maar rechts wel exact tegen de viewport. */
@media
    (min-width: 900px)
    and (max-width: 1200px)
    and (orientation: landscape) {

    body.page-id-1012 .zuidje-tablet-stack
    > .elementor-element:last-child {
        flex: 0 0 calc(100% - 15px) !important;
        width: calc(100% - 15px) !important;
        max-width: calc(100% - 15px) !important;
        margin-left: 15px !important;
        margin-right: 0 !important;
    }
}

/* =========================================================
   HULPKLAS 2: VIER BLOKKEN WORDEN 2 × 2 OP TABLET
   Elementor-klasse: zuidje-tablet-two-up
   ========================================================= */

@media (min-width: 768px) and (max-width: 1200px) {
    .zuidje-tablet-two-up,
    .zuidje-tablet-two-up > .e-con-inner {
        display: flex !important;
        flex-flow: row wrap !important;
        align-items: stretch !important;
        gap: 24px !important;
    }

    .zuidje-tablet-two-up > .elementor-element,
    .zuidje-tablet-two-up > .e-con-inner > .elementor-element {
        flex: 0 0 calc(50% - 12px) !important;
        width: calc(50% - 12px) !important;
        max-width: calc(50% - 12px) !important;
        min-width: 0 !important;
    }
}

@media (max-width: 767px) {
    .zuidje-tablet-two-up,
    .zuidje-tablet-two-up > .e-con-inner {
        display: flex !important;
        flex-flow: column nowrap !important;
        gap: 24px !important;
    }

    .zuidje-tablet-two-up > .elementor-element,
    .zuidje-tablet-two-up > .e-con-inner > .elementor-element {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}


/* =========================================================
   HULPKLAS 3: LOOP GRID ÉÉN KOLOM OP TABLET
   Elementor-klasse: zuidje-tablet-grid-one
   ========================================================= */

@media (max-width: 1200px) {
    .zuidje-tablet-grid-one .elementor-loop-container.elementor-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}


/* =========================================================
   HULPKLAS 4: LOOP GRID TWEE KOLOMMEN OP TABLET
   Elementor-klasse: zuidje-tablet-grid-two
   ========================================================= */

@media (min-width: 768px) and (max-width: 1200px) {
    .zuidje-tablet-grid-two .elementor-loop-container.elementor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    .zuidje-tablet-grid-two .elementor-loop-container.elementor-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}


/* =========================================================
   FOOTER OPENINGSTIJDEN
   ========================================================= */

.footer-openingstijden .zuidje-openingstijden {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 18px;
    row-gap: 8px;
}

.footer-openingstijden .zuidje-openingstijden__dag {
    display: contents;
}

.footer-openingstijden .zuidje-openingstijden__label,
.footer-openingstijden .zuidje-openingstijden__tijd {
    display: block;
    margin: 0;
    line-height: 1.45;
}

.footer-openingstijden .zuidje-openingstijden__label {
    font-weight: 400;
}

@media (max-width: 767px) {
    .footer-openingstijden .zuidje-openingstijden {
        grid-template-columns: 90px minmax(0, 1fr);
        column-gap: 12px;
    }
}


/* =========================================================
   HOMEPAGE ONDERSTE BLOKKEN – BASISUITLIJNING
   ========================================================= */

.footer-blok-links {
    padding-left: max(30px, calc((100vw - 1280px) / 2));
    padding-right: 40px;
}

.footer-blok-rechts {
    padding-right: max(30px, calc((100vw - 1280px) / 2));
    padding-left: 40px;
}


/* =========================================================
   HOMEPAGE: FEESTEN & GROEPEN + LIVE OPTREDENS
   Tablet landscape – twee blokken naast elkaar
   ========================================================= */

@media
    (min-width: 900px)
    and (max-width: 1200px)
    and (orientation: landscape) {

    .e-con:has(.footer-blok-links):has(.footer-blok-rechts) {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        gap: 5px !important;
    }

    .e-con:has(.footer-blok-links):has(.footer-blok-rechts)
    > .e-con {
        flex: 1 1 50% !important;
        width: 50% !important;
        max-width: 50% !important;
        min-width: 0 !important;
    }

    .footer-blok-links,
    .footer-blok-rechts {
        flex-direction: column !important;
        align-items: stretch !important;
        overflow: visible !important;
    }

    .e-con:has(> .footer-blok-links) {
        padding-bottom: 0 !important;
    }

    .footer-blok-rechts {
        padding-bottom: 0 !important;
    }

    .footer-blok-links > .hero-image-curve {
        width: calc(100% + 70px) !important;
        max-width: none !important;
        min-height: 300px !important;
        margin-left: -30px !important;
        margin-right: -40px !important;
        margin-bottom: 0 !important;
    }

    .footer-blok-rechts > .hero-image-curve {
        width: calc(100% + 70px) !important;
        max-width: none !important;
        min-height: 300px !important;
        margin-left: -40px !important;
        margin-right: -30px !important;
        margin-bottom: 0 !important;
    }
}


/* =========================================================
   AGENDA – METADATA OP BREDE TABLET
   ========================================================= */

@media (min-width: 1025px) and (max-width: 1200px) {
    .event-time-row {
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .event-time-row > .e-con:first-child {
        flex: 1 1 auto !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
    }

    .event-time-row > .e-con:first-child
    > .elementor-element {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        min-width: max-content !important;
    }

    .event-time-row .elementor-heading-title,
    .event-time-row .elementor-heading-title a {
        white-space: nowrap !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }

    .event-time-row > .e-con:last-child {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        min-width: max-content !important;
    }
}
