/* panel_filters.css — barra de filtros facetados do catálogo de painéis (Fase 1) */

.pf-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px 18px;
    padding: 16px 18px;
    margin: 0 0 22px;
    background: #f5f7f9;
    border: 1px solid #e0e5ea;
    border-radius: 8px;
}

/* Até a 1ª disponibilidade chegar, esconde a barra p/ não "piscar" opções
   inexistentes (mantém o espaço reservado via visibility). */
.pf-bar.pf-loading { visibility: hidden; }

.pf-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pf-group > label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #6b7682;
    margin: 0;
}

.pf-group--search { flex: 1 1 220px; min-width: 200px; }
.pf-group--reset  { margin-left: auto; align-self: center; }

.pf-bar input[type="text"],
.pf-bar select {
    height: 38px;
    padding: 0 12px;
    font-size: 14px;
    color: #2b323a;
    background: #fff;
    border: 1px solid #cfd6dd;
    border-radius: 6px;
    outline: none;
}

.pf-bar input[type="text"] { width: 100%; }
.pf-bar input[type="text"]:focus,
.pf-bar select:focus { border-color: #2f80ed; box-shadow: 0 0 0 3px rgba(47,128,237,.15); }

/* Chips de Current Type */
.pf-chips { display: inline-flex; gap: 6px; }

.pf-chip {
    height: 38px;
    min-width: 46px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    color: #3a444e;
    background: #fff;
    border: 1px solid #cfd6dd;
    border-radius: 20px;
    cursor: pointer;
    transition: all .12s ease;
}

.pf-chip:hover { border-color: #9fb0c0; }

.pf-chip.active {
    color: #1b63c4;
    background: #e7f0fd;
    border-color: #2f80ed;
}

/* Filtro dinâmico.
   Na carga inicial as opções inexistentes somem (.pf-chip--hidden / option[hidden]);
   depois, ao interagir, ficam só desabilitadas (cinza). */
.pf-chip--hidden { display: none; }

.pf-chip--disabled,
.pf-chip:disabled {
    opacity: .4;
    cursor: not-allowed;
    border-color: #e0e5ea;
    background: #f2f4f6;
}
.pf-chip--disabled:hover { border-color: #e0e5ea; }

.pf-bar select option:disabled { color: #b3bcc6; }

/* Checkbox */
.pf-group--check { align-self: center; }

.pf-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #3a444e;
    cursor: pointer;
    margin: 0;
}

.pf-check input { width: 17px; height: 17px; }

/* Reset */
.pf-reset {
    font-size: 13px;
    font-weight: 700;
    color: #d64545;
    text-decoration: none;
}
.pf-reset:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .pf-bar { gap: 12px; }
    .pf-group--search { flex-basis: 100%; }
    .pf-group--reset { margin-left: 0; }
}
