/* ==========================================================================
   FILTER.CSS — Bộ lọc bất động sản
   ========================================================================== */

/* ==========================================================================
   0. BASE
   ========================================================================== */
.re__search-filter-wrapper *,
.re__advanced-filter-modal-container * {
    box-sizing: border-box;
    font-family: 'Roboto', Arial, sans-serif;
}

/* ==========================================================================
   1. TABS
   ========================================================================== */
.re__search-tabs { margin-bottom: 0; }

.re__tab-links {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    gap: 0;
    justify-content: center;
}

.re__tab-link {
    padding: 10px 28px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #000;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    background: #fff;
    user-select: none;
    transition: all 0.2s;
    text-transform: uppercase;
}
.re__tab-link:hover,
.re__tab-link.active {
    color: #fff;
    background: #000;
}

.re__tab-content { padding-top: 0; }
.re__tab-pane { display: none; }
.re__tab-pane.active { display: block; }

/* ==========================================================================
   2. TOP BAR
   ========================================================================== */
.re__search-bar-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    border-radius: 200px;
    background: #fff;
    flex-wrap: nowrap;
}

.filter-dropdown-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    flex-wrap: nowrap;
    scrollbar-width: none;
}
.filter-dropdown-container::-webkit-scrollbar { display: none; }

/* Buttons */
.advanced-filter-button,
.re__listing-search-select-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 20px;
    padding: 7px 14px;
    cursor: pointer;
    height: 42px;
    white-space: nowrap;
    gap: 6px;
    font-size: 14px;
    color: #000;
    transition: border-color 0.15s, color 0.15s;
    flex-shrink: 0;
}
.advanced-filter-button:hover,
.re__listing-search-select-button:hover,
.js__listing-search-select-container.open .re__listing-search-select-button{
    border-color: #000;
    color: #000;
}
.advanced-filter-button:hover i,
.re__listing-search-select-button:hover i,
.js__listing-search-select-container.open .re__listing-search-select-button i{
    color: #000;
}
.advanced-filter-button i,
.re__listing-search-select-button > i {
    font-size: 11px;
    color: #999;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.js__listing-search-select-container.open .re__listing-search-select-button > i {
    transform: rotate(180deg);
}
.re__listing-search-select-button-current-text {
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Search button */
.re__search-input-group { flex-shrink: 0; }
.re__btn-search {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 7px 18px;
    height: 42px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s;
    white-space: nowrap;
    border: 1px solid #000;
}
.re__btn-search:hover {
    background: #e9a56a;
    border-color: #e9a56b;
    color: #000;
}

/* Text input in top bar */
.filter-dropdown-container > input[type="text"] {
    border: 1px solid #d0d0d0;
    border-radius: 20px;
    padding: 7px 14px;
    height: 42px;
    font-size: 14px;
    color: #2c2c2c;
    outline: none;
    flex-shrink: 0;
    min-width: 100px;
    transition: border-color 0.15s;
}
.filter-dropdown-container > input[type="text"]:focus { border-color: #000; }

/* ==========================================================================
   3. DROPDOWN PANEL
   ========================================================================== */
.js__listing-search-select-container {
    position: relative;
    flex: 1;
}

.re__listing-search-select-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 280px;
    width: max-content;
    max-width: 340px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.13);
    z-index: 500;
    overflow: hidden;
}
.js__listing-search-select-container.open .re__listing-search-select-dropdown {
    display: block;
}

/* ==========================================================================
   4. LIST OPTIONS — max-height ONLY trong dropdown ngoài
   ========================================================================== */

/* Dropdown ngoài: giới hạn chiều cao */
.re__listing-search-select-dropdown .re__listing-search-select-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    max-height: 260px;
    overflow-y: auto;
    scrollbar-width: thin;
}

/* Trong modal body: KHÔNG giới hạn, để body tự scroll */
.re__advanced-filter-modal .body .re__listing-search-select-list,
.re__advanced-filter-selection .re__listing-search-select-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    max-height: none !important;
    overflow-y: visible !important;
}

.re__option {
    cursor: pointer;
    font-size: 14px;
    color: #2c2c2c;
    display: flex;
    flex-direction: column;
    transition: background 0.1s;
    position: relative;
}
.re__option > span { display: block; }
.re__option:hover { background: #fafafa; }
.re__option.re__actived,
.re__option.active { color: #000; font-weight: 500; }

/* Child list */
.re__option ul {
    list-style: none;
    padding-left: 14px;
    margin-top: 0;
    width: 100%;
}

/* ==========================================================================
   CHECKBOX — Pure CSS (không dùng font-icon-bds)
   ========================================================================== */
.re__listing-search-select-list li.re__option > span {
    font-size: 14px;
    line-height: 20px;
    font-weight: normal !important;
    color: #2C2C2C;
    padding: 6px 16px;
    position: relative;
    display: block;
}

/* Hộp checkbox trống */
.re__listing-search-select-list li.re__option > span::after {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    border: 1.5px solid #d0d0d0;
    border-radius: 3px;
    background: #fff;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.15s;
}

/* Checkbox đã chọn — nền đỏ */
.re__listing-search-select-list li.re__option.re__actived > span::after {
    background: #000;
    border-color: #000;
}

/* Dấu tick */
.re__listing-search-select-list li.re__option.re__actived > span::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Pro', 'Font Awesome 5 Free', FontAwesome;
    font-weight: 900;
    color: #fff;
    font-size: 10px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    line-height: 1;
}

/* Category list trong modal — không cần ::after/::before vì đã có tick cha-con */
.re__advanced-filter-modal .body .js__category-list li.re__option > span,
.re__advanced-filter-selection .js__category-list li.re__option > span {
    padding: 7px 36px 7px 0;
    font-size: 14px;
    color: #2c2c2c;
}
/* Giữ nguyên checkbox cho category trong modal */

/* Ẩn mũi tên dropdown mặc định của Houzez theme trên parent-li */
.re__listing-search-select-list .parent-li > span::after,
.re__listing-search-select-list .parent-li > span::before {
    /* checkbox vẫn hoạt động bình thường */
}

/* parent-li → indicator mở/đóng con */
.re__listing-search-select-list .parent-li {
    border-bottom: 1px solid #f5f5f5;
}
.re__listing-search-select-list .parent-li > .child-list {
    padding-left: 0;
    margin-bottom: 0;
}
.re__listing-search-select-list .child-li {
    border-bottom: none;
}
.re__listing-search-select-list .child-li > span {
    font-size: 13px;
    color: #505050;
    padding: 6px 36px 6px 0;
}
.re__listing-search-select-list .child-li.re__actived > span {
    color: #000;
}

/* ==========================================================================
   5. SLIDER
   ========================================================================== */
.re__listing-search-select-slider {
    padding: 12px 16px 4px;
}
.filter-search--custom-slider--label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
    color: #767676;
}
.filter-search--custom-slider--label span {
    font-weight: 600;
    color: #000;
}
.re__slider-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.re__slider-input {
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    line-height: 20px;
    color: #2C2C2C;
    padding: 6px 16px;
    text-align: center;
    width: calc(50% - 16px);
    margin-bottom: 16px;
}
div.re__listing-search-select-slider .re__slider-bar{
    height: 4px;
    margin: 10px 0px;
    width: calc(100% - 22px);
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
    background: #F2F2F2;
    border: none;
}
div.re__listing-search-select-slider .re__slider-bar .ui-slider-range {
    background: #009ba1;
}
div.re__listing-search-select-slider .re__slider-bar .ui-slider-handle:hover {
    background-color: #1DBABF;
}
div.re__listing-search-select-slider .re__slider-bar .ui-slider-handle {
    background: #009ba1;
    top: -10.5px;
    border: 1px solid #9ed8da;
    cursor: pointer;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    margin-left: -1px;
}
.re__slider-input::-webkit-inner-spin-button,
.re__slider-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.re__slider-input:focus { border-color: #000; }
.re__slider-icon { color: #ccc; font-size: 12px; flex-shrink: 0; }
.re__slider-bar { margin: 0 4px 16px; }
.re__slider-bar.ui-slider {
    height: 4px;
    background: #e8e8e8;
    border: none;
    border-radius: 2px;
}
.re__slider-bar .ui-slider-range { background: #000; border-radius: 2px; }
.re__slider-bar .ui-slider-handle {
    width: 16px; height: 16px;
    top: -6px;
    background: #000;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    outline: none;
}
.re__slider-bar .ui-slider-handle:hover { box-shadow: 0 0 0 4px rgba(224,60,49,0.15); }
.re__listing-search-select-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
}
.re__listing-search-select-header-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c2c2c;
}
.re__listing-search-select-button-close {
    cursor: pointer;
    color: #999;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
    width: 24px;
    height: 24px;
}
.re__listing-search-select-button-close:hover {
    color: #000;
}
/* ==========================================================================
   6. FOOTER DROPDOWN
   ========================================================================== */
.re__listing-search-select-footer {
    display: flex;
    gap: 10px;
    padding: 10px 14px 12px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
}
/* ==========================================================================
   7. MODAL CHÍNH
   ========================================================================== */
.re__advanced-filter-modal-container {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    display: none;
}
.re__advanced-filter-modal-container.hidden { display: none !important; }

.re__advanced-filter-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1;
}

/* Modal box — flex column, body cuộn */
.re__advanced-filter-modal-container > .re__advanced-filter-modal {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    background: #fff;
    width: 90%;
    max-width: 480px;
    height: 85vh;
    max-height: 680px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
@keyframes modalFadeIn {
    from { transform: translate(-50%, -46%); opacity: 0; }
    to   { transform: translate(-50%, -50%); opacity: 1; }
}

/* Modal header */
.re__advanced-filter-modal-container > .re__advanced-filter-modal > .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    flex: 0 0 auto;
}
.re__advanced-filter-modal-container > .re__advanced-filter-modal > .header .title {
    font-size: 16px;
    font-weight: 600;
    color: #2c2c2c;
}
.re__close-advanced-modal { cursor: pointer; color: #999; font-size: 18px; }
.re__close-advanced-modal:hover { color: #2c2c2c; }

/* Modal body — cuộn */
.re__advanced-filter-modal-container > .re__advanced-filter-modal > .body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 20px;
    scrollbar-width: thin;
}

/* Modal footer */
.re__advanced-filter-modal > .footer {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    border-top: 1px solid #f0f0f0;
    flex: 0 0 auto;
}
.re__listing-search-select-footer .re__btn.js__listing-search-select-reset-button,
.footer .js__reset-box-filter,
.footer .js__reset-filter{
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    color: #2c2c2c;
}
.re__listing-search-select-footer .re__btn.js__listing-search-select-reset-button{
    padding: 5px 10px;
}
.re__listing-search-select-footer .re__btn.js__listing-search-select-reset-button:hover,
.footer .js__reset-filter:hover {
    background: #FAFAFA;
}
.re__listing-search-select-footer .re__btn.js__listing-search-select-apply-button,
.footer .js__apply-filter,
.footer .js__apply-box-filter{
    font-size: 14px;
    line-height: 20px;
    font-weight: normal !important;
    letter-spacing: -.2px;
    color: #fff;
    cursor: pointer;
    padding: 14px 16px;
    flex: 1;
    border: 1px solid #000;
    background: #000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.re__listing-search-select-footer .re__btn.js__listing-search-select-apply-button{
    padding: 5px 10px;
}
.re__listing-search-select-footer .re__btn.js__listing-search-select-apply-button:hover,
.footer .js__apply-filter:hover,
.footer .js__apply-box-filter:hover{
    background: #FFF;
    border-color: #000;
    color: #000;
}

/* ==========================================================================
   8. FILTER ROW BUTTON (trong modal body)
   ========================================================================== */
.re__asset-filter-wrapper {
    border-bottom: 1px solid #f5f5f5;
    padding: 14px 0;
}
.re__asset-filter-wrapper:last-child { border-bottom: none; }

.re__asset-filter-title {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.re__asset-filter-button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 14px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    color: #2c2c2c;
    transition: border-color 0.15s;
}
.re__asset-filter-button:hover { border-color: #000; }
.re__asset-filter-button .left-content {
    display: flex; align-items: center; gap: 10px;
}
.re__asset-filter-button .left-content i { color: #000; font-size: 15px; }
.re__asset-filter-button .right-content i { color: #ccc; font-size: 12px; }
.js__selected-text { font-size: 14px; color: #2c2c2c; }

/* ==========================================================================
   9. SUB-PANEL (overlay modal trên modal)
   ========================================================================== */
.re__advanced-filter-selection {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
}
.re__advanced-filter-selection.hidden { display: none !important; }

/* Sub-panel dùng chung re__advanced-filter-modal nhưng position relative */
.re__advanced-filter-selection > .re__advanced-filter-modal {
    position: relative;
    top: auto; left: auto;
    transform: none;
    width: 100%;
    max-width: 480px;
    height: 85vh;
    max-height: 680px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

/* Sub-panel header */
.re__advanced-filter-selection .re__advanced-filter-modal .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 16px;
    border-bottom: 1px solid #eee;
    flex: 0 0 auto;
    font-size: 15px;
    font-weight: 600;
}
.re__advanced-filter-selection .re__advanced-filter-modal .header .title {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sub-panel body — cuộn, không giới hạn list bên trong */
.re__advanced-filter-selection .re__advanced-filter-modal .body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 16px 8px;
    scrollbar-width: thin;
}

/* ==========================================================================
   10. LOCATION FIELDS
   ========================================================================== */
.re__field { margin-bottom: 14px; padding-top: 8px; }
.re__field .title {
    display: block; font-size: 13px;
    font-weight: 600; margin-bottom: 6px; color: #2c2c2c;
}
.re__field .autocomplete {
    display: flex; align-items: center;
    border: 1px solid #d0d0d0;
    border-radius: 8px; padding: 9px 12px; gap: 8px;
}
.re__field.disabled .autocomplete { background: #f5f5f5; }
.re__field .autocomplete input {
    flex: 1; border: none; outline: none;
    font-size: 14px; background: transparent; color: #2c2c2c;
}
.re__field .autocomplete .js__remove-input-icon { color: #ccc; cursor: pointer; font-size: 14px; }
.re__field .autocomplete .js__remove-input-icon:hover { color: #000; }
.re__field .list {
    display: none;
    border: 1px solid #e0e0e0; border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px; overflow-y: auto; background: #fff;
}
.re__field .list .list-item {
    padding: 10px 12px; cursor: pointer;
    font-size: 14px; border-bottom: 1px solid #f5f5f5;
    transition: background 0.1s;
}
.re__field .list .list-item:hover { background: #fafafa; color: #000; }
.re__field .list .list-item.loading { color: #999; cursor: default; }

/* ==========================================================================
   11. TAG OPTIONS
   ========================================================================== */
.re__filter-tag-wrapper { padding: 2px 0; }
.re__filter-tag-label {
    font-size: 14px; font-weight: 600;
    color: #2c2c2c; margin-bottom: 10px;
}
.re__filter-tag-option-wrapper {
    display: flex; flex-wrap: wrap;
    gap: 8px; list-style: none; padding: 0; margin: 0;
}
.re__tag-option-item {
    padding: 7px 16px; border-radius: 20px;
    background: #f2f2f2; color: #2c2c2c;
    font-size: 13px; cursor: pointer;
    transition: all 0.15s; user-select: none;
}
.re__tag-option-item:hover { background: #e8e8e8; }
.re__tag-option-item.active,
.re__tag-option-item.re__selected { background: #000; color: #fff; }

/* ==========================================================================
   12. PIE CHART
   ========================================================================== */
.re__pie-filter-wrapper {
    padding: 4px 0 8px;
}
.re__pie-filter-title {
    font-size: 14px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 12px;
}
.re__pie-chart {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 0%);
    max-width: 200px;
    max-height: 200px;
}
.re__pie-chart svg {
    transform: rotate(23deg);
}
.pieSegment {
    cursor: pointer;
    transition: fill 0.15s; }
.pieSegment:hover {
    opacity: 0.85;
}
.js__pie-chart-option.text{
    position: absolute;
    transition: color 0.2s ease;
    cursor: pointer;
    font-size: 12px;
    line-height: 20px;
    margin: 0;
    padding: 0;
    vertical-align: baseline;
    border: none;
    color: #2C2C2C;
    pointer-events: none;
}
.re__pie-filter-wrapper .re__pie-chart .pieSegment:hover {
    fill: #ccc;
}
.js__pie-chart-option.text.re__selected,
.js__pie-chart-option.text.active {
    color: #fff;
    font-weight: 700;
}
.re__pie-filter-wrapper .re__pie-chart .text1 {
    top: 15%;
    left: 49%
}

.re__pie-filter-wrapper .re__pie-chart .text2 {
    top: 25%;
    left: 66%
}

.re__pie-filter-wrapper .re__pie-chart .text3 {
    top: 47%;
    left: 78%
}

.re__pie-filter-wrapper .re__pie-chart .text4 {
    top: 69%;
    left: 64%
}

.re__pie-filter-wrapper .re__pie-chart .text5 {
    top: 78%;
    left: 48%
}

.re__pie-filter-wrapper .re__pie-chart .text6 {
    top: 69%;
    left: 17%
}

.re__pie-filter-wrapper .re__pie-chart .text7 {
    top: 46%;
    left: 17%
}

.re__pie-filter-wrapper .re__pie-chart .text8 {
    top: 25%;
    left: 19%
}
.re__pie-chart .center {
    position: absolute;
    top: 52%;
    left: 54%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    width: 70px;
    height: 70px;
    border-radius: 50%;
}

/* ==========================================================================
   13. CATEGORY TAGS (trong modal advFilterCategory)
   ========================================================================== */
.re__modal-asset-type-section { display: none; margin-top: 8px; }
.re__modal-asset-type-tag-wrapper {
    display: flex; flex-wrap: wrap;
    align-items: center; gap: 8px;
}
.re__asset-type-tag {
    display: inline-flex; align-items: center;
    gap: 6px; padding: 5px 8px 5px 12px;
    background: #fff; border: 1px solid #d0d0d0;
    border-radius: 20px; font-size: 13px;
    color: #2c2c2c; white-space: nowrap;
}
.re__asset-type-tag .js__remove-modal-asset-type-tag {
    cursor: pointer; font-size: 11px;
    color: #999; transition: color 0.15s;
}
.re__asset-type-tag .js__remove-modal-asset-type-tag:hover { color: #000; }
.re__asset-type-add {
    display: inline-flex; align-items: center;
    gap: 5px; padding: 5px 4px;
    border: none; background: transparent;
    color: #000; font-size: 13px;
    font-weight: 500; cursor: pointer;
}
.re__asset-type-add:hover { opacity: 0.7; }
.re__asset-type-add i { font-size: 11px; }

/* ==========================================================================
   14. MISC
   ========================================================================== */
body.modal-open-no-scroll { overflow: hidden !important; }

/* ==========================================================================
   15. RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .re__search-bar-v2 { padding: 10px 14px; }
    .advanced-filter-button,
    .re__listing-search-select-button { padding: 6px 10px; font-size: 13px; height: 34px; }
    .re__advanced-filter-modal-container > .re__advanced-filter-modal,
    .re__advanced-filter-selection > .re__advanced-filter-modal {
        width: 100%; max-width: 100%;
        height: 92vh; max-height: 92vh;
        border-radius: 16px 16px 0 0;
        position: fixed;
        bottom: 0; left: 0;
        top: auto; transform: none;
    }
    .re__advanced-filter-modal-container { align-items: flex-end; }
}

/* ==========================================================================
   RANGE SLIDER (Từ / Đến)
   Paste đoạn này vào CUỐI file filter.css
   ========================================================================== */

/* Wrap chứa 2 input số */
.re__range-inputs-wrap {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 14px 16px 8px;
}
.re__range-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.re__range-field label {
    font-size: 12px;
    color: #767676;
    font-weight: 500;
}
.re__range-field label strong {
    color: #009ba1;
    font-weight: 600;
}
.re__range-input {
    width: 100%;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
    color: #2c2c2c;
    outline: none;
    transition: border-color 0.15s;
    -moz-appearance: textfield;
}
.re__range-input::-webkit-inner-spin-button,
.re__range-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.re__range-input:focus { border-color: #009ba1; }
.re__range-arrow {
    color: #ccc;
    font-size: 16px;
    flex-shrink: 0;
    padding-bottom: 8px;
}

/* Slider track */
.re__range-slider-wrap {
    padding: 4px 16px 12px;
}
.re__range-track {
    position: relative;
    height: 4px;
    background: #e8e8e8;
    border-radius: 2px;
    margin: 12px 0 6px;
}
.re__range-fill {
    position: absolute;
    height: 100%;
    background: #009ba1;
    border-radius: 2px;
    pointer-events: none;
    left: 0%;
    width: 100%;
    transition: left 0.05s, width 0.05s;
}

/* 2 thumb range input chồng nhau */
.re__range-thumb {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    outline: none;
    margin: 0;
    padding: 0;
}
.re__range-thumb::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #009ba1;
    border: 2px solid #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    pointer-events: all;
    transition: box-shadow 0.15s;
}
.re__range-thumb::-webkit-slider-thumb:hover {
    box-shadow: 0 0 0 5px rgba(0,155,161,0.18);
}
.re__range-thumb::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #009ba1;
    border: 2px solid #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    pointer-events: all;
}

/* Divider giữa slider và list */
.re__range-divider {
    border-top: 1px solid #f0f0f0;
    margin: 0 0 4px;
}
/* ==========================================================================
   THÊM VÀO CUỐI filter.css
   Modal tabs nội bộ (Mua bán / Cho thuê) — pill trong body
   ========================================================================== */

/* Wrapper pill — nằm đầu body scroll, sticky để luôn thấy khi cuộn */
.re__modal-tab-switcher {
    display: flex;
}
.re__modal-tab-link {
    flex: 1;
    text-align: center;
    min-height: 32px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: #999;
    background: #fff;
    background: transparent;
    transition: all 0.18s;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
}
.re__modal-tab-link.js__modal-tab-link[data-tab="ban"]{
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}
.re__modal-tab-link.js__modal-tab-link[data-tab="thue"]{
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}
.re__modal-tab-link:hover {
    background: #F2F2F2;
    border: 1px solid #ccc;
    color: #999;
}
.re__modal-tab-link.active {
    background: #505050;
    color: #fff;
    border: none;
    pointer-events: none;
}

/* Pane ẩn/hiện */
.re__modal-tab-pane {
    display: none;
}
.re__modal-tab-pane.active {
    display: block;
}

@media (max-width: 767px) {
    .re__modal-tab-switcher {
        margin: 0 0 16px;
    }
    .re__modal-tab-link {
        font-size: 13px;
        padding: 8px 0;
    }
}