/* ─── Contenitore principale ─────────────────────────────────────────────── */

.bsb-filtri-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin-bottom: 32px;
}


/* ─── Barra ricerca ──────────────────────────────────────────────────────── */

.bsb-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bsb-search-input-wrap {
    flex: 1;
    position: relative;
}

.bsb-search-input-wrap svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none;
    width: 16px;
    height: 16px;
}

.bsb-search-input {
    width: 100%;
    padding: 11px 14px 11px 40px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    font-size: 14px;
    color: #1a1a1a;
    background: #f7f7f7;
    outline: none;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.bsb-search-input:focus {
    border-color: #1a1a1a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26,26,26,0.07);
}

.bsb-search-input::placeholder { color: #aaa; }

.bsb-search-bar.panel-open .bsb-search-input {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
}

.bsb-toggle-filtri {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.bsb-toggle-filtri:hover { background: #f3f3f3; border-color: #bbb; }

.bsb-toggle-filtri.is-active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.bsb-toggle-filtri svg { width: 15px; height: 15px; }


/* ─── Pannello filtri ────────────────────────────────────────────────────── */

.bsb-filtri-panel {
    border: 1px solid #d8d8d8;
    border-top: none;
    border-radius: 0 0 8px 8px;
    background: #fff;
    padding: 20px 24px 24px;
    display: none;
}

.bsb-filtri-panel.is-open { display: block; }

.bsb-filtri-cols {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0 24px;
}

@media (max-width: 640px) {
    .bsb-filtri-cols { grid-template-columns: 1fr; gap: 20px 0; }
}

.bsb-filtri-col-title {
    font-size: 12px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 10px;
}

.bsb-filtri-col-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

.bsb-filtri-col-list::-webkit-scrollbar { width: 5px; }
.bsb-filtri-col-list::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 3px; }
.bsb-filtri-col-list::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }


/* ─── Pill termine ───────────────────────────────────────────────────────── */

.bsb-term-pill {
    display: block;
    padding: 9px 14px;
    border-radius: 6px;
    background: #f3f3f3;
    border: 1.5px solid transparent;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
    text-align: left;
    width: 100%;
    outline: none;
    box-sizing: border-box;
}

.bsb-term-pill:hover { background: #eaeaea; }

.bsb-term-pill.is-active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}


/* ─── Footer filtri ──────────────────────────────────────────────────────── */

.bsb-filtri-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #eee;
}

.bsb-filtri-count { font-size: 13px; color: #888; }
.bsb-filtri-count strong { color: #1a1a1a; font-weight: 700; }

.bsb-reset-filtri {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s;
}

.bsb-reset-filtri:hover { color: #1a1a1a; }


/* ─── Card nascosta ──────────────────────────────────────────────────────── */

.bsb-card-item.bsb-hidden { display: none !important; }


/* ─── Nessun risultato ───────────────────────────────────────────────────── */

.bsb-no-results {
    padding: 40px 20px;
    text-align: center;
    color: #888;
    font-size: 14px;
    display: none;
}

.bsb-no-results.visible { display: block; }
