/**
 * Search Filters CSS
 * Styles for the post-search filter modal and active filter display
 */

/* Two-line display for jumping ability options */
.filter-option-label {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
}

.filter-option-range {
    font-size: 12px;
    color: #666;
}

/* Adjust option height for two-line display */
.filter-option[data-category="jumping-ability"] {
    padding: 8px 12px;
    min-height: 40px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex: 0 0 calc(33% - 4px); /* Ensure 2 columns */
}

/* Ensure jumping ability labels maintain column layout */
.filter-option[data-category="jumping-ability"] label {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Search Header */
.search-header {
    text-align: center;
    margin-bottom: 15px;
}

/* Filter Button Container */
.filter-button-container {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    text-align: center;
    margin-bottom: 20px;
}

/* Classic Search Link */
.classic-search-link {
    flex-basis: 100%;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.classic-search-link a {
    color: #84bc41;
    text-decoration: none;
}

.classic-search-link a:hover {
    text-decoration: underline;
}

/* Filter Button */
.filter-button {
    align-items: center;
    box-sizing: border-box;
    display: inline-flex;
    justify-content: center;
    min-height: 38px;
    padding: 0 20px;
    background-color: #84bc41;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.filter-button:hover {
    background-color: #6b9c34;
}

/* Modal Container */
.filter-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.filter-modal-content {
    position: relative;
    background-color: #fff;
    width: 90%;
    max-width: 600px;
    margin: 50px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

/* Modal Header */
.filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.filter-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.close-filter-modal {
    font-size: 24px;
    color: #777;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-filter-modal:hover {
    color: #333;
}

/* Filter Categories Container */
.filter-categories-container {
    padding: 15px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Filter Category */
.filter-category {
    border-top: 1px solid #eeeeee;
    margin-bottom: 0;
    padding: 10px 0;
}

.filter-category.filter-category-collapsed {
    margin-bottom: 0;
}

.filter-category:first-child {
    border-top: 0;
}

.filter-category h4 {
    color: #333;
    font-size: 16px;
    font-weight: 200;
    margin: 0;
    padding: 0;
}

#sub .filter-modal .filter-category-title {
    color: #333;
    font-size: 16px;
    font-weight: 200;
    line-height: 1.1;
}

.filter-category-title {
    align-items: center;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    user-select: none;
}

.filter-category-toggle {
    align-items: center;
    border: 1px solid #dddddd;
    border-radius: 4px;
    color: #777;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 22px;
    font-weight: 200;
    height: 32px;
    justify-content: center;
    line-height: 1;
    margin-left: 12px;
    width: 32px;
}

.filter-category-collapsed .filter-category-content {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    pointer-events: none;
    transform: translateY(-4px);
}

.filter-category-content {
    max-height: 3600px;
    opacity: 1;
    overflow: hidden;
    padding-top: 10px;
    transform: translateY(0);
    transition: max-height 0.28s ease, opacity 0.2s ease, padding-top 0.2s ease, transform 0.2s ease;
}

.filter-category:not(.filter-category-collapsed) .filter-option {
    animation: filter-option-reveal 0.18s ease both;
}

@keyframes filter-option-reveal {
    from {
        opacity: 0.72;
        transform: translateY(-3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SIZE filter: all buttons same width */
.filter-options-list[data-category-key="size"] .filter-option {
    min-width: 0;
}

/* Filter Options */
.filter-options-list {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 10px;
    justify-content: flex-start;
}

.lease-options-panel {
    margin: 0;
    width: 100%;
}

.lease-filter-subtitle {
    color: #666;
    font-size: 12px;
    font-weight: normal;
    letter-spacing: 0.04em;
    margin: 8px 0 6px;
    text-align: center;
    text-transform: uppercase;
}

.lease-term-row {
    display: block;
}

.lease-term-options {
    margin-bottom: 0;
    width: 100%;
}

.lease-budget-optional {
    color: #888;
    display: none;
    font-size: 12px;
    font-weight: 200;
    line-height: 1.2;
    margin: 18px 0 6px;
    text-align: center;
}

.lease-budget-groups {
    display: grid;
    gap: 8px;
    justify-items: center;
    margin-top: 12px;
}

.lease-budget-group {
    display: none;
    justify-items: center;
    width: 100%;
}

.lease-budget-select {
    width: min(100%, 320px);
    min-height: 38px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fff;
    color: #555;
    font-size: 13px;
    font-weight: normal;
    padding: 7px 10px;
    text-align: center;
    text-align-last: center;
}

.lease-options-panel.lease-budget-visible .lease-in-barn-checkbox-row {
    margin-top: 24px;
}

.lease-in-barn-checkbox-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: #555;
    font-size: 13px;
    line-height: 1.2;
    margin: 12px auto 16px;
    white-space: nowrap;
}

.lease-in-barn-checkbox-row input {
    margin: 0 5px 0 0;
}

@media (min-width: 769px) {
    .filter-modal-content {
        margin: 24px auto;
        max-width: 640px;
        max-height: calc(100vh - 48px);
    }

    .filter-modal-header {
        padding: 13px 20px;
    }

    .filter-modal-header h3 {
        font-size: 18px;
        line-height: 1.15;
    }

    .filter-categories-container {
        padding: 12px 15px;
    }

    .filter-category {
        padding: 8px 0;
    }

    .filter-category h4,
    #sub .filter-modal .filter-category-title {
        font-size: 16px;
        line-height: 1.1;
    }

    .filter-category-toggle {
        font-size: 22px;
        height: 32px;
        width: 32px;
    }

    .filter-modal-footer {
        padding: 12px 20px;
    }

    .lease-budget-select {
        min-height: 48px;
        padding: 10px 12px;
    }
}

/* Group Headers for Location Filters */
.filter-group-header {
    grid-column: 1 / -1;
    width: 100%;
    font-weight: bold;
    font-size: 14px;
    color: #666;
    margin-top: 15px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    text-align: center;
    font-style: italic;
}

.filter-group-header:first-child {
    margin-top: 0;
}

.filter-option {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    height: 44px;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: none;
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

/* Hide the actual checkbox inputs - users should only see button-style toggles */
.filter-option input[type="checkbox"] {
    display: none;
}

/* Ensure labels don't block clicks - make them pass-through */
.filter-option label {
    pointer-events: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    cursor: inherit;
}

/* Ensure all child elements within labels also don't block clicks */
.filter-option label * {
    pointer-events: none;
}

.filter-option:hover {
    background-color: #efefef;
    border-color: #ccc;
}

.filter-option.selected {
    background-color: #e6f3d9;
    border-color: #84bc41;
    color: #333;
}

.filter-options-list[data-category-key="location"] .filter-option,
.filter-options-list[data-category-key="LOCATION"] .filter-option {
    justify-content: flex-start;
    text-align: left;
}

.filter-options-list[data-category-key="location"] .filter-option label,
.filter-options-list[data-category-key="LOCATION"] .filter-option label {
    justify-content: flex-start;
    text-align: left;
}

.location-filter-options-shell {
    display: block;
    grid-column: 1 / -1;
    margin-bottom: 0;
    width: 100%;
}

.filter-options-list.location-filter-options-shell {
    display: block;
    grid-template-columns: none;
}

.location-filter-groups {
    display: grid;
    gap: 8px;
    width: 100%;
}

.location-filter-group {
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
}

.location-filter-group-title {
    align-items: center;
    appearance: none;
    background: #ffffff;
    border: 0;
    color: #555555;
    cursor: pointer;
    display: flex;
    font-size: 14px;
    font-style: italic;
    font-weight: 400;
    justify-content: space-between;
    line-height: 1.2;
    padding: 10px 12px;
    text-align: left;
    width: 100%;
}

.location-filter-group-title:hover {
    background: #f7f7f7;
}

.location-filter-group-toggle {
    align-items: center;
    border: 1px solid #dddddd;
    border-radius: 4px;
    color: #777777;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 20px;
    font-style: normal;
    font-weight: 200;
    height: 28px;
    justify-content: center;
    line-height: 1;
    margin-left: 10px;
    width: 28px;
}

.location-filter-group-content {
    box-sizing: border-box;
    max-height: 2200px;
    opacity: 1;
    overflow: hidden;
    padding: 8px;
    transform: translateY(0);
    transition: max-height 0.24s ease, opacity 0.2s ease, padding 0.2s ease, transform 0.2s ease;
}

.location-filter-group-collapsed .location-filter-group-content {
    max-height: 0;
    opacity: 0;
    padding-bottom: 0;
    padding-top: 0;
    pointer-events: none;
    transform: translateY(-3px);
}

.location-filter-options {
    grid-column: 1 / -1;
    margin-bottom: 0;
    width: 100%;
}

.location-zip-panel {
    display: grid;
    gap: 9px;
    margin: 0 0 10px;
}

.location-zip-entry-row {
    align-items: center;
    display: flex;
    gap: 8px;
    width: 100%;
}

.location-zip-entry-row:not(.location-zip-entry-row--has-account-zip) .location-zip-input {
    flex-basis: 100%;
    width: 100%;
}

.location-zip-input,
.location-radius-option {
    box-sizing: border-box;
    min-height: 44px;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f5f5f5;
    color: #555;
    font-size: 13px;
    font-weight: normal;
    line-height: 1.2;
}

.location-zip-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 8px 12px;
    text-align: left;
}

#sub .filter-modal .location-zip-input {
    padding-left: 12px;
    padding-right: 12px;
    text-align: left;
}

.location-zip-input:focus {
    border-color: #84bc41;
    background-color: #ffffff;
    outline: none;
}

.location-use-my-zip {
    appearance: none;
    background: transparent;
    border: 0;
    color: #666666;
    cursor: pointer;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 200;
    padding: 0;
    text-decoration: underline;
}

.location-use-my-zip:hover {
    color: #333333;
}

.location-radius-options {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.location-radius-option {
    cursor: pointer;
    padding: 8px 10px;
    text-align: center;
    transition: all 0.2s ease;
}

.location-radius-option:hover {
    background-color: #efefef;
    border-color: #ccc;
}

.location-radius-option.selected {
    background-color: #e6f3d9;
    border-color: #84bc41;
    color: #333;
}

.location-radius-option:disabled,
.location-radius-disabled {
    background-color: #f7f7f7;
    color: #aaaaaa;
    cursor: not-allowed;
}

.location-filter-subtitle {
    color: #555555;
    font-size: 14px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 8px;
    text-align: center;
}

.location-filter-spacer {
    height: 12px;
}

.location-filter-or {
    color: #555555;
    font-size: 13px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 12px;
    text-align: center;
}

/* Modal Footer */
.filter-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.filter-selection-tools {
    align-items: center;
    display: flex;
    gap: 10px;
}

.filter-selection-counter {
    color: #555;
    font-size: 14px;
    font-weight: 200;
    white-space: nowrap;
}

/* Action Buttons */
.filter-action-btn {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-apply-filters {
    background-color: #84bc41;
    border: 1px solid #84bc41;
    color: white;
}

.btn-apply-filters:hover {
    background-color: #6b9c34;
}

.btn-clear-filters {
    background-color: #fff;
    border: 1px solid #ddd;
    color: #555;
}

.btn-clear-filters:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

/* Active Filters Display */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    margin: 5px 0 15px 0;
    padding-left: 25px;
    padding-right: 25px;
    width: 100%;
    box-sizing: border-box;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 14px;
    color: #333;
    margin: 5px;
    line-height: 1.4;
    min-width: 0;
    max-width: 320px;
    position: relative;
    height: 45px;
    vertical-align: top;
    box-sizing: border-box;
}

/* Help cursor for pills with truncated content (title tooltip) */
.filter-pill[title] {
    cursor: help;
}

/* Stack layout for pills with category labels */
.filter-pill.show-category {
    flex-direction: column;
    padding: 3px 20px 10px 20px;
    justify-content: center; /* Center content vertically for better visual alignment */
    height: 45px;
}

.filter-pill .filter-category {
    display: none;
}

/* Show category label for price filters */
.filter-pill.show-category .filter-category {
    display: block;
    font-size: 11px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin: 0;
    text-align: center;
    width: 100%;
    line-height: 1;
}

.filter-pill .filter-value {
    font-size: 14px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* Content wrapper for pills with categories */
.filter-pill.show-category .filter-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    line-height: 1.2;
}

.filter-pill.show-category .filter-value {
    margin-right: 8px;
}

.filter-pill.show-category .remove-filter {
    margin-left: 8px;
}

.remove-filter {
    margin-left: 12px;
    font-size: 18px;
    line-height: 14px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.remove-filter:hover {
    color: #333;
}

/* Loading and Error States */
.filter-loading, .filter-error {
    padding: 20px;
    text-align: center;
    color: #666;
}

.filter-error {
    color: #d9534f;
    margin-bottom: 10px;
}

.retry-button {
    display: block;
    margin: 0 auto 15px;
    padding: 6px 12px;
    background-color: #84bc41;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.retry-button:hover {
    background-color: #6b9c34;
}

.create-alert-cta {
    align-items: center;
    box-sizing: border-box;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    margin: 0;
    min-width: 38px;
    padding: 0;
    width: 38px;
    border: 1px solid #84bc41;
    border-radius: 4px;
    background: #ffffff;
    color: #84bc41;
    cursor: pointer;
    font-size: 14px;
    font-weight: 200;
    line-height: 1.2;
}

.create-alert-cta:hover,
.create-alert-cta[aria-expanded="true"] {
    background: #ffffff;
    border-color: #84bc41;
    color: #84bc41;
    box-shadow: 0 0 0 2px rgba(132, 188, 65, 0.15);
}

.create-alert-cta__icon {
    align-items: center;
    display: inline-flex;
    height: 22px;
    justify-content: center;
    width: 22px;
}

.create-alert-cta__icon svg {
    display: block;
    height: 22px;
    width: 22px;
}

.create-alert-cta__icon path {
    fill: none;
    stroke: currentcolor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.save-search-modal {
    position: fixed;
    z-index: 1001;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #666666;
    font-weight: 200;
}

.save-search-modal[hidden] {
    display: none;
}

.save-search-modal__backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.4);
}

.save-search-modal__content {
    position: relative;
    width: min(100%, 520px);
    padding: 24px;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24);
    text-align: center;
}

.save-search-modal__content h3 {
    margin: 0 32px 16px;
    color: #666666;
    font-size: 20px;
    font-weight: 300;
}

.save-search-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: transparent;
    color: #666666;
    cursor: pointer;
    font-size: 24px;
    font-weight: 200;
    line-height: 1;
}

.save-search-modal label {
    display: block;
    margin-bottom: 8px;
    color: #666666;
    font-size: 14px;
    font-weight: 200;
}

.save-search-panel__fields {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.save-search-modal input[type="text"] {
    width: min(100%, 310px);
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #e4e4e4;
    border-radius: 2px;
    background: #f6f6f6;
    box-sizing: border-box;
    color: #666666;
    font: inherit;
    font-weight: 200;
}

.save-search-modal input[type="text"]:focus {
    border-color: #9bcf71;
    background: #ffffff;
    outline: none;
}

.save-search-modal .save_search_btn {
    min-height: 38px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background: #97fe9a;
    color: #666666;
    cursor: pointer;
    font-size: 14px;
    font-weight: 200;
    line-height: 1.2;
}

.save-search-modal .save_search_btn:hover {
    opacity: 0.88;
}

.search-loading {
    color: #666666;
    font-size: 15px;
    font-weight: 200;
    text-align: center;
}

.search-loading p {
    margin: 0 0 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .filter-modal-content {
        width: 95%;
        margin: 30px auto;
        max-height: 85vh;
    }

    .filter-options-list {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: flex-start;
    }

    .filter-option {
        box-sizing: border-box;
        flex: none;
        padding: 7px 9px;
        font-size: 14px;
        height: 36px;
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .filter-options-list[data-category-key="size"] .filter-option {
        min-width: 0;
        order: var(--size-mobile-order, 99);
    }

    .filter-group-header {
        grid-column: 1 / -1;
    }

    .filter-options-list[data-category-key="size"] .filter-option[data-name*="Small Horse"] {
        order: 1;
    }

    .filter-options-list[data-category-key="size"] .filter-option[data-name*="Large Horse"] {
        order: 2;
    }

    .filter-options-list[data-category-key="size"] .filter-option[data-name*="Small Pony"] {
        order: 3;
    }

    .filter-options-list[data-category-key="size"] .filter-option[data-name*="Medium Pony"] {
        order: 4;
    }

    .filter-options-list[data-category-key="size"] .filter-option[data-name*="Large Pony"] {
        order: 5;
    }

    .location-zip-panel,
    .location-zip-entry-row {
        gap: 6px;
    }

    .location-zip-input,
    .location-radius-option {
        font-size: 14px;
        min-height: 36px;
    }

    .location-use-my-zip {
        font-size: 14px;
    }

    .location-radius-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-group-header {
        font-size: 14px;
        margin-top: 12px;
        margin-bottom: 6px;
    }

    .filter-action-btn {
        padding: 8px 14px;
        font-size: 14px;
    }
}

/* Mobile slide-up animation */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100%);
    }
}

@media (max-width: 480px) {
    .filter-modal {
        background-color: rgba(0, 0, 0, 0);
        transition: background-color 0.3s ease;
    }
    
    .filter-modal.open {
        background-color: rgba(0, 0, 0, 0.5);
    }
    
    .filter-modal-content {
        width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
        height: 100%;
        position: fixed;
        bottom: 0;
        left: 0;
        transform: translateY(100%);
        transition: transform 0.3s ease-out;
    }
    
    .filter-modal.open .filter-modal-content {
        transform: translateY(0);
    }

    .filter-modal-header {
        padding: 10px 15px;
    }

    .filter-categories-container {
        padding: 8px 10px;
    }

    .filter-category {
        padding: 7px 0;
    }

    .filter-category h4 {
        font-size: 15px;
        line-height: 1.2;
    }

    .filter-category-toggle {
        font-size: 20px;
        height: 28px;
        width: 28px;
    }

    .filter-options-list {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-option {
        box-sizing: border-box;
        flex: none;
        padding: 7px 8px;
        font-size: 13px;
        height: 36px;
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .filter-options-list[data-category-key="size"] .filter-option {
        min-width: 0;
        order: var(--size-mobile-order, 99);
    }

    .location-zip-input,
    .location-radius-option {
        font-size: 13px;
        min-height: 36px;
    }

    .location-use-my-zip {
        font-size: 13px;
    }

    .filter-group-header {
        font-size: 13px;
        margin-top: 10px;
        margin-bottom: 5px;
    }

    .filter-modal-footer {
        padding: 10px 15px;
    }

    .filter-action-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

}

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

    .filter-category:not(.filter-category-collapsed) .filter-option {
        animation: none;
    }
}

@media (max-width: 767px) {
    .create-alert-cta {
        flex: 0 0 38px;
        margin: 0;
    }

    .save-search-panel__fields {
        align-items: stretch;
        flex-direction: column;
    }

    .save-search-modal input[type="text"],
    .save-search-modal .save_search_btn {
        width: 100%;
    }

    .save-search-modal__content {
        padding: 22px 18px;
    }
}

/* No Results Message Styling */
.no-results-message {
    text-align: center;
    padding: 40px 20px;
    margin: 20px 0;
}

.no-results-content {
    max-width: 500px;
    margin: 0 auto;
}

.no-results-content p {
    color: #28a745; /* Green text consistent with site branding */
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.no-results-content a {
    color: #28a745;
    text-decoration: underline;
    font-weight: 500;
}

.no-results-content a:hover {
    color: #1e7e34; /* Darker green on hover */
    text-decoration: none;
}

.no-results-content a:focus {
    outline: 2px solid #28a745;
    outline-offset: 2px;
}

/* Responsive styling for mobile */
@media (max-width: 767px) {
    .no-results-message {
        padding: 30px 15px;
    }
    
    .no-results-content p {
        font-size: 14px;
    }
}
