/* Widen container on search results page for larger screens */
@media screen and (min-width: 1200px) {
    .fx-insidepage__wrapper .container {
        max-width: 1370px;
        margin-inline: auto;
        padding-inline: 15px;
    }
}

.fxsr-header {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    padding: 16px 0;
}

.fxsr-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.fxsr-header__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.fxsr-header__count {
    color: #888;
    font-weight: 400;
    font-size: 14px;
    margin-left: 6px;
}

.fxsr-sort-dropdown {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 36px 8px 14px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: #333;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
    cursor: pointer;
    outline: none;
    min-width: 160px;
}

.fxsr-sort-dropdown:focus {
    border-color: #3949ab;
}

.fxsr-sidebar {
    padding-right: 10px;
}

.fxsr-filter {
    padding: 24px 20px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
}

.fxsr-filter.sticky-top {
    position: sticky;
    top: 130px;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}

.fxsr-filter.sticky-top::-webkit-scrollbar {
    width: 4px;
}

.fxsr-filter.sticky-top::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

.fxsr-filter__main-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0 0 16px;
}

.fxsr-filter__search-wrap {
    position: relative;
    border: none !important;
    border-radius: 20px;
    margin-bottom: 20px;
    background: #f5f5f5;
    outline: none !important;
    box-shadow: none;
    transition: background 0.2s, box-shadow 0.2s;
}

.fxsr-filter__search-wrap:focus-within {
    background: #fff;
    box-shadow: 0 0 0 1px #e0e0e0;
    outline: none !important;
}

.fxsr-filter__keyword {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: none !important;
    padding: 7px 32px 7px 14px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    outline: none !important;
    background: transparent;
    color: #333;
    line-height: 1.4;
    border-radius: 20px;
}

.fxsr-filter__keyword:focus,
.fxsr-filter__keyword:focus-visible {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.fxsr-filter__keyword::placeholder {
    color: #aaa;
    font-size: 13px;
}

.fxsr-filter__search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 13px;
    pointer-events: none;
}

.fxsr-filter__section {
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: none;
}

.fxsr-filter__section:last-child {
    margin-bottom: 0;
}

.fxsr-filter__heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.fxsr-filter__heading .fxsr-chevron {
    font-size: 11px;
    color: #666;
    transition: transform 0.2s;
}

.fxsr-filter__heading.collapsed .fxsr-chevron {
    transform: rotate(180deg);
}

.fxsr-filter__body {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.fxsr-filter__body.collapsed {
    max-height: 0 !important;
}

.fxsr-filter__categories {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 220px;
    overflow-y: auto;
}

.fxsr-filter__categories::-webkit-scrollbar {
    width: 3px;
}

.fxsr-filter__categories::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

.fxsr-filter__cat-item {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    gap: 12px;
    line-height: 1.4;
}

.fxsr-filter__cat-item input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border: 2px solid #999;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    margin: 1px 0 0;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
    flex-shrink: 0;
}

.fxsr-filter__cat-item input[type="checkbox"]:hover {
    border-color: #666;
}

.fxsr-filter__cat-item input[type="checkbox"]:checked {
    background: #3949ab;
    border-color: #3949ab;
}

.fxsr-filter__cat-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 7px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.fxsr-filter__cat-count {
    display: none;
}

.fxsr-filter__price-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.fxsr-filter__price-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    color: #333;
    transition: border-color 0.2s;
}

.fxsr-filter__price-input:focus {
    border-color: #3949ab;
}

.fxsr-filter__price-sep {
    display: none;
}

.fxsr-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

@media (min-width: 992px) {
    .col-lg-9 .fxsr-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.fxsr-grid--loading {
    opacity: 0.5;
    pointer-events: none;
}

.fxsr-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.fxsr-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.fxsr-card__image-wrap {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fxsr-card__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.fxsr-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.fxsr-card__body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fxsr-card__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.fxsr-card__location {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.fxsr-card__location i {
    margin-right: 3px;
}

.fxsr-card__price {
    font-size: 13px;
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 4px;
}

.fxsr-card__promo {
    font-size: 13px;
    color: #666;
    margin-bottom: 0;
    font-weight: 400;
}

.fxsr-card__cta {
    display: inline-block;
    margin-top: auto;
    padding: 8px 0;
    width: 100%;
    background: #e53935;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    transition: background 0.2s;
}

.fxsr-card__cta:hover {
    background: #c62828;
    color: #fff;
    text-decoration: none;
}

.fxsr-card-enter {
    opacity: 0;
    transform: translateY(15px);
    animation: fxsrCardFadeIn 0.35s ease forwards;
}

@keyframes fxsrCardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fxsr-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.fxsr-no-results__icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.fxsr-no-results__text {
    font-size: 16px;
}

.fxsr-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 30px 0 10px;
    flex-wrap: wrap;
}

.fxsr-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}

.fxsr-pagination__btn:hover {
    border-color: #3949ab;
    color: #3949ab;
    text-decoration: none;
}

.fxsr-pagination__btn--active {
    background: #3949ab;
    border-color: #3949ab;
    color: #fff;
    font-weight: 600;
}

.fxsr-pagination__btn--active:hover {
    color: #fff;
}

.fxsr-pagination__btn--disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.fxsr-pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    color: #999;
    font-size: 14px;
}

.fxsr-load-more {
    display: none;
    width: 100%;
    padding: 14px;
    background: #e53935;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    margin: 20px 0 10px;
    transition: background 0.2s;
}

.fxsr-load-more:hover {
    background: #c62828;
}

.fxsr-load-more:disabled {
    background: #ccc;
    cursor: default;
}

.fxsr-spinner {
    display: none;
    text-align: center;
    padding: 30px 0;
}

.fxsr-spinner::after {
    content: '';
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid #e8e8e8;
    border-top-color: #3949ab;
    border-radius: 50%;
    animation: fxsrSpin 0.6s linear infinite;
}

@keyframes fxsrSpin {
    to {
        transform: rotate(360deg);
    }
}

.fxsr-mobile-bar {
    display: none;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.fxsr-mobile-bar::-webkit-scrollbar {
    display: none;
}

.fxsr-mobile-bar__pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    color: #555;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
    flex-shrink: 0;
}

.fxsr-mobile-bar__pill:hover {
    border-color: #3949ab;
    color: #3949ab;
}

.fxsr-mobile-bar__pill--active {
    background: #3949ab;
    border-color: #3949ab;
    color: #fff;
}

.fxsr-mobile-bar__pill i {
    font-size: 12px;
}

.fxsr-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.3s;
}

.fxsr-backdrop--visible {
    display: block;
    opacity: 1;
}

.fxsr-sheet {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 90vh;
    background: #fff;
    border-radius: 16px 16px 0 0;
    z-index: 1050;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    flex-direction: column;
}

.fxsr-sheet--visible {
    display: flex;
    transform: translateY(0);
}

.fxsr-sheet__handle {
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 10px auto;
    flex-shrink: 0;
}

.fxsr-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px 14px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.fxsr-sheet__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.fxsr-sheet__close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fxsr-sheet__body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    -webkit-overflow-scrolling: touch;
}

.fxsr-sheet__footer {
    display: flex;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.fxsr-sheet__btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}

.fxsr-sheet__btn--apply {
    background: #e53935;
    color: #fff;
}

.fxsr-sheet__btn--apply:hover {
    background: #c62828;
}

.fxsr-sheet__btn--close {
    background: #f5f5f5;
    color: #333;
}

.fxsr-sheet__btn--close:hover {
    background: #eee;
}

.fxsr-sort-option {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    font-size: 15px;
    color: #333;
}

.fxsr-sort-option:last-child {
    border-bottom: none;
}

.fxsr-sort-option__radio {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
    position: relative;
}

.fxsr-sort-option--active .fxsr-sort-option__radio {
    border-color: #3949ab;
}

.fxsr-sort-option--active .fxsr-sort-option__radio::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    background: #3949ab;
    border-radius: 50%;
}

.fxsr-sort-option--active {
    color: #3949ab;
    font-weight: 600;
}

body.fxsr-body-locked {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

@media (max-width: 991.98px) {
    .fxsr-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .fxsr-mobile-bar {
        display: flex;
    }

    .fxsr-load-more {
        display: block;
    }

    .fxsr-pagination {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .fxsr-header__title {
        font-size: 16px;
    }

    .fxsr-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .fxsr-card__image-wrap {
        height: 140px;
    }

    .fxsr-card__body {
        padding: 10px;
    }

    .fxsr-card__title {
        font-size: 14px;
        -webkit-line-clamp: 3;
    }

    .fxsr-card__cta {
        font-size: 12px;
        padding: 6px 0;
    }

    .fxsr-card__location {
        font-size: 11px;
    }

    .fxsr-card__promo {
        font-size: 11px;
    }
}
