/* ==========================================================================
   DUAN-BDS-CHUYEN - FRONTEND STYLESHEET (v3.68)
   Thiết kế chuẩn Scoped (.dbds-*), chống xung đột 100% với Flatsome, Child Theme
   và Custom CSS của hệ thống.
   ========================================================================== */

:root {
  --dbds-primary: var(--primary-color, #0c3b5e);
  --dbds-primary-hover: #072a44;
  --dbds-accent: #d97706;
  --dbds-price: #dc2626;
  --dbds-green-table: #109e78;
  --dbds-border: #e2e8f0;
  --dbds-bg-card: #ffffff;
  --dbds-text-dark: #0f172a;
  --dbds-text-muted: #64748b;
  --dbds-radius-lg: 14px;
  --dbds-radius-md: 10px;
  --dbds-radius-sm: 8px;
}

/* ==========================================================================
   0. SCOPED RESET & ANTI-CONFLICT SHIELD (CHỐNG ĐỤNG ĐỘ FLATSOME & CUSTOM CSS)
   ========================================================================== */
.dbds-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--dbds-text-dark);
  line-height: 1.55;
  box-sizing: border-box;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 20px 44px;
}

.dbds-wrapper *,
.dbds-wrapper *::before,
.dbds-wrapper *::after {
  box-sizing: border-box;
}

/* Ngăn Flatsome và Theme Custom CSS làm biến dạng form input, select, button, table */
.dbds-wrapper select,
.dbds-wrapper input[type="text"],
.dbds-wrapper input[type="number"],
.dbds-wrapper input[type="tel"],
.dbds-wrapper input[type="email"],
.dbds-wrapper textarea {
  margin: 0 !important;
  box-shadow: none !important;
  font-family: inherit !important;
}

.dbds-wrapper button {
  margin: 0 !important;
  min-height: 0 !important;
  line-height: 1.3 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-family: inherit !important;
  box-shadow: none;
}

.dbds-wrapper a {
  text-decoration: none;
}

.dbds-wrapper ul,
.dbds-wrapper ol {
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   1. TOP NAVIGATION, BREADCRUMBS & MODE TABS
   ========================================================================== */
.dbds-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--dbds-border);
  margin-bottom: 20px;
}

.dbds-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 13.5px;
  color: var(--dbds-text-muted);
}
.dbds-breadcrumb a {
  color: #475569;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}
.dbds-breadcrumb a:hover {
  color: var(--dbds-primary);
}
.dbds-breadcrumb .dbds-sep {
  color: #cbd5e1;
  font-size: 12px;
}
.dbds-breadcrumb .dbds-current {
  font-weight: 700;
  color: var(--dbds-primary);
}

.dbds-back-actions {
  display: flex;
  align-items: center;
}
.dbds-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155 !important;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  transition: all 0.2s ease;
}
.dbds-btn-back:hover {
  background: var(--dbds-primary);
  border-color: var(--dbds-primary);
  color: #ffffff !important;
}
.dbds-btn-back i,
.dbds-btn-back svg {
  width: 15px;
  height: 15px;
}

.dbds-mode-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: var(--dbds-radius-md);
}
.dbds-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: #475569 !important;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.dbds-tab-btn i,
.dbds-tab-btn svg {
  width: 14px;
  height: 14px;
}
.dbds-tab-btn:hover {
  background: #e2e8f0;
  color: var(--dbds-text-dark) !important;
}
.dbds-tab-btn.active {
  background: var(--dbds-primary);
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(12, 59, 94, 0.22);
}

/* ==========================================================================
   2. TOP FILTER CARD (5 CỘT CHÍNH: TỪ KHÓA, PHÂN KHU, LOẠI HÌNH, GIÁ, HƯỚNG)
   ========================================================================== */
.dbds-filter-card {
  background: var(--dbds-bg-card);
  border: 1px solid var(--dbds-border);
  border-radius: var(--dbds-radius-lg);
  padding: 18px 20px;
  margin-bottom: 22px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.dbds-filter-grid {
  display: grid;
  grid-template-columns: 2.8fr 2.2fr 2.2fr 2.2fr 2.4fr;
  gap: 12px;
  align-items: flex-end;
}
.dbds-filter-grid.col-3 {
  grid-template-columns: repeat(3, 1fr);
}

.dbds-field-col,
.dbds-field-col.dbds-col-keyword {
  grid-column: auto;
  min-width: 0;
}

@media (max-width: 1100px) {
  .dbds-filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dbds-field-col.dbds-col-keyword {
    grid-column: span 2;
  }
}

.dbds-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569;
  margin: 0 0 6px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dbds-wrapper .dbds-filter-card select,
.dbds-wrapper .dbds-filter-card input[type="text"] {
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 12px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: var(--dbds-radius-sm) !important;
  color: #1e293b !important;
  outline: none !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

.dbds-wrapper .dbds-filter-card select {
  padding-right: 28px !important;
  cursor: pointer;
}

.dbds-wrapper .dbds-filter-card select:focus,
.dbds-wrapper .dbds-filter-card input[type="text"]:focus {
  border-color: var(--dbds-primary) !important;
  box-shadow: 0 0 0 3px rgba(12, 59, 94, 0.12) !important;
}

.dbds-input-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.dbds-input-icon i,
.dbds-input-icon svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #94a3b8;
  pointer-events: none;
  z-index: 2;
}
.dbds-wrapper .dbds-input-icon input[type="text"] {
  padding-left: 36px !important;
}

/* ==========================================================================
   3. TOOLBAR HEADER (TIÊU ĐỀ, SẮP XẾP, LIST/GRID TOGGLE)
   ========================================================================== */
.dbds-header-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 10px;
}
.dbds-page-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--dbds-text-dark);
  margin: 0 0 4px !important;
  line-height: 1.28;
}
.dbds-page-desc {
  font-size: 13.5px;
  color: var(--dbds-text-muted);
  margin: 0 !important;
}

.dbds-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dbds-sort-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--dbds-border);
  padding: 0 12px;
  height: 36px;
  border-radius: var(--dbds-radius-sm);
  font-size: 12.5px;
  color: var(--dbds-text-muted);
}
.dbds-sort-box i,
.dbds-sort-box svg {
  width: 14px;
  height: 14px;
  color: #64748b;
  flex-shrink: 0;
}
.dbds-wrapper .dbds-sort-box select {
  border: none !important;
  background: transparent !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: var(--dbds-text-dark) !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 18px 0 4px !important;
  outline: none !important;
  cursor: pointer;
}

.dbds-view-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
}
.dbds-wrapper .dbds-view-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  border-radius: var(--dbds-radius-sm) !important;
  background: #ffffff !important;
  border: 1px solid var(--dbds-border) !important;
  color: #64748b !important;
  cursor: pointer;
  transition: all 0.15s ease;
}
.dbds-view-btn i,
.dbds-view-btn svg {
  width: 16px;
  height: 16px;
}
.dbds-wrapper .dbds-view-btn:hover {
  background: #f1f5f9 !important;
  color: var(--dbds-text-dark) !important;
}
.dbds-wrapper .dbds-view-btn.active {
  background: var(--dbds-primary) !important;
  border-color: var(--dbds-primary) !important;
  color: #ffffff !important;
}

.dbds-badge-count-row {
  margin-bottom: 18px;
}
.dbds-badge-count {
  display: inline-block;
  padding: 4px 11px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
}

/* ==========================================================================
   4. MAIN 2-COLUMN GRID & SIDEBAR HỒ SƠ DỰ ÁN (CHỈNH SỬA 5 & 7)
   ========================================================================== */
.dbds-main-grid {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 24px;
  align-items: flex-start;
}
@media (max-width: 991px) {
  .dbds-main-grid {
    grid-template-columns: 1fr;
  }
}

.dbds-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dbds-card-box {
  background: var(--dbds-bg-card);
  border: 1px solid var(--dbds-border);
  border-radius: var(--dbds-radius-lg);
  padding: 20px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.dbds-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 14px;
}
.dbds-box-head h3 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dbds-text-dark);
  margin: 0 !important;
  display: flex;
  align-items: center;
  gap: 7px;
}
.dbds-box-head h3 i,
.dbds-box-head h3 svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.dbds-view-all {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--dbds-primary) !important;
}
.dbds-view-all:hover {
  text-decoration: underline;
}

/* Hồ sơ dự án Blanca City (Chuẩn mẫu image10.png) */
.dbds-project-profile-list {
  font-size: 13px;
  color: #334155;
  line-height: 1.55;
}
.dbds-project-profile-list p {
  margin: 0 0 10px !important;
}
.dbds-project-profile-list .dbds-proj-line-main {
  font-size: 13.5px;
  margin-bottom: 12px !important;
  line-height: 1.45;
}
.dbds-project-profile-list .dbds-proj-line-main .label {
  color: #64748b;
}
.dbds-project-profile-list .dbds-proj-line-main strong {
  color: #0f172a;
  font-weight: 800;
}
.dbds-project-profile-list .dbds-proj-star-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #334155;
  margin-bottom: 10px;
  line-height: 1.5;
}
.dbds-project-profile-list .dbds-proj-star-item:last-child {
  margin-bottom: 0;
}
.dbds-project-profile-list .dbds-star-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.dbds-project-profile-list .dbds-star-svg {
  width: 16px;
  height: 16px;
  display: block;
}
.dbds-project-profile-list .dbds-proj-star-text strong {
  color: #0f172a;
  font-weight: 700;
}

.dbds-action-links {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dbds-proj-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  color: #dc2626 !important;
  text-decoration: none;
  line-height: 1.4;
  transition: opacity 0.15s ease;
}
.dbds-proj-detail-link:hover {
  opacity: 0.85;
  text-decoration: underline !important;
}
.dbds-link-icon-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #dc2626;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(220, 38, 38, 0.25);
}
.dbds-link-icon-circle i,
.dbds-link-icon-circle svg {
  width: 13px;
  height: 13px;
  color: #ffffff;
}

.dbds-btn-zalo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 14px;
  background: #2563eb;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--dbds-radius-md);
  text-decoration: none;
  transition: background-color 0.15s, transform 0.15s;
}
.dbds-btn-zalo:hover {
  background: #1d4ed8;
  color: #ffffff !important;
}
.dbds-btn-zalo i,
.dbds-btn-zalo svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   5. LISTING CARDS (DANH SÁCH & LƯỚI BẤT ĐỘNG SẢN)
   ========================================================================== */
.dbds-listings-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dbds-card {
  display: flex;
  background: var(--dbds-bg-card);
  border: 1px solid var(--dbds-border);
  border-radius: var(--dbds-radius-lg);
  padding: 16px 20px;
  gap: 20px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}
.dbds-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
}

.dbds-card-media {
  position: relative;
  width: 285px;
  height: 192px;
  flex-shrink: 0;
  border-radius: var(--dbds-radius-md);
  overflow: hidden;
  background: #f1f5f9;
}
.dbds-card-media a {
  display: block;
  width: 100%;
  height: 100%;
}
.dbds-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.dbds-card:hover .dbds-card-media img {
  transform: scale(1.04);
}

.dbds-badge-top {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(120, 53, 15, 0.88);
  color: #fef3c7;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.dbds-badge-bottom {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(12, 59, 94, 0.92);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.dbds-wrapper .dbds-heart-btn {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: rgba(15, 23, 42, 0.48) !important;
  color: #ffffff !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  transition: transform 0.15s, background-color 0.15s;
}
.dbds-wrapper .dbds-heart-btn:hover {
  transform: scale(1.08);
  background: rgba(15, 23, 42, 0.72) !important;
}
.dbds-wrapper .dbds-heart-btn.is-favorite {
  background: #ef4444 !important;
}
.dbds-heart-btn i,
.dbds-heart-btn svg {
  width: 16px;
  height: 16px;
}

.dbds-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.dbds-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 6px;
}
.dbds-code-tag {
  display: inline-block;
  padding: 2px 8px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0284c7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 4px;
}

.dbds-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--dbds-text-dark);
  margin: 0 0 8px !important;
  line-height: 1.38;
}
.dbds-card-title a {
  color: inherit !important;
  text-decoration: none;
  transition: color 0.15s;
}
.dbds-card-title a:hover {
  color: var(--dbds-primary) !important;
}

.dbds-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}
.dbds-price-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--dbds-price);
  line-height: 1.1;
}
.dbds-price-unit {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

.dbds-specs-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #475569;
  font-weight: 500;
  margin-bottom: 8px;
}
.dbds-specs-row strong {
  color: var(--dbds-text-dark);
}

.dbds-excerpt {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Grid View Mode */
.dbds-listings-list.grid-mode {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.dbds-listings-list.grid-mode .dbds-card {
  flex-direction: column;
  padding: 0;
  gap: 0;
  overflow: hidden;
}
.dbds-listings-list.grid-mode .dbds-card-media {
  width: 100%;
  height: 205px;
  border-radius: 0;
}
.dbds-listings-list.grid-mode .dbds-card-body {
  padding: 16px 18px;
}
.dbds-listings-list.grid-mode .dbds-card-title {
  font-size: 15.5px;
}

/* ==========================================================================
   6. SINGLE PROPERTY PAGE LAYOUT (CHI TIẾT BẤT ĐỘNG SẢN - CHỈNH SỬA 1, 2, 3, 7, 8)
   ========================================================================== */
.dbds-detail-grid {
  display: grid;
  grid-template-columns: 1fr 355px;
  gap: 26px;
  align-items: flex-start;
}
@media (max-width: 991px) {
  .dbds-detail-grid {
    grid-template-columns: 1fr;
  }
}

.dbds-detail-main {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.dbds-main-preview {
  position: relative;
  width: 100%;
  height: 430px;
  border-radius: var(--dbds-radius-md);
  overflow: hidden;
  background: #f1f5f9;
  margin-bottom: 12px;
}
.dbds-main-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dbds-thumb-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.dbds-wrapper .dbds-thumb-btn {
  width: 84px !important;
  height: 58px !important;
  min-height: 58px !important;
  flex-shrink: 0;
  border-radius: 6px !important;
  overflow: hidden;
  border: 2px solid transparent !important;
  cursor: pointer;
  opacity: 0.72;
  padding: 0 !important;
  background: #000 !important;
  transition: all 0.15s;
}
.dbds-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dbds-wrapper .dbds-thumb-btn.active,
.dbds-wrapper .dbds-thumb-btn:hover {
  opacity: 1;
  border-color: var(--dbds-primary) !important;
}

.dbds-detail-h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--dbds-text-dark);
  margin: 8px 0 16px !important;
  line-height: 1.32;
}

.dbds-price-metrics-box {
  background: #f8fafc;
  border: 1px solid var(--dbds-border);
  border-radius: var(--dbds-radius-md);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.dbds-price-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 14px;
}
.dbds-price-big {
  font-size: 30px;
  font-weight: 800;
  color: var(--dbds-price);
  line-height: 1;
}
.dbds-unit-m2 {
  font-size: 14px;
  color: var(--dbds-text-muted);
}
.dbds-status-tag {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 12px;
  font-weight: 700;
}

.dbds-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  font-size: 13px;
}
.dbds-metrics-grid .label {
  display: block;
  color: #64748b;
  font-size: 11.5px;
  margin-bottom: 2px;
}
.dbds-metrics-grid strong {
  color: var(--dbds-text-dark);
  font-size: 14.5px;
  font-weight: 700;
}

.dbds-content-section {
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  margin-top: 20px;
}
.dbds-content-section h3 {
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dbds-text-dark);
  margin: 0 0 12px !important;
}

.dbds-entry-content {
  font-size: 14.5px;
  color: #334155;
  line-height: 1.72;
}
.dbds-entry-content p {
  margin: 0 0 12px;
}
.dbds-entry-content p:last-child {
  margin-bottom: 0;
}

/* CHỈNH SỬA 3: Khung 2 mục Số phòng ngủ & Số phòng tắm, vệ sinh (Chuẩn ảnh mẫu) */
.dbds-room-summary-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2px 22px;
  max-width: 460px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}
.dbds-room-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 15.5px;
  color: #1e293b;
}
.dbds-room-summary-row:last-child {
  border-bottom: none;
}
.dbds-room-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
  color: #1e293b;
}
.dbds-room-label i,
.dbds-room-label svg {
  width: 24px;
  height: 24px;
  color: #0f172a;
  stroke-width: 1.75;
  flex-shrink: 0;
}
.dbds-room-value {
  font-weight: 500;
  color: #1e293b;
}

/* CHỈNH SỬA 2: Bảng Thông số Pháp lý & Kỹ thuật (3 hàng: Tình trạng pháp lý, Tiêu chuẩn nội thất, Thiết kế) */
.dbds-specs-table-wrap {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}
.dbds-wrapper table.dbds-specs-table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 0 !important;
  border: none !important;
  font-size: 13.5px !important;
}
.dbds-wrapper table.dbds-specs-table th,
.dbds-wrapper table.dbds-specs-table td,
.dbds-wrapper table.dbds-specs-table th:first-child,
.dbds-wrapper table.dbds-specs-table td:last-child {
  padding: 14px 18px !important;
  vertical-align: middle !important;
}
.dbds-wrapper table.dbds-specs-table th {
  background: var(--dbds-green-table) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  width: 34% !important;
  text-align: left !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25) !important;
  letter-spacing: 0.02em;
}
.dbds-wrapper table.dbds-specs-table td {
  background: #ffffff !important;
  color: #1e293b !important;
  font-weight: 500 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
.dbds-wrapper table.dbds-specs-table tr:last-child th,
.dbds-wrapper table.dbds-specs-table tr:last-child td {
  border-bottom: none !important;
}

/* Related Properties Grid */
.dbds-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 768px) {
  .dbds-related-grid {
    grid-template-columns: 1fr;
  }
}
.dbds-card-mini {
  border: 1px solid var(--dbds-border);
  border-radius: var(--dbds-radius-md);
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.dbds-card-mini:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.07);
}
.dbds-card-mini .thumb-link {
  display: block;
  height: 140px;
  overflow: hidden;
}
.dbds-card-mini .thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.dbds-card-mini:hover .thumb-link img {
  transform: scale(1.05);
}
.dbds-card-mini .body {
  padding: 12px;
}
.dbds-card-mini h4 {
  font-size: 13px;
  font-weight: 700;
  margin: 6px 0 8px !important;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dbds-card-mini h4 a {
  color: var(--dbds-text-dark) !important;
  text-decoration: none;
}
.dbds-card-mini h4 a:hover {
  color: var(--dbds-primary) !important;
}
.dbds-card-mini .foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 12px;
  color: #64748b;
  border-top: 1px solid #f1f5f9;
  padding-top: 8px;
}
.dbds-card-mini .foot .price {
  color: var(--dbds-price);
  font-size: 14px;
  font-weight: 800;
}

/* Detail Sidebar & CHỈNH SỬA 1: Khung Chuyên Viên Môi Giới Nguyễn Thị Mỹ Hạnh */
.dbds-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 24px;
}

.dbds-agent-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 14px;
}
.dbds-agent-head .avatar {
  width: 66px;
  height: 66px;
  border-radius: 12px;
  background: #f8fafc;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.dbds-agent-head .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.dbds-agent-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.dbds-agent-head .dbds-agent-role {
  display: block;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: #0f172a;
  line-height: 1.25;
  letter-spacing: 0.02em;
}
.dbds-agent-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.dbds-agent-head .dbds-agent-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.dbds-agent-profile-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  color: #0284c7 !important;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  line-height: 1.35;
  transition: all 0.15s ease;
}
.dbds-agent-profile-badge:hover {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff !important;
}
.dbds-agent-head .dbds-agent-cert {
  display: block;
  font-size: 12px;
  color: #475569;
  font-weight: 600;
}

.dbds-agent-btns {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.dbds-btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 14px;
  background: #dc2626;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--dbds-radius-md);
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.dbds-btn-call:hover {
  background: #b91c1c;
  color: #ffffff !important;
}
.dbds-btn-call i,
.dbds-btn-call svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   7. PROJECTS DIRECTORY GRID ([bds_projects])
   ========================================================================== */
.dbds-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .dbds-projects-grid {
    grid-template-columns: 1fr;
  }
}

.dbds-project-card {
  background: var(--dbds-bg-card);
  border: 1px solid var(--dbds-border);
  border-radius: var(--dbds-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.dbds-project-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
}
.dbds-project-media {
  position: relative;
  height: 225px;
  background: #f1f5f9;
  overflow: hidden;
}
.dbds-project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.dbds-project-card:hover .dbds-project-media img {
  transform: scale(1.04);
}
.dbds-project-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.dbds-project-body h2 {
  font-size: 18.5px;
  font-weight: 800;
  color: var(--dbds-text-dark);
  margin: 6px 0 8px !important;
  line-height: 1.35;
}
.dbds-project-body h2 a {
  color: inherit !important;
}
.dbds-project-body h2 a:hover {
  color: var(--dbds-primary) !important;
}
.dbds-project-loc {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12.5px;
  color: #475569;
  margin: 0 0 10px !important;
}
.dbds-project-loc i,
.dbds-project-loc svg {
  width: 15px;
  height: 15px;
  color: #dc2626;
  flex-shrink: 0;
  margin-top: 2px;
}
.dbds-project-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}
.dbds-proj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: var(--dbds-radius-sm);
  transition: all 0.15s ease;
}
.dbds-proj-btn i,
.dbds-proj-btn svg {
  width: 14px;
  height: 14px;
}
.dbds-proj-btn-primary {
  background: var(--dbds-primary);
  color: #ffffff !important;
  border: 1px solid var(--dbds-primary);
}
.dbds-proj-btn-primary:hover {
  background: var(--dbds-primary-hover);
}
.dbds-proj-btn-outline {
  background: #f8fafc;
  color: var(--dbds-primary) !important;
  border: 1px solid #cbd5e1;
}
.dbds-proj-btn-outline:hover {
  background: #e2e8f0;
}

/* ==========================================================================
   8. TỐI ƯU HIỂN THỊ MOBILE TRÀN VIỀN GỌN GÀNG (BỚT DÀI KHUNG TRÊN ĐIỆN THOẠI)
   ========================================================================== */
@media (max-width: 767px) {
  .dbds-wrapper {
    padding: 8px 8px 28px !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .dbds-filter-card,
  .dbds-card-box,
  .dbds-card {
    padding: 12px 12px !important;
    border-radius: 12px !important;
  }
  /* Bộ lọc 2 cột gọn gàng trên mobile để khung lọc không bị kéo dài */
  .dbds-filter-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .dbds-field-col.dbds-col-keyword {
    grid-column: span 2 !important;
  }
  .dbds-filter-grid.col-3 {
    grid-template-columns: 1fr !important;
  }
  .dbds-wrapper .dbds-filter-card select,
  .dbds-wrapper .dbds-filter-card input[type="text"] {
    height: 38px !important;
    min-height: 38px !important;
    font-size: 12.5px !important;
  }
  .dbds-card {
    flex-direction: column;
    gap: 12px;
  }
  .dbds-card-media {
    width: 100%;
    height: 185px;
  }
  .dbds-listings-list.grid-mode {
    grid-template-columns: 1fr;
  }
  .dbds-page-title {
    font-size: 18px;
  }
  .dbds-detail-h1 {
    font-size: 19px;
  }
  .dbds-main-preview {
    height: 245px;
  }
  .dbds-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dbds-room-summary-box {
    max-width: 100%;
    padding: 2px 14px;
  }
  .dbds-room-summary-row {
    font-size: 14px;
    padding: 12px 0;
  }
  .dbds-wrapper table.dbds-specs-table th,
  .dbds-wrapper table.dbds-specs-table td,
  .dbds-wrapper table.dbds-specs-table th:first-child,
  .dbds-wrapper table.dbds-specs-table td:last-child {
    padding: 10px 12px !important;
    font-size: 12px !important;
  }
  .dbds-wrapper table.dbds-specs-table th {
    width: 40% !important;
  }
  .dbds-project-foot {
    grid-template-columns: 1fr;
  }
}
