/* ==========================================================================
   Vacature-archief (concept) — master/detail weergave (brabantzorg-stijl)
   ========================================================================== */

.awcf-vac-archive {
    --awcf-accent: #c25233;   /* oranje-rood (brand) */
    --awcf-accent-dark: #a8401f;
    --awcf-blue: #2a4a6b;     /* donkerblauw voor koppen */
    --awcf-blue-soft: #7fb3dc;
    --awcf-ink: #1f2933;
    --awcf-muted: #6b7785;
    --awcf-line: #e4e8ee;
    --awcf-bg: #f3f6f9;
    --awcf-bg-soft: #f7f9fb;
    --awcf-radius: 10px;
    --awcf-shadow: 0 1px 3px rgba(31,41,51,.06);
    --awcf-shadow-lg: 0 10px 30px rgba(31,41,51,.12);
    max-width: 1240px;
    margin: 0 auto;
    color: var(--awcf-ink);
    box-sizing: border-box;
}
.awcf-vac-archive *, .awcf-vac-archive *::before, .awcf-vac-archive *::after { box-sizing: border-box; }

/* Body-scroll vergrendelen terwijl een mobiele sheet/drawer open is (JS togglet dit) */
body.awcf-vac-noscroll { overflow: hidden; }

/* ============================ TOOLBAR ============================ */
.awcf-vac-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--awcf-line);
    border-radius: var(--awcf-radius);
    box-shadow: var(--awcf-shadow);
    margin-bottom: 18px;
}
.awcf-vac-toolbar { flex-direction: column; align-items: stretch; }

/* Rij 1: zoekbalk + reset */
.awcf-vac-searchrow { display: flex; align-items: center; gap: 14px; }
.awcf-vac-search { flex: 1 1 auto; }
/* NB: de zoek-facet gebruikt .facetwp-input-wrap (NIET .facetwp-search-wrap).
   Globale module zet daar padding-left:30px + icoon links — we resetten de
   wrap-padding en plaatsen het zoekicoon zelf, net als bij de regio-zoeker. */
.awcf-vac-search .facetwp-input-wrap, .awcf-vac-search input.facetwp-search { width: 100%; }
.awcf-vac-search .facetwp-input-wrap { position: relative; padding-left: 0; }
.awcf-vac-search .facetwp-icon { left: 14px; opacity: 1; }
.awcf-vac-search input.facetwp-search {
    padding: 13px 18px 13px 52px; border: 1.5px solid var(--awcf-line);
    border-radius: 999px; font-size: 15px; width: 100%; box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}
.awcf-vac-search input.facetwp-search:focus {
    border-color: var(--awcf-accent); outline: none; box-shadow: 0 0 0 3px rgba(194,82,51,.10);
}
/* De reset-facet is standaard .facetwp-hidden. De OMHULLENDE span blijft dan
   wél een flex-item, dus de gap (14px) ervóór laat loze ruimte rechts staan.
   Verberg daarom de hele span zolang z'n inhoud hidden is; zodra er filters
   actief zijn haalt FacetWP .facetwp-hidden weg → span (en "Wis filters") komt terug. */
.awcf-vac-reset:has(.facetwp-hidden) { display: none; }
.awcf-vac-reset .facetwp-reset, .awcf-vac-reset a {
    font-size: 14px; color: var(--awcf-accent); text-decoration: underline; cursor: pointer; white-space: nowrap;
}

/* ===== Regio-/reisafstand-zoeker (FacetWP Proximity) =====
   LET OP: de globale module awcf_algemene_stijl forceert
   `.facetwp-facet input.facetwp-location { border:0; background:none !important }`
   en zet het icoon links. Daartegen vechten heeft geen zin — we omarmen het:
   de hele .facetwp-facet wordt ÉÉN pill (rand + achtergrond), met de input en de
   km-dropdown er borderless in. Daarom moeten de input-overrides hieronder een
   hogere specificiteit (.awcf-vac-regio .facetwp-facet input.facetwp-location)
   + !important hebben om de globale regels te verslaan. */
.awcf-vac-regio { flex: 1 1 260px; min-width: 220px; }
.awcf-vac-regio .facetwp-facet {
    display: flex; align-items: stretch; margin: 0 !important;
    border: 1.5px solid var(--awcf-line); border-radius: 999px; background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.awcf-vac-regio .facetwp-facet:focus-within {
    border-color: var(--awcf-accent); box-shadow: 0 0 0 3px rgba(194,82,51,.10);
}
/* Tekstinput-segment: vult de ruimte (override globale width:100% op de wrap) */
.awcf-vac-regio .facetwp-facet .facetwp-input-wrap {
    flex: 1 1 auto; width: auto; min-width: 0; position: relative; padding-left: 0;
}
.awcf-vac-regio .facetwp-icon { left: 14px; opacity: 1; }
.awcf-vac-regio .facetwp-facet input.facetwp-location {
    width: 100% !important; min-width: 250px !important; max-width: none !important;
    padding: 13px 16px 13px 52px;
    border: 0 !important; background: transparent !important;
    font-size: 15px; color: var(--awcf-ink); box-sizing: border-box;
}
.awcf-vac-regio .facetwp-facet input.facetwp-location:focus { outline: none; }
/* km-dropdown: rechtersegment met scheidingslijn, geen eigen pill */
.awcf-vac-regio .facetwp-radius {
    flex: 0 0 auto; align-self: stretch; padding: 0 14px;
    border: 0; border-left: 1.5px solid var(--awcf-line); border-radius: 0;
    background: transparent; font-size: 14px; font-weight: 600;
    color: var(--awcf-ink); cursor: pointer; max-width: 120px;
}
.awcf-vac-regio .facetwp-radius:focus { outline: none; }
/* Suggestie-dropdown ONDER het tekstveld (top moet de globale/FacetWP-positie
   verslaan, vandaar !important + sterkere selector op de wrap als anker). */
.awcf-vac-regio .facetwp-input-wrap .location-results {
    position: absolute !important;
    top: calc(100% + 6px) !important; bottom: auto !important;
    left: 0 !important; right: auto !important; width: 100%;
    border: 1px solid var(--awcf-line); border-radius: 12px; overflow: hidden;
    background: #fff; box-shadow: var(--awcf-shadow-lg); z-index: 1000;
}
.awcf-vac-regio .location-result {
    padding: 10px 14px; font-size: 13px; color: var(--awcf-muted);
    border-bottom: 1px solid var(--awcf-line); white-space: normal;
}
.awcf-vac-regio .location-result:last-child { border-bottom: 0; }
.awcf-vac-regio .location-result.active,
.awcf-vac-regio .location-result:hover { background: #faf3f0; }
.awcf-vac-regio .location-result .result-main { font-size: 14px; color: var(--awcf-ink); font-weight: 600; }

/* Rij 2: filter-knoppen — vullen de balk maar respecteren het volledige label (geen truncate) */
.awcf-vac-filters { display: flex; flex-wrap: wrap; gap: 10px; position: relative; }
.awcf-vac-filters .awcf-vac-filter { flex: 1 1 auto; }
/* Mobiele modal-chrome (trigger-knop + modal-kop/voet): op desktop verborgen. */
.awcf-vac-filterstrigger,
.awcf-vac-filters__head,
.awcf-vac-filters__foot { display: none; }
/* __body lost op desktop op (display:contents) → de 6 filters blijven directe
   flex-items van .awcf-vac-filters, dus de knoppenrij blijft intact. */
.awcf-vac-filters__body { display: contents; }

/* ===== Custom filter-knoppen + panel/modal met checkboxes ===== */
/* GEEN position hier: het panel ankert aan .awcf-vac-filters → full width. */
.awcf-vac-filter { position: static; }

/* Knop — paginerings-stijl; gescoped onder .awcf-vac-archive zodat 'ie de
   Elementor-kit button-overrides (#c36 hover, global-color achtergrond) verslaat. */
.awcf-vac-archive .awcf-vac-filter__btn,
.awcf-vac-archive .awcf-vac-filter__btn:hover,
.awcf-vac-archive .awcf-vac-filter__btn:focus {
    display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px;
    padding: 0 14px; background: #fff; border: 1.5px solid var(--awcf-line); border-radius: 10px;
    cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--awcf-ink); text-align: left;
    text-decoration: none; box-shadow: none; outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.awcf-vac-archive .awcf-vac-filter__btn:hover,
.awcf-vac-archive .awcf-vac-filter__btn:focus { border-color: var(--awcf-blue-soft); }
.awcf-vac-archive .awcf-vac-filter.is-open .awcf-vac-filter__btn {
    border-color: var(--awcf-blue-soft); box-shadow: 0 0 0 3px rgba(42,74,107,.10);
}
.awcf-vac-filter__label { flex: 0 1 auto; white-space: nowrap; }
/* Chevron — netjes gecentreerd */
.awcf-vac-filter__chevron {
    flex: 0 0 auto; width: 9px; height: 9px;
    border-right: 2px solid var(--awcf-muted); border-bottom: 2px solid var(--awcf-muted); border-radius: 1px;
    transform: translateY(-2px) rotate(45deg); transition: transform .2s;
}
.awcf-vac-filter.is-open .awcf-vac-filter__chevron { transform: translateY(1px) rotate(-135deg); }

/* Panel (full-width popover op desktop — ankert aan de hele filter-rij) */
.awcf-vac-filter__panel {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
    width: auto; max-width: none;
    background: #fff; border: 1px solid var(--awcf-line); border-radius: 14px;
    box-shadow: 0 18px 40px rgba(31,41,51,.18); overflow: hidden;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .15s, transform .15s, visibility .15s;
}
.awcf-vac-filter.is-open .awcf-vac-filter__panel { opacity: 1; visibility: visible; transform: translateY(0); }

.awcf-vac-filter__panelhead {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; border-bottom: 1px solid var(--awcf-line);
}
.awcf-vac-filter__title { font-weight: 700; color: var(--awcf-blue); font-size: 15px; }
.awcf-vac-archive .awcf-vac-filter__close,
.awcf-vac-archive .awcf-vac-filter__close:hover,
.awcf-vac-archive .awcf-vac-filter__close:focus {
    border: none; background: var(--awcf-bg); width: 30px; height: 30px; border-radius: 50%;
    font-size: 20px; line-height: 1; cursor: pointer; color: var(--awcf-ink); padding: 0;
    box-shadow: none; outline: none;
    display: inline-flex; align-items: center; justify-content: center;
}
.awcf-vac-archive .awcf-vac-filter__close:hover { background: var(--awcf-line); }

.awcf-vac-filter__search { padding: 12px 14px 6px; }
.awcf-vac-filter__search input {
    width: 100%; padding: 10px 13px; border: 1.5px solid var(--awcf-line); border-radius: 8px; font-size: 14px;
}
.awcf-vac-filter__search input:focus { border-color: var(--awcf-accent); outline: none; }

.awcf-vac-filter__list { max-height: 60vh; overflow-y: auto; padding: 8px 10px 12px; }

/* FacetWP-checkboxes binnen ons panel — custom checkbox-uiterlijk, in kolommen */
.awcf-vac-filter__list .facetwp-facet {
    margin: 0 !important;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1px 10px;
}
.awcf-vac-filter__list .facetwp-toggle { grid-column: 1 / -1; }
.awcf-vac-filter__list .facetwp-checkbox {
    display: flex; align-items: center; gap: 11px; padding: 9px 10px; margin: 0 0 1px;
    border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--awcf-ink); line-height: 1.3;
    background-image: none !important; transition: background .12s;
}
.awcf-vac-filter__list .facetwp-checkbox:hover { background: var(--awcf-bg); }
.awcf-vac-filter__list .facetwp-checkbox::before {
    content: ""; flex: 0 0 auto; width: 20px; height: 20px; border: 2px solid var(--awcf-line);
    border-radius: 6px; background: #fff; transition: background .12s, border-color .12s;
}
.awcf-vac-filter__list .facetwp-checkbox.checked { background: rgba(42,74,107,.06); font-weight: 600; }
.awcf-vac-filter__list .facetwp-checkbox.checked::before {
    border-color: var(--awcf-blue);
    background: var(--awcf-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat;
}
/* WP Rocket "lazy load background images" reïnjecteert FacetWP's default checked-sprite
   als background-image (var(--wpr-bg-…) !important) op `.facetwp-facet .facetwp-checkbox.checked`
   — hogere specificity dan onze background-image:none hierboven → zichtbaar als donkerblauw
   blokje bij een aangevinkte checkbox. Overrulen met hogere specificity (eigen vinkje = ::before). */
.awcf-vac-archive .facetwp-facet .facetwp-checkbox,
.awcf-vac-archive .facetwp-facet .facetwp-checkbox.checked {
    background-image: none !important;
}
.awcf-vac-filter__list .facetwp-counter { margin-left: auto; color: var(--awcf-muted); font-size: 12.5px; font-weight: 400; }
.awcf-vac-filter__list .facetwp-toggle { display: block; padding: 8px 10px; color: var(--awcf-accent); font-size: 13.5px; cursor: pointer; }

/* Sort-dropdown (native select) */
.awcf-vac-sort select {
    padding: 9px 36px 9px 14px; border: 1.5px solid var(--awcf-line); border-radius: 10px;
    background: #fff; font-size: 14px; color: var(--awcf-ink); cursor: pointer; font-weight: 600;
}
.awcf-vac-sort select:focus { border-color: var(--awcf-accent); outline: none; }

/* ============================ LAYOUT ============================ */
.awcf-vac-layout {
    display: grid;
    grid-template-columns: minmax(360px, 460px) 1fr;
    gap: 20px;
    align-items: start;
}
.awcf-vac-main { min-width: 0; }

/* ============================ LIJST ============================ */
.awcf-vac-list { display: flex; flex-direction: column; gap: 10px; }
.awcf-vac-empty { padding: 40px 0; text-align: center; color: var(--awcf-muted); }

.awcf-vac-card {
    display: block;
    position: relative;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--awcf-line);
    border-left: 3px solid var(--awcf-line);
    border-radius: var(--awcf-radius);
    box-shadow: var(--awcf-shadow);
    text-decoration: none !important;
    color: var(--awcf-ink);
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.awcf-vac-card:hover { border-color: var(--awcf-blue-soft); box-shadow: 0 4px 14px rgba(31,41,51,.10); }
.awcf-vac-card.is-active {
    border-left-color: var(--awcf-accent);
    border-color: var(--awcf-accent);
    box-shadow: 0 4px 16px rgba(194,82,51,.14);
}

.awcf-vac-card__top { display: flex; gap: 12px; align-items: flex-start; }
.awcf-vac-card__logo {
    flex: 0 0 auto; width: 44px; height: 44px; border-radius: 8px; overflow: hidden;
    display: flex; align-items: center; justify-content: center; background: var(--awcf-bg-soft);
    border: 1px solid var(--awcf-line);
}
.awcf-vac-card__logo-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.awcf-vac-card__head { min-width: 0; }
.awcf-vac-card__title { margin: 0 0 3px; font-size: 16px; line-height: 1.3; font-weight: 700; color: var(--awcf-blue); overflow-wrap: anywhere; }
.awcf-vac-card__meta { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 12.5px; color: var(--awcf-muted); }
.awcf-vac-card__company { font-weight: 600; color: var(--awcf-accent); }
.awcf-vac-card__place::before { content: "·"; margin-right: 6px; color: var(--awcf-line); }
.awcf-vac-card__company + .awcf-vac-card__place::before { /* keep separator */ }

.awcf-vac-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.awcf-vac-card__tag {
    font-size: 11.5px; line-height: 1; padding: 5px 9px; border-radius: 999px;
    background: var(--awcf-bg); color: var(--awcf-ink); border: 1px solid var(--awcf-line);
}
.awcf-vac-card__date { display: block; margin-top: 10px; font-size: 11.5px; color: var(--awcf-muted); }

/* ===================== RESULTATEN-BALK (boven lijst) ===================== */
.awcf-vac-resultsbar {
    display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px;
    padding-bottom: 14px; border-bottom: 1px solid var(--awcf-line);
}
/* Rij: aantal links, sortering rechts */
.awcf-vac-resultsbar__top {
    display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap;
}
.awcf-vac-count .facetwp-facet { margin: 0 !important; }
.awcf-vac-count, .awcf-vac-count .facetwp-counts {
    font-size: 16px; font-weight: 700; color: var(--awcf-blue);
}
.awcf-vac-sort { display: flex; align-items: center; gap: 8px; }
.awcf-vac-sort::before { content: "Sorteer:"; font-size: 13px; color: var(--awcf-muted); }

/* Pager (eigen container onder de bovenrij, gecentreerd) */
.awcf-vac-pagertop { display: flex; justify-content: center; }
.awcf-vac-pagertop .facetwp-facet { margin: 0 !important; }
.awcf-vac-pagertop .facetwp-pager { justify-content: center; }
.awcf-vac-pagertop .facetwp-pager { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.awcf-vac-pagertop .facetwp-page {
    padding: 6px 11px; border: 1px solid var(--awcf-line); border-radius: 7px;
    background: #fff; color: var(--awcf-ink); cursor: pointer; font-size: 13.5px;
}
.awcf-vac-pagertop .facetwp-page:hover { border-color: var(--awcf-blue-soft); }
.awcf-vac-pagertop .facetwp-page.active { background: var(--awcf-accent); border-color: var(--awcf-accent); color: #fff; }

/* Tweede pager onder de lijst — scheidingslijn + ruimte erboven */
.awcf-vac-pagerbottom { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--awcf-line); }
/* Verberg (incl. streep) wanneer er maar 1 pagina is → geen page-knoppen */
.awcf-vac-pagerbottom:not(:has(.facetwp-page)) { display: none; }

/* ============================ DETAIL (rechts) ============================ */
.awcf-vac-detail {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow: auto;
    background: #fff;
    border: 1px solid var(--awcf-line);
    border-radius: var(--awcf-radius);
    box-shadow: var(--awcf-shadow);
}
.awcf-vac-detail__placeholder { padding: 60px 30px; text-align: center; color: var(--awcf-muted); }
.awcf-vac-detail__arrow { display: block; font-size: 2.4em; line-height: 1; margin-bottom: 14px; color: var(--awcf-accent, #1f7a8c); animation: awcf-vac-arrow-nudge 1.4s ease-in-out infinite; }
@keyframes awcf-vac-arrow-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-6px); } }
@media (prefers-reduced-motion: reduce) { .awcf-vac-detail__arrow { animation: none; } }

.awcf-vac-detail__loading { padding: 60px; display: flex; justify-content: center; }
.awcf-vac-spinner {
    width: 30px; height: 30px; border-radius: 50%;
    border: 3px solid var(--awcf-line); border-top-color: var(--awcf-accent);
    animation: awcf-vac-spin .8s linear infinite;
}
@keyframes awcf-vac-spin { to { transform: rotate(360deg); } }

.awcf-vac-detail__inner { padding: 22px 26px 28px; }
.awcf-vac-detail__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.awcf-vac-detail__date { font-size: 12.5px; color: var(--awcf-muted); }
.awcf-vac-detail__close {
    border: none; background: var(--awcf-bg); color: var(--awcf-ink); width: 32px; height: 32px;
    border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; display: none;
}
.awcf-vac-detail__close:hover { background: var(--awcf-line); }

.awcf-vac-detail__org { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.awcf-vac-detail__logo {
    flex: 0 0 auto; width: 64px; height: 64px; border-radius: 10px; overflow: hidden;
    display: flex; align-items: center; justify-content: center; background: var(--awcf-bg-soft);
    border: 1px solid var(--awcf-line);
}
.awcf-vac-detail__logo-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.awcf-vac-detail__title { margin: 0 0 4px; font-size: 22px; line-height: 1.25; color: var(--awcf-blue); font-weight: 800; }
.awcf-vac-detail__company { font-size: 14px; font-weight: 600; color: var(--awcf-accent); }
.awcf-vac-detail__company a { color: inherit; text-decoration: none; }
.awcf-vac-detail__company a:hover { text-decoration: underline; }

/* Actieknoppen in de detailweergave: de OUDE CTA-look (accent-pill) i.p.v. de
   blauwe module-stijl. We hergebruiken de module-markup (.awcf-action-buttons)
   maar overschrijven het uiterlijk met hogere specificiteit
   (.awcf-vac-detail__actions ...) dan de module (body div .awcf-action-buttons__button). */
.awcf-vac-detail__actions { margin: 4px 0 18px; }
.awcf-vac-detail__actions .awcf-action-buttons { display: flex; flex-wrap: wrap; margin: 0; gap: 10px; }
.awcf-vac-detail__actions .awcf-action-buttons__button {
    flex: 0 0 auto; min-width: 0; max-width: none; min-height: 0;
    padding: 12px 22px; border-radius: 999px;
    background-color: var(--awcf-accent); color: #fff !important;
    font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.2;
    text-decoration: none !important; transition: background-color .15s;
}
.awcf-vac-detail__actions .awcf-action-buttons__button:hover {
    background-color: var(--awcf-accent-dark); color: #fff !important;
}

.awcf-vac-detail__attrs {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 20px;
    padding: 16px 0; margin-bottom: 8px; border-top: 1px solid var(--awcf-line); border-bottom: 1px solid var(--awcf-line);
}
.awcf-vac-detail__attr { display: flex; flex-direction: column; gap: 2px; }
.awcf-vac-detail__attr-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--awcf-muted); }
.awcf-vac-detail__attr-value { font-size: 14px; font-weight: 600; color: var(--awcf-ink); }

.awcf-vac-detail__content { padding: 18px 0; font-size: 15px; line-height: 1.6; overflow-wrap: break-word; word-break: break-word; }
.awcf-vac-detail__content h1,
.awcf-vac-detail__content h2,
.awcf-vac-detail__content h3 { color: var(--awcf-blue); margin: 1.2em 0 .4em; }
.awcf-vac-detail__content ul,
.awcf-vac-detail__content ol { padding-left: 1.2em; }

/* --- Externe ATS-HTML temmen (harde pixelbreedtes, table-layouts, grote
   fonts uit bv. werkenbij.curaxl.nl). Alles fluid maken zodat niets afsnijdt. --- */
.awcf-vac-detail__content,
.awcf-vac-detail__content * {
    max-width: 100% !important;
    box-sizing: border-box;
}
/* Inline pixel-breedtes/-hoogtes neutraliseren */
.awcf-vac-detail__content [style*="width"]  { width: auto !important; }
.awcf-vac-detail__content [style*="height"] { height: auto !important; }
.awcf-vac-detail__content [style*="overflow"] { overflow: visible !important; }
/* Inline achtergronden → wit, inline tekstkleuren → binnen onze styling */
.awcf-vac-detail__content,
.awcf-vac-detail__content [style*="background"] { background: #fff !important; }
.awcf-vac-detail__content [style*="color"] { color: var(--awcf-ink) !important; }
/* Table-/zone-layouts platslaan naar één kolom */
.awcf-vac-detail__content table,
.awcf-vac-detail__content .zonetable,
.awcf-vac-detail__content .zonerow,
.awcf-vac-detail__content .zonecell,
.awcf-vac-detail__content .zone {
    display: block !important;
    width: 100% !important;
}
.awcf-vac-detail__content table { table-layout: fixed; }
/* Beelden responsief */
.awcf-vac-detail__content img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    margin: 0 auto;
}
/* Te grote inline fonts terugbrengen naar leesbaar formaat */
.awcf-vac-detail__content [style*="font-size"] { font-size: inherit !important; line-height: 1.6 !important; }

.awcf-vac-detail__foot {
    display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center;
    padding-top: 16px; border-top: 1px solid var(--awcf-line);
}
.awcf-vac-detail__permalink { font-size: 13.5px; color: var(--awcf-muted); text-decoration: underline; }

/* ============================ MOBIEL ============================ */
@media (max-width: 900px) {
    .awcf-vac-toolbar { padding: 12px; gap: 12px; }
    .awcf-vac-layout { grid-template-columns: 1fr; }

    /* Zoekbalk + regio-zoeker onder elkaar, elk vol breed; reset rechts */
    .awcf-vac-searchrow { flex-wrap: wrap; gap: 10px; }
    .awcf-vac-search { flex: 1 1 100%; order: 1; }
    .awcf-vac-regio { flex: 1 1 100%; min-width: 0; order: 2; }
    .awcf-vac-reset { order: 3; margin-left: auto; }

    /* ===== Filters: één trigger-knop opent ALLE filters in één modal ===== */
    .awcf-vac-filterstrigger {
        display: inline-flex; align-items: center; gap: 10px; width: 100%;
        min-height: 50px; padding: 0 16px; background: #fff;
        border: 1.5px solid var(--awcf-line); border-radius: 10px;
        font-size: 15px; font-weight: 600; color: var(--awcf-ink); cursor: pointer;
    }
    .awcf-vac-filterstrigger__icon {
        flex: 0 0 auto; width: 18px; height: 18px;
        background: center / contain no-repeat
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Cline x1='4' y1='6' x2='20' y2='6'/%3E%3Cline x1='7' y1='12' x2='17' y2='12'/%3E%3Cline x1='10' y1='18' x2='14' y2='18'/%3E%3C/svg%3E");
    }
    .awcf-vac-filterstrigger__label { flex: 1 1 auto; text-align: left; }
    .awcf-vac-filterstrigger__count {
        flex: 0 0 auto; min-width: 22px; height: 22px; padding: 0 6px;
        display: inline-flex; align-items: center; justify-content: center;
        background: var(--awcf-accent); color: #fff; border-radius: 999px;
        font-size: 12px; font-weight: 700;
    }

    /* De filters-container wordt een full-screen modal (vaste kop + voet, scrollbaar midden) */
    .awcf-vac-filters {
        display: none; position: fixed; inset: 0; z-index: 100000;
        flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 0; margin: 0;
        background: #fff; max-width: none; overflow: hidden;
    }
    .awcf-vac--filters-open .awcf-vac-filters { display: flex; }

    .awcf-vac-filters__head {
        display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto;
        padding: 16px 18px; border-bottom: 1px solid var(--awcf-line); background: #fff;
    }
    .awcf-vac-filters__headtitle { font-size: 18px; font-weight: 700; color: var(--awcf-blue); }
    .awcf-vac-archive .awcf-vac-filters__close,
    .awcf-vac-archive .awcf-vac-filters__close:hover,
    .awcf-vac-archive .awcf-vac-filters__close:focus {
        border: none; background: var(--awcf-bg); width: 34px; height: 34px; border-radius: 50%;
        font-size: 22px; line-height: 1; cursor: pointer; color: var(--awcf-ink); padding: 0;
        display: inline-flex; align-items: center; justify-content: center; box-shadow: none; outline: none;
    }

    /* Scrollbaar middendeel: de filter-secties */
    .awcf-vac-filters__body {
        display: block; flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch;
    }

    /* Vaste voet met "Toon resultaten" */
    .awcf-vac-filters__foot {
        display: block; flex: 0 0 auto; background: #fff;
        padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--awcf-line);
    }
    .awcf-vac-archive .awcf-vac-filters__apply,
    .awcf-vac-archive .awcf-vac-filters__apply:hover,
    .awcf-vac-archive .awcf-vac-filters__apply:focus {
        width: 100%; min-height: 50px; border: 0; border-radius: 999px;
        background: var(--awcf-accent); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer;
        box-shadow: none; outline: none;
    }

    /* Elke filter = accordion-sectie binnen de modal */
    .awcf-vac-filters .awcf-vac-filter {
        flex: none; width: 100%; position: static; border-bottom: 1px solid var(--awcf-line);
    }
    .awcf-vac-archive .awcf-vac-filter__btn,
    .awcf-vac-archive .awcf-vac-filter__btn:hover,
    .awcf-vac-archive .awcf-vac-filter__btn:focus,
    .awcf-vac-archive .awcf-vac-filter.is-open .awcf-vac-filter__btn {
        border: 0; border-radius: 0; min-height: 54px; padding: 0 18px;
        box-shadow: none; justify-content: space-between; font-size: 15.5px;
    }
    .awcf-vac-filter__label { overflow: visible; white-space: normal; }

    /* Panel inline (accordion-body) i.p.v. bottom-sheet/popover */
    .awcf-vac-filter__panel {
        position: static; opacity: 1; visibility: visible; transform: none;
        border: 0; border-radius: 0; box-shadow: none; max-width: none; display: none;
    }
    .awcf-vac-filter.is-open .awcf-vac-filter__panel { display: block; }
    .awcf-vac-filter__panelhead { display: none; }
    .awcf-vac-filter__search { padding: 0 18px 8px; }
    .awcf-vac-filter__list { max-height: none; overflow: visible; padding: 0 14px 12px; }

    /* Detail wordt een full-screen drawer met sticky sluitbalk */
    .awcf-vac-detail {
        position: fixed; inset: 0; max-height: none; border-radius: 0; z-index: 99999;
        transform: translateX(100%); transition: transform .25s ease;
        box-shadow: var(--awcf-shadow-lg);
    }
    .awcf-vac--detail-open .awcf-vac-detail { transform: translateX(0); }
    .awcf-vac-detail__close { display: inline-flex; align-items: center; justify-content: center; }
    .awcf-vac-detail__placeholder { display: none; }
    /* Datum + sluitknop blijven bovenaan tijdens scrollen */
    .awcf-vac-detail__bar { position: sticky; top: 0; z-index: 2; background: #fff; padding: 4px 0 10px; }
}

@media (max-width: 520px) {
    .awcf-vac-detail__attrs { grid-template-columns: 1fr; }
    .awcf-vac-detail__inner { padding: 18px 16px 24px; }
    /* Checkbox-lijst in de filter-modal één kolom */
    .awcf-vac-filter__list .facetwp-facet { grid-template-columns: 1fr; }

    /* Pager compacter: kleinere knoppen + gap zodat « » niet los op een nieuwe regel valt */
    .awcf-vac-pagertop .facetwp-pager { gap: 3px; }
    .awcf-vac-pagertop .facetwp-page { padding: 5px 7px; font-size: 12.5px; border-radius: 6px; }
}

/* Heel smal: zoek + regio compacter zodat ze niet overlopen */
@media (max-width: 374px) {
    .awcf-vac-search input.facetwp-search,
    .awcf-vac-regio .facetwp-facet input.facetwp-location {
        padding-top: 11px; padding-bottom: 11px; padding-left: 42px; font-size: 14px;
    }
    .awcf-vac-search .facetwp-icon, .awcf-vac-regio .facetwp-icon { left: 12px; }
    /* De regio-input heeft min-width:250px (desktop) — hier los zetten, anders overloop */
    .awcf-vac-regio .facetwp-facet input.facetwp-location { min-width: 0 !important; }
    .awcf-vac-regio .facetwp-radius { padding: 0 8px; font-size: 13px; max-width: 88px; }

    /* Pager nog iets krapper */
    .awcf-vac-pagertop .facetwp-pager { gap: 2px; }
    .awcf-vac-pagertop .facetwp-page { padding: 4px 6px; font-size: 12px; }
}


/* ============ TEASER: afgeschermde vacaturetekst in het paneel ==============
   Afgestemd met Cas, 9 sep 2026. Lijst + paneel blijven precies zoals ze zijn;
   alleen de vacaturetekst wordt afgeschermd en de sollicitatieknoppen maken
   plaats voor één knop naar /vacatures/<slug>/.

   Dit is de visuele helft van de afscherming — de tekst is óók server-side
   afgekapt (awcf_zia_teaser_content), zodat de volledige vacature niet alsnog
   in de broncode meekomt.

   Alle klassen hieronder beginnen met .awcf-vac-detail en vallen daarmee al
   onder de RUCSS-safelist `.awcf-vac-detail(.*)` van de module
   awcf_zorginjeregio_rucss_vacdetail. Nodig, want deze markup komt via AJAX
   binnen en staat dus niet in de initiële HTML die WP Rocket analyseert.
   ========================================================================== */
.awcf-vac-detail__content--teaser {
    position: relative;
    max-height: 240px;
    overflow: hidden;
}

/* Scherp aan de bovenkant, daaronder oplopend vervaagd. De blur zit op een
   overlay met een mask, niet op de tekst zelf: een filter op de tekst zou ook
   de eerste, leesbare regels raken. */
.awcf-vac-detail__content--teaser::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    -webkit-backdrop-filter: blur(3.5px);
    backdrop-filter: blur(3.5px);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 58px, #000 140px);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 58px, #000 140px);
    /* Onderaan volledig dekkend wit: anders blijft de afkaplijn van max-height
       als een harde snee zichtbaar in plaats van als een vervaging. */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .4) 45%, #fff 92%);
}
/* Terugval zonder backdrop-filter: de witte verloop-overlay blijft staan, dus
   de tekst vervaagt nog steeds — alleen zonder blur. */

/* Eén doorklik-knop in plaats van de sollicitatieknoppen. Zelfde vorm als de
   module-knoppen, zodat het paneel er verder niet anders uit gaat zien. */
.awcf-vac-detail__actions .awcf-vac-detail__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    background-color: var(--awcf-accent);
    color: #fff !important;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background-color .15s;
}
/* Hover en focus plat geschreven, niet genest: WP Rocket's used CSS gooide een
   genest &:hover-blok eerder stilzwijgend weg. */
.awcf-vac-detail__actions .awcf-vac-detail__cta:hover {
    background-color: var(--awcf-accent-dark);
    color: #fff !important;
}
.awcf-vac-detail__actions .awcf-vac-detail__cta:focus-visible {
    outline: 2px solid var(--awcf-blue);
    outline-offset: 2px;
}

/* CLS (1 okt 2026): FacetWP vult het zoek- en het locatieveld pas met JS. Zonder gereserveerde hoogte
   schoof de hele vacaturelijst 50-90px omlaag (mobiel CLS 0,11 bij echte bezoekers). Hoogtes gemeten. */
.awcf-vac-search, .awcf-vac-regio { min-height: 51px; }
@media (max-width: 374px) {
    .awcf-vac-search, .awcf-vac-regio { min-height: 45px; }
}
/* De resetknop is vóór het laden een lege (zichtbare) flex-regel met gap; daarna verbergt FacetWP hem. */
.awcf-vac-reset:has(.facetwp-facet:empty) { display: none; }
/* Sorteerkeuzelijst wordt ook pas met JS gevuld (20 -> 42px); op <=374px loopt de balk dan naar 2 regels. */
.awcf-vac-sort { min-height: 42px; }
@media (max-width: 374px) {
    .awcf-vac-resultsbar__top { min-height: 76px; }
}
