.absturz-filters {
    --absturz-accent: #c8102e; /* pas aan aan je huisstijl */
    --absturz-accent-soft: rgba(200, 16, 46, .08);
    --absturz-border: #e6e8ec;
    --absturz-bg: #fff;
    --absturz-text: #1d2327;
    --absturz-muted: #717784;
    color: var(--absturz-text);
    font-size: 15px;
    line-height: 1.4;
}

/* ---- Kaart rond de filters ---------------------------------------- */
.absturz-filters .afp-sidebar {
    border: 1px solid var(--absturz-border);
    border-radius: 14px;
    background: var(--absturz-bg);
    padding: 18px 18px 8px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.afp-sidebar-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--absturz-border);
}
.afp-sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -.01em;
}
.afp-reset {
    background: none;
    border: 0;
    padding: 0;
    color: var(--absturz-accent);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
}
.afp-reset:hover { text-decoration: underline; }

/* ---- Filtergroep --------------------------------------------------- */
.afp-group {
    border-bottom: 1px solid var(--absturz-border);
    padding: 4px 0;
}
.afp-group:last-child { border-bottom: 0; }

.afp-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    font-size: .98rem;
    padding: 14px 2px;
    user-select: none;
    transition: color .12s ease;
}
.afp-group-title:hover { color: var(--absturz-accent); }
.afp-group-title::-webkit-details-marker { display: none; }
.afp-group-title::after {
    content: "";
    margin-left: auto;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
    opacity: .55;
}
.afp-group[open] > .afp-group-title::after { transform: rotate(-135deg); }
.afp-group-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--absturz-accent);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    border-radius: 999px;
}

/* ---- Opties -------------------------------------------------------- */
.afp-options {
    list-style: none;
    margin: 0 0 12px;
    padding: 2px 0 0;
    max-height: 280px;
    overflow: auto;
}
/* nette, smalle scrollbar */
.afp-options::-webkit-scrollbar { width: 8px; }
.afp-options::-webkit-scrollbar-thumb { background: var(--absturz-border); border-radius: 999px; }

.afp-option { margin: 1px 0; }
.afp-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 9px;
    font-size: .92rem;
    cursor: pointer;
    transition: background-color .12s ease;
}
.afp-option label:hover { background: var(--absturz-accent-soft); }

/* eigen checkbox */
.afp-option input {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1.5px solid #c2c6cf;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: border-color .12s ease, background-color .12s ease;
}
.afp-option input:hover { border-color: var(--absturz-accent); }
.afp-option input:checked {
    background: var(--absturz-accent);
    border-color: var(--absturz-accent);
}
.afp-option input:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.afp-option input:focus-visible {
    outline: 2px solid var(--absturz-accent);
    outline-offset: 2px;
}

.afp-option-name { flex: 1; }
.afp-option input:checked + .afp-option-name { font-weight: 600; }
.afp-option-count {
    color: var(--absturz-muted);
    font-size: .78rem;
    font-variant-numeric: tabular-nums;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 1px 8px;
}
.afp-option.is-empty { opacity: .4; }

/* ---- Mobiele toggle ------------------------------------------------ */
.afp-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    border: 1px solid var(--absturz-border);
    background: var(--absturz-bg);
    border-radius: 10px;
    padding: 11px 20px;
    font-weight: 600;
    cursor: pointer;
}
.afp-toggle:hover { border-color: var(--absturz-accent); color: var(--absturz-accent); }

@media (max-width: 782px) {
    .afp-toggle { display: inline-flex; }
    .absturz-filters .afp-sidebar { display: none; }
    .absturz-filters.afp-open .afp-sidebar { display: block; }
}
