/* ── Taxonomy search bar (simple single-input) ── */

#taxonomy-search-form {
    width: 100%;
    margin: 0 0 20px;
}

#taxonomy-search-form .searchbar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--slate-100);
    border: 1px solid var(--border);
    border-radius: var(--rounded-sm);
    padding: 8px 12px;
}

#taxonomy-search-form .searchbar svg:first-child {
    flex-shrink: 0;
    color: var(--muted);
}

#taxonomy-search-form .searchbar input[type="text"] {
    flex: 1;
    border: none;
    background: transparent;
    padding: 4px 0;
    font-size: 1em;
    outline: none;
    box-shadow: none;
}

#taxonomy-search-form .taxonomy-search-clear {
    display: flex;
    align-items: center;
    color: var(--muted);
    flex-shrink: 0;
    text-decoration: none;
    line-height: 1;
}

#taxonomy-search-form .taxonomy-search-clear:hover {
    color: var(--text);
}

#taxonomy-search-form .taxonomy-search-btn {
    flex-shrink: 0;
    padding: 6px 18px;
    font-size: 0.9em;
}

/* ── Main search form ── */

#search-form {
    width: 100%;
    margin: 0 auto 10px;
    padding: 0;
    border-radius: 8px
}

#search-form label,
.sort-form label {
    display: block;
    margin-bottom: 8px
}

#search-form select,
.sort-form select {
    width: 100%;
    padding: 8px 10px;
    box-sizing: border-box;
    border-radius: 0;
    border: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23333%23333" width="18px" height="18px"><path d="M0 0h24v24H0z" fill="none"/><path d="M7 10l5 5 5-5H7z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
    box-shadow: none;
    border-left: 1px solid var(--border)
}

#search-form select option,
.sort-form select option {
    color: #333;
    padding: 8px;
    cursor: pointer
}

#search-form input,
.sort-form input {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    box-shadow: none;
    font-size: 1em
}

#search-form input:focus,
#search-form select:focus,
.sort-form input:focus,
.sort-form select:focus {
    outline-color: var(--primary)
}

#search-form input[type=text],
.sort-form input[type=text] {
    width: 100%;
    padding: 10px 10px 10px 35px;
    box-sizing: border-box;
    border-radius: var(--rounded-sm);
    border: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-repeat: no-repeat;
    background-position: right 10px center
}

#search-form button[type=submit],
#search-form input[type=submit],
.sort-form button[type=submit],
.sort-form input[type=submit] {
    color: #fff !important;
    cursor: pointer;
    border-radius: var(--rounded-default);
    width: 100%;
    text-transform: none;
    font-weight: 500;
    font-size: 1em !important
}

#search-form .searchbar,
.sort-form .searchbar {
    position: relative;
    width: 100%
}

#search-form .searchbar svg,
.sort-form .searchbar svg {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%)
}

.search_box {
    background-color: var(--slate-100)
}

.search_box .select2.select2-container .select2-selection {
    border: none
}

@media(min-width:993px) {

    #search-form .col,
    .sort-form .col {
        display: flex;
        align-items: center
    }

    #search-form .col {
        padding: 0 5px
    }

    #search-form .search_box,
    .sort-form .search_box {
        padding: 10px 5px;
        border-radius: var(--rounded-sm);
        border: 1px solid var(--border)
    }

    #sort-form select {
        border: 1px solid var(--border);
        border-radius: var(--rounded-sm)
    }
}

@media(max-width:992px) {
    #search-form {
        padding: 0
    }

    #search-form input[type=text],
    #search-form select,
    .sort-form input[type=text],
    .sort-form select {
        border-left: 0;
        border-radius: var(--rounded-sm)
    }

    #search-form .row,
    .sort-form .row {
        margin: 0
    }

    #search-form .col,
    .sort-form .col {
        padding: 8px
    }
}

#sort-form {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px
}

#sort-form .select2,
#sort-form select {
    max-width: 300px
}

.no-results {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.5;
    margin-top: 30px;
    margin-bottom: 50px
}

.no-results img {
    width: 300px;
    height: auto
}

.no-results button {
    border-radius: var(--rounded-default) !important
}

.no-results button a {
    color: #fff !important
}

.number-of-results-count h3 {
    margin: 0;
    font-weight: 800;
	font-size:1.1em;
}

@media(max-width:768px) {
    .number-of-results-count {
        margin-top: 30px
    }
}
