/* SELETOR DA BUSCA (LISTA QUE ABRE, COM PESQUISA, VÁRIAS OPÇÕES E ETIQUETAS), MOVIDO POR js/listagem.js. É O DA
   BUSCA LATERAL DA LISTAGEM DO SITE ANTIGO; TAMBÉM USADO NO FILTRO DO BLOG. */

.filtro {
    position: relative;
    margin-bottom: 5px;
}

.filtro__rotulo {
    display: block;
    padding: .5rem 1rem .5rem 0;
    font-size: 15px;
    line-height: 1.42857143;
    color: var(--cor-site-5);
    white-space: nowrap;
}

.filtro__botao {
    position: relative;
    width: 100%;
    height: 40px;
    padding: 10px 15px;
    font-size: 14px;
    color: var(--cor-site-5);
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all .3s;
}

.filtro__botao:hover {
    background: rgba(255, 255, 255, .15);
}

.filtro__botao::after {
    position: absolute;
    top: 50%;
    right: 15px;
    font-size: 10px;
    color: var(--cor-site-3);
    content: "▼";
    transform: translateY(-50%);
}

.filtro.aberto .filtro__botao::after {
    content: "▲";
}

.filtro__menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    float: left;
    width: 100%;
    min-width: 10rem;
    max-height: 300px;
    padding: .5rem 0;
    margin-top: -1px;
    overflow-y: auto;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    background: #ddd;
    background-clip: padding-box;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .2);
}

.filtro.aberto .filtro__menu {
    display: block;
}

.filtro__pesquisa {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 10px;
    background: var(--cor-site-1);
}

.filtro__pesquisa input {
    width: 100%;
    height: 30px;
    padding: 7px 12px;
    font-size: 13px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 4px;
}

.filtro__pesquisa input::placeholder {
    color: #fff;
}

.filtro__item {
    display: block;
    clear: both;
    width: 100%;
    padding: 6px 15px;
    font-size: 14px;
    font-weight: 400;
    color: var(--cor-site-1);
    white-space: nowrap;
    cursor: pointer;
    background-color: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    transition: all .2s;
}

.filtro__item:hover,
.filtro__item.selecionado {
    color: #fff;
    background: var(--cor-site-1);
}

.filtro__item--aviso {
    cursor: default;
}

.filtro__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.filtro__tag {
    display: flex;
    align-items: center;
    padding: 3px 8px;
    font-size: 12px;
    color: var(--cor-site-1);
    background: rgb(48 86 45 / 28%);
    border-radius: 12px;
}

.filtro__tag-remover {
    margin-left: 5px;
    cursor: pointer;
}
