/*
Theme Name: Evermark Agency
Theme URI: https://evermark.nl
Description: Gebouwd door Evermark Agency voor In de Stad Verhuurmakelaars.
Author: Evermark Agency
Author URI: https://evermark.nl
Template: hello-elementor
Version: 2.0.3
Text Domain: evermark-agency
*/


/* ==========================================================================
   1. Highlight tekst-styling (koppen met witte/blauwe accentvlakken)
   ========================================================================== */

span.highlight--white{
background:#fff;
padding:0.1em 0.25em;
line-height:1.4;
display:inline;
}

span.highlight--white:first-of-type{
border-radius:0.2em 0.2em 0 0;
}

span.highlight--white:last-of-type{
border-radius:0 0 0.2em 0.2em;
}

span.highlight--blue{
background:#007FE7;
padding:0.1em 0.25em;
line-height:1.4;
display:inline;
}

span.highlight--blue:first-of-type{
border-radius:0.2em 0.2em 0 0;
}

span.highlight--blue:last-of-type{
border-radius:0 0 0.2em 0.2em;
}


/* ==========================================================================
   2. Homepagina zoekformulier ([woning_home_search])
   ========================================================================== */

@media (max-width: 767px) {
    .woning-home-search {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .woning-home-search select[name="max_prijs"],
    .woning-home-search select[name="slaapkamers"] {
        width: calc(50% - 5px);
        flex: 0 0 calc(50% - 5px);
    }

    .woning-home-search button[type="submit"],
    .woning-home-search .woning-home-search-all {
        width: 100%;
        flex: 0 0 100%;
    }
}


/* ==========================================================================
   3. Woningfilter - mobiele bottom sheet ([woning_filter], Airbnb-stijl)
   ========================================================================== */

.wf-trigger {
    display: none;
}

.wf-overlay {
    display: none;
}

/* Knop voor handmatig in Elementor plaatsen (id="wf-open-filters") */
.wf-open-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px 12px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e2e2e2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #14213d;
    font-family: inherit;
}

.wf-open-filters-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

@media (max-width: 767px) {

    /* Automatische fallback-knop rechtsonder, alleen als #wf-open-filters ontbreekt */
    .wf-trigger {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 9998;
        padding: 12px 20px 12px 16px;
        border-radius: 999px;
        background: #fff;
        border: 1px solid #e2e2e2;
        box-shadow: 0 4px 16px rgba(0,0,0,0.15);
        cursor: pointer;
        font-size: 15px;
        font-weight: 600;
        color: #14213d;
    }

    .wf-trigger svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    .wf-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 9999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    .wf-overlay.wf-open {
        opacity: 1;
        pointer-events: auto;
    }

    #woning-filter {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
        z-index: 10000;
        background: #fff;
        border-radius: 16px 16px 0 0;
        padding: 0;
        box-shadow: 0 -8px 30px rgba(0,0,0,0.2);
        transform: translateY(100%);
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    #woning-filter.wf-open {
        transform: translateY(0);
    }

    .wf-sheet-header {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 18px 20px;
        border-bottom: 1px solid #eee;
        flex-shrink: 0;
    }

    .wf-sheet-title {
        font-size: 16px;
        font-weight: 700;
        color: #14213d;
        margin: 0;
    }

    .wf-close {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: none;
        background: #f0f0f0;
        font-size: 18px;
        line-height: 1;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .wf-sheet-body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        flex: 1;
        min-height: 0;
        padding: 4px 20px 20px 20px;
    }

    #woning-filter label {
        display: block;
        margin-top: 16px;
        margin-bottom: 6px;
        font-weight: 600;
        font-size: 14px;
        color: #14213d;
    }

    #woning-filter select,
    #woning-filter input[type="text"] {
        width: 100%;
        padding: 14px 16px;
        border-radius: 12px;
        border: 1px solid #e2e2e2;
        background: #f7f8fa;
        font-size: 15px;
        box-sizing: border-box;
    }

    .wf-footer {
        flex-shrink: 0;
        background: #fff;
        padding: 14px 20px 24px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        border-top: 1px solid #eee;
    }

    .wf-footer a {
        font-size: 14px;
        font-weight: 600;
        color: #14213d;
        text-decoration: underline;
        white-space: nowrap;
    }

    #woning-filter button[type="submit"] {
        background: #14213d;
        color: #fff;
        border: none;
        border-radius: 12px;
        padding: 14px 28px;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
    }
}


/* ==========================================================================
   4. Property card slider ([property_card_slider], in Elementor Loop Item)
   ========================================================================== */

.elementor-widget-shortcode:has(.epcs),
.elementor-widget-shortcode:has(.epcs) .elementor-widget-container{
    width: 100%;
}