/* Active filter chips in results column */
.active-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-start;
    max-width: 100%;
    margin: 0 0 0.4rem;
    padding: 0;
}

.active-filter-chips .location-tag-chip {
    font-size: 14px;
    padding: 0.5rem 1.1rem;
}

.active-filter-chips .chip-remove {
    margin-left: 0.5rem;
}

/* Clear Filters Link */
.clear-filters-link {
    display: block;
    font-family: tenon, Adjusted Arial Fallback, sans-serif;
    font-size: 15px;
    text-transform: uppercase;
    color: #000000;
    text-decoration: none;
    margin-top: -25px;
    margin-bottom: 1.5rem;
    transition: opacity 0.2s ease;
}

.clear-filters-link:hover {
    opacity: 0.7;
}

.clear-filters-link:visited {
    color: #000000;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .clear-filters-link {
        margin-top: 0.5rem;
        margin-bottom: 2rem;
    }

    .active-filter-chips {
        position: sticky;
        top: 0;
        z-index: 10;
        background-color: #ffffff;
        padding: 0.6rem 0 0.75rem;
        margin: 0 0 0.5rem;
        border-bottom: 1px solid #000000;
    }

    .active-filter-chips .location-tag-chip {
        font-size: 13px;
        padding: 0.45rem 0.9rem;
    }
}

/* Checkbox spacing for locations hub */
.checkbox-field:not(.inline-text) label>span {
    padding-left: 1.5rem;
}

/* Show native radio buttons in the region filter */
.filters .radio-button-field label input[type=radio] {
    display: inline-block;
    margin-right: 0.4rem;
    vertical-align: middle;
    accent-color: #000000;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.filters .radio-button-field label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.filters .radio-button-field label > span {
    vertical-align: middle;
}

/* Dropdown Filter Sections - Desktop */
.filters .filter-values:not(.visible) {
    display: none;
}

.filters .section-heading {
    margin-top: 0;
    position: relative;
    cursor: pointer;
}

/* Add caret/arrow indicator for dropdown */
.filters .section-heading::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 8px;
    margin-left: 8px;
    vertical-align: middle;
    background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xml%3Aspace%3D%22preserve%22%20viewBox%3D%220%200%2031.39%2017.91%22%3E%0A%20%20%3Cpath%20fill%3D%22%23b4a165%22%20d%3D%22M30.74.65c-.86-.86-2.27-.86-3.13%200L15.7%2012.57%203.78.65C2.92-.21%201.51-.21.65.65c-.86.86-.86%202.27%200%203.13l13.48%2013.48c.86.86%202.27.86%203.13%200L30.74%203.78c.87-.86.87-2.27%200-3.13z%22%2F%3E%0A%3C%2Fsvg%3E);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.3s ease;
}

/* Rotate the caret when dropdown is open */
.filters .section-heading.active::after {
    transform: rotate(180deg);
}
