/* =========================================================
   Vaarmarkt Home Search v1.0.0
   Mobile first / geen JavaScript
   ========================================================= */

.vm-home-search {
    --vm-hs-bg: #f9f6f1;
    --vm-hs-title: #004E8E;
    --vm-hs-text: #1F2933;
    --vm-hs-muted: #4B5563;
    --vm-hs-orange: #FC8708;
    --vm-hs-orange-hover: #F08008;
    --vm-hs-link: #1D4ED8;
    --vm-hs-white: #FCFCFC;
    --vm-hs-border: #DFE1E5;
    --vm-hs-pill-hover: #E5DFD8;
    --vm-hs-line: #D4D2CF;

    position: relative;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    background: var(--vm-hs-bg);
    color: var(--vm-hs-text);
}

.vm-home-search,
.vm-home-search * {
    box-sizing: border-box;
}

.vm-home-search__inner {
    width: min(100%, 1200px);
    margin: 0 auto;
    padding: 30px 20px 26px;
    text-align: center;
}

.vm-home-search__title {
    max-width: 760px;
    margin: 0 auto;
    color: var(--vm-hs-title);
    font-family: inherit;
    font-size: clamp(30px, 8vw, 42px);
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: -0.025em;
}

.vm-home-search__subtitle {
    max-width: 700px;
    margin: 8px auto 0;
    color: var(--vm-hs-text);
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
}

.vm-home-search__search-wrap {
    width: 100%;
    max-width: 750px;
    margin: 20px auto 0;
}

.vm-home-search__form {
    display: flex;
    align-items: center;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 4px 5px 4px 14px;
    border: 1px solid var(--vm-hs-border);
    border-radius: 999px;
    background: var(--vm-hs-white);
    box-shadow:
        0 1px 2px rgba(35, 30, 25, 0.08),
        0 3px 8px rgba(35, 30, 25, 0.14);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.vm-home-search__form:hover,
.vm-home-search__form:focus-within {
    border-color: #D3D5D9;
    box-shadow:
        0 1px 3px rgba(35, 30, 25, 0.16),
        0 4px 10px rgba(35, 30, 25, 0.14);
}

.vm-home-search__icon {
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0 10px 0 1px;
    color: var(--vm-hs-title);
    pointer-events: none;
}

.vm-home-search__input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #202124;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    appearance: none;
    -webkit-appearance: none;
}

.vm-home-search__input::placeholder {
    color: #70757A;
    opacity: 1;
}

.vm-home-search__input::-webkit-search-cancel-button {
    display: none;
    appearance: none;
    -webkit-appearance: none;
}

.vm-home-search__button {
    display: inline-flex !important;
    flex: 0 0 104px;
    align-items: center !important;
    justify-content: center !important;
    width: 104px;
    height: 38px;
    min-height: 38px;
    margin: 0;
    padding: 0 17px;
    border: 0 !important;
    border-radius: 999px !important;
    outline: 0;
    background: var(--vm-hs-orange) !important;
    box-shadow: none;
    color: #fff !important;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1 !important;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background-color .2s ease, box-shadow .2s ease, transform .1s ease;
}

.vm-home-search__button:hover {
    background: var(--vm-hs-orange-hover) !important;
    box-shadow: 0 2px 5px rgba(60, 64, 67, 0.22);
}

.vm-home-search__button:active {
    transform: scale(.98);
}

.vm-home-search__button:focus-visible {
    box-shadow: 0 0 0 3px rgba(252, 135, 8, .28);
}

.vm-home-search__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip-path: inset(50%);
    white-space: nowrap;
}

.vm-home-search__categories {
    width: 100%;
    max-width: 750px;
    margin: 14px auto 0;
    overflow: hidden;
}

.vm-home-search__categories-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1px 28px 4px 0;
    scroll-snap-type: x proximity;
    scroll-padding-left: 0;
    scroll-padding-right: 28px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.vm-home-search__categories-track::-webkit-scrollbar {
    display: none;
}

.vm-home-search__pill {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 16px;
    border: 1px solid var(--vm-hs-border);
    border-radius: 999px;
    background: var(--vm-hs-white);
    color: var(--vm-hs-title) !important;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(35, 30, 25, .06);
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.vm-home-search__pill:hover {
    background: var(--vm-hs-pill-hover);
    border-color: var(--vm-hs-line);
    box-shadow: 0 2px 5px rgba(35, 30, 25, .08);
}

.vm-home-search__pill:focus-visible {
    outline: 2px solid var(--vm-hs-link);
    outline-offset: 2px;
}

@media (max-width: 360px) {
    .vm-home-search__button {
        flex-basis: 88px;
        width: 88px;
        padding: 0 12px;
    }

    .vm-home-search__input::placeholder {
        color: transparent;
    }
}

@media (min-width: 768px) {
    .vm-home-search__inner {
        padding: 42px 28px 36px;
    }

    .vm-home-search__title {
        font-size: 46px;
    }

    .vm-home-search__subtitle {
        margin-top: 7px;
        font-size: 18px;
    }

    .vm-home-search__search-wrap {
        margin-top: 22px;
    }

    .vm-home-search__form {
        height: 52px;
        padding: 5px 6px 5px 18px;
    }

    .vm-home-search__icon {
        flex-basis: 20px;
        width: 20px;
        height: 20px;
        margin-right: 14px;
    }

    .vm-home-search__input {
        height: 40px;
        font-size: 16px;
    }

    .vm-home-search__button {
        flex-basis: 120px;
        width: 120px;
        height: 40px;
        min-height: 40px;
        padding: 0 24px;
        font-size: 16px;
    }

    .vm-home-search__categories {
        margin-top: 14px;
    }

    .vm-home-search__categories-track {
        justify-content: center;
        overflow: visible;
        padding: 1px 0 4px;
    }

    .vm-home-search__pill {
        min-height: 38px;
        padding: 8px 18px;
        font-size: 14px;
    }
}

@media (min-width: 1024px) {
    .vm-home-search__inner {
        padding: 48px 32px 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vm-home-search__form,
    .vm-home-search__button,
    .vm-home-search__pill {
        transition: none;
    }
}

/* =========================================================
   v1.0.1 - categorie-pills hover
   ========================================================= */

.vm-home-search__pill:hover,
.vaarmarkt-home-search__pill:hover,
.vmhs__pill:hover {
    background: #EAF2F9 !important;
    border-color: #C6DBED !important;
    color: #004E8E !important;
    box-shadow: none !important;
    transform: none !important;
}

.vm-home-search__pill:focus-visible,
.vaarmarkt-home-search__pill:focus-visible,
.vmhs__pill:focus-visible {
    outline: 2px solid #2C7FC4;
    outline-offset: 2px;
}



/* =========================================================
   v1.0.3 - desktop en mobiel dezelfde pill-interactie
   ========================================================= */

.vm-home-search__pill:hover,
.vm-home-search__pill:active,
.vm-home-search__pill:focus-visible,
.vaarmarkt-home-search__pill:hover,
.vaarmarkt-home-search__pill:active,
.vaarmarkt-home-search__pill:focus-visible,
.vmhs__pill:hover,
.vmhs__pill:active,
.vmhs__pill:focus-visible {
    background: #EAF2F9 !important;
    border-color: #C6DBED !important;
    color: #004E8E !important;
    box-shadow: none !important;
    transform: none !important;
}

.vm-home-search__pill:focus-visible,
.vaarmarkt-home-search__pill:focus-visible,
.vmhs__pill:focus-visible {
    outline: 2px solid #2C7FC4;
    outline-offset: 2px;
}




/* =========================================================
   v1.0.5 - natuurlijke tagline op mobiel
   ========================================================= */

@media (max-width: 767px) {
    .vm-home-search__subtitle {
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
        font-size: 15px;
        line-height: 1.4;
        text-wrap: balance;
    }
}

/* v1.0.6 - header achtergrond */
.vm-home-search { background-color: #f9f6f1 !important; }
