/* ====== Sidebar Wrapper ====== */
.search-filters {
    background: none;
    border: none;
    padding: 20px;
}

/* ====== Header ====== */
.search-filters--head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ====== Form ====== */
.search-filters--form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 16px 0;
}

/* ====== Body (conditions group) ====== */
.search-filters--body {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.search-filters--title {
    font-size: 20px;
    font-weight: bold;
    color: #316EA9;
    margin: 0;
}

.search-filters--clear-all {
    font-size: 12px;
    font-weight: bold;
    color: #ACACAC;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
}

.search-filters--clear-all:hover {
    text-decoration: none;
}

/* ====== Submit Button ====== */
.search-filters--submit {
    width: 100%;
    padding: 12px 0;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.search-filters--submit:hover {
    background: #135e96;
}


/* ====== Close Button (mobile only) ====== */
.search-filters--close {
    display: none;
}

/* ====== FAB ====== */
.search-filters-fab {
    display: none;
}

/* ====== Backdrop ====== */
.search-filters-backdrop {
    display: none;
}

/* ====== Mobile ====== */
@media (max-width: 1023px) {
    .search-filters {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 85vh;
        z-index: 200;
        overflow-y: auto;
        background: #fff;
        padding: 16px;
        transform: translateY(100%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear 0.35s;
    }

    .search-filters.is-open {
        transform: translateY(0);
        visibility: visible;
        pointer-events: auto;
        transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear;
    }

    .search-filters--close {
        display: block;
        background: none;
        border: none;
        font-size: 20px;
        color: #666;
        cursor: pointer;
        padding: 0;
        margin-bottom: 8px;
        margin-left: auto;
    }

    .search-filters-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 199;
    }

    .search-filters-backdrop.is-open {
        display: block;
    }

    .search-filters-fab {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        position: fixed;
        bottom: 24px;
        right: 24px;
        width: 56px;
        height: 56px;
        background: #4a90d9;
        border: none;
        padding: 0;
        cursor: pointer;
        z-index: 198;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .search-filters-fab--icon {
        width: 20px;
        height: 20px;
        filter: brightness(0) invert(1);
    }

    .search-filters-fab--label {
        font-size: 6px;
        font-weight: 700;
        color: #fff;
        line-height: 1;
    }

    /* ====== Mobile: Typography & Sizing ====== */
    .search-filters--title {
        font-size: 16px;
    }

    .search-filters--submit {
        height: 40px;
        padding: 0;
        font-size: 14px;
    }

    .filter-tag--title,
    .filter-error-tag--title,
    .filter-keyword--title,
    .filter-categories--title {
        font-size: 12px;
    }

    .filter-tag--clear,
    .filter-error-tag--clear,
    .filter-keyword--clear,
    .filter-categories--clear {
        font-size: 12px;
    }

    .tag-widget,
    .keyword-widget {
        padding: 8px 10px;
        gap: 6px;
    }

    .tag-widget--chip,
    .keyword-widget--chip {
        font-size: 11px;
        padding: 3px 8px 3px 10px;
    }

    .tag-widget--input,
    .keyword-widget--input {
        font-size: 12px;
    }

    .filter-checkbox {
        font-size: 12px;
    }

    .filter-checkbox input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }
}

/* ====== Responsive ====== */
@media (min-width: 1024px) {
    .search-filters {
        padding: 24px;
    }
}

