/**
 * listing-modern.css
 * Giao diện hiện đại danh sách tin đăng BĐS (Mua Bán & Cho Thuê)
 * Chuẩn Bento Luxury Modern, Bố cục 3 Cột, Tone màu Sáng - Thanh Thoát - Đẳng Cấp
 * Version: 20261106_1
 */

:root {
    --bds-emerald: #059669;
    --bds-emerald-dark: #047857;
    --bds-emerald-light: #10B981;
    --bds-emerald-bg: #ECFDF5;
    --bds-emerald-border: #A7F3D0;
    --bds-ruby: #DC2626;
    --bds-amber: #D97706;
    --bds-text-main: #0F172A;
    --bds-text-muted: #64748B;
    --bds-text-light: #94A3B8;
    --bds-bg-page: #F8FAFC;
    --bds-bg-card: #FFFFFF;
    --bds-border: #E2E8F0;
    --bds-border-light: #F1F5F9;
    --bds-radius-sm: 8px;
    --bds-radius-md: 12px;
    --bds-radius-lg: 16px;
    --bds-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --bds-shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.06);
    --bds-shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.08);
}

/* ==========================================================================
   1. HERO HEADER (SÁNG SỦA, KHÔNG MÀU XANH TỐI)
   ========================================================================== */
.bds-listing-hero {
    position: relative;
    background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 100%);
    border-bottom: 1px solid var(--bds-border-light);
    padding: 24px 0 28px 0;
    margin-bottom: 24px;
}

.bds-listing-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* Breadcrumb */
.bds-hero-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--bds-text-muted);
    margin-bottom: 12px;
}

.bds-hero-breadcrumb a {
    color: var(--bds-text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.bds-hero-breadcrumb a:hover {
    color: var(--bds-emerald);
}

.bds-hero-breadcrumb .sep {
    color: var(--bds-text-light);
    font-size: 11px;
}

.bds-hero-breadcrumb .current {
    color: var(--bds-text-main);
    font-weight: 600;
}

/* Title & Subtitle */
.bds-hero-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--bds-text-main);
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.bds-hero-title .highlight {
    color: var(--bds-emerald);
}

.bds-hero-sub {
    font-size: 14px;
    color: var(--bds-text-muted);
    margin: 0 0 14px 0;
}

/* Trust Badges */
.bds-hero-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.bds-hero-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--bds-emerald-dark);
    background: rgba(16, 185, 129, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
}

.bds-hero-badge-item i {
    color: var(--bds-emerald);
    font-size: 12px;
}

/* Quick Search Bar (Tối giản 1 hàng, không trùng lặp) */
.bds-hero-search-box {
    background: #FFFFFF;
    border: 1px solid var(--bds-border);
    border-radius: var(--bds-radius-lg);
    box-shadow: 0 6px 20px -3px rgba(15, 23, 42, 0.07);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bds-hero-search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px;
}

.bds-hero-search-input-wrap i {
    color: var(--bds-text-light);
    font-size: 16px;
}

.bds-hero-search-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--bds-text-main);
    font-family: inherit;
    background: transparent;
}

.bds-hero-search-input::placeholder {
    color: var(--bds-text-light);
}

.bds-hero-search-select-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 1px solid var(--bds-border);
    padding-left: 12px;
}

.bds-hero-search-select {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--bds-text-main);
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    padding-right: 8px;
}

.bds-hero-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bds-emerald);
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.bds-hero-search-btn:hover {
    background: var(--bds-emerald-dark);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
    transform: translateY(-1px);
}

/* ==========================================================================
   2. BỐ CỤC 3 CỘT (22% - 54% - 24%)
   ========================================================================== */
.bds-listing-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px 40px 16px;
    box-sizing: border-box;
}

.bds-listing-3col {
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    gap: 24px;
    align-items: start;
}

/* ==========================================================================
   3. CỘT TRÁI: BỘ LỌC CHUYÊN SÂU (PRECISION FILTER)
   ========================================================================== */
.bds-filter-card {
    background: #FFFFFF;
    border: 1px solid var(--bds-border);
    border-radius: var(--bds-radius-lg);
    box-shadow: var(--bds-shadow-sm);
    padding: 18px;
    position: sticky;
    top: 80px;
}

.bds-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bds-border-light);
    margin-bottom: 16px;
}

.bds-filter-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--bds-text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.bds-filter-title i {
    color: var(--bds-emerald);
}

.bds-filter-reset {
    font-size: 12px;
    color: var(--bds-text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.bds-filter-reset:hover {
    color: var(--bds-ruby);
}

/* Filter Sections */
.bds-filter-group {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--bds-border-light);
}

.bds-filter-group:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.bds-filter-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--bds-text-main);
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bds-filter-label i {
    font-size: 12px;
    color: var(--bds-emerald);
}

/* Checkbox & Radio lists */
.bds-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

.bds-filter-list::-webkit-scrollbar {
    width: 4px;
}

.bds-filter-list::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

.bds-filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--bds-text-main);
    padding: 5px 0;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s ease;
}

.bds-filter-item:hover {
    color: var(--bds-emerald);
}

.bds-filter-item.active {
    color: var(--bds-emerald);
    font-weight: 600;
}

.bds-filter-item .count {
    font-size: 12px;
    color: var(--bds-text-light);
}

/* Select inputs in sidebar */
.bds-filter-select {
    width: 100%;
    border: 1px solid var(--bds-border);
    border-radius: var(--bds-radius-sm);
    padding: 8px 10px;
    font-size: 13px;
    color: var(--bds-text-main);
    background: #FFFFFF;
    font-family: inherit;
    outline: none;
    margin-bottom: 8px;
    transition: border-color 0.15s ease;
}

.bds-filter-select:focus {
    border-color: var(--bds-emerald);
}

/* Chip/Pill selection (Khoảng giá, Diện tích) */
.bds-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bds-chip {
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 16px;
    background: #F1F5F9;
    color: var(--bds-text-main);
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.bds-chip:hover {
    background: var(--bds-emerald-bg);
    color: var(--bds-emerald);
    border-color: var(--bds-emerald-border);
}

.bds-chip.active {
    background: var(--bds-emerald);
    color: #FFFFFF;
    border-color: var(--bds-emerald);
    font-weight: 600;
}

/* Pill buttons (Số phòng ngủ) */
.bds-pills-row {
    display: flex;
    gap: 6px;
}

.bds-pill-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    background: #F1F5F9;
    color: var(--bds-text-main);
    border-radius: var(--bds-radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.bds-pill-btn:hover {
    background: var(--bds-emerald-bg);
    color: var(--bds-emerald);
    border-color: var(--bds-emerald-border);
}

.bds-pill-btn.active {
    background: var(--bds-emerald);
    color: #FFFFFF;
    border-color: var(--bds-emerald);
}

/* Amenities Checkboxes */
.bds-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--bds-text-main);
    margin-bottom: 6px;
    cursor: pointer;
}

.bds-checkbox-item input[type="checkbox"] {
    accent-color: var(--bds-emerald);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* Apply filter button */
.bds-btn-apply-filter {
    width: 100%;
    background: var(--bds-emerald);
    color: #FFFFFF;
    border: none;
    border-radius: var(--bds-radius-sm);
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    margin-top: 14px;
}

.bds-btn-apply-filter:hover {
    background: var(--bds-emerald-dark);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

/* ==========================================================================
   4. CỘT GIỮA: DANH SÁCH TIN ĐĂNG (MAIN LISTINGS)
   ========================================================================== */
.bds-listing-main-col {
    min-width: 0;
}

/* Status header bar */
.bds-listing-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bds-border);
}

.bds-listing-count {
    font-size: 14px;
    color: var(--bds-text-muted);
    margin: 0;
}

.bds-listing-count strong {
    color: var(--bds-text-main);
    font-weight: 700;
}

.bds-listing-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bds-sort-box {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--bds-text-muted);
}

.bds-sort-select {
    border: 1px solid var(--bds-border);
    border-radius: var(--bds-radius-sm);
    padding: 6px 10px;
    font-size: 13px;
    color: var(--bds-text-main);
    background: #FFFFFF;
    font-family: inherit;
    cursor: pointer;
    outline: none;
}

.bds-view-switcher {
    display: inline-flex;
    background: #F1F5F9;
    border-radius: var(--bds-radius-sm);
    padding: 3px;
    gap: 2px;
}

.bds-view-btn {
    border: none;
    background: transparent;
    color: var(--bds-text-muted);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.15s ease;
}

.bds-view-btn.active {
    background: #FFFFFF;
    color: var(--bds-emerald);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Container chứa các card tin đăng */
.bds-cards-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Chế độ Grid view (khi bật toggle) */
.bds-cards-list.is-grid-view {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.bds-cards-list.is-grid-view .bds-card-luxury {
    flex-direction: column;
}

.bds-cards-list.is-grid-view .bds-card-thumb-wrap {
    width: 100%;
    height: 200px;
}

/* ==========================================================================
   5. BENTO LUXURY LISTING CARD (THIẾT KẾ CHUẨN MOCKUP 2)
   ========================================================================== */
.bds-card-luxury {
    background: #FFFFFF;
    border: 1px solid var(--bds-border);
    border-radius: var(--bds-radius-md);
    overflow: hidden;
    display: flex;
    gap: 16px;
    padding: 12px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: var(--bds-shadow-sm);
}

.bds-card-luxury:hover {
    border-color: #CBD5E1;
    transform: translateY(-2px);
    box-shadow: var(--bds-shadow-md);
}

/* Card Thumbnail (16:10 ratio) */
.bds-card-thumb-wrap {
    width: 240px;
    min-width: 240px;
    height: 160px;
    border-radius: var(--bds-radius-sm);
    overflow: hidden;
    position: relative;
    background: #E2E8F0;
}

.bds-card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.bds-card-luxury:hover .bds-card-thumb-wrap img {
    transform: scale(1.05);
}

/* Badges on Thumbnail */
.bds-card-badge-vip {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--bds-ruby);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
}

.bds-card-badge-hot {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--bds-amber);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
}

.bds-card-badge-new {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--bds-emerald);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
}

.bds-card-photo-count {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(15, 23, 42, 0.7);
    color: #FFFFFF;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    backdrop-filter: blur(2px);
}

.bds-card-fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--bds-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: all 0.2s ease;
}

.bds-card-fav-btn:hover {
    background: #FFFFFF;
    color: var(--bds-ruby);
    transform: scale(1.1);
}

.bds-card-fav-btn.saved {
    color: var(--bds-ruby);
}

/* Card Content Details */
.bds-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.bds-card-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bds-card-title a {
    color: var(--bds-text-main);
    text-decoration: none;
    transition: color 0.15s ease;
}

.bds-card-title a:hover {
    color: var(--bds-emerald);
}

.bds-card-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--bds-text-muted);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bds-card-location i {
    color: var(--bds-emerald);
    font-size: 12px;
    flex-shrink: 0;
}

/* Specs Badges Row (Diện tích, Tầng, PN, WC) */
.bds-card-specs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--bds-text-main);
    margin-bottom: 8px;
}

.bds-spec-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #334155;
    font-weight: 500;
}

.bds-spec-item i {
    color: var(--bds-text-light);
    font-size: 12px;
}

/* Price & Unit Price Row */
.bds-card-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

.bds-card-price-main {
    font-size: 17px;
    font-weight: 700;
    color: var(--bds-ruby);
}

.bds-card-unit-price {
    font-size: 12px;
    color: var(--bds-text-muted);
}

/* Footer of Card: Author, Verified, Phone */
.bds-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px dashed var(--bds-border-light);
    font-size: 12px;
    color: var(--bds-text-muted);
}

.bds-card-author-info {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bds-author-name {
    font-weight: 600;
    color: var(--bds-text-main);
}

.bds-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: var(--bds-emerald-bg);
    color: var(--bds-emerald-dark);
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 10px;
    border: 1px solid var(--bds-emerald-border);
}

.bds-verified-badge i {
    font-size: 10px;
    color: var(--bds-emerald);
}

.bds-pub-date {
    color: var(--bds-text-light);
    font-size: 11px;
}

.bds-card-contact-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bds-btn-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bds-emerald);
    color: #FFFFFF !important;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bds-btn-phone:hover {
    background: var(--bds-emerald-dark);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

/* Empty State */
.bds-empty-state {
    background: #FFFFFF;
    border: 1px dashed var(--bds-border);
    border-radius: var(--bds-radius-lg);
    padding: 48px 24px;
    text-align: center;
    color: var(--bds-text-muted);
}

.bds-empty-state i {
    font-size: 48px;
    color: var(--bds-text-light);
    margin-bottom: 12px;
}

.bds-empty-state h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--bds-text-main);
    margin: 0 0 6px 0;
}

/* Pagination Overwrite (Modern Round Style) */
.re__srp-paging .re__pagination-group {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 28px auto 10px auto !important;
}

.re__srp-paging .re__pagination-number {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #FFFFFF !important;
    border: 1px solid var(--bds-border) !important;
    color: var(--bds-text-main) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
}

.re__srp-paging .re__pagination-number:hover:not(.re__actived) {
    background: #F1F5F9 !important;
    border-color: #CBD5E1 !important;
    color: var(--bds-emerald) !important;
}

.re__srp-paging .re__pagination-number.re__actived {
    background: var(--bds-emerald) !important;
    border-color: var(--bds-emerald) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3) !important;
}

/* ==========================================================================
   6. CỘT PHẢI: WIDGETS TIỆN ÍCH (24%)
   ========================================================================== */
.bds-listing-widgets-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Widget Card Container */
.bds-widget-card {
    background: #FFFFFF;
    border: 1px solid var(--bds-border);
    border-radius: var(--bds-radius-lg);
    box-shadow: var(--bds-shadow-sm);
    padding: 16px;
}

/* Widget 1: Đăng tin CTA Banner */
.bds-widget-post-banner {
    background: linear-gradient(135deg, #064E3B 0%, #065F46 100%);
    border-radius: var(--bds-radius-lg);
    padding: 20px 18px;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px -2px rgba(6, 78, 59, 0.3);
}

.bds-widget-post-banner::after {
    content: "";
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.bds-widget-post-banner h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #FFFFFF;
}

.bds-widget-post-banner p {
    font-size: 13px;
    color: #A7F3D0;
    margin: 0 0 12px 0;
}

.bds-widget-post-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    font-size: 12px;
    color: #E2E8F0;
}

.bds-widget-post-bullets li {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.bds-widget-post-bullets li i {
    color: #34D399;
}

.bds-widget-post-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--bds-ruby);
    color: #FFFFFF;
    border-radius: 8px;
    padding: 9px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.bds-widget-post-btn:hover {
    background: #B91C1C;
    transform: translateY(-1px);
    color: #FFFFFF;
}

/* Widget Header (Tin tức, Báo cáo, Công cụ) */
.bds-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--bds-border-light);
}

.bds-widget-header h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--bds-text-main);
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.bds-widget-header h4 i {
    color: var(--bds-emerald);
}

.bds-widget-header .more-link {
    font-size: 12px;
    color: var(--bds-emerald);
    text-decoration: none;
    font-weight: 500;
}

.bds-widget-header .more-link:hover {
    text-decoration: underline;
}

/* Widget 2: Tin tức thị trường */
.bds-news-mini-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bds-news-mini-item {
    display: flex;
    gap: 10px;
    text-decoration: none;
}

.bds-news-mini-thumb {
    width: 72px;
    height: 52px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #E2E8F0;
}

.bds-news-mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bds-news-mini-content {
    flex: 1;
    min-width: 0;
}

.bds-news-mini-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--bds-text-main);
    line-height: 1.35;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s ease;
}

.bds-news-mini-item:hover .bds-news-mini-title {
    color: var(--bds-emerald);
}

.bds-news-mini-meta {
    font-size: 11px;
    color: var(--bds-text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Widget 3: Báo cáo thị trường (Mini Market Widget) */
.bds-market-report-box {
    background: #F8FAFC;
    border-radius: var(--bds-radius-sm);
    padding: 12px;
}

.bds-market-report-sub {
    font-size: 12px;
    color: var(--bds-text-muted);
    margin-bottom: 4px;
}

.bds-market-price-big {
    font-size: 22px;
    font-weight: 800;
    color: var(--bds-text-main);
    margin-bottom: 6px;
}

.bds-market-trend-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--bds-emerald-dark);
    background: var(--bds-emerald-bg);
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.bds-market-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 48px;
    padding-top: 8px;
}

.bds-market-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.bds-market-bar-fill {
    width: 100%;
    background: #CBD5E1;
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease;
}

.bds-market-bar-col.active .bds-market-bar-fill {
    background: var(--bds-emerald);
}

.bds-market-bar-label {
    font-size: 10px;
    color: var(--bds-text-light);
}

/* Widget 4: Công cụ tiện ích (2x2 grid) */
.bds-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.bds-tool-item {
    background: #F8FAFC;
    border: 1px solid var(--bds-border-light);
    border-radius: var(--bds-radius-sm);
    padding: 10px 8px;
    text-align: center;
    text-decoration: none;
    color: var(--bds-text-main);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.bds-tool-item:hover {
    background: #FFFFFF;
    border-color: var(--bds-emerald);
    box-shadow: var(--bds-shadow-sm);
    transform: translateY(-2px);
    color: var(--bds-emerald);
}

.bds-tool-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(5, 150, 105, 0.08);
    color: var(--bds-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.bds-tool-title {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
}

/* ==========================================================================
   7. PHẦN CHÂN TRANG (BOTTOM SECTIONS)
   ========================================================================== */
.bds-listing-bottom-sections {
    max-width: 1280px;
    margin: 20px auto 40px auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    box-sizing: border-box;
}

/* Dự án nổi bật liên quan */
.bds-bottom-block {
    background: #FFFFFF;
    border: 1px solid var(--bds-border);
    border-radius: var(--bds-radius-lg);
    padding: 20px 24px;
}

.bds-bottom-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.bds-bottom-block-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--bds-text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bds-bottom-block-title i {
    color: var(--bds-emerald);
}

.bds-related-projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.bds-proj-card-mini {
    background: #FFFFFF;
    border: 1px solid var(--bds-border-light);
    border-radius: var(--bds-radius-sm);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.bds-proj-card-mini:hover {
    border-color: #CBD5E1;
    transform: translateY(-2px);
    box-shadow: var(--bds-shadow-sm);
}

.bds-proj-card-thumb {
    height: 110px;
    position: relative;
    background: #E2E8F0;
    overflow: hidden;
}

.bds-proj-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bds-proj-card-price-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(15, 23, 42, 0.75);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    backdrop-filter: blur(2px);
}

.bds-proj-card-info {
    padding: 10px;
    flex: 1;
}

.bds-proj-card-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--bds-text-main);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bds-proj-card-loc {
    font-size: 11px;
    color: var(--bds-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Khu vực được quan tâm (Tag pills) */
.bds-popular-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bds-popular-tag-item {
    display: inline-block;
    padding: 7px 14px;
    background: #F8FAFC;
    border: 1px solid var(--bds-border);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--bds-text-main);
    text-decoration: none;
    transition: all 0.15s ease;
}

.bds-popular-tag-item:hover {
    background: var(--bds-emerald-bg);
    color: var(--bds-emerald);
    border-color: var(--bds-emerald-border);
}

/* Banner CTA Chân trang */
.bds-bottom-cta-banner {
    background: linear-gradient(135deg, #F0FDF4 0%, #FFFFFF 100%);
    border: 1px solid var(--bds-emerald-border);
    border-radius: var(--bds-radius-lg);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 4px 20px -2px rgba(5, 150, 105, 0.08);
}

.bds-bottom-cta-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--bds-text-main);
    margin: 0 0 8px 0;
}

.bds-bottom-cta-badges {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--bds-text-muted);
}

.bds-bottom-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bds-bottom-cta-badge i {
    color: var(--bds-emerald);
}

.bds-bottom-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bds-ruby);
    color: #FFFFFF;
    border-radius: 10px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.bds-bottom-cta-btn:hover {
    background: #B91C1C;
    transform: translateY(-1px);
    color: #FFFFFF;
}

/* ==========================================================================
   8. RESPONSIVE DESIGN (TỐI ƯU CÁC KÍCH THƯỚC MÀN HÌNH)
   ========================================================================== */
@media (max-width: 1200px) {
    .bds-listing-3col {
        grid-template-columns: 260px 1fr 260px;
        gap: 16px;
    }
    .bds-card-thumb-wrap {
        width: 200px;
        min-width: 200px;
    }
}

@media (max-width: 992px) {
    .bds-listing-3col {
        grid-template-columns: 1fr;
    }
    .bds-filter-card {
        position: static;
    }
    .bds-related-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bds-bottom-cta-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .bds-hero-search-box {
        flex-direction: column;
        align-items: stretch;
    }
    .bds-hero-search-select-wrap {
        border-left: none;
        border-top: 1px solid var(--bds-border);
        padding-left: 0;
        padding-top: 8px;
    }
    .bds-card-luxury {
        flex-direction: column;
    }
    .bds-card-thumb-wrap {
        width: 100%;
        min-width: 100%;
        height: 180px;
    }
    .bds-related-projects-grid {
        grid-template-columns: 1fr;
    }
}
