.search_form .sv-filter { position: relative; }
.search_form .sv-filter.is-open { z-index: 100000; }
.search_form .sv-native-filter { display: none !important; }
.sv-filter-trigger {
    width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 0 18px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff;
    color: #374151; cursor: pointer; text-align: right; font: inherit; transition: border-color .2s, box-shadow .2s;
}
.sv-filter-trigger:hover, .sv-filter.is-open .sv-filter-trigger { border-color: #0878c9; box-shadow: 0 0 0 3px rgba(255,90,95,.1); }
.sv-filter-trigger .sv-chevron { color: #9ca3af; font-size: 18px; transition: transform .2s; }
.sv-filter.is-open .sv-chevron { transform: rotate(180deg); }
.sv-filter-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-range-unit { color: #4b5563; font-size: 14px; font-weight: 700; }
.sv-filter-popover {
    display: none; position: absolute; z-index: 100001; top: calc(100% + 9px); right: 0; width: min(360px, 92vw);
    padding: 18px; border: 1px solid #eef0f3; border-radius: 16px; background: #fff;
    box-shadow: 0 18px 45px rgba(28, 39, 60, .16); text-align: right;
}
.sv-filter.is-open .sv-filter-popover { display: block; }
.sv-filter-popover h4 { margin: 0 0 16px; color: #111827; font-size: 15px; font-weight: 700; }
.sv-filter-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 260px; overflow-y: auto; }
.sv-filter-option { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 8px 10px; border-radius: 9px; cursor: pointer; color: #4b5563; position: relative; }
.sv-filter-option:hover { background: #edf3ff; color: #111827; }
.sv-filter-option input { width: 18px; height: 18px; accent-color: #0878c9; margin: 0; flex: 0 0 auto; }
.sv-filter-option-label { flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.sv-filter-option-count {
    flex: 0 0 auto; min-width: 22px; padding: 2px 7px; border-radius: 999px;
    background: #eef2f7; color: #4b5563; font-size: 11px; font-weight: 700; line-height: 1.4; text-align: center;
}
.sv-filter-option:hover .sv-filter-option-count,
.sv-filter-option:has(input:checked) .sv-filter-option-count {
    background: #dbeafe; color: #1d4ed8;
}
.sv-filter-option.is-empty .sv-filter-option-count {
    background: #f3f4f6; color: #9ca3af;
}
.sv-filter-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 17px; padding-top: 14px; border-top: 1px solid #f0f1f3; }
.sv-filter-actions button { border: 0; background: transparent; cursor: pointer; font: inherit; font-size: 13px; }
.sv-filter-actions .sv-clear { color: #6b7280; }
.sv-filter-actions .sv-apply { padding: 9px 18px; border-radius: 9px; background: #0878c9; color: #fff; }
.sv-stepper { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 12px; }
.sv-stepper button { width: 38px; height: 38px; border: 1px solid #0878c9; border-radius: 50%; background: #fff; color: #0878c9; cursor: pointer; font-size: 22px; line-height: 1; }
.sv-stepper button:disabled { border-color: #e5e7eb; color: #d1d5db; cursor: not-allowed; }
.sv-stepper strong { min-width: 34px; text-align: center; font-size: 18px; color: #111827; }
.sv-range-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; direction: rtl; }
.sv-range-field {
    display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0 12px;
    border: 1px solid #e5e7eb; border-radius: 9px; background: #fff;
}
.sv-range-field:focus-within { border-color: #0878c9; box-shadow: 0 0 0 3px rgba(8, 120, 201, .12); }
.sv-range-field label { flex: 0 0 auto; color: #6b7280; font-size: 12px; white-space: nowrap; }
.sv-range-field input {
    flex: 1 1 auto; width: 100%; min-width: 0; height: 42px; border: 0; outline: 0;
    background: transparent; text-align: left; direction: ltr; font: inherit;
    font-size: 14px; font-weight: 600; color: #111827; pointer-events: auto; user-select: text;
}
.sv-range-track { --sv-from: 0%; --sv-to: 100%; position: relative; height: 48px; margin: 16px 18px 0; direction: rtl; }
.sv-range-track:before, .sv-range-track:after { content: ''; position: absolute; top: 22px; height: 5px; border-radius: 5px; pointer-events: none; }
.sv-range-track:before { z-index: 1; right: 0; left: 0; background: #f1f1f4; border: 1px solid #a381815c; }
.sv-range-track:after { z-index: 2; right: var(--sv-from); left: calc(100% - var(--sv-to)); background: #0878c9; }
.sv-range-track input[type=range] { position: absolute; z-index: 3; inset: 0; width: 100%; height: 48px; margin: 0; pointer-events: none; appearance: none; background: transparent; direction: rtl; }
.sv-range-track input[type=range]::-webkit-slider-runnable-track { height: 5px; background: transparent; }
.sv-range-track input[type=range]::-webkit-slider-thumb { width: 32px; height: 32px; margin-top: -13.5px; border: 4px solid #fff; border-radius: 50%; background: #0878c9; box-shadow: 0 4px 14px rgba(8, 120, 201, .28); appearance: none; pointer-events: auto; cursor: grab; }
.sv-range-track input[type=range]::-moz-range-track { height: 5px; background: transparent; }
.sv-range-track input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border: 4px solid #fff; border-radius: 50%; background: #0878c9; box-shadow: 0 4px 14px rgba(8, 120, 201, .28); pointer-events: auto; cursor: grab; }
@media (max-width: 575px) {
    /* Clear #back2Top (fixed left, bottom:10px, 40px tall). Also drop its z-index while open:
       .top_overlio is z-index:100 so a popover z-index of 100001 cannot beat #back2Top's 999. */
    .sv-filter-popover { position: fixed; z-index: 100001; top: auto; right: 4%; bottom: 64px; width: 92%; }
    body:has(.sv-filter.is-open) #back2Top { z-index: 50; }
    .sv-range-fields { grid-template-columns: 1fr 1fr; gap: 6px; }
    .sv-range-field { gap: 4px; padding: 0 6px; }
    .sv-range-field label { font-size: 10px; }
    .sv-range-field input { height: 38px; font-size: 11px; }
    html, body, .smal_search, .smal_search .top_overlio { max-width: 100%; overflow-x: hidden; }
    .smal_search .top_overlio > .container { width: auto; max-width: none; padding-left: 0 !important; padding-right: 0 !important; margin-left: 2px !important; margin-right: 2px !important; }
    .smal_search .top_overlio .row, .smal_search .top_overlio [class*="col-"] { margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
    .smal_search .top_overlio .full_search_box.hero_search-radius.modern, .smal_search .top_overlio .search_hero_wrapping { width: 100%; max-width: 100%; padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }
    .smal_search .nav-searchbox { max-width: 100%; overflow-x: hidden; flex-wrap: wrap; }
    .sv-search-extras { flex-direction: column; align-items: stretch; margin-top: 4px; margin-bottom: 4px; }
    .sv-clear-all-filters { text-align: center; }
}

.sv-search-extras {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 18px;
    margin: 8px 0 4px;
    padding: 10px 14px;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    background: #fafbfc;
}
.sv-priced-only {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}
.sv-priced-only input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #0878c9;
    cursor: pointer;
}
.sv-priced-only.is-active { color: #0878c9; }
.sv-clear-all-filters {
    border: 0;
    background: transparent;
    color: #6b7280;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.sv-clear-all-filters:hover { color: #0878c9; }
