/* ==========================================================================
   THANH TÌM KIẾM CỐ ĐỊNH DESKTOP 2 TẦNG (2-TIER DESKTOP SEARCH BAR)
   Thiết kế chuẩn Batdongsan.com.vn:
   - Tầng 1: Tabs Mua Bán / Cho Thuê + Ô tìm kiếm từ khóa rộng + Nút Tìm kiếm
   - Tầng 2: Cụm nút lọc Filter Pills (Danh mục, Khu vực, Mức giá, Diện tích, Đặt lại)
   ========================================================================== */

#boxSearchForm {
    width: 100% !important;
    background: #ffffff !important;
    position: relative !important;
    z-index: 99 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0px 4px 12px rgba(15, 23, 42, 0.04) !important;
}

/* Khối search-bar 2 tầng khi bình thường (ở đầu trang) */
#boxSearchForm .search-bar-2tier {
    width: 100% !important;
    max-width: 1140px !important;
    margin: 0 auto !important;
    padding: 12px 16px 14px 16px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    background: #ffffff !important;
    position: relative !important;
}

/* Khi cuộn dính màn hình (.fix) */
#boxSearchForm .search-bar-2tier.fix {
    position: fixed !important;
    top: 68px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    z-index: 1000 !important;
    background: #ffffff !important;
    border-top: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
    animation: bdsStickySlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding: 10px 16px 12px 16px !important;
}

#boxSearchForm .search-bar-2tier.fix .search-inner-wrap {
    max-width: 1140px !important;
    margin: 0 auto !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

@keyframes bdsStickySlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography chuẩn hệ thống */
#boxSearchForm,
#boxSearchForm input,
#boxSearchForm select,
#boxSearchForm button,
#boxSearchForm a,
#boxSearchForm span {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* ==========================================================================
   TẦNG 1: HÀNG TRÊN (TABS MUA BÁN/CHO THUÊ + Ô TỪ KHÓA + NÚT TÌM KIẾM)
   ========================================================================== */
#boxSearchForm .search-row-top {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
}

/* Tabs Mua Bán / Cho Thuê dạng Segmented Capsule */
#boxSearchForm .search-bar-tab.re__tab-box-group {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 3px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    margin: 0 !important;
    height: 40px !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

#boxSearchForm .search-bar-tab.re__tab-box-group a.re__tab-box--sm {
    border: none !important;
    background: transparent !important;
    color: #64748b !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    line-height: 32px !important;
    height: 32px !important;
    padding: 0 16px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.18s ease !important;
    user-select: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
}

#boxSearchForm .search-bar-tab.re__tab-box-group a.re__tab-box--sm:hover:not(.re__tab-box--actived) {
    color: #1e293b !important;
    background: rgba(255, 255, 255, 0.6) !important;
}

#boxSearchForm .search-bar-tab.re__tab-box-group a.re__tab-box--sm.re__tab-box--actived {
    background: #ffffff !important;
    color: #e03c31 !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

/* Ô tìm kiếm từ khóa thu ngắn lại, gọn gàng, cân đối */
#boxSearchForm .search-bar-keyword {
    flex: 0 0 540px !important;
    max-width: 540px !important;
    width: 540px !important;
    height: 40px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    position: relative !important;
}

#boxSearchForm .search-bar-keyword:focus-within {
    border-color: #e03c31 !important;
    box-shadow: 0 0 0 3px rgba(224, 60, 49, 0.12) !important;
}

#boxSearchForm .search-bar-keyword i.bds-fixed-search-icon {
    color: #94a3b8 !important;
    font-size: 14px !important;
    margin-right: 10px !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    transition: color 0.15s ease !important;
}

#boxSearchForm .search-bar-keyword i.bds-fixed-search-icon:hover {
    color: #e03c31 !important;
}

#boxSearchForm .search-bar-keyword input#txtSearch {
    flex: 1 1 auto !important;
    height: 38px !important;
    line-height: 38px !important;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    padding: 0 !important;
    font-size: 13.5px !important;
    color: #1e293b !important;
    box-shadow: none !important;
}

#boxSearchForm .search-bar-keyword input#txtSearch::placeholder {
    color: #94a3b8 !important;
}

/* ==========================================================================
   TẦNG 2: HÀNG DƯỚI (CỤM NÚT LỌC TIÊU CHÍ DÀI & ĐỀU NHAU + ĐẶT LẠI + TÌM KIẾM)
   ========================================================================== */
#boxSearchForm .search-row-bottom {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
}

/* Từng nút lọc Filter Pill - Dài và đều nhau, chiều cao 40px cân đối */
#boxSearchForm .bds-filter-pill {
    height: 40px !important;
    line-height: 38px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    cursor: pointer !important;
    user-select: none !important;
    transition: all 0.15s ease !important;
    font-size: 13.5px !important;
    color: #334155 !important;
    position: relative !important;
    white-space: nowrap !important;
}

/* 4 ô lựa chọn tiêu chí: Danh mục, Khu vực, Mức giá, Diện tích dài và đều nhau 100% */
#boxSearchForm .search-row-bottom .bds-filter-pill:not(.bds-reset-pill) {
    flex: 1 1 0px !important;
    min-width: 150px !important;
}

#boxSearchForm .bds-filter-pill:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

/* Khi pill có giá trị hoặc đang active */
#boxSearchForm .bds-filter-pill.has-value,
#boxSearchForm .bds-filter-pill.active {
    border-color: #fca5a5 !important;
    background: #fef2f2 !important;
    color: #e03c31 !important;
    font-weight: 600 !important;
}

#boxSearchForm .bds-filter-pill.has-value .pill-arrow,
#boxSearchForm .bds-filter-pill.active .pill-arrow {
    color: #e03c31 !important;
}

#boxSearchForm .bds-filter-pill .pill-label {
    flex: 1 1 auto !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    margin-right: 6px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    text-align: left !important;
}

#boxSearchForm .bds-filter-pill .pill-arrow {
    font-size: 11px !important;
    color: #94a3b8 !important;
    margin-left: 2px !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s ease, color 0.15s ease !important;
}

#boxSearchForm .bds-filter-pill:hover .pill-arrow {
    color: #475569 !important;
}

/* Định dạng riêng cho pill Danh mục chứa Select2 (dài & đều như các pill khác) */
#boxSearchForm .bds-filter-pill#divCategoryRe {
    padding: 0 14px !important;
}

#boxSearchForm .bds-filter-pill#divCategoryRe .select2-container {
    width: 100% !important;
    display: block !important;
}

#boxSearchForm .bds-filter-pill#divCategoryRe .select2-container--default .select2-selection--single {
    border: none !important;
    background: transparent !important;
    height: 38px !important;
    line-height: 38px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

#boxSearchForm .bds-filter-pill#divCategoryRe .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0 14px 0 0 !important;
    line-height: 38px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: left !important;
}

#boxSearchForm .bds-filter-pill#divCategoryRe .select2-container--default .select2-selection--single .select2-selection__arrow {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    height: 38px !important;
    top: 0 !important;
    right: 0 !important;
    width: 12px !important;
    position: absolute !important;
}

#boxSearchForm .bds-filter-pill#divCategoryRe .select2-container--default .select2-selection--single .select2-selection__arrow b {
    display: none !important;
}

#boxSearchForm .bds-filter-pill#divCategoryRe .select2-container--default .select2-selection--single .select2-selection__arrow::after {
    content: "\f0d7" !important;
    font-family: FontAwesome !important;
    font-size: 11px !important;
    color: #94a3b8 !important;
    line-height: 38px !important;
    display: inline-block !important;
}

/* Nút Đặt lại (Reset Pill) - Đặt cạnh 4 ô lựa chọn */
#boxSearchForm .bds-reset-pill {
    flex: 0 0 auto !important;
    height: 40px !important;
    line-height: 38px !important;
    padding: 0 16px !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    gap: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

#boxSearchForm .bds-reset-pill:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #e03c31 !important;
}

#boxSearchForm .bds-reset-pill i {
    font-size: 13px !important;
}

/* Nút Tìm kiếm màu đỏ ở Hàng 2 - Bên phải nút Đặt lại */
#boxSearchForm #btnSearch,
#boxSearchForm .bds-btn-search-row2 {
    flex: 0 0 auto !important;
    height: 40px !important;
    line-height: 40px !important;
    padding: 0 24px !important;
    background: #e03c31 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(224, 60, 49, 0.25) !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    user-select: none !important;
}

#boxSearchForm #btnSearch:hover,
#boxSearchForm .bds-btn-search-row2:hover {
    background: #c82317 !important;
    box-shadow: 0 4px 12px rgba(224, 60, 49, 0.35) !important;
    transform: translateY(-0.5px) !important;
}

#boxSearchForm #btnSearch:active,
#boxSearchForm .bds-btn-search-row2:active {
    transform: translateY(0) !important;
}

/* ==========================================================================
   DROPDOWN KHU VỰC 2 CỘT HIỆN ĐẠI (DUAL-COLUMN LOCATION DROPDOWN)
   ========================================================================== */
#divLocationDropdown {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    width: 550px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.16) !important;
    z-index: 1050 !important;
    display: none;
    flex-direction: column !important;
    overflow: hidden !important;
    animation: bdsDropdownFadeIn 0.18s ease-out !important;
}

#divLocationDropdown.show {
    display: flex !important;
}

@keyframes bdsDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bds-loc-header {
    padding: 12px 14px 10px 14px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    background: #ffffff !important;
}

.bds-loc-search {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}

.bds-loc-search i.fa-search {
    position: absolute !important;
    left: 11px !important;
    color: #94a3b8 !important;
    font-size: 13px !important;
    pointer-events: none !important;
}

.bds-loc-search input {
    width: 100% !important;
    height: 36px !important;
    padding: 0 30px 0 34px !important;
    border-radius: 6px !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    font-size: 12.5px !important;
    color: #1e293b !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.bds-loc-search input:focus {
    background: #ffffff !important;
    border-color: #e03c31 !important;
    box-shadow: 0 0 0 2px rgba(224, 60, 49, 0.1) !important;
}

.bds-loc-search .loc-clear-btn {
    position: absolute !important;
    right: 10px !important;
    color: #94a3b8 !important;
    font-size: 14px !important;
    cursor: pointer !important;
}

.bds-loc-search .loc-clear-btn:hover {
    color: #475569 !important;
}

.bds-loc-status-bar {
    padding: 7px 14px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 12px !important;
}

.bds-loc-status-bar .status-lbl {
    color: #64748b !important;
}

.bds-loc-status-bar .status-val {
    color: #e03c31 !important;
    font-weight: 600 !important;
    margin-left: 4px !important;
    margin-right: auto !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: 330px !important;
}

.bds-loc-status-bar .btn-loc-clear {
    background: transparent !important;
    border: none !important;
    color: #64748b !important;
    font-size: 11.5px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    transition: all 0.15s ease !important;
}

.bds-loc-status-bar .btn-loc-clear:hover {
    background: #fee2e2 !important;
    color: #e03c31 !important;
}

.bds-loc-body {
    display: flex !important;
    height: 300px !important;
    background: #ffffff !important;
}

.bds-loc-col-city {
    width: 44% !important;
    border-right: 1px solid #e2e8f0 !important;
    overflow-y: auto !important;
    background: #ffffff !important;
}

.bds-loc-col-sub {
    width: 56% !important;
    overflow-y: auto !important;
    background: #fafafa !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
}

.bds-loc-col-title {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #94a3b8 !important;
    letter-spacing: 0.5px !important;
    padding: 8px 14px 4px 14px !important;
    background: #ffffff !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
}

.bds-loc-sub-header {
    padding: 8px 12px !important;
    border-bottom: 1px solid #eef2f6 !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 36px !important;
    box-sizing: border-box !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
}

.bds-loc-sub-header .btn-sub-back {
    background: #f1f5f9 !important;
    border: none !important;
    border-radius: 4px !important;
    color: #475569 !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    padding: 4px 8px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: all 0.15s ease !important;
}

.bds-loc-sub-header .btn-sub-back:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.bds-loc-group-title {
    font-size: 10.5px !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    padding: 8px 14px 2px 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
}

.bds-loc-list {
    padding: 4px 0 !important;
    list-style: none !important;
    margin: 0 !important;
}

.bds-loc-item {
    padding: 8px 14px !important;
    font-size: 13px !important;
    color: #334155 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    transition: all 0.12s ease !important;
    user-select: none !important;
}

.bds-loc-item:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

.bds-loc-item.active {
    background: #fef2f2 !important;
    color: #e03c31 !important;
    font-weight: 600 !important;
}

.bds-loc-item .bds-loc-name {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.bds-loc-item .check-icon {
    font-size: 12px !important;
    color: #e03c31 !important;
    display: none !important;
}

.bds-loc-item.active .check-icon {
    display: inline-block !important;
}

.bds-loc-item .drill-btn {
    font-size: 11px !important;
    color: #0284c7 !important;
    padding: 3px 8px !important;
    border-radius: 12px !important;
    background: #f0f9ff !important;
    border: 1px solid #bae6fd !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-weight: 500 !important;
    transition: all 0.15s ease !important;
    margin-left: auto !important;
    margin-right: 6px !important;
    cursor: pointer !important;
}

.bds-loc-item .drill-btn:hover {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
}

.bds-loc-item.bds-loc-all-sub {
    font-weight: 600 !important;
    color: #0284c7 !important;
    border-bottom: 1px dashed #e2e8f0 !important;
    margin-bottom: 4px !important;
}

.bds-loc-item.bds-loc-all-sub:hover {
    background: #e0f2fe !important;
    color: #0369a1 !important;
}

.bds-loc-empty {
    padding: 40px 16px !important;
    text-align: center !important;
    color: #94a3b8 !important;
    margin: auto 0 !important;
}

.bds-loc-empty i {
    font-size: 26px !important;
    margin-bottom: 8px !important;
    display: block !important;
    color: #cbd5e1 !important;
}

.bds-loc-empty p {
    font-size: 12px !important;
    line-height: 18px !important;
    margin: 0 !important;
}

.bds-loc-loading {
    padding: 40px 16px !important;
    text-align: center !important;
    color: #64748b !important;
    font-size: 13px !important;
    margin: auto 0 !important;
}

.bds-loc-loading i {
    font-size: 18px !important;
    margin-bottom: 6px !important;
    display: block !important;
    color: #e03c31 !important;
}

.bds-loc-footer {
    padding: 10px 14px !important;
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

.bds-loc-note {
    font-size: 11.5px !important;
    color: #64748b !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.bds-loc-note i {
    color: #3b82f6 !important;
    margin-right: 4px !important;
}

.btn-loc-apply {
    background: #e03c31 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 0 18px !important;
    height: 32px !important;
    line-height: 32px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 4px rgba(224, 60, 49, 0.25) !important;
}

.btn-loc-apply:hover {
    background: #c82317 !important;
    box-shadow: 0 2px 8px rgba(224, 60, 49, 0.4) !important;
}

/* ==========================================================================
   POPUP MỨC GIÁ & DIỆN TÍCH HIỆN ĐẠI (3 TẦNG CHUẨN BATDONGSAN.COM.VN)
   ========================================================================== */
#divPrice,
#rentPrice,
#divAcreage {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    width: 360px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.16) !important;
    z-index: 1050 !important;
    display: none;
    flex-direction: column !important;
    overflow: hidden !important;
    animation: bdsDropdownFadeIn 0.18s ease-out !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

#divPrice.show,
#rentPrice.show,
#divAcreage.show {
    display: flex !important;
}

/* Khung Card bao quanh */
#boxSearchForm .bds-popup-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

/* 1. Header Popup */
#boxSearchForm .bds-popup-header {
    padding: 12px 16px 10px 16px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #ffffff !important;
}

#boxSearchForm .bds-popup-title {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin: 0 !important;
}

#boxSearchForm .btn-popup-reset {
    background: transparent !important;
    border: none !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: all 0.15s ease !important;
}

#boxSearchForm .btn-popup-reset:hover {
    color: #e03c31 !important;
    background: #fef2f2 !important;
}

/* 2. Bộ chọn khoảng giá / diện tích thủ công (Từ — Đến) */
#boxSearchForm .bds-range-box {
    padding: 12px 16px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    box-sizing: border-box !important;
}

#boxSearchForm .bds-range-col {
    flex: 1 1 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    min-width: 0 !important;
}

#boxSearchForm .bds-range-label {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    margin: 0 !important;
    line-height: 1 !important;
}

#boxSearchForm .bds-range-select {
    width: 100% !important;
    height: 36px !important;
    padding: 0 10px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    font-size: 12.5px !important;
    color: #1e293b !important;
    font-weight: 500 !important;
    outline: none !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    box-sizing: border-box !important;
}

#boxSearchForm .bds-range-select:focus {
    border-color: #e03c31 !important;
    box-shadow: 0 0 0 2px rgba(224, 60, 49, 0.1) !important;
}

#boxSearchForm .bds-range-separator {
    font-size: 16px !important;
    color: #94a3b8 !important;
    padding-top: 15px !important;
    flex-shrink: 0 !important;
    font-weight: 600 !important;
}

/* 3. Lưới chọn nhanh 2 cột Chip Pills */
#boxSearchForm .bds-chips-section {
    padding: 12px 16px !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

#boxSearchForm .bds-chips-title {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    margin: 0 0 8px 0 !important;
}

#boxSearchForm .bds-chips-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    max-height: 220px !important;
    overflow-y: auto !important;
    padding-right: 2px !important;
}

#boxSearchForm .bds-chips-grid::-webkit-scrollbar {
    width: 4px !important;
}

#boxSearchForm .bds-chips-grid::-webkit-scrollbar-thumb {
    background: #e2e8f0 !important;
    border-radius: 4px !important;
}

#boxSearchForm .bds-chip {
    padding: 8px 10px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    font-size: 12.5px !important;
    color: #334155 !important;
    font-weight: 500 !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    user-select: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    min-height: 36px !important;
}

#boxSearchForm .bds-chip:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #e03c31 !important;
}

#boxSearchForm .bds-chip.active {
    background: #fef2f2 !important;
    border-color: #fca5a5 !important;
    color: #e03c31 !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 3px rgba(224, 60, 49, 0.12) !important;
}

#boxSearchForm .bds-chip.active::before {
    content: "✓ " !important;
    font-weight: 700 !important;
    margin-right: 4px !important;
    color: #e03c31 !important;
}

#boxSearchForm .bds-chip.chip-span-2 {
    grid-column: span 2 !important;
}

/* 4. Footer Popup */
#boxSearchForm .bds-popup-footer {
    padding: 10px 16px !important;
    background: #ffffff !important;
    border-top: 1px solid #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    box-sizing: border-box !important;
}

#boxSearchForm .bds-popup-note {
    font-size: 11px !important;
    color: #94a3b8 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

#boxSearchForm .btn-popup-apply {
    background: #e03c31 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 0 18px !important;
    height: 32px !important;
    line-height: 32px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 4px rgba(224, 60, 49, 0.25) !important;
}

#boxSearchForm .btn-popup-apply:hover {
    background: #c82317 !important;
    box-shadow: 0 2px 8px rgba(224, 60, 49, 0.4) !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN (HỖ TRỢ MÀN HÌNH NHỎ HƠN 1200px)
   ========================================================================== */
@media (max-width: 1200px) {
    #boxSearchForm .search-bar-keyword {
        flex: 0 1 440px !important;
        width: 100% !important;
    }
    #boxSearchForm .search-row-bottom {
        gap: 8px !important;
    }
    #boxSearchForm .bds-filter-pill {
        padding: 0 10px !important;
    }
    #boxSearchForm .bds-filter-pill .pill-label {
        font-size: 13px !important;
    }
    #boxSearchForm #btnSearch,
    #boxSearchForm .bds-btn-search-row2 {
        padding: 0 18px !important;
    }
    #divAcreage {
        left: auto !important;
        right: 0 !important;
    }
}
