/*
 * Filter chips shared by three surfaces: the always-visible Applied Filters
 * strip above the result list, the zero-results empty state's own remove
 * chips, and that same empty state's "relax a filter" suggestions. One
 * ruleset rather than three, since all three are literally the same pill.
 *
 * Promoted out of flights-filtered-empty.css, which used to be the only
 * consumer — AppliedFiltersStrip made that no longer true.
 */

.flights-filter-chip {
    /* 32px plus the wrapper's own gap clears a comfortable tap target without
       making a row of six chips taller than the paragraph above them. */
    min-height: 32px;
    padding: 4px 10px 4px 12px;
    border: 1px solid var(--bs-border-color);
    border-radius: 999px;
    background: var(--color-white);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-content);
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease;
}

/* The × is the affordance, so hover states the destructive intent rather than
   just lighting up: the whole chip is the remove button, not a label with a
   button in it. */
.flights-filter-chip:hover {
    border-color: var(--color-second);
    color: var(--color-second);
}

.flights-filter-chip:focus-visible {
    outline: 2px solid var(--color-first);
    outline-offset: 2px;
}

.flights-filter-chip:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* A relaxation chip *adds* results rather than removing a filter, so its
   hover state points at the brand teal (the same "do something" color
   Smart Filters uses) instead of the removal chip's coral. */
.flights-filter-chip--relax:hover {
    border-color: var(--color-first);
    color: var(--color-first);
}

.flights-filter-clear-all {
    padding: 0;
    border: 0;
    background: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-second);
    cursor: pointer;
}

.flights-filter-clear-all:hover {
    text-decoration: underline;
}

.flights-filter-clear-all:focus-visible {
    outline: 2px solid var(--color-first);
    outline-offset: 2px;
    border-radius: 4px;
}

.applied-filters-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.applied-filters-strip__label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--color-content);
    margin-right: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .flights-filter-chip { transition: none; }
}
