/* ==========================================================================
   Active Filter Banner
   ========================================================================== */
#active-filter-banner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 0 25px 0;
    line-height: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#active-filter-banner.is-visible {
    opacity: 1;
}

/* Total results — always shown */
.active-filter-banner__total {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #7a8f7a;
    white-space: nowrap;
    min-height: 1em; /* reserve space while text is empty */
}

/* Filters row — fades in when active */
.active-filter-banner__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.6rem 1rem 0.6rem 1.1rem;
    background: #f7f5f0;
    border-left: 3px solid #6b8c6b;
    border-radius: 0 3px 3px 0;
    opacity: 0;
    transform: translateY(-3px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.active-filter-banner__filters.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.active-filter-banner__label {
    margin: 0 0.25rem 0 0;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #7a8f7a;
    white-space: nowrap;
}

.active-filter-banner__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.active-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2em 0.4em 0.2em 0.7em;
    background: #edf3ed;
    border: 1px solid #bdd0bd;
    border-radius: 2em;
    font-size: 0.8rem;
    color: #3b5c3b;
    line-height: 1.5;
}

.active-filter-chip strong {
    font-weight: 600;
    color: #2d4a2d;
}

.active-filter-chip__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1em;
    height: 1.1em;
    padding: 0;
    background: #c8d9c8;
    border: none;
    border-radius: 50%;
    color: #3b5c3b;
    font-size: 0.65rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.active-filter-chip__remove:hover {
    background: #6b8c6b;
    color: #fff;
}

/* Reset all button */
.active-filter-banner__reset {
    margin-left: auto;
    padding: 0.5rem 0.75rem;
    background: #fff;
    border: 1px solid #bdd0bd;
    border-radius: 2em;
    color: #7a8f7a;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    flex-shrink: 0;
}

.active-filter-banner__reset:hover {
    background: #6b8c6b;
    border-color: #6b8c6b;
    color: #fff;
}

@media (max-width: 600px) {
    .active-filter-banner__filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .active-filter-banner__reset {
        margin-left: 0;
    }
}
