/* CV-database — werkgever-zoekomgeving (concept) */
.awcf-cvs { --cvs-accent: #1f7a8c; --cvs-accent-dark: #155f6e; --cvs-border: #e2e6ea; --cvs-radius: 10px; }
.awcf-cvs * { box-sizing: border-box; }

/* Toolbar */
.awcf-cvs-toolbar { margin-bottom: 18px; }
.awcf-cvs-searchrow { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.awcf-cvs-search { flex: 1 1 280px; }
.awcf-cvs-search .facetwp-search,
.awcf-cvs-search input { width: 100%; padding: 10px 12px; border: 1px solid var(--cvs-border); border-radius: 8px; font: inherit; }

.awcf-cvs-filterbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.awcf-cvs-filters { display: contents; }
.awcf-cvs-filters__head, .awcf-cvs-filters__foot { display: none; }
.awcf-cvs-filters__body { display: contents; }

/* Filter-dropdown */
.awcf-cvs-filter { position: relative; }
.awcf-cvs .awcf-cvs-filter__btn { display: inline-flex; align-items: center; gap: 8px; background-color: #fff !important; color: inherit !important; border: 1px solid var(--cvs-border) !important; border-radius: 8px; padding: 9px 14px; font: inherit; text-decoration: none !important; box-shadow: none !important; cursor: pointer; }
.awcf-cvs .awcf-cvs-filter__btn:hover,
.awcf-cvs .awcf-cvs-filter__btn:focus,
.awcf-cvs .awcf-cvs-filter__btn:active { background-color: #f6f8f9 !important; color: inherit !important; border-color: var(--cvs-accent) !important; }
.awcf-cvs-filter__chevron { width: 8px; height: 8px; border-right: 2px solid #6b7280; border-bottom: 2px solid #6b7280; transform: rotate(45deg); margin-top: -3px; }
.awcf-cvs-filter.is-open .awcf-cvs-filter__btn { border-color: var(--cvs-accent); }
.awcf-cvs-filter__panel { display: none; position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 240px; max-height: 320px; overflow: auto; background: #fff; border: 1px solid var(--cvs-border); border-radius: 10px; padding: 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.awcf-cvs-filter.is-open .awcf-cvs-filter__panel { display: block; }
.awcf-cvs-filter__panelhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.awcf-cvs-filter__title { font-weight: 600; }
.awcf-cvs-filter__close { background: none; border: 0; font-size: 1.3em; line-height: 1; cursor: pointer; color: #6b7280; }

.awcf-cvs-filterstrigger { display: none; }

/* Resultsbar */
.awcf-cvs-resultsbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; color: #6b7280; }

/* Resultaten-grid */
.awcf-cvs-list { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .awcf-cvs-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .awcf-cvs-list { grid-template-columns: 1fr 1fr 1fr; } }

.awcf-cvs-card { border: 1px solid var(--cvs-border); border-radius: var(--cvs-radius); padding: 18px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.awcf-cvs-card__name { font-weight: 700; font-size: 1.05em; }
.awcf-cvs-card__name.is-anon { color: #6b7280; font-style: italic; }
.awcf-cvs-card__func { display: block; color: var(--cvs-accent); font-weight: 600; font-size: 0.92em; }
.awcf-cvs-card__fields { color: #4b5563; font-size: 0.9em; }
.awcf-cvs-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.awcf-cvs-card__tag { background: #f1f3f5; color: #374151; border-radius: 999px; padding: 3px 10px; font-size: 0.78em; }
.awcf-cvs-card__avail { font-size: 0.85em; color: #1a7f44; }
.awcf-cvs-card__motiv { font-size: 0.88em; color: #4b5563; margin: 4px 0 0; }
.awcf-cvs-card__foot { margin-top: auto; padding-top: 8px; }
/* Download-link (een <a>) defensief gestyled tegen theme/Elementor-link-hovers. */
.awcf-cvs .awcf-cvs-card__dl {
    display: inline-block;
    background-color: var(--cvs-accent) !important;
    color: #fff !important;
    border: 1px solid var(--cvs-accent) !important;
    border-radius: 8px; padding: 8px 14px; font-size: 0.85em; font-weight: 600;
    text-decoration: none !important; box-shadow: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.awcf-cvs .awcf-cvs-card__dl:hover,
.awcf-cvs .awcf-cvs-card__dl:focus,
.awcf-cvs .awcf-cvs-card__dl:focus-visible,
.awcf-cvs .awcf-cvs-card__dl:active {
    background-color: var(--cvs-accent-dark) !important;
    color: #fff !important;
    border-color: var(--cvs-accent-dark) !important;
}

.awcf-cvs-empty { grid-column: 1 / -1; color: #6b7280; padding: 24px 0; }
.awcf-cvs-pager { margin-top: 20px; }
.awcf-cvs--notice p { background: #fff8e1; border: 1px solid #ffe08a; border-radius: 8px; padding: 14px; }

/* Mobiel: filters in een modal */
@media (max-width: 640px) {
    .awcf-cvs .awcf-cvs-filterstrigger { display: inline-flex; align-items: center; gap: 8px; background-color: var(--cvs-accent) !important; color: #fff !important; border: 1px solid var(--cvs-accent) !important; border-radius: 8px; padding: 10px 16px; font: inherit; font-weight: 600; text-decoration: none !important; box-shadow: none !important; cursor: pointer; }
    .awcf-cvs .awcf-cvs-filterstrigger:hover,
    .awcf-cvs .awcf-cvs-filterstrigger:focus,
    .awcf-cvs .awcf-cvs-filterstrigger:active { background-color: var(--cvs-accent-dark) !important; color: #fff !important; border-color: var(--cvs-accent-dark) !important; }
    .awcf-cvs-filters { display: none; }
    .awcf-cvs.is-filters-open .awcf-cvs-filters { display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 1000; background: #fff; padding: 16px; overflow: auto; }
    .awcf-cvs.is-filters-open .awcf-cvs-filters__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
    .awcf-cvs.is-filters-open .awcf-cvs-filters__body { display: block; }
    .awcf-cvs.is-filters-open .awcf-cvs-filters__foot { display: block; margin-top: auto; padding-top: 16px; }
    .awcf-cvs.is-filters-open .awcf-cvs-filter { margin-bottom: 12px; }
    .awcf-cvs.is-filters-open .awcf-cvs-filter__panel { position: static; display: block; box-shadow: none; border: 0; padding: 8px 0 0; max-height: none; }
    .awcf-cvs.is-filters-open .awcf-cvs-filter__panelhead { display: none; }
    .awcf-cvs-filters__close { background: none; border: 0; font-size: 1.5em; cursor: pointer; }
    .awcf-cvs .awcf-cvs-filters__apply { background-color: var(--cvs-accent) !important; color: #fff !important; border: 1px solid var(--cvs-accent) !important; border-radius: 8px; padding: 12px; font: inherit; font-weight: 600; width: 100%; text-decoration: none !important; box-shadow: none !important; cursor: pointer; }
    .awcf-cvs .awcf-cvs-filters__apply:hover,
    .awcf-cvs .awcf-cvs-filters__apply:focus,
    .awcf-cvs .awcf-cvs-filters__apply:active { background-color: var(--cvs-accent-dark) !important; color: #fff !important; border-color: var(--cvs-accent-dark) !important; }
}
