:root {
    --mdf-primary-color: #163563;
    --mdf-secondary: #f6c635;
    --mdf-border-color: #d9d9d9;
    --mdf-text-color: #05101E;
    --mdf-divider-color: #D9D9D9;
    --mdf-font-family: inherit;
}

.mdf-filter-wrapper {
    font-family: var(--mdf-font-family);
    color: var(--mdf-text-color);
    width: 100%;
}

/* ==========================================
   SEARCH BAR
   ========================================== */

.mdf-search-box-wrapper {
    margin-bottom: 50px;
}

.mdf-search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.mdf-search-icon {
    position: absolute;
    right: 12px;
    color: var(--mdf-divider-color);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mdf-job-search-input {
    font-family: inherit;
    color: var(--mdf-text-color);
    background-color: #fff;
    border: 1.5px solid var(--mdf-border-color) !important;
    border-radius: 4px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mdf-job-search-input::placeholder {
    color: #94a3b8;
    font-size: 0.9rem;
}

.mdf-job-search-input:focus {
    border-color: var(--mdf-primary-color);
    box-shadow: 0 0 0 1px var(--mdf-primary-color);
}

.mdf-search-clear-btn {
    position: absolute;
    right: 10px;
    background: transparent !important;
    border: none !important;
    color: #8c8c8c;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px !important;
    display: none;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

.mdf-search-clear-btn:hover {
    color: var(--mdf-text-color);
}

/* ==========================================
   FILTER GROUPS
   ========================================== */

.mdf-filter-group {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--mdf-divider-color);
}

.mdf-filter-group:last-child {
    border-bottom: none;
}

.mdf-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.mdf-group-title {
    font-size: 1.125rem;
    color: var(--mdf-text-color);
    margin: 0;
}

/* Herstel (Reset) Link */
.mdf-reset-btn {
    text-decoration: underline;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    padding: 0 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.mdf-reset-btn.is-active {
    opacity: 1;
    pointer-events: auto;
}

.mdf-reset-btn:hover {
    color: inherit;
    text-decoration: underline;
}

/* Term List */
.mdf-term-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Custom Checkbox Container */
.mdf-checkbox-label {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
    line-height: 1.4;
}

.mdf-checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Custom Checkbox Box */
.mdf-custom-checkbox {
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 1.5px solid var(--mdf-border-color);
    border-radius: 3px;
    margin-right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.mdf-checkbox-label:hover input ~ .mdf-custom-checkbox {
    border-color: var(--mdf-primary-color);
}

.mdf-checkbox-label input:checked ~ .mdf-custom-checkbox {
    background-color: var(--mdf-text-color);
    border-color: var(--mdf-text-color);
}

.mdf-checkbox-label input:checked ~ .mdf-term-name {
    color: var(--mdf-text-color);
}

/* SVG Checkmark inside Checkbox */
.mdf-custom-checkbox:after {
    content: "";
    display: none;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.mdf-checkbox-label input:checked ~ .mdf-custom-checkbox:after {
    display: block;
}

/* Toon Meer (Show More) */
.mdf-overflow-item {
    display: none;
}

.mdf-overflow-item.is-visible {
    display: flex;
}

.mdf-toggle-overflow-btn {
    margin-top: 12px;
    text-decoration: underline;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.mdf-toggle-overflow-btn:hover,
.mdf-toggle-overflow-btn:focus {
    color: inherit !important;
    text-decoration: underline;
}

/* Filter Hide State for Loop Items */
.mdf-item-hidden {
    display: none !important;
}

/* Empty Results Message */
.mdf-no-results-message {
    padding: 40px 20px;
    text-align: center;
    font-size: 1.1rem;
    color: #64748b;
    grid-column: 1 / -1;
    display: none;
}

/* ==========================================
   MOBILE TOGGLE BUTTON & RESPONSIVE BEHAVIOR
   ========================================== */

.mdf-mobile-toggle-btn {
    display: none; /* Hidden on Desktop */
}

@media (max-width: 768px) {
    .mdf-mobile-toggle-btn {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        background-color: var(--mdf-secondary) !important;
        border: 0 !important;
        font-family: inherit;
        cursor: pointer;
        margin-bottom: 16px;
        transition: all 0.2s ease;
    }

    .mdf-mobile-toggle-btn:hover,
    .mdf-mobile-toggle-btn:focus {
        color: var(--mdf-text-color) !important;
        background-color: var(--mdf-secondary) !important;
    }

    .mdf-toggle-icon {
        font-size: 1.35rem;
        line-height: 1;
        font-weight: 400;
    }

    /* Collapse Content by Default on Mobile */
    .mdf-filter-content {
        display: none;
        opacity: 0;
        padding-top: 8px;
        transform: translateY(-10px);
        transition: all 0.2s ease;
    }

    /* Expanded State */
    .mdf-filter-content.is-open {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }
}