/*
    The filter bar of a listing page: a destination select, pill groups, a reset link.

    Moved out of tours.css (#164) when the activities listing needed the same bar; the tour listing
    and every listing that filters load this file. Nothing here is scoped to a page.
*/

/* ----------  Filters  ---------- */

.advanced-filter-section {
    background: var(--color-dark-gray);
    padding: 2rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.filter-row--secondary {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    display: inline-flex;
    width: auto;
    max-width: 100%;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.filter-group-label {
    font-size: 0.8rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-right: 0.5rem;
}

.filter-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 1rem;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--color-text-gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-pill:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
    background: rgba(212, 175, 55, 0.05);
}

.filter-pill.active {
    background: var(--color-gold);
    color: var(--color-black);
    border-color: var(--color-gold);
}

.filter-select-wrapper {
    position: relative;
}

.filter-select {
    appearance: none;
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #fff;
    padding: 0.6rem 2.5rem 0.6rem 1.2rem;
    border-radius: 25px;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 200px;
    transition: all 0.3s ease;
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--color-gold);
    outline: none;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

.filter-select-arrow {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gold);
    pointer-events: none;
    font-size: 0.8rem;
}

.clear-filters {
    color: var(--color-text-gray);
    font-size: 0.8rem;
    text-decoration: underline;
    margin-top: 1rem;
    transition: color 0.3s ease;
}

.clear-filters:hover {
    color: var(--color-gold);
}

@media (max-width: 768px) {
    .filter-row--secondary {
        border-radius: 16px;
    }
}

/* "Showing 105 itineraries": how many the filters leave, above the cards (#182). */
.listing-count {
    color: var(--color-text-gray, #888);
    text-align: center;
    margin: 0 0 1.5rem;
    font-size: 0.9rem;
}
