/* ==========================================================
   UI UPGRADE — imuabanbds.vn
   Override layer — load AFTER theme.min.css
   Phase 01: Design System Foundation
   Version: 6.7.4
   ========================================================== */

/* Font loaded via <link> in _html_head.php — no @import needed */

:root {
  /* Brand Colors — màu hiện tại của imuabanbds */
  --color-primary:       #055699;   /* Xanh dương chủ đạo */
  --color-primary-dark:  #033d6e;
  --color-primary-light: #e8f1f9;
  --color-accent:        #05a21b;   /* Xanh lá CTA */
  --color-accent-dark:   #036d11;

  /* Text */
  --color-text:           #1a1a1a;
  --color-text-secondary: #64748b;
  --color-text-disabled:  #bdbdbd;

  /* Surfaces */
  --color-bg:     #f5f5f5;
  --color-card:   #ffffff;
  --color-border: #e0e0e0;

  /* Status */
  --color-success: #059669;
  --color-warning: #f59e0b;
  --color-error:   #dc2626;

  /* Spacing (8px base) */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-8:  48px;
  --space-10: 64px;

  /* Border Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-full: 9999px;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.20s ease;
  --transition-slow: 0.30s ease;

  /* Mobile bottom nav height — used by Phase 2/4/5 mobile rules.
     Real height = .bni min-height 50px + .bottom-nav-upgrade padding 6px*2 = 62px (excl. safe-area). */
  --bottom-nav-height: 62px;

  /* Typography — matched to batdongsan.com.vn */
  --font-sans: 'Lexend', Arial, Helvetica, sans-serif;
  --text-xs:   12px;
  --text-sm:   14px;
  --text-base: 15px;
  --text-md:   16px;
  --text-lg:   18px;
  --text-xl:   20px;
  --text-2xl:  24px;
  --text-3xl:  30px;
  --text-4xl:  36px;
}

/* Prevent horizontal scrollbar from animations/transforms */
html { overflow-x: hidden; }

/* Base font upgrade */
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--color-text);
}

/* Force consistent font across all elements */
h1, h2, h3, h4, h5, h6,
p, span, a, li, td, th, label, input, select, textarea, button,
.HomeTitle, .HomeTitle h1, .HomeTitle h2,
.ContentPage, .ContentPage h1, .ContentPage h2, .ContentPage h3, .ContentPage h4,
.ContentPage p, .ContentPage span, .ContentPage a, .ContentPage li,
.bdsItem, .bdsItemFooter {
  font-family: var(--font-sans) !important;
}

/* Wrapper & ColCenter — desktop only, mobile uses bootstrap.min.css responsive widths */
@media (min-width: 1200px) {
  .wrapper {
    width: 1200px;
    margin: 0 auto;
  }
  .ColCenter {
    width: 730px !important;
    margin: 0 15px !important;
  }
}

/* Tim-kiem page: hide sidebar + slider, center content full-width, strip ColCenter styling */
.tk-page-layout .ColLeft { display: none }
.tk-page-layout #wowslider-container1 { display: none }
.tk-page-layout .ColCenter.ColCenter--wide {
  margin-left: 0 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  min-height: 0 !important;
  overflow: visible !important;
}

/* ── Search hero (/tim-kiem/) ── */
.tk-page {
  max-width: 700px;
  margin: 40px auto 300px;
  text-align: center;
  position: relative;
  z-index: 10;
}
.tk-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  z-index: 2;
}
/* Repeating text watermark — covers entire viewport on /tim-kiem/ */
.wrapper.tk-page-layout {
  position: relative;
}
.wrapper.tk-page-layout::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='280'%3E%3Ctext x='250' y='140' font-family='sans-serif' font-size='22' font-weight='700' fill='%23055699' text-anchor='middle' dominant-baseline='middle' transform='rotate(-25 250 140)' opacity='0.12'%3Eimuabanbds.vn%3C/text%3E%3C/svg%3E") repeat;
  pointer-events: none;
  z-index: 1;
}
.tk-tabs {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 18px;
}
.tk-tab {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.tk-tab:hover { color: #fff; text-decoration: none; }
.tk-tab.is-active {
  color: #fff;
  border-bottom-color: var(--color-error);
}
.tk-searchbar {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 4px 4px 4px 12px;
  gap: 0;
}
.tk-search-icon {
  color: #999;
  font-size: 16px;
  flex-shrink: 0;
  margin-right: 8px;
}
.tk-searchbar input[type="text"] {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  padding: 10px 8px;
  font-family: var(--font-sans);
  background: transparent;
  min-width: 0;
}
.tk-searchbar input[type="text"]::placeholder { color: #999; }
.tk-btn-search {
  background: var(--color-error);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.tk-btn-search:hover { background: #c81e1e; }

/* tk autocomplete dropdown above hero */
.tk-searchbar .auto-complete { z-index: 100; }

/* Filter row — below hero, standalone white section */
.tk-filters {
  background: #fff;
  border-radius: var(--radius-lg);
  margin-top: 12px;
  padding: 14px 24px;
  border: 1px solid #e5e7eb;
}
.tk-filter-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.tk-filter-item {
  flex: 1;
  min-width: 0;
}
.tk-filter-item:nth-child(1),
.tk-filter-item:nth-child(2) {
  flex: 1.4;
}
/* Verified checkbox in advanced row: size to content, don't get crushed by flex:1 */
.tk-filter-item.tk-adv-verified {
  flex: 0 0 auto;
  min-width: 150px;
  height: 34px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
/* Advanced panel must wrap so the full-width "Tiện ích & Đặc điểm" block (flex-basis:100%)
   drops to its own line — without wrap it crams onto the nowrap flex row and crushes the
   verified checkbox + selects. Scoped to the panel so the main filter row is untouched. */
.tk-adv-panel .tk-filter-row { flex-wrap: wrap; row-gap: 10px; }
.tk-filter-item select,
.tk-filter-item .wpc-input,
.tk-filter-item .comboboxs {
  width: 100%;
  font-size: 13px;
  box-sizing: border-box;
}
.tk-filter-item select,
.tk-filter-item .wpc-input {
  height: 34px;
  padding: 0 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: var(--font-sans);
}
.tk-filter-item .comboboxs {
  height: 34px;
  line-height: 34px;
  border-radius: 6px;
  position: relative;
}
.tk-filter-item .comboboxs .select-text {
  font-size: 13px;
  padding: 0 10px;
  height: 34px;
  line-height: 34px;
  display: block;
}
.tk-adv-toggle {
  background: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  height: 34px;
  padding: 0 10px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-sans);
  box-sizing: border-box;
  flex-shrink: 0;
}
.tk-adv-toggle:hover { border-color: #999; color: #333; }
.tk-adv-panel { margin-top: 10px; }
.tk-adv-input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  font-family: var(--font-sans);
  box-sizing: border-box;
}
/* AdvanceHiddenDropbox in filter row — position below combobox, not moved to form */
.tk-filters .advance-select-options {
  z-index: 101;
  top: 100%;
  left: 0;
  min-width: 100%;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .tk-page { margin: 16px auto; padding: 0 8px; }
  .tk-hero { padding: 16px 12px; }
  .tk-filters { margin-top: 8px; padding: 10px 12px; }
  .tk-tabs { gap: 16px; }
  .tk-tab { font-size: 14px; }
  .tk-btn-search { padding: 10px 16px; font-size: 14px; }
  .tk-filter-row { flex-wrap: wrap; }
  .tk-filter-item { min-width: calc(50% - 4px); }
}

/* Sub-pages: ẩn ColRight, ColCenter tràn rộng sát biên phải */
.ColCenter.ColCenter--wide {
  width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
}
@media (min-width: 1200px) {
  .ColCenter.ColCenter--wide {
    float: none !important;
    width: auto !important;
    margin: 0 0 0 221px !important;
  }
}

/* Fix z-index: slider (z:90) overlaps first listing item */
/* Slim banner — 180px, overflow-clip keeps full image quality */
#wowslider-container1 {
  z-index: 1 !important;
  max-height: 180px !important;
  overflow: hidden !important;
}
#wowslider-container1 .ws_images,
#wowslider-container1 .ws_images ul,
#wowslider-container1 .ws_images ul a,
#wowslider-container1 .ws_images > div {
  max-height: 180px !important;
  overflow: hidden !important;
}
/* Slim banner: fill width + crop from CENTER (not bottom), fixed height = no CLS, no upscale blur */
#wowslider-container1 .ws_images img {
  width: 100% !important;
  height: 180px !important;
  object-fit: cover !important;
  object-position: center !important;
}
.ColCenter, .ColLeft, .ColRight {
  position: relative;
  z-index: 2;
}

/* ==========================================================
   Phase 02: Header Sticky + Navigation v2.0
   ========================================================== */

/* Hide mobile/desktop toggle bar — outdated UX */
.navOntop {
  display: none !important;
}

/* Header in normal flow (NOT sticky): it scrolls away naturally, so it can never show
   through the gap between the sticky .navTop and .menu. Removes the need for the fragile
   per-scroll JS hide. Only .navTop + .menu stay sticky. */
.header {
  position: relative !important;
  z-index: 200;
  background: #fff !important;
  box-shadow: none !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  line-height: 0;
  font-size: 0;
}
.header .wrapper {
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  align-items: stretch;
  width: 100% !important;
  line-height: normal;
  font-size: 14px;
}
/* Ensure header has zero bottom space */
.header > .wrapper { margin-bottom: 0 !important; padding-bottom: 0 !important; }

/* Hide old DB ad banner; show hero-mini inline next to logo */
.bannertop { display: none !important; }
.bannertop.hero-mini {
  display: flex !important;
  flex: 1;
  margin-top: 0 !important;
  float: none !important;
  width: auto !important;
}

/* ==========================================================
   HERO MINI BANNER — Compact banner next to logo
   ========================================================== */
.hero-mini {
  /* Fill remaining space — white→blue gradient left to right */
  flex: 1;
  min-height: 130px;
  background: linear-gradient(to right, #ffffff 0%, #dceaf5 8%, #6ba3cc 20%, #055699 35%, #044a85 80%, #033d6e 100%);
  border-radius: 0;
  position: relative;
  overflow: hidden;
  display: flex !important;
  align-items: center;
  box-sizing: border-box;
  border-bottom: none;
}
.hero-mini-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,0.06) 0%, transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(255,255,255,0.04) 0%, transparent 40%);
}
.hero-mini-skyline {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
  background: url("/theme/images/hero-skyline.svg") no-repeat center bottom;
  background-size: cover;
  pointer-events: none;
}
.hero-mini-content {
  position: relative; z-index: 2;
  padding: 16px 24px;
  max-width: 42%;
  margin-left: auto;
  margin-right: 110px;
}
.hero-mini-title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 4px;
}
.hero-mini-title span { color: #7dd3fc; }
.hero-mini-sub {
  color: rgba(255,255,255,0.75);
  font-size: 11px;
  margin-bottom: 10px;
}
.hero-mini-cta-row { display: flex; gap: 8px; }
.hero-mini-cta {
  display: inline-block;
  background: #05a21b;
  color: #fff !important;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(5,162,27,0.3);
  transition: transform 0.15s;
}
.hero-mini-cta:hover { transform: translateY(-1px); }
.hero-mini-cta2 {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff !important;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 4px;
  text-decoration: none;
}
.hero-mini-cta2:hover { background: rgba(255,255,255,0.2); }
.hero-mini-stats {
  position: absolute; bottom: 12px; right: 24px; z-index: 2;
  display: flex; gap: 18px;
}
.hero-mini-stat { text-align: center; color: #fff; }
.hero-mini-stat strong {
  display: block; font-size: 16px; font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.hero-mini-stat small {
  font-size: 9px; opacity: 0.65; text-transform: uppercase;
  letter-spacing: 0.3px;
}
/* Hide hero-mini on mobile — bannertop already hidden by bootstrap.min.css */

/* --- NavTop — top utility bar --- */
.navTop {
  background: var(--color-primary-dark) !important;
  color: rgba(255,255,255,0.85) !important;
  font-size: var(--text-xs);
  padding: 6px 0;
  font-family: var(--font-sans);
}
.navTop .wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.navTop .address {
  font-size: var(--text-xs);
  opacity: 0.8;
  margin-right: auto;
}
.navTop .hotline {
  font-size: var(--text-xs);
  font-weight: 500;
}
.navTop .hotline a {
  font-weight: 700 !important;
  letter-spacing: 0.3px;
}
.navTop a {
  color: rgba(255,255,255,0.9) !important;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.navTop a:hover { color: #fff !important; }

/* --- Login/Register bar in navTop --- */
.login-registered {
  display: flex;
  align-items: center;
}
.login-registered ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.login-registered ul li {
  font-size: var(--text-xs);
  white-space: nowrap;
}
.login-registered ul li a {
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}
.login-registered ul li a:hover {
  background: rgba(255,255,255,0.12);
}
.login-registered ul li a i.fa {
  margin-right: 3px;
}
/* Login Modal Overlay */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  padding: 32px;
  width: 400px;
  max-width: 92vw;
  position: relative;
  animation: loginModalIn 0.2s ease-out;
}
@keyframes loginModalIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.login-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.login-modal-close:hover { color: #333; }
.login-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 24px;
  font-family: var(--font-sans);
}
/* Input fields with icon */
.login-field {
  position: relative;
  margin-bottom: 12px;
}
.login-field > .fa {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 15px;
}
.login-field input[type="text"],
.login-field input[type="password"],
#tendangnhap,
#matkhau {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 12px 14px 12px 40px !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
  font-size: 15px !important;
  font-family: var(--font-sans) !important;
  background-image: none !important;
  background-color: #fff !important;
  color: var(--color-text) !important;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  margin-bottom: 0 !important;
}
.login-field input:focus {
  border-color: var(--color-primary) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(5,86,153,0.1);
}
/* Password visibility toggle */
.pwd-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #999;
  font-size: 16px;
  line-height: 1;
}
.pwd-toggle:hover { color: #555; }
/* Submit button — override theme.min.css height:28px */
.login-modal .submit-dn {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  line-height: normal !important;
  padding: 14px !important;
  background: var(--color-accent) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  font-size: 16px !important;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  margin-bottom: 12px;
  transition: background var(--transition-fast);
  white-space: normal !important;
}
.login-modal .submit-dn:hover {
  background: #048a17 !important;
}
/* Remember + Forgot row */
.login-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.login-row .remember {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  cursor: pointer;
  margin: 0;
}
.login-row .remember input[type="checkbox"] { margin-right: 4px; }
.login-row .forgot-link {
  font-size: var(--text-xs);
  color: var(--color-accent) !important;
  text-decoration: none;
}
.login-row .forgot-link:hover { text-decoration: underline; }
/* Divider */
.login-divider {
  text-align: center;
  margin-bottom: 16px;
  position: relative;
}
.login-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid var(--color-border);
}
.login-divider span {
  background: #fff;
  padding: 0 12px;
  position: relative;
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}
/* Google button — override theme.min.css .loginBtn color:#fff + ::before pseudo */
.login-modal .loginBtn--google,
.loginBtn--google {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
  background: #f8f8f8 !important;
  color: #333 !important;
  font-size: 15px !important;
  font-family: var(--font-sans) !important;
  cursor: pointer;
  text-decoration: none !important;
  transition: background var(--transition-fast);
  box-sizing: border-box !important;
  margin: 0 !important;
  position: relative;
  line-height: normal !important;
  text-shadow: none !important;
}
.login-modal .loginBtn--google:before,
.loginBtn--google:before {
  display: none !important;
}
.loginBtn--google:hover { background: #eee !important; }
.loginBtn--google .fa {
  color: #4285f4 !important;
  font-size: 18px;
}
/* Register link */
.login-register-link {
  text-align: center;
  margin-top: 16px;
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}
.login-register-link a {
  color: var(--color-primary) !important;
  font-weight: 600;
}
/* === Registration page card === */
/* ============ v6.9.24 — Trang đăng ký 2-cột (banner brand + form, batdongsan-style) ============ */
/* Full-width: ẩn cột trái + slider (như users/bao-gia) */
.wrapper.register-page-layout .ColLeft,
.wrapper.register-page-layout #wowslider-container1 { display: none !important; }
.wrapper.register-page-layout .ColCenter {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}
.register-page-layout .HomeTitle { display: none; }  /* tiêu đề đã nằm trong banner/card */
/* Bỏ border 3-cạnh của container theme (tạo cảm giác không full-width) */
.register-page-layout .ContentPagePadd { border: 0 !important; padding: 0 !important; }

.register-2col {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 0;
  width: 100%;
  max-width: 1000px;
  margin: 28px auto 56px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0,0,0,.10);
  overflow: hidden;
}
/* Banner trái — gradient brand + skyline + tagline */
.register-banner {
  position: relative;
  /* Xanh đen (navy sâu) — hợp tông xanh chủ đạo, làm nổi xanh lá + xanh dương của logo */
  background: linear-gradient(150deg, #082744 0%, #0b3860 55%, #0e4470 100%);
  color: #fff;
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.register-banner-inner { position: relative; z-index: 2; max-width: 420px; }
.register-banner-logo {
  height: 46px; width: auto; margin-bottom: 26px;
  background: #fff; padding: 6px 10px; border-radius: 8px;
}
.register-banner-title {
  font-family: var(--font-sans);
  font-size: 28px; font-weight: 700; line-height: 1.28;
  margin: 0 0 14px; color: #fff;
}
.register-banner-sub {
  font-size: 14px; line-height: 1.6; opacity: .92; margin: 0 0 20px;
}
.register-banner-feats {
  list-style: none; padding: 0; margin: 0;
}
.register-banner-feats li {
  font-size: 14px; line-height: 1.5; margin-bottom: 10px;
  display: flex; align-items: flex-start; gap: 9px;
}
.register-banner-feats li i { color: #7fe0a0; margin-top: 2px; font-size: 15px; }
.register-banner-skyline {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%;
  opacity: .28; z-index: 1; pointer-events: none;
  filter: brightness(0) invert(1);   /* skyline trắng mờ trên nền xanh */
}
@media (max-width: 768px) {
  .register-2col { grid-template-columns: 1fr; max-width: 480px; }
  .register-banner { padding: 28px 26px; }
  .register-banner-title { font-size: 20px; }
  .register-banner-feats { display: none; }   /* gọn trên mobile */
}

.register-card {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border-radius: 0;               /* nằm trong .register-2col đã bo góc */
  box-shadow: none;
  padding: 36px 34px;
}
@media (max-width: 768px) { .register-card { padding: 28px 22px; } }
.register-google-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px !important;
  background: #f8f8f8 !important;
  color: #333 !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
  font-size: var(--text-md) !important;
  font-weight: 500;
  text-decoration: none !important;
  transition: background 0.15s;
  box-sizing: border-box;
}
.register-google-btn:hover { background: #eee !important; }
.register-google-btn::before { display: none !important; }

/* Avatar upload */
.register-avatar {
  text-align: center;
  margin-bottom: 16px;
}
.register-avatar #thumbbox {
  margin-bottom: 8px;
}
.register-avatar #thumbpicture {
  border-radius: 50%;
}
.register-avatar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #f5f5f5;
  border: 1px dashed #ccc;
  border-radius: var(--radius-md);
  color: #666;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.register-avatar-btn:hover {
  background: #eee;
  border-color: #999;
  color: #333;
}

/* Form fields — icon-prefixed inputs, same style as login modal */
.register-field {
  position: relative;
  margin-bottom: 12px;
}
.register-field > .fa {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 14px;
  z-index: 1;
}
.register-field input {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 12px 14px 12px 40px !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
  font-size: var(--text-md) !important;
  background: #fff !important;
  outline: none !important;
  transition: border-color 0.15s;
  float: none !important;
  height: auto !important;
  max-width: 100% !important;
}
.register-field input:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(5,86,153,0.08);
}
.register-field .pwd-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  padding: 4px;
  font-size: 14px;
}

.register-hint {
  font-size: 12px;
  color: #999;
  margin: -6px 0 12px 0;
  padding-left: 40px;
}

/* Gender radio row */
.register-gender {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: #fafafa;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.register-gender-label {
  font-weight: 500;
  color: #555;
  font-size: var(--text-sm);
}
.register-gender label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-sm);
  color: #333;
  cursor: pointer;
}
.register-gender input[type="radio"] {
  margin: 0;
  accent-color: var(--color-primary);
}

/* Submit button */
.register-submit {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--color-accent);
  color: #fff !important;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-md);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 8px;
}
.register-submit:hover { background: #048a17; }

.register-login-link {
  text-align: center;
  margin-top: 16px;
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}
.register-login-link a {
  color: var(--color-primary) !important;
  font-weight: 600;
}

/* Forgot password intro */
.forgot-intro {
  text-align: center;
  margin-bottom: 20px;
  padding: 16px;
  background: #f0f7ff;
  border-radius: var(--radius-md);
}
.forgot-intro-icon {
  font-size: 32px;
  color: var(--color-primary);
  margin-bottom: 8px;
  display: block;
}
.forgot-intro p {
  margin: 0;
  font-size: var(--text-sm);
  color: #555;
  line-height: 1.5;
}

/* Account management section labels */
.account-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  margin: 20px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8e8e8;
}
.account-section-label:first-of-type { margin-top: 0; }
.account-section-label .fa { font-size: 14px; }

/* Override legacy dk-item styles for register-card */
.register-card .dk-item,
.register-card .dk-left,
.register-card .dk-right {
  float: none !important;
  width: 100% !important;
}

/* Error box inside register card */
.register-card + .NotiWarning,
.ContentPagePadd > .NotiWarning {
  max-width: 480px;
  margin: 0 auto 16px;
  border-radius: var(--radius-md);
}

@media (max-width: 600px) {
  .register-card {
    padding: 20px 16px;
    margin: 0 -5px;
  }
}

/* Override legacy .dangtin-dangnhap in footer.php */
.dangtin-dangnhap {
  width: 100% !important;
  box-sizing: border-box;
}

/* --- Logo area — square, matches live site size (~130px) --- */
.header .logo {
  padding: 0 !important;
  float: none !important;
  width: 130px !important;
  min-width: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
}
.header .logo img {
  width: 120px !important;
  height: 120px !important;
  object-fit: contain;
  display: block;
  padding: 5px;
}
.header .logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 100%;
  height: 100%;
}
.header .logo .site-title {
  margin: 0;
  padding: 0;
}
.header .logo .site-title span {
  display: none;
}

/* --- Navigation bar --- */
.menu {
  background: var(--color-primary) !important;
  border-radius: 0;
  overflow: visible;
}

ul#navigation {
  display: flex !important;
  flex-wrap: nowrap !important;
  float: none !important;
  margin: 0;
  padding: 0;
  width: 100%;
}

ul#navigation > li {
  float: none !important;
  flex-shrink: 0;
  margin: 0 !important;
  position: relative;
}

ul#navigation > li > a {
  font-family: var(--font-sans) !important;
  font-size: var(--text-sm) !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,0.9) !important;
  padding: 12px 16px !important;
  background: none !important;
  transition: background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
  line-height: 1.2 !important;
}

ul#navigation > li:hover > a {
  background: var(--color-accent) !important;
  color: #fff !important;
  border-radius: var(--radius-sm);
}

ul#navigation > li.active > a {
  background: var(--color-accent) !important;
  color: #fff !important;
  border-radius: var(--radius-sm);
}

/* Khi hover item khác, bỏ highlight active */
ul#navigation:hover > li.active > a {
  background: none !important;
}
ul#navigation:hover > li.active:hover > a {
  background: var(--color-accent) !important;
}

/* Dropdown menus */
ul#navigation > li > ul {
  display: none;
  visibility: visible !important;
  opacity: 1 !important;
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 9999;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: none !important;
  border-top: 2px solid var(--color-accent) !important;
  background: var(--color-primary-dark) !important;
  width: max-content;
  list-style: none;
  padding: 4px 0;
  margin: 0;
}

/* Show dropdown on hover */
ul#navigation > li:hover > ul {
  display: block !important;
}

ul#navigation ul li {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
ul#navigation ul li:last-child {
  border-bottom: none;
}

ul#navigation ul li a {
  font-family: var(--font-sans) !important;
  font-size: var(--text-sm) !important;
  padding: 9px 16px !important;
  color: rgba(255,255,255,0.9) !important;
  white-space: nowrap;
  display: block;
  transition: background var(--transition-fast), padding-left var(--transition-fast);
}

ul#navigation ul li a:hover {
  background: var(--color-accent) !important;
  padding-left: 20px !important;
}

/* Sub-dropdown (level 3) */
ul#navigation ul ul {
  left: 100%;
  top: 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  border-top: none !important;
  border-left: 2px solid var(--color-accent) !important;
}

/* CTA — Đăng tin */
.navTop a[href*="dang-tin"],
.header a[href*="dang-tin"],
a.btn-dang-tin {
  background: var(--color-accent) !important;
  color: #fff !important;
  padding: 5px 14px !important;
  border-radius: var(--radius-full) !important;
  font-weight: 700 !important;
  font-size: var(--text-xs) !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background var(--transition-base), transform var(--transition-base) !important;
}

.navTop a[href*="dang-tin"]:hover,
.header a[href*="dang-tin"]:hover,
a.btn-dang-tin:hover {
  background: var(--color-accent-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* Responsive header — mobile simplification */
@media (max-width: 768px) {
  .navTop .address {
    display: none;
  }
  .navTop .hotline { font-size: 12px; }
  .navTop .wrapper {
    justify-content: space-between;
  }
  /* Top user-bar (khi đăng nhập) có nhiều mục → tràn ngang 390px. Mobile fix:
     ẩn lời chào (item rộng nhất, chỉ trang trí) + cho wrap làm lưới an toàn +
     nén padding/gap. Không đụng desktop (nằm trong @media). */
  .navtop-greeting { display: none !important; }
  .login-registered ul {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 2px 4px;
  }
  .login-registered ul li a { padding: 3px 6px; }
  .header { padding: 8px 0 !important; background: #fff !important; line-height: normal; font-size: 14px; }
  .logo img, .logo a img { max-height: 36px !important; height: auto !important; width: auto !important; }
  .header .wrapper { text-align: center; display: block; }
  .header .logo { width: auto !important; min-width: 0; height: auto; background: #fff !important; }
  .bannertop.hero-mini { display: none !important; }
  .login-modal {
    padding: 24px 20px;
    width: 92vw;
  }
}

/* ===== END HEADER ===== */

/* ==========================================================
   Phase 03: Property Card Redesign
   ========================================================== */

/* ContentPage container — remove old border */
.ContentPage {
  border: none !important;
  padding: 0;
}

/* Card wrapper */
.bdsItem {
  background: var(--color-card);
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  padding: 0 !important;
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.bdsItem:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Legacy listing elements removed — all pages now use render_listing_card() */

/* Card body: image left + content right */
.bdsItemBody {
  display: flex;
  gap: 14px;
  padding: 12px;
  background: var(--color-card);
  align-items: stretch;
}

/* Image container */
.bdsItemImg {
  position: relative;
  width: 190px;
  flex-shrink: 0;
  border: none !important;
  padding: 0 !important;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  float: none !important;
}
.bdsItemImg a { display: block; overflow: hidden; }
.bdsItemImg img {
  width: 190px;
  height: 130px;
  aspect-ratio: 190 / 130;
  object-fit: cover !important;
  border-radius: var(--radius-md);
  display: block;
  transition: transform var(--transition-slow);
}
.bdsItem:hover .bdsItemImg img { transform: scale(1.04); }

/* Content area — fills remaining space */
.bdsItemContent {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Title */
.bdsItemTitle {
  font-family: var(--font-sans);
  font-weight: 500 !important; /* [B] 600→500: Lexend geometric ở 600 trông "dày", giảm cho thanh thoát (vs batdongsan Roboto mảnh) */
  font-size: 14px !important;
  color: var(--color-text) !important;
  line-height: 1.4;
  text-transform: uppercase; /* Đồng nhất listing (batdongsan-style). Visual-only — detail dùng <h1> riêng nên KHÔNG hoa. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none !important;
}
.bdsItemTitle:hover { color: var(--color-primary) !important; }
.bdsItemTitle h2,
.bdsItemTitle h3,
.bdsItemTitle h4 {
  font-size: inherit !important;
  font-weight: inherit !important;
  margin: 0;
}

/* Attributes line (phòng ngủ, tầng, mặt đường, KT) */
.bdsItemAttrs {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  line-height: 1.5;
}
.bdsItemAttrs span {
  white-space: nowrap;
}
.bdsAttrSep {
  margin: 0 6px;
  color: var(--color-text-disabled);
  font-weight: 700;
}

/* Price row: Giá · Diện tích · Đơn giá */
.bdsItemPriceRow {
  display: flex;
  align-items: baseline;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 4px;
}
.bdsItemPriceRow .bdsPrice {
  color: var(--color-error) !important;
  font-weight: 600 !important;
  font-size: var(--text-md) !important;
}
.bdsItemPriceRow .bdsPricePerM2,
.bdsItemPriceRow .bdsAttr {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-weight: 400;
  white-space: nowrap;
}
/* [E] Diện tích đỏ nổi bật cạnh giá (giống batdongsan). 14px — cùng cỡ meta, chỉ khác màu đỏ để nhấn. */
.bdsItemPriceRow .bdsArea {
  font-size: var(--text-sm) !important;
  color: var(--color-error) !important;
  font-weight: 600 !important;
  white-space: nowrap;
}
.bdsItemPriceRow .bdsAttrSep {
  margin: 0 8px;
  font-size: var(--text-sm) !important; /* 14px — đồng bộ chữ xám (trước kế thừa 15px trông to hơn giá) */
  font-weight: 400 !important;          /* bớt đậm (trước 700) → dấu · không lấn */
}
.bdsItemPriceRow .bdsAttr i {
  color: #999;
  margin-right: 3px;
  font-size: 13px;
}

/* Location */
.bdsItemLocation {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  margin-top: 0;
}
.bdsItemLocation i {
  margin-right: 4px;
  font-size: 13px;
}

/* Mobile responsive */
@media (max-width: 640px) {
  /* card image sizing handled by the single 768px block (120x90, object-fit:cover) — see below */
  .bdsItemPriceRow .bdsPrice { font-size: var(--text-sm) !important; }
}

/* Card footer: poster info + favorite — inside content, no border */
.bdsCardFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 4px;
}
.bdsCardPoster {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.bdsCardAvatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
}
.bdsCardAvatarIcon {
  font-size: 28px;
  color: var(--color-text-disabled);
  flex-shrink: 0;
}
.bdsAvatarInitial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 600;
  font-family: var(--font-sans);
  flex-shrink: 0;
  vertical-align: middle;
}
/* Header avatar */
.login-registered .bdsCardAvatar {
  vertical-align: middle;
  margin-right: 2px;
}
/* Detail page poster avatar — keep label + avatar + name aligned */
.detail-info-cell .di-value .bdsCardAvatar {
  vertical-align: middle;
  margin-right: 4px;
}
.detail-info-cell .di-value:has(.bdsCardAvatar) {
  display: inline-flex;
  align-items: center;
}
.bdsCardPosterInfo {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.bdsCardPosterName {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
}
.bdsCardPosterNameTxt {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.bdsCardPosterName .verified-badge { flex-shrink: 0; }
.bdsCardPosterTime {
  font-size: 11px;
  color: var(--color-text-secondary);
}
.bdsCardFav {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast), border-color var(--transition-fast);
  flex-shrink: 0;
}
.bdsCardFav:hover {
  color: var(--color-error);
  border-color: var(--color-error);
}
.bdsCardFav.is-fav {
  color: var(--color-error);
  border-color: var(--color-error);
}

/* ===== END NEW CARD LAYOUT ===== */

/* VIP cards — per-tier styles applied via .bdsItemVIP1–4 */

/* ===== SKELETON LOADING (CSS-only) ===== */
.skeleton-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-card);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-img  { height: 190px; }
.skeleton-line { height: 14px; margin: 8px 12px; border-radius: 4px; }
.skeleton-line.short  { width: 55%; }
.skeleton-line.xshort { width: 35%; }

/* ===== LAZY IMAGE FADE-IN ===== */
.bdsItemImg img[loading="lazy"] {
  opacity: 0;
  transition: opacity var(--transition-slow);
}
.bdsItemImg img[loading="lazy"].img-loaded { opacity: 1; }

/* ===== VIP BADGES & CARD STYLING (v4.3.0) ===== */
/* Colors: Kim Cương=#dc2626 (ruby), Vàng=#d4a017 (gold medal), Bạc=#8a8d90 (silver medal), Đồng=#b87333 (bronze medal) */

/* Ribbon — top-left overlay on listing image (batdongsan.com.vn style) */
.bdsBadgeVip {
  position: absolute; top: 0; left: 0;
  padding: 3px 10px; border-radius: 0 0 6px 0;
  font-size: 11px; font-weight: 700; color: #fff;
  letter-spacing: 0.3px; text-transform: uppercase;
  z-index: 1;
  line-height: 1.4;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.bdsBadgeVip1 { background: linear-gradient(135deg, #b91c1c, #ef4444); }
.bdsBadgeVip2 { background: linear-gradient(135deg, #c99700, #e8b800); }
.bdsBadgeVip3 { background: linear-gradient(135deg, #6b6e72, #8a8d90); }
.bdsBadgeVip4 { background: linear-gradient(135deg, #a0522d, #c46a2e); font-size: 10px; }

/* Card border per VIP tier — 1px, !important overrides .bdsItem base border */
.bdsItemVIP1 { border: 1px solid #dc2626 !important; background: #fff5f5; }
.bdsItemVIP2 { border: 1px solid #c99700 !important; background: #fffce8; }
.bdsItemVIP3 { border: 1px solid #8a8d90 !important; background: #f9f9fa; }
.bdsItemVIP4 { border: 1px solid #c46a2e !important; background: #fdf5ee; }

/* Mobile: smaller ribbon */
@media (max-width: 480px) {
  .bdsBadgeVip { font-size: 10px; padding: 2px 8px; }
  .bdsBadgeVip4 { font-size: 9px; }
}

/* Post management — per-tier card borders */
.__itemVIP1 { border-left: 4px solid #dc2626; background: #fff5f5; }
.__itemVIP2 { border-left: 4px solid #c99700; background: #fffce8; }
.__itemVIP3 { border-left: 4px solid #8a8d90; background: #f9f9fa; }
.__itemVIP4 { border-left: 4px solid #c46a2e; background: #fdf5ee; }

/* Per-tier VIP label colors */
.__tinvip-1 { color: #dc2626 !important; }
.__tinvip-2 { color: #c99700 !important; }
.__tinvip-3 { color: #6b6e72 !important; }
.__tinvip-4 { color: #a0522d !important; }

/* ===== END PROPERTY CARD ===== */

/* ===== VIP ANALYTICS DASHBOARD ===== */
.analytics-section { padding: 12px 0; }
.analytics-stats { display: flex; gap: 12px; margin-bottom: 12px; }
.analytics-stat {
  flex: 1; text-align: center; padding: 12px 8px;
  background: #f8fafc; border-radius: 8px; border: 1px solid #e2e8f0;
}
.analytics-stat i { display: block; font-size: 20px; color: var(--color-primary); margin-bottom: 4px; }
.analytics-stat b { display: block; font-size: 22px; color: #1e293b; }
.analytics-stat span { font-size: 12px; color: #64748b; }
.analytics-comparison {
  padding: 8px 12px; margin-bottom: 12px; border-radius: 6px;
  background: #ecfdf5; color: #065f46; font-size: 13px;
}
.analytics-comparison i { color: #10b981; margin-right: 4px; }
.analytics-comparison--neutral { background: #f0f9ff; color: #0c4a6e; }
.analytics-chart-wrap { margin-top: 8px; }
.analytics-legend { display: flex; gap: 12px; margin-bottom: 6px; font-size: 11px; color: #64748b; }
.analytics-legend-item::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.analytics-legend--views::before { background: var(--color-primary); }
.analytics-legend--clicks::before { background: #f59e0b; }
.analytics-chart {
  display: flex; align-items: flex-end; gap: 2px;
  height: 120px; padding: 4px 0; border-bottom: 1px solid #e2e8f0;
}
.analytics-bar-group {
  flex: 1; display: flex; gap: 1px; align-items: flex-end;
  height: 100%; position: relative; cursor: default;
}
.analytics-bar {
  flex: 1; min-height: 2px; border-radius: 2px 2px 0 0;
  transition: height .2s ease;
}
.analytics-bar--views { background: var(--color-primary); }
.analytics-bar--clicks { background: #f59e0b; }
.analytics-bar-label {
  position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%);
  font-size: 9px; color: #94a3b8; white-space: nowrap;
}
.analytics-bar-group:nth-child(odd) .analytics-bar-label { display: none; }
.analytics-upgrade-hint {
  text-align: center; padding: 8px; font-size: 12px; color: #64748b;
  background: #fefce8; border-radius: 6px; margin-top: 8px;
}
/* ===== END VIP ANALYTICS ===== */

/* ===== VIP DISCOUNT QUICK-SELECT ===== */
.__duration-quick-select { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.__dur-btn {
  padding: 6px 14px; border: 1px solid #d1d5db; border-radius: 6px;
  background: #fff; cursor: pointer; font-size: 13px; transition: all .15s;
}
.__dur-btn:hover, .__dur-btn.active { border-color: var(--color-primary); background: #eff6ff; }
.__dur-discount span { color: #05a21b; font-weight: 600; }
.__savings-row { display: flex; align-items: center; gap: 8px; }
/* ===== END VIP DISCOUNT ===== */

/* ==========================================================
   Phase 04: Search Form Upgrade (sidebar)
   ========================================================== */

/* Search wrapper — modern card */
.search {
  background: var(--color-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 16px;
}

/* Section title */
.TitleBlue {
  background: var(--color-primary) !important;
  font-family: var(--font-sans) !important;
  font-size: var(--text-sm) !important;
  font-weight: 700 !important;
  padding: 10px 14px !important;
  letter-spacing: 0.5px;
  border-radius: 0;
  box-sizing: border-box;
}

/* Left sidebar — prevent text wrapping */
.ColLeft .menuLeft ul li,
.ColLeft .picture_user + ul li {
  white-space: nowrap;
  font-size: 13px;
}
.ColLeft .TitleBlue {
  font-size: 12px;
}

/* Card style for sidebar sections (ColLeft + ColRight) */
.httt,
.facebook,
.tracuu,
.thitruongbds {
  background: var(--color-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 16px;
}

/* ===== SEARCH FORM — v2.12.0 ===== */

/* Tabs: Mua bán / Cho thuê — pill toggle */
.searchItemCheck {
  display: flex;
  padding: 14px 12px 4px !important;
  gap: 6px;
}

.searchItemCheck input[type=radio] + label,
.searchItemCheck input[type=checkbox] + label {
  flex: 1;
  /* min-width:0 lets all 3 tabs share width equally — without it the longest
     word ("nhượng") forces min-content width so "Sang nhượng" grabs extra space */
  min-width: 0;
  width: auto !important;
  background: var(--color-primary-light) !important;
  color: var(--color-primary) !important;
  font-family: var(--font-sans) !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  padding: 9px 5px !important;
  border-radius: var(--radius-sm) !important;
  text-align: center;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  border: 1.5px solid var(--color-primary);
  box-sizing: border-box;
  cursor: pointer;
  line-height: 1.3;
}

.searchItemCheck input[type=radio]:checked + label,
.searchItemCheck input[type=checkbox]:checked + label {
  background: var(--color-primary) !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(5,86,153,0.3);
}

/* Search form items — increased spacing */
.searchItem {
  display: block;
  width: auto !important;
  padding: 5px 12px !important;
  box-sizing: border-box;
}
/* Text input wrapper with clear button */
.searchItem--text { position: relative; }
.search-clear-btn {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  font-size: 16px;
  color: #999;
  cursor: pointer;
  border-radius: 50%;
  background: #eee;
  z-index: 2;
}
.search-clear-btn:hover { color: #333; background: #ddd; }
/* Hero searchbar clear button — flex child, not absolute */
.tk-searchbar .search-clear-btn {
  position: static;
  transform: none;
  width: 24px;
  height: 24px;
  line-height: 24px;
  font-size: 18px;
  flex-shrink: 0;
  margin-right: 4px;
}

/* First item after tabs gets extra top space */
.searchItemCheck + .searchItem {
  padding-top: 10px !important;
}

/* Placeholder color */
.search input::placeholder,
.search select option[value=""],
.search .select-text-content {
  color: #999 !important;
}

/* Shared input/select base — 36px height, 13px font */
.searchItem input[type="text"],
.search .cssSelectbox,
.search select,
.search #TIM_TINHTHANH,
.search .refineText {
  width: 100% !important;
  height: 36px !important;
  padding: 0 10px !important;
  border: 1.5px solid var(--color-border) !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  background-color: #fff !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* Text input specific */
.searchItem input[type="text"] {
  color: var(--color-text) !important;
}

/* Select color: gray when placeholder (value=""), dark when real value chosen.
   JS toggles .has-value on change. Placeholder <option value=""> hidden in dropdown. */
select.cssSelectbox,
.cssSelectboxW select,
.search select {
  color: #999 !important;
}
select.cssSelectbox.has-value,
.cssSelectboxW select.has-value,
.search select.has-value {
  color: var(--color-text) !important;
}
/* Hide placeholder option in dropdown (still shows as selected text when no value) */
select.cssSelectbox option[value=""],
.cssSelectboxW select option[value=""],
.search select option[value=""] {
  display: none;
}
/* Placeholder option (value="") ẩn khỏi danh sách dropdown ở mọi nơi — chỉ hiện như text gợi ý khi chưa chọn.
   (Trước đây dang-tin override để hiện "Không xác định"; bỏ theo yêu cầu ẩn tất cả placeholder khỏi list.) */
/* Real options always dark */
select.cssSelectbox option,
.cssSelectboxW select option,
.search select option {
  color: var(--color-text);
}
/* Optgroup parent labels (e.g. dang-tin Loại BĐS buckets: Đất/Nhà/Căn hộ…) are
   non-selectable group titles — keep them consistently muted, independent of the
   select's .has-value color toggle (otherwise they inherit it and flip gray→dark). */
select.cssSelectbox optgroup {
  color: #999;
  font-weight: 600;
}
select.cssSelectbox optgroup option {
  color: var(--color-text);
  font-weight: 400;
}
/* Hide placeholder li in AdvanceHiddenDropbox (area/price) —
   !important needed because plugin calls .show() which sets inline display:block */
.advance-select-options ul > li[vl="-1"] { display: none !important; }
/* searchBox / wardPrefixCombobox input — gray placeholder, dark committed */
.searchItem input.refineText {
  color: var(--color-text) !important;
  cursor: pointer;
}
.searchItem input.refineText::placeholder { color: #999; opacity: 1; }
/* Advance combobox (area/price) — dark when has value */
.advance-select-box .select-text {
  color: #999 !important;
}
.advance-select-box .select-text.hasvalue,
.advance-select-box .select-text.hasvalue .select-text-content {
  color: var(--color-text) !important;
}

/* Focus state — all inputs + selects */
.searchItem input[type="text"]:focus,
.search .cssSelectbox:focus,
.search select:focus,
.search .refineText:focus {
  outline: none !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(5,86,153,0.12) !important;
}

/* Submit button — prominent CTA */
.submit-s {
  background: var(--color-accent) !important;
  border: none !important;
  outline: none !important;
  border-radius: var(--radius-sm) !important;
  padding: 11px 20px !important;
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  cursor: pointer !important;
  transition: background 0.2s, box-shadow 0.2s !important;
  width: 100%;
  margin: 10px 0 4px !important;
}

.submit-s:hover {
  background: var(--color-accent-dark) !important;
  box-shadow: 0 2px 8px rgba(5,162,27,0.3);
}

/* Advance dropdowns (price, area) — match input height */
.advance-select-box {
  width: 100% !important;
  height: 36px !important;
  border: 1.5px solid var(--color-border) !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  box-sizing: border-box !important;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.advance-select-box .select-text {
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  color: #999 !important;
  padding: 0 10px !important;
  height: 36px !important;
  line-height: 34px !important;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Advance dropdown popup — modern overlay */
.advance-select-options {
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
  border: 1px solid var(--color-border) !important;
  overflow: hidden;
}

.advance-select-options .header-options {
  background: var(--color-primary-light) !important;
  border-bottom: 1px solid var(--color-border) !important;
}

.advance-select-options .header-options input[type="text"] {
  height: 32px !important;
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--color-border) !important;
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  padding: 0 6px !important;
  text-align: center;
  width: 60px !important;
}

.advance-select-options .header-options input[type="text"]:focus {
  outline: none;
  border-color: var(--color-primary) !important;
}

.advance-select-options ul li {
  padding: 7px 10px !important;
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  transition: background 0.15s;
}

.advance-select-options ul li:hover,
.advance-select-options ul li.current {
  background: var(--color-primary-light) !important;
  color: var(--color-primary) !important;
}

/* Bottom padding inside search form */
#frmsearchBDS {
  padding-bottom: 10px;
}

/* ===== END SEARCH FORM ===== */

/* ===== RIGHT COLUMN (ColRight) — v2.12.0 ===== */

/* Hỗ trợ trực tuyến */
.httt {
  border-radius: var(--radius-md) !important;
  overflow: hidden;
}

.httt ul {
  border: none !important;
  padding: 14px 16px 10px 30px !important;
  margin: 0 !important;
  list-style: none !important;
}

.httt ul li {
  margin-bottom: 6px;
}

.HtttHotline {
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--color-text-secondary) !important;
  text-align: left !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
  white-space: nowrap !important;
}

.HtttHotline span {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--color-primary) !important;
  letter-spacing: 0.3px;
}

.httt .zalo,
.httt .skype {
  text-align: center;
  margin-bottom: 4px;
}

.httt .HtttEmail {
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  text-align: center;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.httt .HtttEmail a {
  color: var(--color-primary);
  text-decoration: none;
}

.httt .HtttEmail a:hover {
  text-decoration: underline;
}

/* Theo dõi Fanpage */
.facebook {
  border-radius: var(--radius-md) !important;
  overflow: hidden;
}

.facebook .fb-page,
.facebook .fb-xfbml-parse-ignore {
  padding: 12px;
}

/* Tra cứu tuổi xây nhà */
.tracuu {
  border-radius: var(--radius-md) !important;
  overflow: hidden;
}

.tracuu form {
  padding: 14px 16px 12px !important;
}

.frmyearItem {
  float: none !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  width: 100% !important;
}

.frmyearItem label {
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--color-text-secondary) !important;
  min-width: 70px !important;
  flex-shrink: 0;
}

.frmyearItem input[type="text"] {
  flex: 1 !important;
  height: 36px !important;
  padding: 0 10px !important;
  border: 1.5px solid var(--color-border) !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  color: var(--color-text) !important;
  background: #fff !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.frmyearItem input[type="text"]:focus {
  outline: none !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(5,86,153,0.12) !important;
}

.frmyearItemSelect {
  flex: 1 !important;
  width: auto !important;
}

.frmyearItemSelect select {
  width: 100% !important;
  height: 36px !important;
  padding: 0 10px !important;
  border: 1.5px solid var(--color-border) !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  color: var(--color-text) !important;
  background: #fff !important;
  box-sizing: border-box !important;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: menulist !important;
  -moz-appearance: menulist !important;
  appearance: menulist !important;
}

.frmyearItemSelect select:focus {
  outline: none !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(5,86,153,0.12) !important;
}

/* Tra cứu submit button */
.frmyearItem input[type="submit"] {
  width: 100% !important;
  height: 38px !important;
  background: var(--color-primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background 0.2s, box-shadow 0.2s;
  margin: 0 !important;
}

.frmyearItem input[type="submit"]:hover {
  background: var(--color-primary-dark, #044a82) !important;
  box-shadow: 0 2px 8px rgba(5,86,153,0.3);
}

/* ===== END RIGHT COLUMN ===== */

/* ==========================================================
   Tra cứu tuổi xây nhà — modern utility page (v5.6.0)
   ========================================================== */

/* Intro content (SEO + CMS merged) */
.tc-intro {
  padding: 14px !important;
  margin: 0 10px 16px !important;
  line-height: 1.7;
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.tc-intro p { margin: 0 0 10px; text-align: justify; }
.tc-intro h2 { font-size: 14px; margin: 12px 0 4px; color: var(--color-text); }
.tc-intro-bottom { margin-top: 20px !important; }
.tc-intro .DetailC { font-size: var(--text-sm); line-height: 1.7; color: var(--color-text-secondary); }

/* Form card */
.tc-form-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 10px 20px;
}
.tc-form-header {
  background: var(--color-primary);
  color: #fff;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-sans);
}
.tc-form-header i { margin-right: 8px; }
.tc-form-body {
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.tc-field {
  flex: 1;
  min-width: 140px;
  position: relative;
}
.tc-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
  font-family: var(--font-sans);
}
.tc-field label i { width: 16px; text-align: center; margin-right: 4px; color: var(--color-primary); }
.tc-field input[type="text"],
.tc-field select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-text);
  background: #fff;
  box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
}
.tc-field input[type="text"]:focus,
.tc-field select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(5,86,153,.12);
}
.tc-field label.error {
  position: absolute;
  bottom: -18px;
  left: 0;
  font-size: 12px;
  color: var(--color-error);
  font-weight: 400;
}
.tc-submit {
  height: 44px;
  padding: 0 28px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
  white-space: nowrap;
}
.tc-submit:hover {
  background: var(--color-accent-dark);
  box-shadow: 0 2px 8px rgba(5,162,27,.3);
}
.tc-submit i { margin-right: 6px; }

/* Results section */
.tc-results { padding: 0 10px; }

/* Summary card — year / gender / cung */
.tc-summary-card {
  background: var(--color-primary-light);
  border: 1px solid rgba(5,86,153,.15);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 16px;
}
.tc-summary-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.tc-summary-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tc-summary-label {
  font-size: 12px;
  color: var(--color-text-secondary);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.tc-summary-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-sans);
}
.tc-cung { color: var(--color-error); }

/* Alert boxes */
.tc-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
  font-family: var(--font-sans);
}
.tc-alert > i { font-size: 18px; margin-top: 1px; flex-shrink: 0; }
.tc-alert-warning {
  background: #fff8e1;
  border: 1px solid #ffe082;
  color: #7a5d00;
}
.tc-alert-warning > i { color: #f59e0b; }

/* Section titles */
.tc-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  font-family: var(--font-sans);
  margin: 20px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}
.tc-section-title i { margin-right: 6px; color: var(--color-primary); }

/* Direction grid — 8 cards */
.tc-dir-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.tc-dir-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid;
  transition: transform .15s, box-shadow .15s;
}
.tc-dir-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.tc-dir-card.tc-good {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.tc-dir-card.tc-bad {
  background: #fef2f2;
  border-color: #fecaca;
}
.tc-dir-rank {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  font-family: var(--font-sans);
}
.tc-good .tc-dir-rank { background: #059669; color: #fff; }
.tc-bad .tc-dir-rank { background: #dc2626; color: #fff; }
.tc-dir-body { flex: 1; min-width: 0; }
.tc-dir-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  font-family: var(--font-sans);
}
.tc-dir-name i { margin-right: 4px; font-size: 12px; }
.tc-good .tc-dir-name i { color: #059669; }
.tc-bad .tc-dir-name i { color: #dc2626; }
.tc-dir-meaning {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: 1px;
}
.tc-dir-badge {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  font-family: var(--font-sans);
}
.tc-good .tc-dir-badge { color: #059669; }
.tc-bad .tc-dir-badge { color: #dc2626; }
.tc-dir-badge i { margin-right: 3px; }

/* Note */
.tc-note {
  font-size: 13px;
  color: var(--color-text-secondary);
  font-style: italic;
  margin-bottom: 8px;
}
.tc-note i { margin-right: 4px; color: var(--color-primary); }

/* House direction check card */
.tc-check-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}
.tc-check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tc-check-row label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  font-family: var(--font-sans);
  white-space: nowrap;
}
.tc-check-row select {
  flex: 1;
  min-width: 160px;
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-text);
  background: #fff;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color .2s;
}
.tc-check-row select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(5,86,153,.12);
}
.tc-check-result {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  font-family: var(--font-sans);
}
.tc-check-result:empty { display: none; }
.tc-check-remedy {
  margin-top: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.6;
  font-family: var(--font-sans);
}
.tc-check-remedy:empty { display: none; }
.tc-remedy-good {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #065f46;
}
.tc-remedy-bad {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .tc-form-body { flex-direction: column; gap: 12px; }
  .tc-field { min-width: 100%; }
  .tc-submit { width: 100%; }
  .tc-dir-grid { grid-template-columns: 1fr; }
  .tc-summary-row { gap: 12px; }
  .tc-check-row { flex-direction: column; align-items: stretch; }
}

/* ==========================================================
   Phase 05: Mobile Optimization
   ========================================================== */

/* Bottom Navigation — ẩn trên desktop, hiện mobile */
/* Hide orphaned nav#menu (mmenu source element no longer consumed by JS) */
nav#menu { display: none; }

.bottom-nav-upgrade {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--color-border);
  z-index: 300;
  padding: 6px 0 env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
}

/* Desktop + tablet 2-col: hide bottom nav from 992px (P02.2) */
@media (min-width: 992px) {
  .bottom-nav-upgrade { display: none !important; }
}

/* Mobile: hide desktop menu */
@media (max-width: 768px) {
  .menu { display: none; }
}

/* Nav item */
.bni {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  color: var(--color-text-secondary);
  text-decoration: none !important;
  padding: 4px;
  min-height: 50px;
  transition: color var(--transition-fast);
  font-family: var(--font-sans);
}

.bni svg { transition: transform var(--transition-fast); }
.bni:active svg { transform: scale(0.88); }
.bni--active { color: var(--color-primary) !important; }

/* Đăng tin — accent */
.bni--post {
  color: var(--color-accent) !important;
  font-weight: 600;
}
/* Gọi — hotline contact (surfaced on mobile where ColRight hotline/Zalo is hidden) */
.bni--call { color: #16a34a !important; }

/* Touch-friendly min 44px cho interactive elements */
@media (max-width: 768px) {
  .bni span { font-size: 10px; }

  /* Search form — full width on mobile */
  .search { border-radius: 0; }
  .searchItem { padding: 4px 8px; }

  /* Cards — single column spacing */
  .bdsItem { margin-bottom: 8px; border-radius: var(--radius-sm); }
}

/* ==========================================================
   Phase 04: Mobile Card & Layout Polish
   ========================================================== */
@media (max-width: 768px) {
  /* Card spacing */
  .bdsItemBody {
    margin-bottom: 10px;
    border-radius: var(--radius-md);
  }
  .bdsItemImg {
    width: 120px;
    height: 90px;
    overflow: hidden;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
  }
  .bdsItemImg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .bdsItemContent { padding: 8px 10px; }
  .bdsItemTitle a { font-size: 14px; line-height: 1.4; }
  .bdsItemPriceRow { font-size: 14px; }
  .bdsItemLocation { font-size: 12px; }

  /* Tab touch-friendly */
  .tabs1 .tabs li a {
    padding: 10px 14px;
    font-size: 14px;
  }

  /* Pagination touch targets */
  .pagination li a, .pagination li b {
    min-width: 40px;
    height: 40px;
    font-size: 14px;
  }

  /* Body padding for bottom nav (+ safe-area so content clears the nav on notched devices) */
  body { padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 14px); }
}

/* ==========================================================
   Category Drawer — slide-up panel (mobile)
   ========================================================== */
.category-drawer { visibility: hidden; pointer-events: none; }
.category-drawer.is-open { visibility: visible; pointer-events: auto; }
.category-drawer__overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 10000; opacity: 0; transition: opacity 0.3s ease;
}
.category-drawer.is-open .category-drawer__overlay { opacity: 1; }
.category-drawer__panel {
  position: fixed; bottom: 0; left: 0; right: 0;
  max-height: 70vh; background: #fff;
  border-radius: 16px 16px 0 0; z-index: 10001;
  overflow-y: auto; transform: translateY(100%);
  transition: transform 0.3s ease;
}
.category-drawer.is-open .category-drawer__panel { transform: translateY(0); }
.category-drawer__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--color-border);
  font-size: 16px;
}
.category-drawer__close {
  background: none; border: none; font-size: 28px;
  color: var(--color-text-secondary); cursor: pointer; padding: 0 4px;
  line-height: 1;
}
.category-drawer__list {
  list-style: none; margin: 0; padding: 0;
}
.category-drawer__list li a {
  display: block; padding: 14px 20px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text); font-size: 15px;
  text-decoration: none;
}
.category-drawer__list li a i {
  width: 24px; text-align: center; margin-right: 12px;
  color: var(--color-primary); font-size: 16px;
}
.category-drawer__list li a:active {
  background: var(--color-primary-light);
}

/* ==========================================================
   Dự án cards & grid (v5.4.0)
   ========================================================== */

/* Breadcrumb */
.da-breadcrumb {
  padding: 10px 15px;
  font-size: 13px;
  color: #666;
}
.da-breadcrumb a { color: var(--color-primary); text-decoration: none; }
.da-breadcrumb a:hover { text-decoration: underline; }
.da-sep { margin: 0 4px; color: #999; }

/* Filter tabs — server-side links */
.daFilterTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding: 0 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.daFilterTab {
  padding: 7px 18px;
  color: #475569;
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  background: #fff;
  transition: all .2s;
}
.daFilterTab:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: #f0f7ff;
  text-decoration: none;
}
.daFilterTab.active {
  color: #fff;
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* Card grid */
.daGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
  padding: 0 10px;
}

/* Card */
.daCard {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.daCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.daCardImg {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.daCardImg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.daCardBody {
  padding: 12px 14px;
}
.daCardTitle {
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.daCardTitle a {
  color: inherit;
  text-decoration: none;
}
.daCardTitle a:hover {
  color: var(--color-primary);
}
.daCardLocation,
.daCardArea {
  font-size: var(--text-sm);
  color: #64748b;
  margin-bottom: 4px;
}
.daCardLocation i,
.daCardArea i {
  width: 14px;
  text-align: center;
  margin-right: 6px;
  color: var(--color-primary);
}

/* Badge — top-left corner of image */
.daBadge {
  position: absolute;
  top: 0;
  left: 0;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: #6b7280;
  border-radius: 0 0 6px 0;
  z-index: 2;
}
.daBadge-807 { background: var(--color-primary); }
.daBadge-808 { background: #6b7280; }
.daBadge-809 { background: #0d9488; }
.daBadge-810 { background: #d97706; }
.daBadge-811 { background: #7c3aed; }
.daBadge-812 { background: #059669; }

/* Detail page info */
.daDetailInfo {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 16px 0;
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: var(--radius-md);
}
.daDetailInfoItem {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 45%;
  font-size: var(--text-md);
}
.daDetailInfoItem i {
  width: 16px;
  text-align: center;
  color: var(--color-primary);
}
.daDetailLabel {
  font-weight: 600;
  color: #374151;
}
.daDetailValue {
  color: #1f2937;
}

/* Responsive */
@media (max-width: 1069px) {
  .daGrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .daGrid { grid-template-columns: 1fr; }
  /* horizontal scroll instead of wrap — keeps pills on one row with spacing */
  .daFilterTabs { flex-wrap: nowrap; gap: 6px; }
  .daFilterTab { padding: 6px 14px; font-size: 12px; }
  .daDetailInfo { flex-direction: column; gap: 8px; }
  .daDetailInfoItem { min-width: 100%; }
}

/* ==========================================================
   Article Cards — VnExpress style (v5.5.0)
   ========================================================== */
.ttCard { display: flex; gap: 15px; padding: 15px 10px; border-bottom: 1px solid #eee; }
.ttCardImg { flex-shrink: 0; width: 240px; }
.ttCardImg img { width: 100%; aspect-ratio: 5/3; object-fit: cover; border-radius: var(--radius-md); }
.ttCardBody { flex: 1; min-width: 0; }
.ttCardTitle { font-size: var(--text-md); font-weight: 600; margin: 0 0 6px; line-height: 1.4; }
.ttCardTitle a { color: var(--color-text); text-decoration: none; }
.ttCardTitle a:hover { color: var(--color-primary); }
.ttCardExcerpt { font-size: var(--text-sm); color: #555; line-height: 1.5; margin-bottom: 6px;
  text-align: justify; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ttCardDate { font-size: 12px; color: #999; }
.ttCardGroup { color: var(--color-primary); font-weight: 500; }

/* Hero variant — larger thumbnail, same horizontal layout */
.ttHero { border-bottom: 2px solid var(--color-primary); padding-bottom: 20px; margin-bottom: 10px; }
.ttHero .ttCardImg { width: 340px; }
.ttHero .ttCardImg img { aspect-ratio: 16/10; }
.ttHero .ttCardTitle { font-size: var(--text-lg); }
.ttHero .ttCardExcerpt { -webkit-line-clamp: 4; }

/* Related articles section */
.ttRelated { margin-top: 20px; border-top: 2px solid var(--color-primary); padding-top: 15px; }
.ttRelatedTitle { font-size: var(--text-md); font-weight: 600; margin: 0 0 10px; color: var(--color-text); }

@media (max-width: 640px) {
  .ttCardImg { width: 120px; }
  .ttCardImg img { aspect-ratio: 4/3; }
  .ttHero { flex-direction: column; }
  .ttHero .ttCardImg { width: 100%; }
  .ttHero .ttCardImg img { aspect-ratio: 16/10; }
  /* narrow column + justify = ugly word gaps; left-align on mobile */
  .ttCardExcerpt { text-align: left; }
}

/* ==========================================================
   Detail Page — Map Section (Leaflet + OpenStreetMap)
   ========================================================== */
.detail-map-section { margin: 16px 0; }
.detail-map-section .detail-info-heading { margin-bottom: 8px; }
#map_canvas_detail { border-radius: var(--radius-md); border: 1px solid #e0e0e0; }
.leaflet-search-item:hover { background: #f0f7ff; }
/* Cooperative map scroll hint overlay (hiện khi cuộn thường trên map — nhắc ctrl+scroll để zoom) */
.map-coop-hint{ position:absolute; inset:0; z-index:450; display:flex; align-items:center; justify-content:center; text-align:center; padding:12px; color:#fff; font-size:16px; font-weight:600; background:rgba(0,0,0,.5); opacity:0; visibility:hidden; transition:opacity .2s; pointer-events:none; }
.map-coop-hint.is-show{ opacity:1; visibility:visible; }

/* ==========================================================
   Detail Page — Floating Sidebar Toolbar (Báo xấu + TOP)
   ========================================================== */
/* --- Floating button stack (unified) ---
   Single flex container: TOP, Báo xấu (detail only), Báo lỗi, Chat
   All 44px circles, even gap guaranteed by flexbox */
.fbs {
  position: fixed;
  bottom: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 9990;
  overflow: visible;
}
.fbs-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  position: relative;
  border: none;
}
.fbs-btn:hover {
  transform: scale(1.08);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.fbs-btn i { font-size: 17px; line-height: 1; }

/* Scroll-triggered buttons — hidden initially */
.fbs-scroll-btn { display: none; }

/* Color variants */
.fbs-btn--white { background: #fff; color: #64748b; }
.fbs-btn--white:hover { color: var(--color-primary); }
.fbs-btn--blue { background: #31B0D5; color: #fff; }
.fbs-btn--red { background: linear-gradient(135deg, #e03c31 0%, #c0392b 100%); color: #fff; }

/* Hide old #mybutton (now replaced by .fbs-btn--blue inside .fbs) */
#mybutton { display: none !important; }

@media (max-width: 768px) {
  .fbs { bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 10px); }
  .fbs-scroll-btn { display: none !important; }
}

/* ==========================================================
   Phase 05: Mobile Detail Page — Floating CTA
   ========================================================== */
.detail-float-cta { display: none; }

@media (max-width: 768px) {
  .detail-float-cta {
    display: block;
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 4px);
    left: 0; right: 0;
    padding: 8px 12px;
    z-index: 9990;
    background: rgba(255,255,255,0.95);
    border-top: 1px solid var(--color-border);
  }
  .detail-float-cta__btn {
    display: block;
    background: var(--color-accent);
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
  }
  .detail-float-cta__btn:hover { color: #fff; text-decoration: none; }
}

/* Info table responsive at very small screens */
@media (max-width: 480px) {
  .detail-info-row { flex-direction: column; }
  .detail-info-cell + .detail-info-cell {
    border-left: none;
    border-top: 1px solid var(--color-border);
  }
}

/* ===== END MOBILE ===== */

/* ==========================================================
   Phase 06: Performance Optimization
   ========================================================== */

/* CSS containment — removed: contain:layout collapses flex children to 0 height */

/* ===== END PERFORMANCE ===== */

/* Tab tin tức — fit all tabs on one row */
.tabs2 .tabs {
  display: flex !important;
  flex-wrap: nowrap !important;
  float: none !important;
}
.tabs2 .tabs li {
  float: none !important;
  flex: 1;
  text-align: center;
}
.tabs2 .tabs li a {
  display: block !important;
  padding: 8px 6px 7px !important;
  white-space: nowrap;
}
.tabs2 .tabs li h3 {
  font-size: 13px !important;
  margin: 0;
}

/* ==========================================================
   Property Detail — Info Table (batdongsan.com.vn style)
   v2.0 — Enhanced UI with better hierarchy, spacing, CTA
   ========================================================== */

/* Detail page title — prominent, clear hierarchy */
.ContentPagePadd .HomeTitle {
  margin-bottom: 12px;
}
.ContentPagePadd .HomeTitle h1 {
  font-size: var(--text-xl) !important;
  font-weight: 700 !important;
  line-height: 1.35;
  color: var(--color-text);
}

/* Section heading */
.detail-info-heading {
  font-family: var(--font-sans) !important;
  font-size: var(--text-base) !important;
  font-weight: 600 !important;
  color: var(--color-primary);
  margin: 20px 0 8px;
  padding: 0 0 6px;
  display: block;
  border-bottom: 2px solid var(--color-primary);
}

/* Grid table container */
.detail-info-table {
  width: 100%;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: visible;
}

/* Each row in the grid */
.detail-info-row {
  display: flex;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.detail-info-row:nth-child(odd) {
  background: rgba(5,86,153,0.02);
}
.detail-info-row:last-child {
  border-bottom: none;
}

/* Each cell — takes half width by default */
.detail-info-cell {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 5px 14px;
  min-height: 32px;
  border-right: 1px solid rgba(0,0,0,0.06);
}
.detail-info-cell:last-child {
  border-right: none;
}

/* Full-width cell (for address, notes, etc.) */
.detail-info-cell.full {
  flex: 0 0 100%;
  border-right: none;
}

/* Icon */
.detail-info-cell .di-icon {
  width: 22px;
  text-align: center;
  margin-right: 10px;
  color: var(--color-primary);
  font-size: 15px;
  flex-shrink: 0;
  opacity: 0.7;
}

/* Label */
.detail-info-cell .di-label {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: 400;
  white-space: nowrap;
  margin-right: 8px;
  min-width: 120px;
}
/* Hint tooltip — modern style */
.di-hint {
  cursor: help;
  color: var(--color-primary);
  font-size: 13px;
  opacity: .5;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin-left: 2px;
  transition: opacity .2s;
}
.di-hint:hover { opacity: 1; }
.di-hint::after,
.di-hint::before {
  visibility: hidden;
  opacity: 0;
  transition: opacity .2s, visibility .2s;
  pointer-events: none;
}
.di-hint::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-60%);
  background: #1e293b;
  color: #f1f5f9;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .01em;
  white-space: normal;
  width: 280px;
  z-index: 200;
  box-shadow: 0 4px 16px rgba(0,0,0,.18), 0 1px 3px rgba(0,0,0,.1);
}
.di-hint::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1e293b;
  z-index: 201;
}
.di-hint:hover::after,
.di-hint:hover::before {
  visibility: visible;
  opacity: 1;
}

/* Value */
.detail-info-cell .di-value {
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 500;
  word-break: break-word;
}

/* Price value — red bold */
.detail-info-cell .di-value.price {
  color: var(--color-error);
  font-weight: 700;
  font-size: var(--text-lg);
}

/* Phone CTA — prominent clickable style */
.detail-info-cell .di-value .full-phone,
.detail-info-cell .di-value .less-phone {
  color: var(--color-accent);
  font-weight: 600;
  font-size: var(--text-base);
  cursor: pointer;
  transition: color var(--transition-fast);
}
.detail-info-cell .di-value .less-phone:hover,
.detail-info-cell .di-value .full-phone:hover {
  color: var(--color-accent-dark);
}

/* Override old bdsProDetail styles */
.bdsProDetail.detail-modern {
  margin-top: 10px;
}
.bdsProDetail.detail-modern ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Khu vực link row */
.detail-info-location {
  padding: 5px 14px;
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-size: var(--text-sm);
  background: var(--color-primary-light);
}
.detail-info-location .di-icon {
  width: 20px;
  text-align: center;
  color: var(--color-primary);
  font-size: 15px;
  flex-shrink: 0;
}
.detail-info-location .di-label {
  color: var(--color-text);
  font-weight: 500;
}
.detail-info-location a {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.detail-info-location a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}
.detail-info-location .di-breadcrumb {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.detail-info-location .dib-sep {
  color: var(--color-text-light);
  font-weight: 400;
}
.detail-info-location .dib-current {
  color: var(--color-text);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 640px) {
  .detail-info-row {
    flex-wrap: wrap;
  }
  .detail-info-cell {
    flex: 0 0 100%;
    border-right: none;
  }
  .ContentPagePadd .HomeTitle h1 {
    font-size: var(--text-lg) !important;
  }
}

/* Post meta bar (ngày đăng, loại tin, mã tin) */
.detail-post-meta {
  display: flex;
  gap: 0;
  margin: 16px 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 7px 16px;
  clear: both;
}
.detail-post-meta-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
  position: relative;
}
.detail-post-meta-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--color-border);
}
.detail-post-meta-item .dpm-label {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.3;
}
.detail-post-meta-item .dpm-value {
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 600;
  line-height: 1.3;
}
@media (max-width: 640px) {
  .detail-post-meta {
    flex-wrap: wrap;
    padding: 10px 12px;
  }
  .detail-post-meta-item {
    flex: 0 0 33.33%;
    margin-bottom: 0;
  }
  .detail-post-meta-item:not(:last-child)::after {
    display: none;
  }
}

/* Detail content body — readable, no hyperlinks */
.DetailC.DetailProperty {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  color: #333;
  margin-top: 16px;
}
.DetailC.DetailProperty a {
  color: inherit !important;
  text-decoration: none !important;
  pointer-events: none;
  cursor: text;
}
.DetailC.DetailProperty .line {
  height: 12px;
}

/* Breadcrumb in detail page */
.breadcrumb-property {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  margin: 16px 0;
  font-size: var(--text-xs);
}
.breadcrumb-property a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 400;
  transition: color var(--transition-fast);
}
.breadcrumb-property a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}
.breadcrumb-property i {
  color: var(--color-text-secondary);
  font-size: 10px;
}

/* Image/map tabs upgrade */
.tabs2.tabs2Bor {
  margin-top: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.tabs2.tabs2Bor .tabs {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.tabs2.tabs2Bor .tabs li a {
  font-size: var(--text-sm) !important;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}
.tabs2.tabs2Bor .tabs li a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background: var(--color-card);
}

/* Sidebar .view images — center crop */
.view {
  overflow: hidden;
}
.view img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ===== END DETAIL INFO TABLE ===== */

/* Login error message — override absolute positioning for responsive layout */
.Error_Login {
  position: static !important;
  width: 100% !important;
  text-align: center;
  padding: 4px 0;
  font-size: 13px;
  color: #ff4444;
  background: rgba(255, 68, 68, 0.1);
  border-radius: var(--radius-sm);
}

/* ==========================================================
   PROVINCE LINKS + MENUBOT — v2.0
   ========================================================== */

/* Province links grid */
.nhadattt {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: var(--radius-lg) !important;
  padding: 20px 24px 16px !important;
  margin: 16px 0 20px !important;
  position: relative;
}
.nhadattt ul {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
}
.nhadattt li {
  list-style: none !important;
  border-bottom: none !important;
  padding: 6px 0 !important;
  font-size: var(--text-sm) !important;
  width: 20% !important;
}
.nhadattt li a {
  color: var(--color-text) !important;
  text-decoration: none !important;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
  display: inline-block;
}
.nhadattt li a:hover {
  color: var(--color-primary) !important;
  text-decoration: none !important;
  padding-left: 3px;
}
.nhadattt li a b,
.nhadattt a h3 b,
.nhadattt a h4 b {
  font-weight: 600 !important;
  color: var(--color-primary);
}
.nhadattt a h3,
.nhadattt a h4 {
  font-size: inherit !important;
  font-weight: 400 !important;
  margin: 0 !important;
}
/* Comma-separated inline mode (non-home pages) */
.nhadattt > a {
  display: inline;
  font-size: var(--text-sm);
  color: var(--color-text) !important;
}
.nhadattt > a:hover {
  color: var(--color-primary) !important;
}
.nhadattt > a h3 {
  display: inline !important;
  font-size: var(--text-sm) !important;
}
/* Show more / collapse buttons */
span.show_text,
span.hide_text {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  color: var(--color-primary) !important;
  padding: 4px 14px !important;
  cursor: pointer;
  font-weight: 500;
  transition: background var(--transition-fast), color var(--transition-fast);
}
span.show_text:hover,
span.hide_text:hover {
  background: var(--color-primary) !important;
  color: #fff !important;
}

/* Menubot bar (links above footer) */
.menubot {
  background: var(--color-primary) !important;
  padding: 0 !important;
  border-radius: 0;
}
.menubot ul {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menubot li {
  background: none !important;
  padding: 10px 16px !important;
  font-size: var(--text-sm) !important;
  position: relative;
}
.menubot li::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.25);
}
.menubot li.last-child::after {
  display: none;
}
.menubot li a {
  color: rgba(255,255,255,0.9) !important;
  font-size: var(--text-sm) !important;
  text-transform: none !important;
  transition: background .2s, color .2s;
  letter-spacing: 0.01em;
  padding: 6px 10px;
  border-radius: 4px;
}
.menubot li a:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.15);
}

/* ==========================================================
   FOOTER — Modern layout v2.0
   ========================================================== */

/* Footer, menubot, navBot — layer above fixed side banners (z-index:0) */
.menubot,
.footer,
.navBot {
  position: relative;
  z-index: 1;
}

/* Main footer */
.footer {
  background: #0a1628 !important;
  color: #c5d3e8 !important;
  padding: 32px 0 20px !important;
  overflow: hidden;
}
.footer a {
  color: #8bb8e8 !important;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer a:hover {
  color: #fff !important;
}

/* Footer grid — 3 columns */
.footer .infofooter {
  float: left;
  width: 38%;
  position: relative;
  padding-right: 20px;
  box-sizing: border-box;
}
.footer .menufooter {
  float: left;
  width: 25%;
  box-sizing: border-box;
  padding-right: 10px;
}

/* Company name */
.infofooterT {
  font-size: var(--text-lg) !important;
  font-family: var(--font-sans) !important;
  font-weight: 700 !important;
  color: #fff !important;
  /* Match menu-title line-box (15px × 1.5 = 22.5px) so this larger title's text
     + underline align with the other 2 columns instead of sitting lower */
  line-height: 22.5px !important;
  border-bottom: 1px solid rgba(255,255,255,0.12) !important;
  padding: 0 0 10px !important;
  margin-bottom: 12px;
}

/* Info list */
.infofooter ul {
  padding: 0;
  margin: 0;
}
.infofooter ul li {
  font-family: var(--font-sans) !important;
  font-size: var(--text-sm) !important;
  padding-bottom: 6px !important;
  padding-left: 90px !important;
  position: relative;
  list-style: none;
  color: #c5d3e8;
  line-height: 1.5;
}
/* Kill legacy theme.min/style.css extra line under title:
   .infofooter ul li.first-child { border-top:1px solid #044a83; padding-top:15px }
   (first <li> gets .first-child via legacy JS). Other 2 columns have no such line. */
.infofooter ul li:first-child,
.infofooter ul li.first-child {
  border-top: 0 !important;
  padding-top: 6px !important;
}
.infofooter ul li label {
  font-weight: 500;
  color: #8bb8e8;
  width: 85px;
  position: absolute;
  left: 0;
}

/* Trust badges (BCT + DMCA) — inside infofooter, below contact info */
.footer-badges {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-badges a {
  display: inline-block;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}
.footer-badges a:hover {
  opacity: 1;
}
/* Override theme.min.css .bct { position:absolute; width:180px } */
.footer-badges .bct {
  position: static !important;
  bottom: auto !important;
  right: auto !important;
  left: auto !important;
}
.footer-badges .bct img {
  width: auto !important;
  height: 32px !important;
  max-height: 32px;
}
.footer-badges .dmca-badge img {
  width: auto !important;
  height: 28px !important;
  max-height: 28px;
}
.footer-badges img {
  max-height: 32px;
  width: auto !important;
  display: block;
}

/* Footer menu columns */
.menufooter ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.menufooter ul li {
  background: none !important;
  padding: 4px 0 !important;
  font-size: var(--text-sm);
  font-family: var(--font-sans) !important;
}
.menufooter ul li:first-child {
  font-size: var(--text-base) !important;
  color: #fff !important;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0 0 10px !important;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  background: none !important;
}
.menufooter ul li:first-child a {
  color: #fff !important;
  font-weight: 600;
}
.menufooter ul li a {
  font-size: var(--text-sm) !important;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}
.menufooter ul li a:hover {
  padding-left: 4px;
}

/* .footermxh — removed, badges moved inside .infofooter */

/* Bottom bar (copyright + social) */
.navBot {
  background: #06101e !important;
  color: rgba(255,255,255,0.7) !important;
  padding: 12px 0 !important;
  font-family: var(--font-sans) !important;
  font-size: var(--text-sm);
}
.navBot .wrapper {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.navBot label {
  float: none !important;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.6);
}
.navBot a {
  color: rgba(255,255,255,0.7) !important;
}

/* Social icons */
.social-icons {
  display: flex;
  gap: 8px;
  float: none !important;
}
.social-icons .social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7) !important;
  font-size: 16px;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.social-icons .social-link:hover {
  background: var(--color-primary);
  color: #fff !important;
  transform: translateY(-2px);
}

/* Desktop column balancing — "MUA BÁN NHÀ ĐẤT" has 14 items (twice the others),
   so flow its list into 2 sub-columns (title spans full width) and use the spare
   right-side space. Keeps all 3 columns similar height → footer stays compact. */
@media (min-width: 769px) {
  /* zero bootstrap's .infofooter margin-right:65px — it pushed the 3rd column past
     1200px so menu2 dropped to a new row; widths below already include the gaps */
  .footer .infofooter { width: 34%; margin-right: 0; }
  .footer .menufooter.menufooter1 { width: 36%; }
  .footer .menufooter.menufooter2 { width: 28%; }
  .footer .menufooter.menufooter1 ul {
    column-count: 2;
    column-gap: 24px;
  }
  .footer .menufooter.menufooter1 ul li {
    break-inside: avoid;
  }
  .footer .menufooter.menufooter1 ul li:first-child {
    column-span: all;   /* title + underline span both sub-columns */
  }
}

/* Responsive footer */
@media (max-width: 768px) {
  .footer .infofooter {
    float: none;
    width: 100%;
    padding-right: 0;
    margin-bottom: 20px;
  }
  .footer .menufooter {
    float: none;
    width: 100%;
    margin-bottom: 16px;
  }
  .footer .menufooter.menufooter1 ul {
    column-count: 1;   /* single stacked list on mobile */
  }
  .menufooter ul li:first-child {
    padding-top: 0 !important;
  }
  .navBot .wrapper {
    justify-content: center;
    text-align: center;
  }
  .navBot label {
    width: 100%;
    text-align: center;
  }
  /* Province links — 3 columns on tablet */
  .nhadattt li {
    width: 33.33% !important;
  }
  .nhadattt {
    padding: 14px 16px 12px !important;
  }
}

/* ==========================================================
   FANCYBOX v3 — Override defaults for site consistency
   ========================================================== */

.fancybox-slide--inline .fancybox-content {
  background: #fff;
  padding: 0;
}

/* ==========================================================
   POST MANAGEMENT — /quan-ly-tin-dang/
   Fix layout overflow: remove absolute positioning,
   use normal flow so buttons don't overlap content
   ========================================================== */

.__post-lst .__item {
  overflow: hidden;
}

/* Hide mobile-only section on desktop */
.__post-lst .__for-mobile {
  display: none;
}

.__post-lst .__item .__main-info {
  width: calc(100% - 142px); /* 130px img + 12px padding */
  min-width: 0;
}

.__post-lst .__item .__main-info .__infor-col {
  width: calc(100% - 180px);
  padding-right: 10px;
  padding-bottom: 0;
  position: static;
  min-width: 0;
}

.__post-lst .__item .__sub-infor-col {
  width: 170px;
  min-width: 170px;
  position: static;
  padding-bottom: 0;
  font-size: 13px;
  box-sizing: border-box;
}
.__post-lst .__item .__sub-infor-col a {
  box-sizing: border-box;
  max-width: 100%;
}

.__post-lst .__action {
  display: flex;
  flex-wrap: wrap;
  position: static;
  margin-top: 8px;
  gap: 4px 0;
}

.__post-lst .__action a {
  padding: 3px 8px;
  margin-right: 6px;
  font-size: 13px;
  white-space: nowrap;
}

.__gia-han-up-goi {
  position: static;
  margin-top: 8px;
}

.__gia-han-up-goi a,
.__up-tin-tu-dong a {
  padding: 3px 8px !important;
  width: 100% !important;
  font-size: 12px;
  text-align: center;
  box-sizing: border-box;
}

.__up-tin-tu-dong {
  position: static;
  margin-top: 6px;
}

.__post-lst .__item .__title {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.__post-lst .__address {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.__post-lst .__matin,
.__post-lst .__date,
.__post-lst .__address,
.__luot-xem,
.__tinh-trang-tin {
  font-size: 13px;
  flex-wrap: wrap;
}

/* Tablet */
@media (max-width: 969px) and (min-width: 767px) {
  .__post-lst .__item .__main-info .__infor-col {
    width: calc(100% - 130px);
  }
  .__post-lst .__item .__sub-infor-col {
    width: 130px;
    min-width: 130px;
  }
  .__post-lst .__action a {
    margin-bottom: 4px;
  }
}

/* Mobile */
@media (max-width: 766px) {
  .__post-lst .__for-mobile {
    display: block;
    padding-left: 8px;
    width: 50%;
  }
  .__post-lst .__item .__main-info {
    width: 100%;
  }
  .__post-lst .__item .__main-info .__infor-col {
    width: 100%;
    padding: 0;
    margin-top: 12px;
  }
  .__post-lst .__action {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 12px;
  }
  .__post-lst .__action a {
    margin-right: 4px;
    padding: 4px 6px;
    font-size: 12px;
    text-align: center;
  }
  .__post-lst .__item .__sub-infor-col.__mobile .__gia-han-up-goi {
    margin-top: 6px;
  }
}

/* ==========================================================
   HOMEPAGE UI UPGRADE v2.0
   ========================================================== */

/* --- HomeTitle — section headings --- */
.HomeTitle {
  border: none !important;
  border-bottom: 2px solid var(--color-primary) !important;
  padding: 8px 0 !important;
  margin-bottom: 12px;
  background: none !important;
  display: flex;
  align-items: center;
}
.HomeTitle h2,
.HomeTitle h1,
.HomeTitle a {
  font-size: var(--text-lg) !important;
  font-weight: 700 !important;
  color: var(--color-primary) !important;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-left: 1%;
  white-space: nowrap;
}
/* Detail page: title bài là .HomeTitle h1 (section heading listing dùng h2/a). Bỏ hoa → hiển thị
   bình thường như batdongsan (listing hoa qua .bdsItemTitle, detail giữ nguyên chữ gốc). */
.HomeTitle h1 { text-transform: none; white-space: normal; }
.HomeTitle strong { font-weight: 700; }

/* --- Dự án nổi bật carousel --- */
.HDuAn {
  margin-bottom: 20px;
}
.HDuAnCoursesItem {
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-card) !important;
  padding: 0 !important;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.HDuAnCoursesItem:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.HDuAnCoursesItem img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}
.HDuAnCoursesName {
  position: relative !important;
  background: var(--color-card) !important;
  padding: 8px 10px !important;
  text-align: center;
}
.HDuAnCoursesName a {
  font-size: var(--text-sm) !important;
  font-weight: 500 !important;
  color: var(--color-text) !important;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.HDuAnCoursesItem:hover .HDuAnCoursesName a {
  color: var(--color-primary) !important;
}

/* Owl carousel nav arrows */
.HDuAnCourses .owl-nav button {
  background: var(--color-primary) !important;
  color: #fff !important;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  font-size: 18px !important;
  line-height: 28px !important;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}
.HDuAnCourses .owl-nav button:hover {
  opacity: 1;
}

/* --- Tin hot (marquee/ticker) --- */
.HTinhot {
  background: var(--color-primary-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin-bottom: 16px;
}
.HTinhot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.HTinhot li {
  padding: 4px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: var(--text-sm);
}
.HTinhot li:last-child {
  border-bottom: none;
}
.HTinhot li a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.HTinhot li a:hover {
  color: var(--color-primary);
}

/* --- Main tabs (Mua bán / Cho thuê) --- */
.tabs1 .tabs {
  background: var(--color-primary) !important;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
}
.tabs1 .tabs li {
  font-size: var(--text-base) !important;
}
.tabs1 .tabs li a {
  padding: 10px 0 9px !important;
  font-weight: 500;
  transition: background var(--transition-fast);
}
.tabs1 .tabs li a:hover:not(.active) {
  background: rgba(255,255,255,0.1);
}
.tabs1 .tabs li a.active {
  background: var(--color-accent) !important;
  font-weight: 600;
}
.tabs1 .tabs li a h2 {
  font-size: var(--text-base) !important;
  font-weight: inherit !important;
  margin: 0;
}
.tabs1 .tabsC {
  border: 1px solid var(--color-border) !important;
  border-top: none !important;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* --- Article tabs (Tin tức / Phong thủy / ...) --- */
.tabs2 .tabs {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
}
.tabs2 .tabs li a h3 {
  font-weight: 500 !important;
}

/* tabTinItem (article cards in tabs) */
.tabTinItem {
  width: 48% !important;
  margin-bottom: 12px !important;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-card);
  transition: box-shadow var(--transition-base);
  box-sizing: border-box;
}
.tabTinItem:hover {
  box-shadow: var(--shadow-sm);
}
.tabTinItemR {
  float: right !important;
}
/* m4: stack article cards 1-up on small phones (2-up at 46vw was too cramped) */
@media (max-width: 480px) {
  .tabTinItem, .tabTinItemR {
    width: 100% !important;
    float: none !important;
  }
}
.tabTinItemImg {
  width: 120px !important;
  margin-right: 10px !important;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.tabTinItemImg img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-sm);
}
.tabTinItemName {
  margin-bottom: 6px !important;
  font-size: var(--text-sm) !important;
}
.tabTinItemName a {
  color: var(--color-text) !important;
  font-weight: 500 !important;
  line-height: 1.35;
}
.tabTinItem:hover .tabTinItemName a {
  color: var(--color-primary) !important;
}
.tabTinItemPreview {
  font-size: var(--text-xs) !important;
  color: var(--color-text-secondary) !important;
  line-height: 1.5 !important;
}

/* Pagination — compact style
   showPageNavigation() outputs <ul class="pagination"><li>...</li></ul>
   Must use !important to beat theme.min.css .pagination li { background:#069 } */
ul.pagination {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 4px;
  list-style: none !important;
  padding: 16px 0 !important;
  margin: 0 !important;
  flex-wrap: wrap;
  float: none !important;
}
ul.pagination li {
  min-width: 28px;
  height: 28px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 4px !important;
  font-size: 12px !important;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid var(--color-border) !important;
  background: #fff !important;
  color: var(--color-text) !important;
  list-style: none !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-weight: 500;
}
ul.pagination li a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px !important;
  color: var(--color-text) !important;
  text-decoration: none !important;
  background: transparent !important;
  margin: 0 !important;
  border-radius: 4px;
}
ul.pagination li b {
  color: var(--color-text-secondary);
  font-weight: 400;
  padding: 0 2px;
}
ul.pagination li:hover {
  background: var(--color-primary-light, #e8f0fe) !important;
  border-color: var(--color-primary) !important;
}
ul.pagination li:hover a {
  color: var(--color-primary) !important;
}
ul.pagination li.active {
  cursor: pointer;
}
ul.pagination li.active.current,
ul.pagination li.active.current:hover {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #fff !important;
  font-weight: 600;
  cursor: default;
}
ul.pagination li.active a {
  color: inherit !important;
}
ul.pagination li.inactive,
ul.pagination li.inactive:hover {
  background: #f8fafc !important;
  border-color: transparent !important;
  color: #94a3b8 !important;
  cursor: default;
}
ul.pagination li.dots,
ul.pagination li.dots:hover {
  border: none !important;
  background: transparent !important;
  cursor: default;
  min-width: auto;
}
ul.pagination li.dots span {
  color: var(--color-text-secondary);
  font-weight: 400;
  letter-spacing: 2px;
}

/* SEO description block — clean typography */
#seo-description-bottom {
  background: var(--color-card) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-md);
  padding: 20px 24px !important;
  margin: 16px 0 !important;
  box-shadow: none !important;
  overflow: hidden;
  position: relative;
}
#seo-description-bottom .inner-content {
  overflow: hidden;
  position: relative;
  /* Preview gọn ~5 dòng (override style.css height:350px). Nút "Xem thêm" expand phần còn lại. */
  height: 130px;
}
#seo-description-bottom h2 {
  font-size: var(--text-lg) !important;
  font-weight: 700 !important;
  color: var(--color-primary) !important;
  margin: 18px 0 8px !important;
  line-height: 1.4;
}
#seo-description-bottom h2:first-child {
  margin-top: 0 !important;
}
#seo-description-bottom p {
  font-size: var(--text-sm) !important;
  color: var(--color-text) !important;
  line-height: 1.7 !important;
  margin: 0 0 12px !important;
}
#seo-description-bottom ul {
  padding-left: 20px;
  margin: 0 0 12px;
}
#seo-description-bottom li {
  font-size: var(--text-sm) !important;
  color: var(--color-text) !important;
  line-height: 1.7;
  margin-bottom: 6px;
}
#seo-description-bottom a {
  color: var(--color-primary) !important;
  text-decoration: none;
}
#seo-description-bottom a:hover {
  text-decoration: underline;
}
#seo-description-bottom em {
  font-style: italic;
  color: inherit;
}
/* Override any inline font-size/color from old WYSIWYG */
#seo-description-bottom span[style] {
  font-size: inherit !important;
  color: inherit !important;
  font-family: inherit !important;
}
/* Bài SEO cuối trang — cỡ chữ compact ĐỒNG BỘ trên MỌI trang (listing bán/thuê, search, dang-tin):
   body ~13px, h2 15px, h3 14px. Trước đây chỉ scope .__dang-tin-page; nay áp global để đồng bộ. */
#seo-description-bottom,
#seo-description-bottom div,
#seo-description-bottom p,
#seo-description-bottom li,
#seo-description-bottom span,
#seo-description-bottom em,
#seo-description-bottom strong,
#seo-description-bottom a {
  font-size: 13px !important;
  line-height: 1.6 !important;
}
#seo-description-bottom h2 { font-size: 15px !important; line-height: 1.4 !important; margin: 12px 0 6px !important; }
#seo-description-bottom h3 { font-size: 14px !important; line-height: 1.4 !important; margin: 10px 0 5px !important; }
#seo-description-bottom { padding: 16px 18px !important; }

/* Responsive homepage */
@media (max-width: 640px) {
  .tabTinItem {
    width: 100% !important;
    float: none !important;
  }
  .tabTinItemR {
    float: none !important;
  }
  .HDuAnCoursesItem img {
    height: 100px;
  }
}

/* Post management tabs — active = green, a.active override consistent */
.tabs1.tab_menu_tin_dang .tabs li.active,
.tabs1.tab_menu_tin_dang .tabs li a.active {
  background: #05a21b !important;
}

/* Post management tabs — hover & active */
.tabs1.tab_menu_tin_dang .tabs li:not(.active) {
  opacity: .65;
  transition: opacity .2s;
}
.tabs1.tab_menu_tin_dang .tabs li:not(.active):hover {
  opacity: 1;
  background: rgba(255,255,255,.15);
  cursor: pointer;
}

/* Admin "Duyệt tin" tab — no special color when inactive, only green when active */

/* ----------------------------------------------------------
   Gia Hạn & Úp Tin Tự Động popups — shared form layout
   ---------------------------------------------------------- */
#form-popup-giahan .formPostItemF,
#form-popup-giahan .formPostItem,
#form-popup-uptintudong .formPostItemF,
#form-popup-uptintudong .formPostItem {
  display: flex;
  align-items: center;
  float: none;
  width: 100%;
  margin-bottom: 10px;
  clear: both;
  gap: 10px;
}
#form-popup-giahan .formPostItemF > label,
#form-popup-giahan .formPostItem > label {
  float: none;
  flex: 0 0 200px;
  width: 200px !important;
  min-width: 200px;
  line-height: 1.4;
  white-space: nowrap;
}
#form-popup-uptintudong .formPostItemF > label,
#form-popup-uptintudong .formPostItem > label {
  float: none;
  flex: 0 0 240px;
  width: 240px !important;
  min-width: 240px;
  line-height: 1.4;
  white-space: nowrap;
}
#form-popup-giahan .formPostItemF > .input-group,
#form-popup-giahan .formPostItemF > div:not(.loaded):not(#NotiWarning),
#form-popup-giahan .formPostItem > div,
#form-popup-uptintudong .formPostItemF > .input-group,
#form-popup-uptintudong .formPostItemF > div:not(.loaded):not(#UpAutoNotiWarning),
#form-popup-uptintudong .formPostItemF > select,
#form-popup-uptintudong .formPostItemF > .dual-listbox {
  flex: 1;
  min-width: 0;
}
#form-popup-uptintudong .dual-listbox .dual-listbox__search {
  width: 318px;
  max-width: 100%;
  box-sizing: border-box;
}
#form-popup-giahan .formPostItemF > .input-group,
#form-popup-uptintudong .formPostItemF > .input-group {
  display: block;
  min-width: 0;
  overflow: visible;
}
#form-popup-giahan .formPostItemF > .input-group .input-group-sm,
#form-popup-uptintudong .formPostItemF > .input-group .input-group-sm {
  display: block;
}
#form-popup-giahan .formPostItemF > .input-group select,
#form-popup-uptintudong .formPostItemF > .input-group select {
  height: 34px;
}
#form-popup-giahan .formPostItemF > .input-group input.form-control,
#form-popup-uptintudong .formPostItemF > .input-group input.form-control {
  height: 32px !important;
  width: 200px !important;
}
/* Icons in labels */
#form-popup-giahan .formPostItemF > label > .fa,
#form-popup-uptintudong .formPostItemF > label > .fa {
  width: 16px;
  text-align: center;
  margin-right: 4px;
  color: var(--color-primary, #055699);
}
/* Note text (VIP description, chú ý) */
#form-popup-giahan .__vip-note,
#form-popup-uptintudong .__vip-note {
  max-width: 100% !important;
  font-size: 12px;
  color: #666;
}
/* Gia Hạn value styles */
#form-popup-giahan .dongia,
#form-popup-giahan .giao_hang,
#form-popup-giahan .tongtien,
#form-popup-giahan .thanhtoan {
  line-height: 1.4;
  font-weight: bold;
  color: var(--color-error, #dc2626);
}
/* Úp Tin Tự Động value styles */
#form-popup-uptintudong .so_lan_x_so_ngay,
#form-popup-uptintudong .tong_lan_up,
#form-popup-uptintudong .tong_tien_up {
  line-height: 1.4;
  font-weight: 600;
  font-size: 14px;
  color: #00A21A;
}
#form-popup-uptintudong .__note-text {
  font-weight: 400;
  color: #666;
  font-size: 12px;
}
/* Thống kê tin đăng popup — prevent table overflow */
.form-popup-thongke .dich-vu .dich-vu-content .cot-2,
.form-popup-thongke .dich-vu .dich-vu-content .cot-3 {
  white-space: normal;
  word-break: break-word;
  font-size: 12px;
}
.form-popup-thongke .dich-vu .dich-vu-content .so-lan-detail {
  flex-wrap: nowrap;
}
.form-popup-thongke .dich-vu .dich-vu-content #up-tu-dong-infor,
.form-popup-thongke .dich-vu .dich-vu-content #up-vip-infor {
  overflow: hidden;
}
/* Mobile: compact labels in popups */
@media (max-width: 640px) {
  #form-popup-giahan .formPostItemF > label,
  #form-popup-giahan .formPostItem > label {
    flex: 0 0 140px !important;
    width: 140px !important;
    min-width: 140px !important;
    font-size: 13px;
  }
  #form-popup-uptintudong .formPostItemF > label,
  #form-popup-uptintudong .formPostItem > label {
    flex: 0 0 160px !important;
    width: 160px !important;
    min-width: 160px !important;
    font-size: 13px;
    white-space: normal !important;
  }
  #form-popup-uptintudong .dual-listbox .dual-listbox__search {
    width: 240px;
  }
  #form-popup-giahan .__vip-note,
  #form-popup-uptintudong .__vip-note {
    margin-left: 0 !important;
    font-size: 11px;
  }
}
/* Small mobile: stack labels above inputs */
@media (max-width: 480px) {
  #form-popup-giahan .formPostItemF,
  #form-popup-giahan .formPostItem,
  #form-popup-uptintudong .formPostItemF,
  #form-popup-uptintudong .formPostItem {
    flex-wrap: wrap;
  }
  #form-popup-giahan .formPostItemF > label,
  #form-popup-giahan .formPostItem > label,
  #form-popup-uptintudong .formPostItemF > label,
  #form-popup-uptintudong .formPostItem > label {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-bottom: 4px;
  }
  /* Province links — 2 columns on mobile */
  .nhadattt li {
    width: 50% !important;
  }
}

/* --- Sidebar: Thị trường BĐS --- */
.thitruongbds {
  border: none !important;
  padding: 0;
}
.thitruongbdsItem {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px !important;
  border-bottom: 1px solid #f0f0f0 !important;
  transition: background 0.15s;
}
.thitruongbdsItem:last-of-type {
  border-bottom: none !important;
}
.thitruongbdsItem:hover {
  background: #f8fafc;
}
.thitruongbdsItemI {
  flex-shrink: 0;
  float: none !important;
  margin: 0 !important;
  width: 72px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
}
.thitruongbdsItemI img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border: none !important;
  border-radius: 6px;
  display: block;
}
.thitruongbdsItemN {
  margin-bottom: 2px !important;
}
.thitruongbdsItemN a {
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: var(--color-text, #1e293b) !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.thitruongbdsItemN a:hover {
  color: var(--color-primary, #055699) !important;
}
.thitruongbdsItemP {
  font-size: 12px !important;
  line-height: 1.4 !important;
  color: #64748b !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
}
.thitruongbdsM {
  padding: 8px 12px !important;
  text-align: right;
  border-top: 1px solid #f0f0f0;
}
.thitruongbdsM a {
  font-family: var(--font-sans) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--color-primary, #055699) !important;
}
.thitruongbdsM a:hover {
  color: var(--color-accent, #05a21b) !important;
}

/* --- Post form: rental price period grid --- */
.__box-wrap .__content .__grid-3-cols.__grid-has-duong {
  grid-template-columns: 1fr 1fr 1.4fr;
}
.__box-wrap .__content ._formPostItem label #DONVIGIA_THUE {
  height: 16px;
  font-size: 11px;
  line-height: 16px;
  padding: 0 2px;
  margin: 0 2px;
  border: 1px solid #ccc;
  border-radius: 3px;
  color: #055ba2;
  vertical-align: middle;
  box-sizing: border-box;
}

/* ===================================================================
   Expired Post Overlay & Indicators (v2.10.0)
   =================================================================== */

/* Thumbnail overlay — "Hết hạn" text on dark background */
.bdsImgExpired::after {
  content: 'Hết hạn';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  pointer-events: none;
  border-radius: var(--radius-md);
  z-index: 2;
}

/* Dim expired card content */
.bdsExpired .bdsItemContent {
  opacity: 0.6;
}

/* Detail page expired banner */
.hethan-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin: 10px 0;
  color: var(--color-error);
  font-weight: 500;
}
.hethan-banner i { margin-right: 6px; }
.hethan-banner a {
  color: var(--color-primary);
  font-weight: 600;
  margin-left: 8px;
}
.deleted-user-banner {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin: 10px 0;
  color: #991b1b;
  font-weight: 500;
}
.deleted-user-banner i { margin-right: 8px; }

/* ===== Advanced Search — Sort Bar, Filters, Toggle (v3.1.0) ===== */
.searchSortBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  font-size: var(--text-sm);
}
.searchResultCount {
  color: #475569;
  font-weight: 500;
}
.searchSortRight {
  display: flex;
  align-items: center;
  gap: 6px;
}
.searchSortRight label {
  color: #64748b;
  font-size: 12px;
  margin: 0;
}
.searchSortRight select {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  background: #fff;
  cursor: pointer;
}
.searchAdvancedToggle {
  text-align: center;
  padding: 8px 0;
  cursor: pointer;
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  border-top: 1px dashed #e2e8f0;
  margin-top: 6px;
}
.searchAdvancedToggle:hover { opacity: 0.8; }
.searchAdvancedToggle .toggleIcon {
  font-size: 10px;
  margin-left: 4px;
  transition: transform 0.2s;
}
.searchAdvancedToggle.open .toggleIcon {
  transform: rotate(180deg);
}
#searchAdvanced {
  padding: 8px 0 0;
  border-top: 1px dashed #e2e8f0;
}
.searchItem.searchItemHalf {
  width: 48%;
  float: left;
  margin-right: 4%;
}
.searchItem.searchItemHalf:nth-child(even) {
  margin-right: 0;
}
.advInput {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
  box-sizing: border-box;
}
/* Active filter chips */
.searchActiveFilters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  margin-bottom: 8px;
}
.filterChip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  font-size: 12px;
  color: #1e40af;
}
.filterChip .chipRemove {
  cursor: pointer;
  font-weight: 700;
  margin-left: 2px;
  color: #93c5fd;
}
.filterChip .chipRemove:hover { color: #1e40af; }
.chipClearAll {
  background: #fef2f2 !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
}
.chipClearAll:hover { background: #fee2e2 !important; }
/* Save search button */
.btnSaveSearch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid var(--color-primary);
  border-radius: 6px;
  background: #fff;
  color: var(--color-primary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.btnSaveSearch:hover { background: #eff6ff; }
.btnSaveSearch.saved {
  background: var(--color-primary);
  color: #fff;
  cursor: default;
}
@media (max-width: 768px) {
  .searchSortBar {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }
  .searchSortRight { width: 100%; justify-content: space-between; }
  .searchItem.searchItemHalf { width: 48%; }
}

/* ==========================================================
   Messaging Inbox — v4.6.0
   ========================================================== */

/* Tab badge */
.msg-tab-badge {
  display: inline-block;
  background: var(--color-error);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: var(--radius-full);
  padding: 0 5px;
  margin-left: 4px;
  vertical-align: middle;
}

/* Header badge */
.msg-header-link { position: relative; }
.msg-header-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--color-error);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: var(--radius-full);
  padding: 0 4px;
}

/* Inbox list */
.msg-inbox-list { padding: 4px 0; }
.msg-inbox-item {
  display: flex;
  gap: 12px;
  padding: 12px 10px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.15s;
}
.msg-inbox-item:hover { background: #f8fafc; }
.msg-inbox-item.msg-unread { background: #eff6ff; }
.msg-inbox-item.msg-unread:hover { background: #dbeafe; }
.msg-inbox-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.msg-inbox-avatar .bdsCardAvatar {
  border-radius: 50%;
}
.msg-inbox-avatar .bdsCardAvatar[src] {
  object-fit: cover;
}
.msg-broadcast .msg-inbox-avatar {
  background: #fef3c7;
  color: #d97706;
  border-radius: var(--radius-full);
  font-size: 18px;
}
.msg-inbox-content { flex: 1; min-width: 0; }
.msg-inbox-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}
.msg-inbox-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg-unread .msg-inbox-name { color: var(--color-primary); }
.msg-inbox-time {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  margin-left: 8px;
}
.msg-inbox-subject {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg-inbox-preview {
  font-size: 13px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.msg-inbox-postref {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.msg-inbox-postref i { margin-right: 3px; }
.msg-unread-badge {
  display: inline-block;
  background: var(--color-error);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: var(--radius-full);
  padding: 0 4px;
  margin-left: 4px;
  vertical-align: middle;
}

/* Thread view */
.msg-thread-view { display: flex; flex-direction: column; }
.msg-thread-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
.msg-back-btn {
  color: var(--color-primary);
  font-size: var(--text-sm);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.msg-back-btn:hover { text-decoration: underline; }
.msg-thread-name {
  font-size: var(--text-md);
  font-weight: 600;
  color: #1e293b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.msg-thread-post {
  padding: 6px 10px;
  background: #fefce8;
  border-bottom: 1px solid #fde68a;
  font-size: 12px;
  color: #92400e;
}
.msg-thread-post a { color: #92400e; text-decoration: underline; }
.msg-thread-messages {
  max-height: 400px;
  overflow-y: auto;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.msg-bubble {
  max-width: 75%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: var(--text-sm);
  line-height: 1.5;
  word-wrap: break-word;
}
.msg-mine {
  align-self: flex-end;
  background: var(--color-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-theirs {
  align-self: flex-start;
  background: #f1f5f9;
  color: #1e293b;
  border-bottom-left-radius: 4px;
}
.msg-text { margin-bottom: 2px; }
.msg-time {
  font-size: 10px;
  opacity: 0.7;
  text-align: right;
}
.msg-admin-badge {
  display: inline-block;
  background: #fbbf24;
  color: #78350f;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: middle;
}

/* Reply form */
.msg-reply-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
  align-items: flex-end;
}
.msg-reply-input {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: var(--text-sm);
  resize: none;
  outline: none;
  font-family: var(--font-sans);
  min-height: 38px;
  max-height: 100px;
}
.msg-reply-input:focus { border-color: var(--color-primary); }
.msg-reply-btn {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.msg-reply-btn:hover { background: #044a85; }
.msg-reply-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Message popup on detail page */
#messagePopup { padding: 24px; }
.msg-popup-header {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.msg-popup-header .fa { margin-right: 6px; }
.msg-popup-post {
  font-size: var(--text-sm);
  color: #475569;
  padding: 10px 12px;
  background: #f1f5f9;
  border-radius: 8px;
  margin-bottom: 16px;
  line-height: 1.5;
  border-left: 3px solid var(--color-primary);
}
.msg-popup-user {
  font-size: var(--text-sm);
  color: #334155;
  font-weight: 500;
  margin-bottom: 14px;
}
.msg-popup-user .fa { color: var(--color-primary); margin-right: 6px; opacity: .7; }
.msg-popup-form { padding: 0; }
.msg-popup-form textarea {
  width: 100%;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px;
  font-size: var(--text-sm);
  resize: vertical;
  min-height: 100px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.msg-popup-form textarea:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(5,86,153,0.1); }
.msg-popup-counter {
  text-align: right;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 6px;
}
.msg-popup-send {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.msg-popup-send .fa { margin-right: 6px; }
.msg-popup-send:hover { background: #044a85; }
.msg-popup-send:disabled { opacity: 0.5; cursor: not-allowed; }
.msg-popup-success {
  text-align: center;
  padding: 24px 0;
  color: var(--color-accent);
  font-size: var(--text-md);
}
.msg-popup-success .fa { font-size: 36px; display: block; margin-bottom: 10px; }

/* Nhắn tin button on detail page */
.msg-detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  margin-top: 8px;
}
.msg-detail-btn:hover { background: #044a85; color: #fff; text-decoration: none; }

/* Nhắn tin row inside info table */
.detail-info-msg-row { border-top: 1px dashed #e2e8f0; }
.di-msg-link {
  display: flex;
  align-items: center;
  color: var(--color-primary);
  text-decoration: none;
  padding: 2px 0;
  transition: color 0.15s;
}
.di-msg-link:hover { color: #044a85; text-decoration: none; }
.di-msg-link .di-icon { color: var(--color-primary); }
.di-msg-link .di-value { color: var(--color-primary); font-weight: 500; }

/* Admin messaging panel */
.msg-admin-panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}
.msg-admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
}
.msg-admin-tab {
  padding: 8px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #475569;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.msg-admin-tab .fa { margin-right: 4px; }
.msg-admin-tab:hover { border-color: var(--color-primary); color: var(--color-primary); }
.msg-admin-tab.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.msg-admin-input {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  margin-bottom: 8px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.msg-admin-input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(5,86,153,0.08); }
textarea.msg-admin-input { resize: vertical; min-height: 70px; }
.msg-admin-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.msg-admin-select {
  flex: 1;
  padding: 10px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  font-size: var(--text-sm);
  background: #fff;
  outline: none;
}
.msg-admin-select:focus { border-color: var(--color-primary); }
.msg-admin-btn {
  padding: 10px 20px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.msg-admin-btn .fa { margin-right: 4px; }
.msg-admin-btn:hover { background: #044a85; }
.msg-admin-btn:disabled { opacity: 0.5; cursor: not-allowed; }
/* DM search results */
.msg-dm-results {
  display: none;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 8px;
  background: #fff;
}
.msg-dm-user {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  font-size: var(--text-sm);
  transition: background 0.1s;
}
.msg-dm-user:last-child { border-bottom: none; }
.msg-dm-user:hover { background: #eff6ff; }
.msg-dm-user span { color: #94a3b8; margin-left: 8px; font-size: 12px; }
.msg-dm-no-result { padding: 10px 12px; color: #94a3b8; font-size: var(--text-sm); }
.msg-dm-selected {
  padding: 10px 12px;
  background: #eff6ff;
  border: 1px solid var(--color-primary);
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 500;
}
.msg-dm-selected .fa { margin-right: 6px; }
.msg-dm-clear { color: #ef4444; margin-left: 8px; }
.msg-dm-clear:hover { color: #dc2626; }

@media (max-width: 768px) {
  .msg-thread-messages { max-height: 50vh; }
  .msg-bubble { max-width: 85%; }
  .msg-inbox-avatar { width: 32px; height: 32px; }
  .msg-admin-tabs { flex-wrap: wrap; }
  .msg-admin-row { flex-direction: column; }
  .msg-admin-select, .msg-admin-btn { width: 100%; }
}

/* ==========================================================
   Support Chat Widget  (v5.1.0)
   ========================================================== */

/* Hide FB Messenger + old support_right widget — replaced by #supportChatBtn */
.fb_dialog, .fb-customerchat, div[class*="fb_dialog"], .support_right { display: none !important; }

/* --- Floating chat button (bottom of 3-button stack) --- */
.support-chat-btn {
  position: fixed;
  bottom: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e03c31 0%, #c0392b 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.support-chat-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.support-chat-btn i { font-size: 18px; line-height: 1; }

/* Pulse ring animation — contained inside button to prevent overflow scrollbar */
.scb-btn-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #e03c31;
  animation: scbPulse 2s ease-out infinite;
  pointer-events: none;
}
@keyframes scbPulse {
  0%   { transform: scale(1); opacity: 0.6; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* --- Chat box container --- */
.support-chat-box {
  position: fixed;
  bottom: 68px;
  right: 14px;
  width: 360px;
  max-height: 500px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15), 0 2px 6px rgba(0,0,0,0.08);
  z-index: 10002;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* --- Header with avatar + status --- */
.scb-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, #033d6e 100%);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.scb-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.scb-header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  position: relative;
}
.scb-online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2ecc71;
  border: 2px solid var(--color-primary);
}
.scb-header-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}
.scb-header-status {
  font-size: 11px;
  opacity: 0.8;
  font-weight: 400;
  line-height: 1.3;
}
.scb-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: background 0.2s;
}
.scb-close:hover { background: rgba(255,255,255,0.3); }

/* --- Guest form --- */
.scb-guest-form {
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* Welcome area */
.scb-welcome {
  background: linear-gradient(180deg, #f0f7ff 0%, #fff 100%);
  padding: 20px 20px 16px;
  text-align: center;
}
.scb-welcome-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.scb-welcome-text {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
}

/* Form fields */
.scb-form-fields {
  padding: 12px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.scb-field {
  position: relative;
  display: flex;
  align-items: center;
}
.scb-field i {
  position: absolute;
  left: 12px;
  color: #999;
  font-size: 14px;
  pointer-events: none;
  transition: color 0.2s;
}
.scb-field input {
  width: 100%;
  padding: 11px 12px 11px 36px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fafafa;
}
.scb-field input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(5,86,153,0.1);
  background: #fff;
}
.scb-field input:focus + i,
.scb-field:focus-within i {
  color: var(--color-primary);
}
.scb-start-btn {
  background: linear-gradient(135deg, var(--color-primary) 0%, #033d6e 100%);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  margin-top: 2px;
}
.scb-start-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.scb-start-btn:active { transform: translateY(0); }
.scb-start-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.scb-start-btn i { margin-right: 6px; }

/* --- Chat area --- */
.scb-chat {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* Messages container */
.scb-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  max-height: 340px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8f9fb;
}
.scb-messages::-webkit-scrollbar { width: 4px; }
.scb-messages::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.scb-messages::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* Message row */
.scb-msg {
  max-width: 82%;
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.scb-msg-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.scb-msg-body {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}
.scb-msg-time {
  font-size: 10px;
  color: #aaa;
  margin-top: 3px;
  padding: 0 6px;
}

/* Admin avatar in chat */
.scb-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), #033d6e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

/* User messages — right */
.scb-msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.scb-msg-user .scb-msg-content { align-items: flex-end; }
.scb-msg-user .scb-msg-body {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0369a1 100%);
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* Admin messages — left */
.scb-msg-admin {
  align-self: flex-start;
}
.scb-msg-admin .scb-msg-content { align-items: flex-start; }
.scb-msg-admin .scb-msg-body {
  background: #fff;
  color: #333;
  border: 1px solid #e8e8e8;
  border-bottom-left-radius: 4px;
}

/* System messages */
.scb-msg-system {
  align-self: center;
  max-width: 90%;
  text-align: center;
  font-size: 11px;
  color: #999;
  padding: 4px 12px;
  background: rgba(0,0,0,0.04);
  border-radius: 10px;
}

/* --- Input area --- */
.scb-input {
  display: flex;
  align-items: center;
  border-top: 1px solid #eee;
  flex-shrink: 0;
  padding: 8px 8px 8px 4px;
  gap: 6px;
  background: #fff;
}
.scb-input input {
  flex: 1;
  border: 1.5px solid #e8e8e8;
  padding: 10px 14px;
  font-size: 13px;
  outline: none;
  border-radius: 20px;
  background: #f8f9fb;
  transition: border-color 0.2s;
}
.scb-input input:focus {
  border-color: var(--color-primary);
  background: #fff;
}
.scb-input button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}
.scb-input button:hover { background: #044580; transform: scale(1.08); }

/* --- Mobile adjustments --- */
@media (max-width: 768px) {
  .support-chat-btn {
    bottom: calc(var(--bottom-nav-height) + 10px);
    right: 14px;
  }
  .support-chat-box {
    bottom: calc(var(--bottom-nav-height) + 64px);
    right: 8px;
    left: 8px;
    width: auto;
    max-height: 60vh;
    border-radius: 14px;
  }
  .scb-messages {
    max-height: 45vh;
    min-height: 150px;
  }
}

/* ========================================================================
   ĐĂNG TIN FORM UPGRADE v5.3.0
   Scoped to .__dang-tin-page (NOT .__content-page — shared with mua-goi.php)
   ======================================================================== */

/* --- Step progress bar --- */
.dt-steps { display: flex; align-items: center; justify-content: center; padding: 20px 0 24px; gap: 0; }
.dt-steps__item { display: flex; align-items: center; gap: 0; }
.dt-steps__circle {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px;
  border: 2px solid #d1d5db; color: #9ca3af; background: #fff;
  flex-shrink: 0; transition: all .2s;
}
.dt-steps__label { font-size: 13px; color: #9ca3af; margin-left: 8px; white-space: nowrap; }
.dt-steps__line { width: 60px; height: 2px; background: #d1d5db; margin: 0 12px; flex-shrink: 0; }
/* Active */
.dt-steps__item.is-active .dt-steps__circle { background: var(--color-accent, #05a21b); border-color: var(--color-accent, #05a21b); color: #fff; }
.dt-steps__item.is-active .dt-steps__label { color: var(--color-accent, #05a21b); font-weight: 600; }
/* Completed — adjacent sibling only (+ not ~) to avoid coloring future lines */
.dt-steps__item.is-done .dt-steps__circle { background: var(--color-accent, #05a21b); border-color: var(--color-accent, #05a21b); color: #fff; }
.dt-steps__item.is-done .dt-steps__label { color: #374151; }
.dt-steps__item.is-done + .dt-steps__line { background: var(--color-accent, #05a21b); }

/* --- Header info override (uses .__dang-tin-header class, not :has()) --- */
.__dang-tin-header { border: none !important; border-radius: 0 !important; }
.__dang-tin-header .__title { background: transparent !important; color: #1f2937 !important; text-align: left; padding: 0 0 8px; }
.__dang-tin-header .__title h2 { font-size: 22px !important; font-weight: 700; color: #1f2937; }

/* --- Section card overrides --- */
.__dang-tin-page .__box-wrap { border-radius: 8px; overflow: hidden; border: 1px solid #e5e7eb; margin-top: 20px; }
.__dang-tin-page .__box-wrap:first-child { margin-top: 0; }
.__dang-tin-page .__box-wrap .__heading {
  background: #fff !important; color: #1f2937 !important;
  border-left: 3px solid var(--color-accent, #05a21b);
  font-size: 15px; font-weight: 600; padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb; border-radius: 0 !important;
}
.__dang-tin-page .__box-wrap .__content { border: none; padding: 20px; border-radius: 0 !important; }

/* --- Category radio tabs (Nhà đất bán / Cho thuê) --- */
.__dang-tin-page .__danh-muc-tin-wrap { display: flex; gap: 12px; margin-bottom: 20px; }
.__dang-tin-page .__danh-muc-tin-wrap input[type="radio"] { display: none; }
.__dang-tin-page .__danh-muc-tin-wrap label {
  flex: 1; text-align: center; padding: 12px;
  border: 2px solid #d1d5db; border-radius: 8px;
  cursor: pointer; font-weight: 600; font-size: 14px; transition: all .2s;
}
.__dang-tin-page .__danh-muc-tin-wrap input:checked + label {
  border-color: var(--color-accent, #05a21b); background: #f0fdf4; color: var(--color-accent, #05a21b);
}

/* --- Input field styles (44px, focus ring) ---
   style.css .__box-wrap .__content ._formPostItem input/select = specificity 0,3,0 + height:32px
   Must match or exceed that specificity. ui-upgrade loads AFTER style.css → same specificity wins. */
.__dang-tin-page .__box-wrap .__content input[type="text"],
.__dang-tin-page .__box-wrap .__content input[type="number"],
.__dang-tin-page .__box-wrap .__content input[type="email"],
.__dang-tin-page .__box-wrap .__content input[type="tel"],
.__dang-tin-page .__box-wrap .__content select,
.__dang-tin-page .__box-wrap .__content textarea {
  height: 44px; border-radius: 6px; border: 1px solid #d1d5db;
  padding: 8px 12px; font-size: 14px; width: 100%;
  box-sizing: border-box; transition: border-color .2s, box-shadow .2s;
  font-family: var(--font-sans); color: var(--color-text, #1f2937);
  text-indent: 0; background-image: none;
}
/* Select arrow icon — restore after clearing background-image above */
.__dang-tin-page .__box-wrap .__content select {
  background: url(/theme/images/selectbox.png) no-repeat right 10px center !important;
  -webkit-appearance: none; appearance: none;
}
/* Placeholder uniform: 14px, gray */
.__dang-tin-page .__box-wrap .__content input::placeholder,
.__dang-tin-page .__box-wrap .__content textarea::placeholder {
  color: #999; font-size: 14px; opacity: 1;
}
/* wardPrefixCombobox — #formPost .refineText { height:32px } in style.css uses ID specificity */
.__dang-tin-page .wpc-input {
  height: 44px !important; padding: 8px 12px !important;
  border-radius: 6px !important; border: 1px solid #d1d5db !important;
  font-size: 14px !important; box-sizing: border-box !important;
  background-image: none !important; text-indent: 0 !important;
  font-family: var(--font-sans) !important;
}
.__dang-tin-page .__box-wrap .__content textarea { height: auto; min-height: 120px; resize: vertical; }
.__dang-tin-page .__box-wrap .__content input[readonly] { background: #f3f4f6; cursor: not-allowed; }
/* Rental unit select inside label — compact inline, must not affect label height */
.__dang-tin-page .dt-donvigia-thue {
  height: auto !important; width: auto !important;
  padding: 1px 18px 1px 4px !important; margin: 0 !important;
  font-size: 12px !important; border-radius: 3px !important; border: 1px solid #aab !important;
  background: url(/theme/images/selectbox.png) no-repeat right 2px center / 12px !important;
  -webkit-appearance: none; appearance: none; vertical-align: middle;
  color: var(--color-primary); font-weight: 600; line-height: 1.2;
}
/* Focus ring */
.__dang-tin-page .__box-wrap .__content input:focus,
.__dang-tin-page .__box-wrap .__content select:focus,
.__dang-tin-page .__box-wrap .__content textarea:focus {
  border-color: var(--color-primary, #055699);
  box-shadow: 0 0 0 3px rgba(5, 86, 153, 0.1); outline: none;
}
/* Suffixes position for 44px inputs: (44 - ~14px line-height) / 2 ≈ 15px */
.__dang-tin-page .__box-wrap ._formPostItem span.suffixes { bottom: 15px; }
/* Title input + counter wrapped in .title-input-wrap so the counter anchors to the
   input (not the tall .tieu-de block that also holds the chips). */
.__dang-tin-page .__box-wrap ._formPostItem.tieu-de .title-input-wrap { position: relative; }
.__dang-tin-page .__box-wrap ._formPostItem.tieu-de span#title-count-character {
  top: auto; bottom: 15px;
}
/* Title validation error sits ABOVE the input wrapper (errorPlacement) — own line.
   Override the base `position:absolute; right:5px` (style.css) which would float it
   to the corner (invisible / overlapping the counter). Keep it in normal flow. */
.__dang-tin-page .__box-wrap ._formPostItem.tieu-de label.error {
  position: static; display: block; right: auto; margin: 0 0 6px; font-size: 12px;
}

/* --- Labels --- */
.__dang-tin-page .__box-wrap ._formPostItem > label:first-child { font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.__dang-tin-page .__box-wrap ._formPostItem > label:first-child span { color: #dc2626; }

/* --- Validation error state --- */
.__dang-tin-page .__box-wrap .has-error input,
.__dang-tin-page .__box-wrap .has-error select,
.__dang-tin-page .__box-wrap .has-error textarea { border-color: #dc2626 !important; }
.__dang-tin-page .__box-wrap .dt-error-msg { color: #dc2626; font-size: 12px; margin-top: 4px; display: block; }
.__dang-tin-page .__box-wrap label.error { font-size: 11px; color: #dc2626; }

/* --- Image upload zone (container only, NOT gridifying .qq-upload-list) --- */
.__dang-tin-page .qq-uploader { border: 2px dashed #d1d5db !important; border-radius: 8px; padding: 20px; transition: border-color .2s; background: #fafafa; }
.__dang-tin-page .qq-uploader:hover,
.__dang-tin-page .qq-uploader.qq-upload-drop-area-active { border-color: var(--color-primary, #055699) !important; background: #f0f7ff; }
.__dang-tin-page .qq-upload-list li { position: relative; border-radius: 6px; overflow: hidden; margin-bottom: 8px; }
.__dang-tin-page .qq-upload-button { border-radius: 6px; }
/* Delete (X) button — circular badge inside the thumbnail top-right (li has overflow:hidden,
   so absolute-position it WITHIN the li bounds). dashicons font isn't loaded → use FA fa-times. */
.__dang-tin-page .qq-upload-delete {
  position: absolute; top: 4px; right: 4px; z-index: 3;
  width: 22px; height: 22px; padding: 0; margin: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.6); color: #fff;
  border: none; border-radius: 50%; cursor: pointer;
  font-size: 12px; line-height: 1; text-indent: 0;
}
.__dang-tin-page .qq-upload-delete:hover { background: var(--color-error, #dc2626); }
.__dang-tin-page .qq-upload-delete i { font-size: 12px; line-height: 1; }

/* Fine Uploader alert/confirm/prompt dialogs — match site card UI (default <dialog> is raw) */
.__dang-tin-page .qq-uploader dialog[open] {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  margin: 0; padding: 22px 24px; max-width: 420px; width: calc(100% - 40px);
  border: none; border-radius: var(--radius-lg, 12px);
  box-shadow: 0 10px 40px rgba(0,0,0,.25); background: #fff;
  font-family: var(--font-sans); color: var(--color-text, #1f2937); z-index: 100000;
}
.__dang-tin-page .qq-uploader dialog::backdrop { background: rgba(0,0,0,.5); }
.__dang-tin-page .qq-uploader dialog .qq-dialog-message-selector {
  font-size: 15px; line-height: 1.5; text-align: center; margin-bottom: 18px;
}
.__dang-tin-page .qq-uploader dialog input[type=text] {
  width: 100%; height: 40px; padding: 0 12px; margin-bottom: 14px;
  border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px;
}
.__dang-tin-page .qq-uploader dialog .qq-dialog-buttons {
  display: flex; justify-content: center; gap: 10px;
}
.__dang-tin-page .qq-uploader dialog .qq-dialog-buttons button {
  min-width: 96px; height: 40px; padding: 0 18px; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  transition: background .15s, border-color .15s;
}
/* Cancel/close = secondary; OK = primary green */
.__dang-tin-page .qq-uploader dialog .qq-cancel-button-selector {
  background: #fff; color: #475569; border-color: #cbd5e1;
}
.__dang-tin-page .qq-uploader dialog .qq-cancel-button-selector:hover { background: #f1f5f9; }
.__dang-tin-page .qq-uploader dialog .qq-ok-button-selector {
  background: var(--color-accent, #05a21b); color: #fff;
}
.__dang-tin-page .qq-uploader dialog .qq-ok-button-selector:hover { filter: brightness(.95); }

/* --- Button styles --- */
.dt-btn-primary,
.__dang-tin-page .submit-ks {
  height: 48px !important; padding: 0 32px !important;
  background: var(--color-accent, #05a21b) !important; color: #fff !important;
  border: none !important; border-radius: 6px !important;
  font-size: 16px !important; font-weight: 600; cursor: pointer; transition: background .2s;
}
.dt-btn-primary:hover,
.__dang-tin-page .submit-ks:hover { background: #049218 !important; }
/* #btn_back also has .submit-ks — ID + !important wins */
.__dang-tin-page #btn_back {
  height: 44px !important; padding: 0 24px !important;
  background: #fff !important; color: #374151 !important;
  border: 1px solid #d1d5db !important; border-radius: 6px !important;
  font-size: 14px !important; cursor: pointer; transition: all .2s;
}
.__dang-tin-page #btn_back:hover { background: #f9fafb !important; border-color: #9ca3af !important; }

/* --- Button row layout --- */
.dt-btn-row { display: flex; gap: 12px; justify-content: flex-end; padding: 20px 0; }

/* --- Sidebar card styling --- */
.__dang-tin-sidebar .item-sidebar { border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.__dang-tin-sidebar .TitleBlue { font-size: 14px; padding: 12px 16px; border-left: 3px solid var(--color-accent, #05a21b); }
.__dang-tin-sidebar ._inner-sidebar { padding: 12px 16px; }
.__dang-tin-sidebar ._inner-sidebar ol { padding-left: 20px; margin: 8px 0 0; }
.__dang-tin-sidebar ._inner-sidebar ol li { font-size: 13px; line-height: 1.6; color: #4b5563; }

/* --- Đăng tin mobile --- */
@media (max-width: 768px) {
  .dt-steps__line { width: 30px; margin: 0 6px; }
  .dt-steps__label { font-size: 11px; }
  .__dang-tin-page .__box-wrap .__content { padding: 12px; }
  .__dang-tin-page .__box-wrap .__content .__grid-3-cols,
  .__dang-tin-page .__box-wrap .__content .__grid-4-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .dt-steps__label { display: none; }
  .dt-steps__line { width: 20px; }
  .__dang-tin-page .__box-wrap .__content .__grid-2-cols,
  .__dang-tin-page .__box-wrap .__content .__grid-3-cols,
  .__dang-tin-page .__box-wrap .__content .__grid-4-cols { grid-template-columns: 1fr; }
}

/* ── wardPrefixCombobox (global) ─────────────────────────────────────────────
   Dropdown appended to <body> with position:fixed to escape overflow:hidden
   on sidebar and other clipping contexts. Used on Search + Đăng tin pages. */
.wpc-wrap { position: relative; }
.wpc-list { position: fixed; z-index: 10000; max-width: 92vw; max-height: 260px; overflow-y: auto; overflow-x: auto; margin: 2px 0 0; padding: 0; list-style: none; background: #fff; border: 1px solid #ccc; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.wpc-list li { padding: 8px 12px; cursor: pointer; font-size: 14px; border-bottom: 1px solid #f0f0f0; white-space: nowrap; }
.wpc-list li:last-child { border-bottom: 0; }
.wpc-list li:hover { background: #eef5ff; }
.wpc-list li.wpc-active { background: #d6e8ff; }
.wpc-list li.wpc-empty { color: #999; cursor: default; font-style: italic; }
.wpc-input { width: 100%; }
.wpc-input::placeholder { color: #999; opacity: 1; }
.wpc-input::-webkit-input-placeholder { color: #999; }

/* ===================================================
   NHA MOI GIOI — Public User Profile v5.9.0
   =================================================== */

/* Page layout — no sidebar, full-width ColCenter */
.nmg-page-layout .ColCenter.ColCenter--wide { width: 100% !important; margin: 0 !important; float: none !important; overflow: visible !important; }

/* Layout */
.nmg-wrapper { display: flex; gap: 24px; padding: 20px 0; }
.nmg-sidebar { width: 280px; flex-shrink: 0; background: #fff; border: 1px solid #e8e8e8; border-radius: var(--radius-lg); padding: 24px; text-align: center; align-self: flex-start; position: sticky; top: 100px; box-shadow: var(--shadow-card); }
.nmg-content { flex: 1; min-width: 0; }

/* Sidebar elements */
.nmg-avatar { margin-bottom: 14px; }
.nmg-avatar .bdsAvatarInitial, .nmg-avatar img { width: 90px; height: 90px; border-radius: 50%; font-size: 36px; }
.nmg-name { font-size: var(--text-lg); font-weight: 700; margin: 0 0 12px; color: var(--color-text, #222); }
.nmg-meta { font-size: var(--text-sm); color: #555; margin-bottom: 8px; text-align: left; }
.nmg-meta i { width: 20px; color: var(--color-primary); }
.nmg-phone-reveal { color: var(--color-primary); cursor: pointer; font-size: 12px; margin-left: 4px; text-decoration: underline; }
.nmg-actions { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }

/* Buttons */
.nmg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: var(--radius-md); font-size: 14px; font-weight: 500; font-family: var(--font-sans); cursor: pointer; border: 1px solid #ddd; background: #fff; color: #333; transition: all .2s; width: 100%; }
.nmg-btn:hover { background: #f5f5f5; }
.nmg-btn:disabled { opacity: .6; cursor: not-allowed; }
.nmg-btn-msg { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.nmg-btn-msg:hover { background: #044a85; }
.nmg-btn-follow { border-color: var(--color-error); color: var(--color-error); }
.nmg-btn-follow:hover { background: #fef2f2; }
.nmg-btn-following { background: var(--color-error); color: #fff; border-color: var(--color-error); }
.nmg-btn-share { border-color: #bbb; color: #666; }
.nmg-btn-primary { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.nmg-btn-primary:hover { background: #049118; }
.nmg-btn-outline { background: #fff; color: var(--color-primary); border-color: var(--color-primary); }
.nmg-btn-outline:hover { background: #f0f7ff; }

/* Stats bar */
.nmg-stats { display: flex; gap: 1px; background: #e8e8e8; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 18px; box-shadow: var(--shadow-card); }
.nmg-stat { flex: 1; background: #fff; padding: 16px 12px; text-align: center; }
.nmg-stat-value { display: block; font-size: 22px; font-weight: 700; color: var(--color-primary); margin-bottom: 2px; }
.nmg-stat-label { font-size: 12px; color: #888; }
.nmg-stat-label i { color: #f5a623; }

/* Reviews section */
.nmg-reviews-section { margin-top: 25px; }
.nmg-section-title { font-size: var(--text-md); font-weight: 600; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--color-primary); }
.nmg-review-card { padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.nmg-review-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nmg-review-name { font-weight: 600; color: #333; text-decoration: none; font-size: var(--text-sm); }
.nmg-review-name:hover { color: var(--color-primary); }
.nmg-review-stars { color: #f5a623; font-size: 13px; }
.nmg-review-time { color: #aaa; font-size: 12px; margin-left: auto; }
.nmg-review-comment { margin-top: 6px; font-size: var(--text-sm); color: #555; line-height: 1.5; }

/* Star picker */
.nmg-star-picker { margin-bottom: 10px; }
.nmg-star-picker i { font-size: 24px; color: #ddd; cursor: pointer; transition: color .15s; margin-right: 2px; }
.nmg-star-picker i.fa-star { color: #f5a623; }
.nmg-star-picker i:hover { color: #f5a623; }

/* Review form */
.nmg-review-form { margin-top: 20px; padding: 15px; background: #fafafa; border-radius: var(--radius-md); border: 1px solid #eee; }
.nmg-review-form h3 { font-size: var(--text-md); margin: 0 0 10px; }
.nmg-review-form textarea { width: 100%; border: 1px solid #ddd; border-radius: 4px; padding: 8px; font-family: var(--font-sans); font-size: var(--text-sm); resize: vertical; min-height: 60px; box-sizing: border-box; }
.nmg-review-form textarea:focus { outline: 2px solid var(--color-primary); border-color: transparent; }
.nmg-review-counter { text-align: right; font-size: 12px; color: #999; margin: 4px 0 10px; }
.nmg-review-login { margin-top: 15px; text-align: center; color: #888; font-size: var(--text-sm); }
.nmg-review-login a { color: var(--color-primary); }

/* Dashboard follow cards */
.nmg-follow-card { display: flex; align-items: center; padding: 10px; border-bottom: 1px solid #f0f0f0; }
.nmg-follow-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #333; flex: 1; min-width: 0; }
.nmg-follow-link:hover .nmg-follow-name { color: var(--color-primary); }
.nmg-follow-info { min-width: 0; }
.nmg-follow-name { display: block; font-weight: 600; font-size: var(--text-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nmg-follow-count { font-size: 12px; color: #888; }
.nmg-unfollow-btn { flex-shrink: 0; border: 1px solid #ddd; background: #fff; color: #999; font-size: 12px; padding: 4px 10px; border-radius: 4px; cursor: pointer; }
.nmg-unfollow-btn:hover { border-color: var(--color-error); color: var(--color-error); }

/* Clickable avatar on listing cards + detail pages */
.bdsCardPosterLink { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.bdsCardPosterLink:hover .bdsCardPosterName { color: var(--color-primary); }
.nmg-poster-link { color: inherit; text-decoration: none; }
.nmg-poster-link:hover { color: var(--color-primary); }

/* Message success in popup */
.nmg-msg-success { text-align: center; padding: 20px; font-size: var(--text-md); color: #333; }

/* 404 + empty */
.nmg-empty { text-align: center; padding: 30px; color: #999; font-size: var(--text-sm); }
.nmg-404 { text-align: center; padding: 60px 20px; color: #999; font-size: var(--text-md); }

/* Mobile responsive */
@media (max-width: 768px) {
    .nmg-wrapper { flex-direction: column; gap: 12px; max-width: 100%; padding: 10px 0; }
    .nmg-sidebar { width: 100%; position: static; display: flex; flex-wrap: wrap; gap: 10px; padding: 15px; text-align: left; }
    .nmg-avatar { margin-bottom: 0; }
    .nmg-avatar .bdsAvatarInitial, .nmg-avatar img { width: 60px; height: 60px; font-size: 24px; }
    .nmg-sidebar-info { flex: 1; min-width: 0; }
    .nmg-name { font-size: var(--text-md); margin-bottom: 4px; }
    .nmg-meta { margin-bottom: 3px; }
    .nmg-actions { width: 100%; flex-direction: row; margin-top: 8px; }
    .nmg-btn { font-size: 12px; padding: 6px 10px; }
    .nmg-stats { flex-direction: row; }
    .nmg-stat { padding: 10px 8px; }
    .nmg-stat-value { font-size: var(--text-lg); }
    .nmg-review-header { font-size: 12px; }
    .nmg-star-picker i { font-size: 20px; }
    .nmg-follow-card { padding: 8px; }
}

/* ==========================================================
   v6.0.0 � Verified Badge (Phase 01 Tier 1 features)
   ========================================================== */
.verified-badge { color: #1d9bf0; font-size: 12px; margin-left: 4px; vertical-align: middle; }
.verified-badge--lg { font-size: 18px; margin-left: 6px; }

/* ==========================================================
   v6.1.0 — Price History Chart (Biến động giá khu vực)
   ========================================================== */

/* Trigger button */
.price-chart-btn-wrap { display: inline-flex; vertical-align: top; margin: 8px 8px 8px 0; }
.price-chart-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
    border-radius: var(--radius-md);
    padding: 7px 14px;
    font-size: var(--text-sm);
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background .15s, color .15s;
    line-height: 1.4;
}
.price-chart-btn:hover {
    background: var(--color-primary);
    color: #fff;
}
.price-chart-btn .fa { font-size: 14px; }

/* Modal overlay */
.price-chart-modal {
    position: fixed;
    inset: 0;
    z-index: 19000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pcm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    cursor: pointer;
}
.pcm-card {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    width: 100%;
    max-width: 640px;
    padding: 20px 20px 16px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 0 12px;
}

/* Header row */
.pcm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.pcm-title {
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--color-primary);
}
.pcm-title .fa { margin-right: 6px; }
.pcm-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #888;
    padding: 4px 6px;
    border-radius: 4px;
    line-height: 1;
}
.pcm-close:hover { color: #333; background: #f0f0f0; }

/* Period toggle */
.pcm-periods {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}
.pcm-period-btn {
    flex: 1;
    padding: 6px 0;
    border: 1.5px solid #d0d0d0;
    background: #f6f6f6;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-family: var(--font-sans);
    cursor: pointer;
    color: #555;
    transition: border-color .15s, background .15s, color .15s;
}
.pcm-period-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pcm-period-btn.is-active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
}

/* Chart body */
.pcm-body { position: relative; min-height: 180px; }
#priceChartCanvas { width: 100% !important; }

/* No-data message */
.pcm-msg {
    text-align: center;
    padding: 40px 16px;
    color: #888;
    font-size: var(--text-sm);
}

/* Body scroll lock when modal open */
body.pcm-open { overflow: hidden; }

/* Mobile: full-width modal */
@media (max-width: 768px) {
    .pcm-card {
        margin: 0;
        max-width: 100%;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 85vh;
    }
    .price-chart-modal {
        align-items: flex-end;
    }
}

/* ==========================================================
   Loan calculator (v6.8.4) — nút + modal, clone price-chart (.lcm-*).
   Thuần frontend; nút hiện bán(CAT2)+sang-nhượng(CAT176).
   ========================================================== */
.loan-calc-btn-wrap { display: inline-flex; vertical-align: top; margin: 8px 8px 8px 0; }
.loan-calc-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff; color: var(--color-accent, #05a21b);
    border: 1.5px solid var(--color-accent, #05a21b); border-radius: var(--radius-md);
    padding: 7px 14px; font-size: var(--text-sm); font-family: var(--font-sans);
    cursor: pointer; transition: background .15s, color .15s; line-height: 1.4;
}
.loan-calc-btn:hover { background: var(--color-accent, #05a21b); color: #fff; }
.loan-calc-btn .fa { font-size: 14px; }

.loan-calc-modal { position: fixed; inset: 0; z-index: 19000; display: flex; align-items: center; justify-content: center; }
.lcm-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); cursor: pointer; }
.lcm-card {
    position: relative; z-index: 1; background: #fff; border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0,0,0,.18); width: 100%; max-width: 640px;
    padding: 20px 20px 16px; max-height: 90vh; overflow-y: auto; margin: 0 12px;
}
.lcm-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.lcm-title { font-size: var(--text-md); font-weight: 600; color: var(--color-primary); }
.lcm-title .fa { margin-right: 6px; }
.lcm-close { background: none; border: none; cursor: pointer; font-size: 18px; color: #888; padding: 4px 6px; border-radius: 4px; line-height: 1; }
.lcm-close:hover { color: #333; background: #f0f0f0; }

/* Form grid 2 cột */
.lcm-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.lcm-field { display: flex; flex-direction: column; gap: 4px; }
.lcm-field--full { grid-column: 1 / -1; }
.lcm-field label { font-size: var(--text-sm); color: var(--color-text); font-weight: 500; }
.lcm-field input[type=text], .lcm-field select {
    height: 40px; padding: 0 12px; border: 1px solid var(--color-border, #d0d0d0);
    border-radius: var(--radius-md); font-size: var(--text-sm); font-family: var(--font-sans);
    background: #fff; color: var(--color-text); width: 100%; box-sizing: border-box;
}
.lcm-field input:focus, .lcm-field select:focus { outline: 2px solid rgba(5,86,153,.35); border-color: var(--color-primary); }
.lcm-rate-note { font-size: 11.5px; color: #999; line-height: 1.4; }
.lcm-method .lcm-radio { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; display: inline-flex; margin-right: 16px; cursor: pointer; }
.lcm-method > label:first-child { display: block; margin-bottom: 4px; }

/* Kết quả tóm tắt */
.lcm-summary { border: 1px solid var(--color-border, #eee); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 10px; }
.lcm-srow { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; font-size: var(--text-sm); border-top: 1px solid #f2f2f2; }
.lcm-srow:first-child { border-top: 0; }
.lcm-srow span { color: #666; }
.lcm-srow b { color: var(--color-text); font-weight: 600; }
.lcm-srow.lcm-total { background: #eef5ff; }
.lcm-srow.lcm-total b { color: var(--color-error, #dc2626); font-size: var(--text-md); }
.lcm-err { padding: 14px; text-align: center; color: #999; font-size: var(--text-sm); }

/* Toggle + bảng chi tiết scroll */
.lcm-table-toggle { display: block; width: 100%; text-align: center; padding: 8px; background: none; border: 1px solid var(--color-border, #e2e8f0); border-radius: var(--radius-md); color: var(--color-primary); font-size: 12px; cursor: pointer; font-family: inherit; margin-bottom: 8px; }
.lcm-table-toggle:hover { background: #f6f8fa; }
.lcm-table-scroll { max-height: 300px; overflow-y: auto; border: 1px solid var(--color-border, #eee); border-radius: var(--radius-md); }
.lcm-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.lcm-table th { position: sticky; top: 0; background: #f6f8fa; color: #555; font-weight: 600; padding: 7px 8px; text-align: right; border-bottom: 1px solid #e5e7eb; z-index: 1; }
.lcm-table th:first-child, .lcm-table td:first-child { text-align: center; }
.lcm-table td { padding: 6px 8px; text-align: right; border-bottom: 1px solid #f2f2f2; color: var(--color-text); }
.lcm-table tbody tr:nth-child(even) { background: #fafbfc; }
.lcm-disclaimer { font-size: 11.5px; color: #999; line-height: 1.5; margin-top: 4px; }

body.lcm-open { overflow: hidden; }

@media (max-width: 768px) {
    .lcm-card { margin: 0; max-width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; position: fixed; bottom: 0; left: 0; right: 0; max-height: 88vh; }
    .loan-calc-modal { align-items: flex-end; }
    .lcm-form { grid-template-columns: 1fr; }
}

/* ==========================================================
   v6.2.0 — AI / Template title suggestion chips
   ========================================================== */

/* Container below title input */
.ai-title-suggest {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

/* Chips row */
.ai-title-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1 1 100%;
}

/* Individual chip (pill) */
.ai-title-chip {
    display: inline-block;
    padding: 5px 10px;
    min-height: 32px;
    background: #f0f6ff;
    border: 1px solid #c5d9f1;
    border-radius: 20px;
    font-size: 12px;
    line-height: 1.4;
    color: #2c5282;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    box-sizing: border-box;
}
.ai-title-chip:hover {
    background: #daeaff;
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.ai-title-chip--active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
/* AI-returned chips get a subtle accent */
.ai-title-chip--ai {
    background: #f0fff4;
    border-color: #9ae6b4;
    color: #276749;
}
.ai-title-chip--ai:hover {
    background: #c6f6d5;
    border-color: var(--color-accent);
    color: #1a4731;
}
.ai-title-chip--ai.ai-title-chip--active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

/* "Gợi ý AI" button */
.ai-suggest-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    min-height: 32px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: opacity .15s;
    white-space: nowrap;
}
.ai-suggest-btn:hover { opacity: .88; }
.ai-suggest-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* Status / warning message */
.ai-title-msg {
    font-size: 11px;
    color: #888;
    display: inline-block;
}

/* Mobile: chips wrap naturally; ensure tap targets */
@media (max-width: 768px) {
    .ai-title-chip {
        min-height: 36px;
        padding: 7px 12px;
        font-size: 13px;
    }
    .ai-suggest-btn {
        min-height: 36px;
        padding: 7px 14px;
        font-size: 13px;
    }
}

/* ============================================================
   Nearby Amenities — v6.3.0
   .nearby-amenities / .na-radius-btn / .na-cat-chip / .na-marker
   ============================================================ */
.nearby-amenities {
    margin-top: 18px;
}
/* Controls row */
.na-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
/* Radius toggle buttons */
.na-radius-group {
    display: flex;
    gap: 4px;
}
.na-radius-btn {
    padding: 5px 12px;
    font-size: 12px;
    font-family: var(--font-sans);
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 14px;
    cursor: pointer;
    color: #555;
    transition: background .15s, color .15s, border-color .15s;
    line-height: 1.4;
}
.na-radius-btn:hover { background: #e8e8e8; }
.na-radius-btn.is-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
/* Category filter chips */
.na-cat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.na-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 12px;
    font-family: var(--font-sans);
    border-radius: 12px;
    border: 1.5px solid;
    cursor: pointer;
    transition: opacity .15s, background .15s;
    white-space: nowrap;
    background: #fff;
    user-select: none;
}
.na-cat-chip[data-cat="school"]    { border-color: #2196F3; color: #2196F3; }
.na-cat-chip[data-cat="health"]    { border-color: #f44336; color: #f44336; }
.na-cat-chip[data-cat="market"]    { border-color: #4CAF50; color: #4CAF50; }
.na-cat-chip[data-cat="bank"]      { border-color: #FF9800; color: #FF9800; }
.na-cat-chip[data-cat="transport"] { border-color: #9C27B0; color: #9C27B0; }

.na-cat-chip.is-active[data-cat="school"]    { background: #2196F3; color: #fff; }
.na-cat-chip.is-active[data-cat="health"]    { background: #f44336; color: #fff; }
.na-cat-chip.is-active[data-cat="market"]    { background: #4CAF50; color: #fff; }
.na-cat-chip.is-active[data-cat="bank"]      { background: #FF9800; color: #fff; }
.na-cat-chip.is-active[data-cat="transport"] { background: #9C27B0; color: #fff; }
.na-cat-chip.is-off { opacity: .38; }

/* Map container */
#nearby_map {
    border-radius: var(--radius-md);
    border: 1px solid #e0e0e0;
}
/* Summary bar */
.na-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    font-size: 12px;
    color: #555;
}
.na-summary-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
/* Message / loading text */
.na-msg {
    font-size: 13px;
    color: #888;
    padding: 8px 0;
    font-style: italic;
}
/* Leaflet divIcon marker badge */
.na-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    font-size: 13px;
    box-shadow: 0 1px 4px rgba(0,0,0,.35);
    border: 2px solid #fff;
}
/* Property pin (centre of nearby map) */
.na-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,.4);
    border: 2px solid #fff;
}
/* Mobile */
@media (max-width: 768px) {
    #nearby_map { height: 300px !important; }
    .na-controls { gap: 6px; }
    .na-radius-btn { padding: 6px 10px; min-height: 34px; }
    .na-cat-chip { min-height: 32px; font-size: 12px; }
}

/* ==========================================================
   Verification Requests Admin UI (v6.4.0)
   ========================================================== */
.verify-req-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 12px;
}
.verify-req-card + .verify-req-card {
    border-top: none;
    margin-top: -1px;
}
.verify-req-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
    margin-bottom: 8px;
}
.verify-req-name {
    font-weight: 600;
    font-size: var(--text-md);
    color: var(--color-text);
}
.verify-req-sub {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}
.verify-req-note {
    font-size: var(--text-sm);
    color: #444;
    background: #f8fafc;
    border-left: 3px solid var(--color-primary-light);
    padding: 6px 10px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: 10px;
    white-space: pre-wrap;
    word-break: break-word;
}
.verify-doc-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.verify-doc-thumb {
    max-height: 110px;
    max-width: 160px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    object-fit: cover;
    transition: opacity .15s;
}
.verify-doc-thumb:hover { opacity: .85; }
.verify-req-actions {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.verify-approve-btn {
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 7px 16px;
    font-size: var(--text-sm);
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background .15s;
}
.verify-approve-btn:hover { background: var(--color-accent-dark); }
.verify-reject-btn {
    background: #fff;
    color: var(--color-error);
    border: 1.5px solid var(--color-error);
    border-radius: var(--radius-md);
    padding: 7px 16px;
    font-size: var(--text-sm);
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background .15s, color .15s;
}
.verify-reject-btn:hover { background: var(--color-error); color: #fff; }
.verify-reject-reason {
    display: none;
    flex-basis: 100%;
    margin-top: 6px;
}
.verify-reject-reason textarea {
    width: 100%;
    min-height: 60px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 6px 10px;
    font-size: var(--text-sm);
    font-family: var(--font-sans);
    resize: vertical;
    box-sizing: border-box;
}
.verify-reject-reason .verify-reject-confirm {
    margin-top: 6px;
    background: var(--color-error);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 6px 14px;
    font-size: var(--text-sm);
    font-family: var(--font-sans);
    cursor: pointer;
}
.verify-empty {
    text-align: center;
    padding: 32px 0;
    color: var(--color-text-secondary);
    font-size: var(--text-md);
}
.verify-empty .fa { font-size: 32px; display: block; margin-bottom: 10px; }

/* ==========================================================
   Phase 04: User-facing "Xác thực tài khoản" section + modal
   Version: 6.5.0
   ========================================================== */

/* Section card */
.verify-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-top: 16px;
}
.verify-section-heading {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text);
    font-family: var(--font-sans);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.verify-section-heading .fa { color: var(--color-primary); }

/* Status pills */
.verify-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-sm);
    font-weight: 600;
    font-family: var(--font-sans);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.verify-pill--verified  { background: #dbeafe; color: #1d4ed8; }
.verify-pill--pending   { background: #fef3c7; color: #b45309; }
.verify-pill--rejected  { background: #fee2e2; color: #b91c1c; }
.verify-pill--none      { background: #f3f4f6; color: #6b7280; }

/* Rejection reason note (user-facing, lighter than admin version) */
.verify-section .verify-reject-note {
    font-size: var(--text-sm);
    color: var(--color-error);
    background: #fff5f5;
    border-left: 3px solid var(--color-error);
    padding: 6px 10px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 8px 0;
}
.verify-helper {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin: 8px 0 12px;
}

/* "Yêu cầu xác thực" button */
.verify-request-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 20px;
    font-size: var(--text-sm);
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background .15s;
}
.verify-request-btn:hover { background: #044a82; }

/* Modal overlay — mirrors .login-overlay */
.verify-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}
.verify-modal {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 28px 28px 24px;
    width: 440px;
    max-width: 94vw;
    position: relative;
    animation: loginModalIn 0.2s ease-out; /* reuse existing keyframe */
}
.verify-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.verify-modal-close:hover { color: #333; }
.verify-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    font-family: var(--font-sans);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.verify-modal-title .fa { color: var(--color-primary); }
.verify-modal-hint {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

/* File input row */
.verify-doc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 4px;
}
.verify-doc-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-secondary);
    font-family: var(--font-sans);
}
.verify-doc-input {
    width: 100%;
    padding: 8px 6px;
    border: 1px dashed #d1d5db;
    border-radius: var(--radius-md);
    background: #f9fafb;
    font-size: var(--text-sm);
    cursor: pointer;
    box-sizing: border-box;
}
.verify-doc-input:focus { outline: 2px solid var(--color-primary); border-color: transparent; }

/* Error message */
.verify-err {
    color: var(--color-error);
    font-size: var(--text-sm);
    background: #fff5f5;
    border-radius: var(--radius-md);
    padding: 8px 12px;
    margin-top: 10px;
    border-left: 3px solid var(--color-error);
}

/* Modal action buttons */
.verify-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    justify-content: flex-end;
}
.verify-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 20px;
    font-size: var(--text-sm);
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background .15s;
}
.verify-submit-btn:hover { background: #044a82; }
.verify-submit-btn:disabled { opacity: .65; cursor: not-allowed; }
.verify-cancel-btn {
    background: #f3f4f6;
    color: var(--color-text);
    border: 1px solid #d1d5db;
    border-radius: var(--radius-md);
    padding: 10px 16px;
    font-size: var(--text-sm);
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background .15s;
}
.verify-cancel-btn:hover { background: #e5e7eb; }

/* Mobile */
@media (max-width: 768px) {
    .verify-modal {
        padding: 20px 16px 18px;
        max-height: 90vh;
        overflow-y: auto;
    }
    .verify-doc-row {
        grid-template-columns: 1fr;
    }
    .verify-modal-actions {
        flex-direction: column-reverse;
    }
    .verify-submit-btn,
    .verify-cancel-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================
   Post-management tabs (Quản lý tin đăng) — full-width, ONE row.
   Bootstrap nav-justified only goes table-cell at ≥768px; ColCenter is 730px,
   so below the breakpoint tabs floated/stacked → wrapped to 2 rows. Use flex with
   equal grow so tabs share the full width evenly on a single row at any size. v6.6.0
   ========================================================== */
.__loaitin-tab.nav-justified{
  display:flex !important;
  flex-wrap:nowrap !important;
}
.__loaitin-tab.nav-justified > li{
  float:none !important;
  display:block !important;
  width:auto !important;
  flex:1 1 0 !important;   /* equal share of the full row width */
  min-width:0;
}
.__loaitin-tab.nav-justified > li > a{
  padding:10px 6px 9px !important;
  font-size:13px !important;
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
@media (max-width:768px){
  /* Narrow screens: keep equal share but allow horizontal scroll if truly cramped */
  .__loaitin-tab.nav-justified{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .__loaitin-tab.nav-justified > li{ flex:1 0 auto !important; }
  .__loaitin-tab.nav-justified > li > a{ padding:9px 8px !important; font-size:12px !important; }
}

/* ==========================================================
   Property-type icon dropdown (search form "Loại nhà đất bán/cho thuê")
   Custom panel over the native <select> (native options can't show icons).
   Native select kept hidden for form submission + show/hide logic. v6.6.1
   ========================================================== */
.propsel{ position:relative; width:100%; }
.propsel-label{
  display:flex; align-items:center; gap:8px;
  width:100%; box-sizing:border-box;
  padding:8px 30px 8px 12px; min-height:38px;
  border:1px solid var(--color-border,#ccc); border-radius:var(--radius-md,6px);
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23888' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E") no-repeat right 12px center;
  font-size:14px; color:#999; cursor:pointer; user-select:none;
}
.propsel-label.has-value{ color:var(--color-text,#222); }
.propsel-label > i{ width:16px; text-align:center; color:var(--color-primary,#055699); }
.propsel-panel{
  position:absolute; left:0; right:0; top:calc(100% + 4px); z-index:50;
  background:#fff; border:1px solid var(--color-border,#ccc); border-radius:var(--radius-md,6px);
  box-shadow:0 6px 20px rgba(0,0,0,.12);
  max-height:320px; overflow-y:auto; padding:4px 0; display:none;
}
.propsel.is-open .propsel-panel{ display:block; }
.propsel-item{
  display:flex; align-items:flex-start; gap:10px;
  padding:9px 14px; font-size:14px; color:var(--color-text,#222); cursor:pointer;
  white-space:normal;   /* wrap long VN labels — sidebar panel is only ~196px wide */
  line-height:1.35;
}
.propsel-item > i{ width:18px; flex:0 0 18px; text-align:center; color:var(--color-primary,#055699); font-size:15px; margin-top:1px; }
.propsel-item:hover{ background:#f2f7fb; }
.propsel-item.current{ background:#e8f1f9; font-weight:600; }
.propsel-item.is-sub{ padding-left:30px; font-size:13px; }
.propsel-item.is-sub > i{ color:#888; font-size:13px; }

/* ==========================================================
   Search UI polish — v6.7.0
   M2 paired advanced filters · M3 branded empty state · m2/m4 alignment
   ========================================================== */
/* M2: pack paired sidebar advanced selects 2-up (robust flex, avoids float/nth-child) */
.searchAdvRow{ display:flex; gap:8px; }
.searchAdvRow > .searchItem{ flex:1 1 0; min-width:0; }

/* m2: align custom property-type dropdown height with sibling 36px inputs */
.propsel-label{ min-height:36px; }

/* m4: push "Xóa lọc nâng cao" to the right edge of the chip row */
.searchActiveFilters .chipClearAll{ margin-left:auto; }

/* M3: branded "no results" empty state (replaces off-brand sweet-alert error modal) */
.searchEmpty{
  text-align:center; padding:48px 20px 56px; font-family:var(--font-sans,sans-serif);
}
.searchEmptyIcon{ font-size:46px; color:#cbd5e1; margin-bottom:14px; }
.searchEmptyTitle{ font-size:18px; font-weight:600; color:var(--color-text,#222); margin:0 0 6px; }
.searchEmptyText{ font-size:14px; color:#7a8699; margin:0 0 20px; }
.searchEmptyActions{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.searchEmptyBtn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:9px 18px; border-radius:var(--radius-md,6px); font-size:14px; font-weight:500;
  background:var(--color-primary,#055699); color:#fff !important; text-decoration:none;
  border:1px solid var(--color-primary,#055699); transition:opacity .15s;
}
.searchEmptyBtn:hover{ opacity:.9; }
.searchEmptyBtn--ghost{
  background:#fff; color:var(--color-primary,#055699) !important; border-color:#cbd5e1;
}

/* ==========================================================
   Mobile content-first — v6.7.4
   On phones, listings (ColCenter) come BEFORE the sidebar (ColLeft search/market/banners)
   so users reach content immediately instead of scrolling past the whole sidebar.
   Scoped to .main-layout (the main content wrapper) — header/banner wrappers untouched.
   ========================================================== */
@media (max-width: 768px) {
  .wrapper.main-layout { display: flex; flex-direction: column; }
  .wrapper.main-layout > .ColCenter { order: 1; }
  .wrapper.main-layout > .ColLeft  { order: 2; }
  .wrapper.main-layout > .ColRight { order: 3; }
  /* slider + .clear stay order:0 (top) by default */
}

/* SEO description (top of listing index) — plain text block, NOT a .bdsItem card shell */
.seo-description-top {
  background: #fff;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: var(--radius-md, 6px);
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text, #222);
}

/* === Legal documents (hồ sơ pháp lý) — detail page, v6.7.13 === */
.phaply-photos { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 16px; }
.phaply-thumb { display: inline-block; line-height: 0; }
.phaply-thumb img {
  width: 96px; height: 96px; object-fit: cover;
  border-radius: var(--radius-md, 8px); border: 1px solid #e5e7eb;
  transition: transform .15s ease;
}
.phaply-thumb:hover img { transform: scale(1.04); }
.phaply-locked {
  cursor: pointer; padding: 14px 18px; display: inline-flex; align-items: center; gap: 8px;
  background: #f5f7fa; border: 1px dashed #cbd5e1; border-radius: var(--radius-md, 8px);
  color: var(--color-primary, #055699); font-size: 14px;
}
.phaply-locked:hover { background: #eef2f7; }

/* === Hồ sơ pháp lý uploader — compact, exact 44px height, full-box clickable (v6.7.17) ===
   The shared .qq-uploader rule (border + padding 20px) overflows the 2-col grid and is
   taller than the 44px selects; it ALSO wraps a drop-area + list ABOVE the button, leaving
   the top of the dashed box unclickable. Fix: strip the wrapper's border/padding and make
   the .qq-upload-button ITSELF the visible 44px dashed clickable box (its overlaid file
   input then covers the whole box). Thumbnails render in the list BELOW the button. */
.__dang-tin-page #upload-phaply-docs { width: 100%; }
.__dang-tin-page #upload-phaply-docs .qq-uploader {
  border: none !important; background: transparent !important; box-shadow: none !important;
  box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0;
  padding: 0 !important; margin: 0; display: block;
}
/* Hide the drag drop-area span — it took vertical space above the button */
.__dang-tin-page #upload-phaply-docs .qq-upload-drop-area { display: none !important; }
/* The button IS the visible clickable box: full width, exact 44px (matches selects) */
.__dang-tin-page #upload-phaply-docs .qq-upload-button {
  position: relative; overflow: hidden; box-sizing: border-box;
  width: 100%; height: 44px; margin: 0; padding: 0 12px;
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  border: 2px dashed #d1d5db; border-radius: 6px; background: #fafafa;
  transition: border-color .2s, background .2s;
}
.__dang-tin-page #upload-phaply-docs .qq-upload-button:hover {
  border-color: var(--color-primary, #055699); background: #f0f7ff;
}
/* FU injects a transparent <input type=file> with INLINE styles covering only a strip;
   force it to cover the ENTIRE button (inline styles require !important). */
.__dang-tin-page #upload-phaply-docs .qq-upload-button input[type=file],
.__dang-tin-page #upload-phaply-docs .qq-upload-button input {
  position: absolute !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  width: 100% !important; height: 100% !important; min-height: 100% !important;
  margin: 0 !important; padding: 0 !important; font-size: 0 !important;
  opacity: 0 !important; cursor: pointer !important;
}
.__dang-tin-page #upload-phaply-docs .btn-upload-image {
  display: flex; align-items: center; gap: 8px; color: #6b7280; font-size: 13px; cursor: pointer;
}
.__dang-tin-page #upload-phaply-docs .btn-upload-image::before {
  content: "\f030"; font-family: FontAwesome; font-size: 15px; color: var(--color-primary, #055699);
}
.__dang-tin-page #upload-phaply-docs .btn-upload-image::after { content: "Bấm để chọn ảnh sổ"; }
.__dang-tin-page #upload-phaply-docs .qq-upload-list { width: 100%; margin: 6px 0 0; padding: 0; }

/* === Hình ảnh gallery uploader — compact drop zone + faint camera icon (v6.7.18) ===
   fine-uploader.css gives #upload-images-reviews .qq-uploader min-height:120px + a big
   faint drop-text via ::before. Shrink it a bit and add a faint camera icon so users
   recognise the upload zone (same cue as the phaply uploader). The .qq-upload-button is
   already absolute 100% (fully clickable); pseudo-elements are pointer-events:none. */
.__dang-tin-page #upload-images-reviews .qq-uploader {
  min-height: 96px !important; padding: 12px !important; box-sizing: border-box;
}
.__dang-tin-page #upload-images-reviews .qq-uploader::before {
  content: attr(qq-drop-area-text) " " !important;
  font-size: 14px !important; font-weight: 600 !important;
  top: auto !important; bottom: 14px !important; opacity: .4 !important; color: #555;
}
.__dang-tin-page #upload-images-reviews .qq-uploader::after {
  content: "\f030"; font-family: FontAwesome;
  position: absolute; left: 0; width: 100%; text-align: center;
  top: 18px; font-size: 30px; opacity: .16; color: #333; pointer-events: none;
}

/* Hand cursor over the gallery drop zone (v6.7.19) — FU's button + injected file input lack it */
.__dang-tin-page #upload-images-reviews .qq-uploader,
.__dang-tin-page #upload-images-reviews .qq-upload-button,
.__dang-tin-page #upload-images-reviews .qq-upload-button input { cursor: pointer !important; }

/* === Gallery uploader — stretch FU file input over the whole zone (v6.7.20) ===
   FU positions <input type=file> as a small element (only a strip is hoverable → no
   hand cursor / partial click). Force it to cover the entire uploader, like the phaply
   one. Offset parent is .qq-uploader (position:relative in fine-uploader.css). */
.__dang-tin-page #upload-images-reviews input[type=file] {
  position: absolute !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  width: 100% !important; height: 100% !important; opacity: 0 !important;
  cursor: pointer !important; font-size: 0 !important; margin: 0 !important; padding: 0 !important; z-index: 3;
}
.__dang-tin-page #upload-images-reviews .qq-uploader,
.__dang-tin-page #upload-images-reviews .qq-upload-button { cursor: pointer !important; }

/* ============ v6.9.22 — Breakdown diện tích đất (mở rộng: Đất ở/NN/SXKD) + hiệu ứng xuất hiện ============ */
.dat-detail-toggle {
  font-size: 12px; font-weight: 500; color: var(--color-primary);
  margin-left: 8px; cursor: pointer; white-space: nowrap;
}
.dat-detail-toggle:hover { text-decoration: underline; }
/* chiếm trọn hàng của #thong-tin-dat-grid (grid 3-cột cha) → không phá flow các cell khác */
.dat-breakdown {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 15px;
}
@media (max-width: 640px) {
  .dat-breakdown { grid-template-columns: 1fr; }
}
/* Hiệu ứng xuất hiện: slide-in xuống + fade, stagger 3 ô → báo hiệu đây là cột MỚI.
   Tự re-trigger mỗi lần .dat-breakdown display:none→grid (JS toggle show/hide). */
.dat-breakdown ._formPostItem {
  animation: datFieldIn .32s ease both;
}
.dat-breakdown ._formPostItem:nth-child(2) { animation-delay: .06s; }
.dat-breakdown ._formPostItem:nth-child(3) { animation-delay: .12s; }
@keyframes datFieldIn {
  0%   { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 1; transform: translateY(0); }
}
/* Nháy nền xanh nhạt trên input → nổi bật "cột mới vừa hiện" rồi tắt dần */
.dat-breakdown input[type="number"] {
  animation: datFieldHighlight 1.4s ease .1s both;
}
@keyframes datFieldHighlight {
  0%   { background: #eafbea; box-shadow: 0 0 0 2px rgba(5,162,27,.28); }
  70%  { background: #eafbea; box-shadow: 0 0 0 2px rgba(5,162,27,.12); }
  100% { background: #fff;    box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dat-breakdown ._formPostItem,
  .dat-breakdown input[type="number"] { animation: none; }
}

/* ============ v6.9.23 — Trang 404 (đồng bộ font/design system, thay inline style cũ) ============ */
.err404-wrap {
  max-width: 640px;
  margin: 64px auto 80px;
  padding: 0 20px;
  text-align: center;
  font-family: var(--font-sans);
}
.err404-code {
  font-size: 120px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.err404-title {
  font-size: 26px;
  font-weight: 600;               /* ĐỒNG NHẤT — bỏ <b> lẫn lộn đậm/thường */
  color: var(--color-text);
  margin: 0 0 12px;
  line-height: 1.35;
}
.err404-desc {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text-secondary, #64748b);
  margin: 0 0 28px;
  line-height: 1.6;
}
.err404-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.err404-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-md, 8px);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s, box-shadow .15s;
}
.err404-btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.err404-btn--primary:hover {
  background: #044a83;
  color: #fff;
}
.err404-btn--ghost {
  background: #fff;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.err404-btn--ghost:hover {
  background: var(--color-primary);
  color: #fff;
}
@media (max-width: 480px) {
  .err404-code { font-size: 84px; }
  .err404-title { font-size: 21px; }
  .err404-wrap { margin: 40px auto 56px; }
}

/* ============ v6.9.23 — Trang thông báo (.notice-*) — thay sweetalert legacy, đồng bộ design system ============ */
.notice-page {
  max-width: 560px;
  margin: 48px auto 72px;
  padding: 40px 28px;
  text-align: center;
  font-family: var(--font-sans);
  background: #fff;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-card, 0 1px 3px rgba(0,0,0,.08));
}
.notice-icon {
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; color: #fff;
}
.notice-icon--info    { background: var(--color-primary); }
.notice-icon--warning { background: #f5a623; }
.notice-icon--error   { background: var(--color-error, #dc2626); }
.notice-icon--success { background: var(--color-accent, #05a21b); }
.notice-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 10px;
  line-height: 1.35;
}
.notice-desc {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text-secondary, #64748b);
  margin: 0 0 4px;
  line-height: 1.6;
}
.notice-desc b { font-weight: 600; color: var(--color-text); }
.notice-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-top: 24px;
}
@media (max-width: 480px) {
  .notice-page { margin: 32px 16px 48px; padding: 32px 20px; }
  .notice-title { font-size: 19px; }
}

/* ============================================================================
   Edit-post page (quan-ly_detail.php → /quan-ly/...) UI modernization (v6.7.21)
   The edit form used the legacy flat .formPostItem layout (labels floated left at
   100px, crude inputs). Modernize to match the dang-tin look WITHOUT touching the
   markup or the existing 49% float grid: card container, labels above inputs,
   44px rounded inputs with focus ring, modern submit button.
   Scoped to .__edit-tin-page (only the edit <form>) so the create page is untouched.
   ============================================================================ */
.__edit-tin-page { max-width: 920px; margin: 8px auto 28px; font-family: var(--font-sans); }

/* Section cards (match dang-tin __box-wrap look) */
.__edit-tin-page .__box-wrap {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  margin-bottom: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.06); overflow: hidden;
}
.__edit-tin-page .__heading {
  font-weight: 700; font-size: 16px; color: var(--color-text, #1f2937);
  padding: 14px 20px; margin-bottom: 14px; border-bottom: 1px solid #f0f0f0;
  border-left: 3px solid var(--color-accent, #05a21b);
}
/* rows: CSS Grid 2-col — auto-aligns every cell to equal width + even gaps regardless of
   the legacy manual pairing/spacer hacks. formPostItemF spans the full row. (v6.7.23) */
.__edit-tin-page .__content { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; padding: 4px 20px 18px; align-items: start; }
.__edit-tin-page .__content > .formPostItem,
.__edit-tin-page .__content > .formPostItemF {
  float: none !important; width: auto !important; margin: 0 !important; position: relative; min-width: 0;
}
.__edit-tin-page .__content > .formPostItemF { grid-column: 1 / -1; }
/* drop the legacy hidden float-spacer (no longer needed with grid) */
.__edit-tin-page .__content > .formPostItem[style*="hidden"] { display: none !important; }
/* Force EVERY text control + select to fill its grid cell — uniform width regardless of
   theme/plugin defaults (searchBox disabled on edit; this guarantees all dropdowns match). */
.__edit-tin-page .__content select,
.__edit-tin-page .__content input[type=text],
.__edit-tin-page .__content input[type=number],
.__edit-tin-page .__content input[type=email],
.__edit-tin-page .__content input[type=tel],
.__edit-tin-page .__content input[type=password],
.__edit-tin-page .__content textarea,
.__edit-tin-page .__content .LOAINHADAT select { width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
/* uniform 44px height + dark text on ALL selects (fixes shorter "Hướng" + the grey
   AJAX-loaded "Loại nhà đất" text → consistent with the other dropdowns) */
.__edit-tin-page .__content select,
.__edit-tin-page .__content .LOAINHADAT select {
  height: 44px !important; min-height: 44px; line-height: 1.4;
  color: var(--color-text, #1f2937) !important;
}
/* the AJAX-loaded "Loại nhà đất" select container fills the cell */
.__edit-tin-page .__content .LOAINHADAT { width: 100%; }
/* category select is locked on edit (pointer-events:none) — render it clearly read-only */
.__edit-tin-page .__content select[style*="pointer-events"] {
  background-color: #f3f4f6 !important; color: #6b7280 !important; cursor: not-allowed;
}

/* labels above inputs (override style.css float:left;width:100px) */
.__edit-tin-page label {
  float: none !important; width: auto !important; line-height: 1.4 !important;
  display: block; font-weight: 600; font-size: 13px; color: #374151; margin-bottom: 6px;
}
.__edit-tin-page label.error {
  position: absolute; float: none !important; right: 0; top: 0; width: auto !important;
  color: #dc2626; font-size: 12px; font-weight: 400; margin: 0;
}

/* fields */
.__edit-tin-page input[type=text],
.__edit-tin-page input[type=number],
.__edit-tin-page input[type=email],
.__edit-tin-page input[type=tel],
.__edit-tin-page input[type=password],
.__edit-tin-page select,
.__edit-tin-page textarea {
  width: 100%; height: 44px; box-sizing: border-box; border: 1px solid #d1d5db;
  border-radius: 6px; padding: 8px 12px; font-size: 14px; font-family: var(--font-sans);
  color: var(--color-text, #1f2937); background-color: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.__edit-tin-page textarea { height: auto; min-height: 140px; resize: vertical; }
.__edit-tin-page input:focus,
.__edit-tin-page select:focus,
.__edit-tin-page textarea:focus {
  border-color: var(--color-primary, #055699);
  box-shadow: 0 0 0 3px rgba(5,86,153,.12); outline: none;
}
.__edit-tin-page input[readonly] { background: #f3f4f6; color: #6b7280; cursor: not-allowed; }
.__edit-tin-page select.cssSelectbox {
  -webkit-appearance: none; appearance: none;
  background: url(/theme/images/selectbox.png) no-repeat right 10px center;
}
.__edit-tin-page input::placeholder, .__edit-tin-page textarea::placeholder { color: #999; }

/* cover photo (PICTURE) preview */
.__edit-tin-page .DetailC img { max-width: 100%; border-radius: 8px; border: 1px solid #e5e7eb; }

/* gallery photo thumbnails */
.__edit-tin-page .MultiItem { display: inline-block; position: relative; margin: 0 10px 10px 0; vertical-align: top; }
.__edit-tin-page .MultiItem img { width: 92px; height: 70px; object-fit: cover; border-radius: 6px; border: 1px solid #e5e7eb; }

/* "Upload nhiều hình" / "Upload ảnh sổ" trigger buttons */
.__edit-tin-page .SelectPicture {
  display: inline-flex; align-items: center; gap: 6px; height: auto; padding: 8px 14px !important;
  border-radius: 6px; font-size: 13px; cursor: pointer;
}

/* submit + back buttons */
.__edit-tin-page .submit-ks {
  background: var(--color-accent, #05a21b) !important; border: none !important; color: #fff !important;
  height: 48px; padding: 0 36px !important; border-radius: 8px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: filter .2s; box-shadow: none !important;
}
.__edit-tin-page .submit-ks:hover { filter: brightness(.95); }

/* inline error notice */
.__edit-tin-page .NotiWarning,
.NotiWarning { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 8px; padding: 10px 14px; }

/* Edit-post success card (replaces the sweetalert block that rendered blank, v6.7.26) */
.__edit-success {
  max-width: 520px; margin: 40px auto; text-align: center; background: #fff;
  border: 1px solid #e5e7eb; border-radius: 12px; padding: 36px 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06); font-family: var(--font-sans);
}
.__edit-success .__es-icon { font-size: 56px; color: var(--color-accent, #05a21b); line-height: 1; margin-bottom: 14px; }
.__edit-success h2 { font-size: 22px; font-weight: 700; color: var(--color-text, #1f2937); margin: 0 0 8px; }
.__edit-success .__es-msg { font-size: 15px; color: #4b5563; margin: 0 0 20px; }
.__edit-success .__es-btn {
  display: inline-block; background: var(--color-primary, #055699); color: #fff;
  padding: 11px 28px; border-radius: 8px; font-weight: 600; font-size: 15px; text-decoration: none;
}
.__edit-success .__es-btn:hover { filter: brightness(.95); }
.__edit-success .__es-timer { font-size: 13px; color: #9ca3af; margin: 14px 0 0; }

/* === Simple rich-text editor (Nội dung) — dang-tin + edit (v6.7.27) === */
.rte-wrap { border: 1px solid #d1d5db; border-radius: 6px; overflow: hidden; background: #fff; }
.rte-wrap:focus-within { border-color: var(--color-primary, #055699); box-shadow: 0 0 0 3px rgba(5,86,153,.12); }
.rte-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px 8px; background: #f9fafb; border-bottom: 1px solid #e5e7eb; }
.rte-btn {
  min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid transparent; background: transparent;
  border-radius: 5px; cursor: pointer; color: #374151; font-size: 14px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s;
}
.rte-btn:hover { background: #eef2f7; border-color: #d1d5db; }
.rte-btn:active { background: #e2e8f0; }
.rte-btn b, .rte-btn i, .rte-btn u { font-style: normal; font-weight: 700; }
.rte-btn i.fa { font-weight: 400; }
.rte-sep { width: 1px; height: 18px; background: #e5e7eb; margin: 0 4px; }
.rte-editor {
  min-height: 200px; max-height: 480px; overflow-y: auto; padding: 12px 14px;
  font-size: 14px; line-height: 1.6; color: var(--color-text, #1f2937); font-family: var(--font-sans);
  outline: none;
}
.rte-editor:empty:before { content: attr(data-placeholder); color: #9ca3af; pointer-events: none; }
.rte-editor p { margin: 0 0 8px; }
.rte-editor ul, .rte-editor ol { margin: 0 0 8px; padding-left: 24px; }

/* === Feature tagging (Tiện ích & Đặc điểm) — dang-tin + edit (v6.7.28) === */
.feature-group { margin-bottom: 14px; }
.feature-group:last-child { margin-bottom: 0; }
.feature-group-label { font-weight: 600; font-size: 13px; color: #6b7280; margin: 4px 0 8px; }
.feature-checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 14px; }
.feature-checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: var(--color-text, #1f2937); }
.feature-checkbox input { width: 16px; height: 16px; margin: 0; cursor: pointer; flex: 0 0 auto; }
.feature-checkbox span { line-height: 1.3; }
/* Edit page uses a 2-col grid on .__content children — let feature groups span the full row */
.__edit-tin-page .__content > .feature-group { grid-column: 1 / -1; }

/* Feature chips — detail page (v6.7.29) */
.feature-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
/* Đặc điểm tags nổi bật ngay dưới title (batdongsan/chotot style) */
/* margin-left:1% khớp với .HomeTitle h1 (cùng canh trái với title) */
.detail-top-features { margin: 10px 0 4px 1%; }
.detail-top-features .feature-chip { font-weight: 500; }
.feature-chip { display: inline-flex; align-items: center; gap: 5px; background: #eef2f7; color: var(--color-primary, #055699); border-radius: 16px; padding: 5px 12px; font-size: 13px; }
.feature-chip i.fa { font-size: 11px; color: var(--color-accent, #05a21b); }

/* Feature filter in search advanced panel (v6.7.29) */
.searchFeatureFilter { width: 100%; margin-top: 8px; }
.searchFeatureLabel { font-weight: 600; font-size: 13px; color: #6b7280; margin: 0 0 6px; }
.searchFeatureGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 12px; }
.searchFeatureChk { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; }
.searchFeatureChk input { width: auto; margin: 0; flex: 0 0 auto; }

/* ============================================================
   Lịch sử giao dịch — /lich-su-giao-dich/ (v6.7.37)
   ============================================================ */
.txn-page { padding-top: 4px; }
/* Ví: số dư + KM + nạp tiền */
.txn-wallet {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  background: linear-gradient(135deg, var(--color-primary, #055699), #0a74c9);
  border-radius: var(--radius-lg, 12px);
  padding: 16px 20px; margin: 0 0 18px; color: #fff;
}
.txn-wallet-item { display: flex; flex-direction: column; gap: 3px; padding-right: 22px; }
.txn-wallet-item + .txn-wallet-item { border-left: 1px solid rgba(255,255,255,.25); padding-left: 22px; }
.txn-wallet .tw-label { font-size: 12.5px; opacity: .9; }
.txn-wallet .tw-label .fa { margin-right: 4px; }
.txn-wallet .tw-value { font-size: 22px; font-weight: 700; line-height: 1.1; }
.txn-wallet .tw-value small { font-size: 13px; font-weight: 500; opacity: .85; }
.txn-wallet-km .tw-value { color: #ffe08a; }
.txn-wallet-topup {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  background: var(--color-accent, #05a21b); color: #fff !important; text-decoration: none;
  padding: 9px 18px; border-radius: var(--radius-md, 8px); font-weight: 600; font-size: 14px;
  transition: filter var(--transition-fast, .15s);
}
.txn-wallet-topup:hover { filter: brightness(1.08); text-decoration: none; }

/* Bảng giao dịch */
.txn-table-wrap { overflow-x: auto; border: 1px solid var(--color-border, #e5e7eb); border-radius: var(--radius-md, 8px); }
.txn-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.txn-table thead th {
  background: #f3f6fa; color: #475569; font-weight: 600; font-size: 12.5px; text-transform: uppercase;
  letter-spacing: .3px; text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--color-border, #e5e7eb);
}
.txn-table tbody td { padding: 12px 14px; border-bottom: 1px solid #f0f2f5; vertical-align: middle; }
.txn-table tbody tr:last-child td { border-bottom: 0; }
.txn-table tbody tr:hover { background: #f8fafc; }
.txn-table .ta-r { text-align: right; }
.txn-table .ta-c { text-align: center; }

.txn-noidung { display: flex; align-items: center; gap: 10px; }
.txn-ic { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.txn-ic--in  { background: #e7f7ec; color: var(--color-accent, #05a21b); }
.txn-ic--out { background: #fdecec; color: var(--color-error, #dc2626); }
.txn-noidung-txt { display: flex; flex-direction: column; line-height: 1.3; }
.txn-noidung-txt b { font-weight: 600; color: var(--color-text, #1a1a1a); }
.txn-noidung-txt small { color: #9aa3af; font-size: 11.5px; }
.txn-date { color: #64748b; white-space: nowrap; }

.txn-amt { font-weight: 700; white-space: nowrap; }
.txn-amt--in  { color: var(--color-accent, #05a21b); }
.txn-amt--out { color: var(--color-error, #dc2626); }

.txn-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 14px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.txn-badge .fa { font-size: 10px; }
.txn-badge--ok      { background: #e7f7ec; color: #0a8f2e; }
.txn-badge--done    { background: #eef2f7; color: #475569; }
.txn-badge--pending { background: #fff4e0; color: #b8770a; }

/* Empty / chưa đăng nhập */
.txn-empty { text-align: center; padding: 48px 20px; color: #64748b; }
.txn-empty .fa { font-size: 44px; color: #cbd5e1; margin-bottom: 14px; }
.txn-empty h3 { font-size: 18px; color: var(--color-text, #1a1a1a); margin: 0 0 6px; }
.txn-empty p { font-size: 14px; margin: 0 0 18px; }
.txn-empty-cta {
  display: inline-flex; align-items: center; gap: 6px; background: var(--color-accent, #05a21b);
  color: #fff !important; text-decoration: none; padding: 10px 22px; border-radius: var(--radius-md, 8px); font-weight: 600;
}
.txn-empty-cta:hover { filter: brightness(1.08); text-decoration: none; }

/* Responsive: stack table thành thẻ trên mobile */
@media (max-width: 640px) {
  .txn-wallet { gap: 10px; }
  .txn-wallet-topup { margin-left: 0; width: 100%; justify-content: center; }
  .txn-table thead { display: none; }
  .txn-table, .txn-table tbody, .txn-table tr, .txn-table td { display: block; width: 100%; }
  .txn-table tr { border-bottom: 1px solid var(--color-border, #e5e7eb); padding: 8px 0; }
  .txn-table tbody td { border: 0; padding: 5px 12px; }
  .txn-table td.ta-r, .txn-table td.ta-c { text-align: left; }
  .txn-table td[data-label]:not(.txn-noidung)::before {
    content: attr(data-label) ": "; font-weight: 600; color: #94a3b8; font-size: 12px;
  }
}

/* Badge "VIP thành viên" trong sidebar tài khoản (v6.7.38) — màu vàng/cam, khác tick xanh xác thực */
.member-vip-badge {
  display: inline-block; vertical-align: middle; margin-left: 5px;
  background: linear-gradient(135deg, #f7b733, #e8890c); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .5px;
  padding: 1px 7px; border-radius: 10px; line-height: 1.5;
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.member-vip-line { color: #b8770a; }
.member-vip-line .fa { color: #e8890c; }
.member-vip-line strong { color: #b8770a; }
.member-vip-days { color: #9aa3af; font-weight: 400; font-size: 12px; }
/* VIP badge cỡ lớn cho trang cá nhân /users/{id}/ (v6.7.39) */
.member-vip-badge--lg { font-size: 13px; padding: 2px 11px; border-radius: 12px; vertical-align: middle; margin-left: 8px; }
/* HSD VIP xuống dòng riêng, thụt canh theo icon — tránh bị cắt khi cột hẹp (v6.7.40) */
.member-vip-hsd { display: block; padding-left: 20px; font-size: 12px; line-height: 1.4; }

/* ============================================================
   Gói thành viên VIP — /mua-goi/ 3 gói (v6.7.41)
   ============================================================ */
.vip-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 20px; align-items: stretch; }
.vip-plan-card {
  position: relative; background: #fff; border: 1.5px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-lg, 12px); padding: 24px 18px; text-align: center;
  display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.vip-plan-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); transform: translateY(-3px); }
.vip-plan-card--featured { border-color: var(--color-accent, #05a21b); box-shadow: 0 6px 20px rgba(5,162,27,.12); }
.vip-plan-tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #f7b733, #e8890c); color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 14px; border-radius: 12px; white-space: nowrap; box-shadow: 0 2px 4px rgba(0,0,0,.15);
}
.vip-plan-label { font-size: 15px; font-weight: 600; color: var(--color-text-light, #64748b); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.vip-plan-price { font-size: 30px; font-weight: 800; color: var(--color-primary, #055699); line-height: 1.1; }
.vip-plan-price span { font-size: 16px; font-weight: 600; }
.vip-plan-permonth { font-size: 13px; color: #64748b; margin: 8px 0 0; }
.vip-plan-save { display: inline-block; background: #e7f7ec; color: #0a8f2e; font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 10px; margin-left: 4px; }
.vip-plan-feats { list-style: none; padding: 0; margin: 18px 0; text-align: left; flex: 1 1 auto; }
.vip-plan-feats li { font-size: 13.5px; color: var(--color-text, #1f2937); padding: 5px 0; }
.vip-plan-feats li .fa { color: var(--color-accent, #05a21b); margin-right: 7px; }
.vip-plan-btn {
  width: 100%; border: 0; cursor: pointer; background: var(--color-accent, #05a21b); color: #fff;
  font-weight: 700; font-size: 15px; padding: 12px; border-radius: var(--radius-md, 8px);
  transition: filter .15s; margin-top: auto;
}
.vip-plan-btn:hover { filter: brightness(1.08); }
.vip-plan-card--featured .vip-plan-btn { background: linear-gradient(135deg, #f7b733, #e8890c); }
@media (max-width: 640px) {
  .vip-plans { grid-template-columns: 1fr; }
}

/* ==========================================================
   NẠP XU (top-up) — modern layer  v6.7.43 (font sizes toned down)
   Scope: .paymentdeposit  (overrides theme.min.css)
   ========================================================== */
.paymentdeposit{max-width:760px;margin:0 auto;padding:4px 0 24px}

/* Số dư hiện tại */
.np-wallet{display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  background:linear-gradient(135deg,var(--color-primary,#055699),#0a6fc2);
  color:#fff;border-radius:var(--radius-lg,12px);padding:16px 20px;margin-bottom:20px;
  box-shadow:0 6px 18px rgba(5,86,153,.25)}
.np-wallet-ic{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.18);
  display:flex;align-items:center;justify-content:center;font-size:18px}
.np-wallet-label{font-size:13px;opacity:.9}
.np-wallet-value{font-size:20px;font-weight:800;margin-left:auto;line-height:1}
.np-wallet-value span{font-size:13px;font-weight:600;opacity:.85;margin-left:2px}
.np-wallet-km{flex-basis:100%;font-size:13px;color:#ffe7a8}

/* Danh sách phương thức */
.paymentdeposit .methods{background:#fff;border:1px solid var(--color-border,#e5e7eb);
  border-radius:var(--radius-lg,12px);overflow:hidden;margin-bottom:20px;box-shadow:var(--shadow-card,0 1px 3px rgba(0,0,0,.08))}
.paymentdeposit .methods h1{margin:0;color:var(--color-primary,#055699);text-transform:uppercase;
  font-size:14px;font-weight:700;letter-spacing:.3px;line-height:1;padding:16px 20px;
  border-bottom:1px solid var(--color-border,#e5e7eb);background:#f8fafc;height:auto;font-family:inherit}
.paymentdeposit .methods ul{list-style:none;margin:0;padding:6px}
.paymentdeposit .methods ul li{list-style:none;border:0;padding:10px 14px;border-radius:var(--radius-md,8px);transition:background .15s}
.paymentdeposit .methods ul li:hover{background:#f3f7fb}
.paymentdeposit .methods ul li label{display:flex;align-items:center;gap:8px;margin:0;font-weight:600}
.paymentdeposit .methods ul li label a{font-weight:600;color:var(--color-text,#1f2937);display:inline-flex;align-items:center;gap:6px}
.paymentdeposit .methods ul li label a.active{color:var(--color-primary,#055699)}
.paymentdeposit .methods ul li .fa-check{color:#cbd5e1!important;margin:0!important;float:none!important}
.paymentdeposit .methods ul li span{display:block;color:#6b7280;font-style:normal;font-size:12.5px;margin:2px 0 0 26px}
.paymentdeposit .methods ul li span a{color:var(--color-primary,#055699)}

/* Thẻ form */
.paymentdeposit .domesticcard{margin-top:0;background:#fff;border:1px solid var(--color-border,#e5e7eb);
  border-radius:var(--radius-lg,12px);padding:22px;box-shadow:var(--shadow-card,0 1px 3px rgba(0,0,0,.08))}
.np-card-head{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:700;
  color:var(--color-text,#1f2937);padding-bottom:14px;margin-bottom:18px;border-bottom:1px solid var(--color-border,#e5e7eb)}
.np-card-head .np-card-badge{display:inline-flex}

.paymentdeposit .moneyinfo,.paymentdeposit .np-grid{padding:0;margin-bottom:16px}
.paymentdeposit .np-field,.paymentdeposit .dk-item{width:100%;margin-bottom:16px;float:none}
.paymentdeposit .np-label,.paymentdeposit label.titlelh{display:block;width:100%;font-weight:600;
  font-size:13px;color:var(--color-text,#1f2937);margin-bottom:6px;line-height:1.3}

/* Ô nhập số xu */
.np-amount{display:flex;align-items:stretch;border:1.5px solid var(--color-border,#d1d5db);
  border-radius:var(--radius-md,8px);overflow:hidden;transition:border-color .15s,box-shadow .15s;background:#fff}
.np-amount:focus-within{border-color:var(--color-primary,#055699);box-shadow:0 0 0 3px rgba(5,86,153,.12)}
.paymentdeposit .np-amount input[type=text]{flex:1;border:0!important;height:44px;line-height:44px;margin:0!important;
  padding:0 14px;font-size:16px;font-weight:700;color:var(--color-text,#1f2937);outline:none;width:auto;box-shadow:none!important}
.np-amount-unit{display:flex;align-items:center;padding:0 14px;background:#f3f4f6;color:#6b7280;
  font-weight:700;font-size:13px;border-left:1px solid var(--color-border,#e5e7eb)}

/* Chip chọn nhanh */
.np-quick{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.np-chip{flex:1 1 auto;min-width:84px;border:1.5px solid var(--color-border,#d1d5db);background:#fff;
  border-radius:var(--radius-md,8px);padding:8px 6px;font-size:13px;font-weight:600;color:#374151;
  cursor:pointer;transition:all .15s}
.np-chip:hover{border-color:var(--color-primary,#055699);color:var(--color-primary,#055699)}
.np-chip.is-active{border-color:var(--color-primary,#055699);background:#eef5fb;color:var(--color-primary,#055699)}

.np-hint{display:block;margin-top:10px;font-size:12.5px;color:#6b7280;font-style:normal}
.np-hint .fa{color:var(--color-primary,#055699)}
.np-hint b{color:var(--color-accent,#05a21b);font-weight:700}

/* select2 ngân hàng */
.paymentdeposit .select2-container{width:100%!important}
.paymentdeposit .select2-container .select2-selection--single{height:44px!important;
  border:1.5px solid var(--color-border,#d1d5db)!important;border-radius:var(--radius-md,8px)!important;display:flex;align-items:center}
.paymentdeposit .select2-container .select2-selection__rendered{line-height:44px!important;padding-left:12px!important;font-size:14px}
.paymentdeposit .select2-container .select2-selection__arrow{height:42px!important}
.paymentdeposit .select2-container img.flag{height:20px;vertical-align:middle;margin-right:8px}
.paymentdeposit select.bankcode{height:44px;border:1.5px solid var(--color-border,#d1d5db);border-radius:var(--radius-md,8px);padding:0 10px;width:100%;font-size:14px}

/* Thông tin hoá đơn (momo / thẻ) */
.paymentdeposit .billinfo .dk-item{margin-bottom:14px}
.paymentdeposit .billinfo label{display:block;width:100%;font-weight:600;font-size:13px;margin-bottom:6px;color:var(--color-text,#1f2937)}
.paymentdeposit .billinfo input[type=text],.paymentdeposit .billinfo textarea{width:100%;border:1.5px solid var(--color-border,#d1d5db);
  border-radius:var(--radius-md,8px);padding:9px 12px;font-size:14px;line-height:1.4;min-height:42px}
.paymentdeposit .billinfo input[readonly]{background:#f9fafb;color:#6b7280}

/* Banklist (thẻ nội địa cũ) */
.paymentdeposit .banklist{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}
.paymentdeposit .banklist img{margin:0;border:1.5px solid var(--color-border,#e5e7eb);border-radius:6px;width:120px;height:auto}
.paymentdeposit .banklist img.active{border-color:var(--color-accent,#05a21b);box-shadow:0 0 0 2px rgba(5,162,27,.25)}

/* Ghi chú */
.paymentdeposit .dk-item:not(.np-field){color:#6b7280;font-size:13px;line-height:1.5}

/* Nút tiếp tục */
.paymentdeposit .domesticcard input[type=submit],.np-submit{margin:6px 0 0!important;width:100%;
  background:var(--color-accent,#05a21b);color:#fff;border:0;border-radius:var(--radius-md,8px);
  height:46px;font-size:15px;font-weight:700;cursor:pointer;transition:filter .15s;box-shadow:0 4px 12px rgba(5,162,27,.25)}
.paymentdeposit .domesticcard input[type=submit]:hover,.np-submit:hover{filter:brightness(1.07)}

/* Chuyển khoản / trực tiếp */
.paymentdeposit .DetailC{background:#fff;border:1px solid var(--color-border,#e5e7eb);
  border-radius:var(--radius-lg,12px);padding:22px;line-height:1.9;box-shadow:var(--shadow-card,0 1px 3px rgba(0,0,0,.08))}
.paymentdeposit .DetailC span{font-family:inherit!important}

/* Lỗi */
.paymentdeposit .NotiWarning{background:#fef2f2;border:1px solid #fecaca;color:#b91c1c;
  border-radius:var(--radius-md,8px);padding:14px 16px;margin-bottom:18px}

@media (max-width:560px){
  .np-wallet-value{font-size:20px}
  .np-chip{min-width:0;flex:1 1 28%}
  .paymentdeposit .domesticcard{padding:16px}
}

/* ==========================================================
   MAGIC LINK — trang xác nhận verify/login + link trong modal  v6.7.44
   ========================================================== */
.magic-box{max-width:460px;margin:24px auto;background:#fff;border:1px solid var(--color-border,#e5e7eb);
  border-radius:var(--radius-lg,12px);padding:30px 26px;text-align:center;box-shadow:var(--shadow-card,0 1px 3px rgba(0,0,0,.08))}
.magic-box-icon{width:56px;height:56px;margin:0 auto 14px;border-radius:50%;background:#fef2f2;color:#dc2626;
  display:flex;align-items:center;justify-content:center;font-size:24px}
.magic-box-title{font-size:18px;font-weight:700;color:var(--color-text,#1f2937);margin:0 0 10px}
.magic-box-intro{font-size:14px;color:#6b7280;line-height:1.6;margin:0 0 18px}
.magic-box-btn{display:inline-block;background:var(--color-accent,#05a21b);color:#fff;border:0;
  border-radius:var(--radius-md,8px);padding:12px 26px;font-size:15px;font-weight:700;cursor:pointer;
  text-decoration:none;transition:filter .15s}
.magic-box-btn:hover{filter:brightness(1.07);color:#fff}
.magic-box--error .magic-box-btn{background:var(--color-primary,#055699)}

/* Link "Đăng nhập bằng link email" trong modal.
   Base: xanh dương KHÔNG gạch chân (giống "Đăng ký tại đây") → hover mới gạch chân = có feedback rõ.
   !important + specificity .login-modal để thắng màu trắng rò rỉ từ .navTop (xem rule hover bên dưới). */
.login-magic{margin-top:12px;text-align:center}
.login-modal .login-magic-link{display:inline-block;font-size:13px;color:#055699 !important;font-weight:600;cursor:pointer}
/* Cùng bệnh với magic-link: TOÀN BỘ login modal nằm trong .navTop → rule nav `.navTop a:hover{color:#fff!important}`
   (đúng cho nav nền tối) rò rỉ làm các link modal trên NỀN TRẮNG chuyển trắng khi hover → biến mất.
   Khôi phục màu hiển thị + thêm feedback hover RÕ (đậm màu + nền xanh nhạt + gạch chân). Specificity .login-modal … > .navTop a:hover. */
.login-modal .login-register-link a,
.login-modal .login-magic-link { transition: color .15s ease; }
.login-modal .login-register-link a:hover,
.login-modal .login-magic-link:hover { color: #034b87 !important; text-decoration: underline; }
.login-modal .forgot-link:hover { color: var(--color-accent) !important; }
.login-modal .loginBtn--google:hover { color: var(--color-text) !important; }
#magicLoginBox{margin-top:14px;text-align:left}
/* Ô email magic: input type="email" KHÔNG khớp .login-field input[type=text/password] → style riêng, to + hiện đại */
#magicLoginBox .login-field{margin-bottom:12px}
#magicLoginBox .submit-dn{margin-top:0}
#magicLoginBox .login-field > .fa{font-size:16px;left:16px;color:#9ca3af}
#magicLoginBox .login-field input[type="email"]{width:100%;box-sizing:border-box;height:50px;
  padding:0 16px 0 44px;border:1.5px solid var(--color-border,#d1d5db);border-radius:12px;
  font-size:15px;color:var(--color-text,#1f2937);background:#f9fafb;
  transition:border-color .15s,box-shadow .15s,background .15s}
#magicLoginBox .login-field input[type="email"]:focus{outline:none;background:#fff;
  border-color:var(--color-primary,#055699);box-shadow:0 0 0 4px rgba(5,86,153,.12)}
#magicLoginBox .login-field input[type="email"]::placeholder{color:#9ca3af}
.login-magic-msg{margin-top:10px;font-size:13px;color:var(--color-accent,#05a21b);background:#f0fdf4;
  border:1px solid #bbf7d0;border-radius:var(--radius-md,8px);padding:9px 12px;line-height:1.5}

/* ===================================================
   BÁO GIÁ — Landing dịch vụ & bảng giá v6.7.52
   =================================================== */

/* Full-width layout (mirror nmg-page-layout) — ẩn sidebar */
.bg-page-layout .ColLeft { display: none }
.bg-page-layout #wowslider-container1 { display: none }
.bg-page-layout .ColCenter.ColCenter--wide { width: 100% !important; margin: 0 !important; float: none !important; overflow: visible !important; }

.__bao-gia-page { max-width: 1120px; margin: 0 auto; padding: 8px 0 32px; font-family: var(--font-sans); color: var(--color-text,#1f2937); }
.__bao-gia-page .bg-btn { display:inline-block; padding:11px 22px; border-radius:var(--radius-md,8px); font-weight:600; font-size:14px; text-decoration:none; transition:background .15s,box-shadow .15s,transform .1s; cursor:pointer; }
.__bao-gia-page .bg-btn--primary { background:var(--color-accent,#05a21b); color:#fff; }
.__bao-gia-page .bg-btn--primary:hover { background:#048a17; box-shadow:0 3px 10px rgba(5,162,27,.3); }
.__bao-gia-page .bg-btn--ghost { background:transparent; color:#fff; border:1.5px solid rgba(255,255,255,.7); }
.__bao-gia-page .bg-btn--ghost:hover { background:rgba(255,255,255,.12); }

/* Hero */
.bg-hero { background:linear-gradient(135deg,var(--color-primary,#055699),#0a74c9); color:#fff; border-radius:var(--radius-lg,12px); padding:40px 28px; text-align:center; margin-bottom:28px; }
.bg-hero h1 { color:#fff; font-size:30px; font-weight:800; margin:0 0 10px; }
.bg-hero-sub { font-size:16px; opacity:.95; margin:0 0 20px; line-height:1.6; }
.bg-hero-sub strong { color:#ffe082; }
.bg-hero-cta { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.bg-hero-trust { margin-top:18px; font-size:13px; opacity:.85; }

.bg-cms-intro { background:#fff; border:1px solid #e8e8e8; border-radius:var(--radius-lg,12px); padding:20px 24px; margin-bottom:28px; line-height:1.7; }

/* Sections */
.bg-section { margin-bottom:36px; }
.bg-section-title { font-size:22px; font-weight:800; color:var(--color-primary,#055699); margin:0 0 6px; padding-left:12px; border-left:4px solid var(--color-accent,#05a21b); }
.bg-section-title span { font-weight:500; font-size:15px; color:#6b7280; }
.bg-section-desc { color:#6b7280; font-size:14px; margin:0 0 20px; padding-left:14px; line-height:1.6; }

/* Khối A — gói tin theo ngày */
.bg-tier-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:14px; }
.bg-tier-card { background:#fff; border:1px solid #e8e8e8; border-radius:var(--radius-lg,12px); padding:20px 16px; display:flex; flex-direction:column; position:relative; transition:transform .15s,box-shadow .15s; }
.bg-tier-card:hover { transform:translateY(-3px); box-shadow:0 6px 18px rgba(0,0,0,.08); }
.bg-tier-card--featured { border:2px solid var(--color-accent,#05a21b); box-shadow:0 4px 16px rgba(5,162,27,.14); }
.bg-tier-tag { position:absolute; top:-11px; left:50%; transform:translateX(-50%); background:var(--color-accent,#05a21b); color:#fff; font-size:11px; font-weight:700; padding:3px 12px; border-radius:20px; white-space:nowrap; }
.bg-tier-name { font-size:16px; font-weight:700; text-align:center; }
.bg-tier-t1 .bg-tier-name { color:#d32029; } .bg-tier-t2 .bg-tier-name { color:#d4a017; }
.bg-tier-t3 .bg-tier-name { color:#7d8da1; } .bg-tier-t4 .bg-tier-name { color:#b08d57; }
.bg-tier-price { text-align:center; margin:10px 0 4px; font-size:22px; font-weight:800; color:var(--color-text,#1f2937); }
.bg-tier-price span { font-size:13px; font-weight:500; color:#6b7280; }
.bg-tier-price .bg-tier-free { display:block; font-size:18px; color:var(--color-accent,#05a21b); }
.bg-tier-price small { display:block; font-size:12px; font-weight:500; color:#6b7280; }
.bg-tier-suit { text-align:center; font-size:12px; color:#6b7280; min-height:32px; margin-bottom:10px; }
.bg-tier-feats { list-style:none; padding:0; margin:0 0 16px; flex:1; }
.bg-tier-feats li { font-size:12.5px; color:#374151; padding:4px 0; line-height:1.45; }
.bg-tier-feats .fa { color:var(--color-accent,#05a21b); margin-right:5px; }
.bg-tier-card .bg-btn { text-align:center; margin-top:auto; }
.bg-tier-note { margin-top:16px; background:#fffbeb; border:1px solid #fde68a; border-radius:var(--radius-md,8px); padding:12px 16px; font-size:13.5px; color:#92400e; line-height:1.6; }
.bg-tier-note .fa { color:#d4a017; }
.bg-tier-example { display:block; margin-top:4px; color:#6b7280; }

/* Khối C — dịch vụ khác */
.bg-other-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:16px; }
.bg-other-card { background:#fff; border:1px solid #e8e8e8; border-radius:var(--radius-lg,12px); padding:24px; text-align:center; }
.bg-other-soon { border-style:dashed; color:#6b7280; }
.bg-other-soon .fa { font-size:30px; color:var(--color-primary,#055699); margin-bottom:10px; }
.bg-other-name { font-size:16px; font-weight:700; color:var(--color-text,#1f2937); margin-bottom:8px; }
.bg-other-card p { font-size:13.5px; line-height:1.6; margin:0 0 14px; }
.bg-other-card .bg-btn--ghost { color:var(--color-primary,#055699); border-color:var(--color-primary,#055699); }
.bg-other-card .bg-btn--ghost:hover { background:rgba(5,86,153,.06); }

/* So sánh */
.bg-compare { width:100%; border-collapse:collapse; background:#fff; border:1px solid #e8e8e8; border-radius:var(--radius-lg,12px); overflow:hidden; }
.bg-compare th, .bg-compare td { padding:12px 16px; text-align:left; font-size:14px; border-bottom:1px solid #f0f0f0; }
.bg-compare thead th { background:var(--color-primary,#055699); color:#fff; font-weight:600; }
.bg-compare tbody tr:last-child td { border-bottom:none; }
.bg-compare .bg-yes { color:var(--color-accent,#05a21b); font-weight:600; }

/* FAQ */
.bao-gia-faq { background:#fff; border:1px solid #e8e8e8; border-radius:var(--radius-lg,12px); padding:20px 24px; line-height:1.7; }
.bao-gia-faq h3, .bao-gia-faq strong { color:var(--color-primary,#055699); }

/* CTA cuối */
.bg-cta-final { background:linear-gradient(135deg,#0a74c9,var(--color-primary,#055699)); color:#fff; border-radius:var(--radius-lg,12px); padding:32px 24px; text-align:center; }
.bg-cta-final h2 { color:#fff; font-size:22px; font-weight:800; margin:0 0 18px; }

/* Responsive */
@media (max-width:1069px){ .bg-tier-grid { grid-template-columns:repeat(3,1fr); } }
@media (max-width:768px){
  .__bao-gia-page { padding:8px 12px 32px; }
  .bg-tier-grid { grid-template-columns:repeat(2,1fr); }
  .bg-hero h1 { font-size:24px; } .bg-hero-sub { font-size:14px; }
  .bg-compare { display:block; overflow-x:auto; }
}
@media (max-width:480px){ .bg-tier-grid { grid-template-columns:1fr; } }

/* ===================================================================
   PROVINCE LANDING — khối số liệu data-driven (SEO P02)  v6.7.53
   =================================================================== */
.provinceIntro{
  background:#f0f6ff;border:1px solid #d6e4ff;border-radius:var(--radius-md,8px);
  padding:12px 16px;margin:0 0 14px;font-size:14px;line-height:1.6;color:var(--color-text,#333);
}
.provinceIntro p{margin:0;}
.provinceIntro strong{color:var(--color-primary,#055699);}
@media (max-width:480px){ .provinceIntro{font-size:13px;padding:10px 12px;} }

/* ===================================================================
   LIÊN HỆ — modern contact page (info + form card, Leaflet map)  v6.7.54
   =================================================================== */
.lienhe-page { font-family: var(--font-sans); }
/* Full-width layout (mirror bg-page-layout) — ẩn cột trái + slider, ColCenter 100% */
.lienhe-page-layout .ColLeft { display: none; }
.lienhe-page-layout #wowslider-container1 { display: none; }
.lienhe-page-layout .ColCenter.ColCenter--wide { width: 100% !important; margin: 0 !important; float: none !important; overflow: visible !important; }
.lienhe-grid { display: flex; gap: 16px; flex-wrap: wrap; align-items: stretch; margin-bottom: 16px; }
.lienhe-info-card { flex: 0 0 38%; }
.lienhe-form-card { flex: 1 1 300px; }
.lienhe-info-card, .lienhe-form-card, .lienhe-map-card {
  background: #fff; border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-lg, 12px); box-shadow: var(--shadow-card, 0 1px 3px rgba(0,0,0,.08));
  padding: 20px; box-sizing: border-box;
}
.lienhe-map-card { padding: 16px; }
.lienhe-card-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 600; color: var(--color-text, #1a1a1a);
  margin: 0 0 16px; padding-left: 10px; border-left: 3px solid var(--color-accent, #05a21b);
  line-height: 1.3;
}
.lienhe-card-title .fa { color: var(--color-primary, #055699); }
.lienhe-company { font-weight: 700; color: var(--color-primary, #055699); font-size: 15px; margin-bottom: 14px; }

.lienhe-info { list-style: none; margin: 0; padding: 0; }
.lienhe-info li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f1f3f5; }
.lienhe-info li:last-child { border-bottom: 0; }
.lienhe-info .lh-ico {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--color-primary-light, #e8f1f9); color: var(--color-primary, #055699);
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px; margin-top: 2px;
}
.lienhe-info li > div { min-width: 0; }
.lienhe-info label { display: block; font-size: 12px; color: var(--color-text-secondary, #64748b); margin: 0 0 2px; font-weight: 500; }
.lienhe-info li span, .lienhe-info li a { font-size: 14px; color: var(--color-text, #1a1a1a); word-break: break-word; line-height: 1.45; }
.lienhe-info li a { color: var(--color-primary, #055699); text-decoration: none; }
.lienhe-info li a:hover { text-decoration: underline; }

.lienhe-field { margin-bottom: 14px; }
.lienhe-field-row { display: flex; gap: 12px; }
.lienhe-field-row > .lienhe-field { flex: 1 1 0; margin-bottom: 14px; }
.lienhe-field > label { display: block; font-size: 13px; font-weight: 500; color: var(--color-text, #1a1a1a); margin-bottom: 6px; }
.lienhe-field .lh-req { color: var(--color-error, #dc2626); }
.lienhe-field input, .lienhe-field textarea {
  display: block !important; width: 100% !important; box-sizing: border-box !important;
  height: 44px !important; padding: 11px 14px !important; float: none !important; margin: 0 !important;
  border: 1px solid var(--color-border, #e5e7eb) !important; border-radius: var(--radius-md, 8px) !important;
  font-size: var(--text-md, 15px) !important; font-family: var(--font-sans) !important;
  background: #fff !important; color: var(--color-text, #1a1a1a) !important; outline: none !important;
  transition: border-color .15s, box-shadow .15s;
}
.lienhe-field textarea { height: auto !important; min-height: 110px !important; resize: vertical; line-height: 1.5; }
.lienhe-field input:focus, .lienhe-field textarea:focus {
  border-color: var(--color-primary, #055699) !important; box-shadow: 0 0 0 3px rgba(5,86,153,.08) !important;
}
/* jQuery Validate gán errorClass 'lh-error' cho CẢ input (border đỏ) lẫn span (message) */
.lienhe-field input.lh-error, .lienhe-field textarea.lh-error { border-color: var(--color-error, #dc2626) !important; box-shadow: none !important; }
.lienhe-field span.lh-error, span.lh-error { display: block; color: var(--color-error, #dc2626); font-size: 12px; margin-top: 5px; font-weight: 400; }

.lienhe-submit {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
  padding: 0 24px; height: 44px; border: 0; border-radius: var(--radius-md, 8px); cursor: pointer;
  background: var(--color-accent, #05a21b); color: #fff; font-size: 15px; font-weight: 600;
  font-family: var(--font-sans); transition: background .15s, opacity .15s;
}
.lienhe-submit:hover { background: var(--color-accent-dark, #036d11); }
.lienhe-submit.is-loading, .lienhe-submit:disabled { opacity: .6; cursor: wait; }

#Result-form-booking:not(:empty) {
  margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-md, 8px);
  background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; font-size: 14px;
}

.lienhe-map-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.lienhe-map-head .lienhe-card-title { margin: 0; }
.lienhe-direction-btn, .map-direction-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; height: 38px;
  border-radius: var(--radius-md, 8px); background: var(--color-primary, #055699); color: #fff;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s;
}
.lienhe-direction-btn:hover, .map-direction-btn:hover { background: var(--color-primary-dark, #033d6e); color: #fff; }
/* detail BĐS: heading bản đồ + nút chỉ đường cùng hàng */
.detail-map-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.detail-map-head .detail-info-heading { margin: 0; }
.detail-map-head .map-direction-btn { height: 34px; font-size: 13px; padding: 0 14px; }
@media (max-width: 480px) { .detail-map-head .map-direction-btn { width: 100%; justify-content: center; } }
.lienhe-map { width: 100%; height: 520px; border-radius: var(--radius-md, 8px); background: #eef2f5; overflow: hidden; }

@media (max-width: 768px) {
  .lienhe-grid { flex-direction: column; gap: 12px; }
  .lienhe-info-card, .lienhe-form-card { flex: 1 1 auto; padding: 16px; }
  .lienhe-field-row { flex-direction: column; gap: 0; }
  .lienhe-submit { width: 100%; justify-content: center; }
  .lienhe-direction-btn { width: 100%; justify-content: center; }
  .lienhe-map { height: 320px; }
}

/* ═══ Công ty static pages (cong-ty_detail: Giới thiệu/Hướng dẫn/Quy định/Điều khoản/Chính sách/Quy chế/Giải quyết tranh chấp) ═══ */
/* Full-width layout (mirror bg-page-layout) — ẩn cột trái + slider, ColCenter 100% */
.congty-page-layout .ColLeft { display: none; }
.congty-page-layout #wowslider-container1 { display: none; }
.congty-page-layout .ColCenter.ColCenter--wide { width: 100% !important; margin: 0 !important; float: none !important; overflow: visible !important; }
/* Watermark text chìm imuabanbds.vn phủ toàn viewport (giống /tim-kiem/) */
.wrapper.congty-page-layout { position: relative; }
.wrapper.congty-page-layout::before {
  content: ''; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='280'%3E%3Ctext x='250' y='140' font-family='sans-serif' font-size='22' font-weight='700' fill='%23055699' text-anchor='middle' dominant-baseline='middle' transform='rotate(-25 250 140)' opacity='0.12'%3Eimuabanbds.vn%3C/text%3E%3C/svg%3E") repeat;
  pointer-events: none; z-index: 1;
}
/* Nội dung: card readable centered, nổi trên watermark */
.__congty-page { position: relative; z-index: 10; max-width: 920px; margin: 0 auto; padding: 24px 16px 48px; font-family: var(--font-sans); }
.__congty-page .ct-breadcrumb { font-size: 13px; color: var(--color-text-light, #6b7280); margin-bottom: 14px; }
.__congty-page .ct-breadcrumb a { color: var(--color-primary, #055699); text-decoration: none; }
.__congty-page .ct-breadcrumb a:hover { text-decoration: underline; }
.__congty-page .ct-breadcrumb span { margin: 0 6px; color: #cbd5e1; }
.__congty-page .ct-card {
  background: #fff; border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-lg, 12px); box-shadow: var(--shadow-card, 0 1px 3px rgba(0,0,0,.08));
  padding: 28px 32px;
}
.__congty-page .ct-title {
  font-size: 24px; font-weight: 700; color: var(--color-primary, #055699);
  margin: 0 0 18px; padding-bottom: 14px; border-bottom: 2px solid var(--color-accent, #05a21b);
  line-height: 1.3;
}
.__congty-page .ct-content { font-size: 15px; line-height: 1.75; color: var(--color-text, #1f2937); }
.__congty-page .ct-content p { margin: 0 0 14px; }
.__congty-page .ct-content h1, .__congty-page .ct-content h2, .__congty-page .ct-content h3, .__congty-page .ct-content h4 {
  color: var(--color-primary, #055699); margin: 16px 0 6px; line-height: 1.35; font-weight: 600;
}
.__congty-page .ct-content h2 { font-size: 19px; }
.__congty-page .ct-content h3 { font-size: 17px; }
.__congty-page .ct-content ul, .__congty-page .ct-content ol { padding-left: 22px; margin: 0 0 14px; }
.__congty-page .ct-content li { margin-bottom: 4px; }
.__congty-page .ct-content a { color: var(--color-primary, #055699); }
.__congty-page .ct-content a:hover { text-decoration: underline; }
.__congty-page .ct-content img { max-width: 100%; height: auto; border-radius: var(--radius-md, 8px); }
.__congty-page .ct-content table { max-width: 100%; border-collapse: collapse; }
.__congty-page .ct-content iframe { max-width: 100%; }
@media (max-width: 768px) {
  .__congty-page { padding: 16px 12px 40px; }
  .__congty-page .ct-card { padding: 20px 16px; }
  .__congty-page .ct-title { font-size: 20px; }
}

/* ============ v6.7.61 — Footer link-mesh: span.fmesh thay h3/h4 (heading hygiene) ============ */
.nhadattt .fmesh { display: inline-block; font-size: inherit; font-weight: 400; }

/* ============ v6.7.62 — P01.4 floating stack né nút tim + P01.5 touch targets ============ */
/* P01.5: mở vùng chạm .bdsCardFav ~44px, GIỮ visual 32px (pseudo hit-area, không xô layout) */
.bdsCardFav { position: relative; }
.bdsCardFav::after { content: ''; position: absolute; top: -6px; right: -6px; bottom: -6px; left: -6px; border-radius: 50%; }

@media (max-width: 640px) {
  /* P01.4: thu floating stack sát mép + nhỏ lại, không nằm đè cột nút tim của card */
  .fbs { right: 6px; gap: 8px; }
  .fbs-btn { width: 38px; height: 38px; opacity: .92; }
  .fbs-btn i { font-size: 15px; }
  /* chừa gutter phải trong card footer để fav thoát vùng floating stack */
  .bdsCardFooter { padding-right: 42px; }
  /* P01.5: pagination 40 → 44px chuẩn touch */
  .pagination li a, .pagination li b { min-width: 44px; height: 44px; }
}

/* P01.3 — photo-count badge góc dưới-trái thumbnail (góc trên là VIP badge) */
.bdsItemImg { position: relative; }
.bdsPhotoCount {
  position: absolute;
  left: 6px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 11px;
  line-height: 1.5;
  border-radius: var(--radius-sm);
  pointer-events: none; /* không chặn click vào link ảnh */
}
.bdsPhotoCount i { font-size: 10px; }

/* ============ v6.7.63 — P02.1 layout core (moved from header.php inline <style>) ============
   Rule giữ NGUYÊN VĂN (kể cả !important) — inline block cũ đứng sau file này trong cascade,
   nên khi move lên đây phải giữ !important để thắng các rule cùng selector phía dưới file. */
.navTop{position:sticky;top:0;z-index:9999;}
.menu{position:sticky;z-index:9998;background:#055699;box-shadow:0 2px 5px rgba(0,0,0,.2);overflow:visible;}
.menu ul#navigation{display:flex;flex-wrap:wrap;justify-content:center;float:none;}
#mybutton{top:auto !important;bottom:60px !important;right:10px !important;}
#mybutton .feedback{display:inline-flex;align-items:center;padding:10px;font-size:14px;width:42px;height:42px;box-sizing:border-box;border-radius:50%;justify-content:center;overflow:hidden;white-space:nowrap;transition:width .25s ease,border-radius .25s ease;}
#mybutton .feedback i{font-size:16px;flex-shrink:0;}
#mybutton .feedback .feedback-text{max-width:0;overflow:hidden;opacity:0;margin-left:0;transition:max-width .25s ease,opacity .2s ease,margin-left .2s ease;}
#mybutton:hover .feedback{width:auto;border-radius:4px;padding:10px 14px;}
#mybutton:hover .feedback .feedback-text{max-width:80px;opacity:1;margin-left:6px;}
.letter-email img,.letter-email .emailpopup img{max-width:100%;height:auto;}
.ColLeft,.ColCenter,.ColRight{box-sizing:border-box;overflow:hidden;}
/* P01.6 — mobile: chỉ giữ 1 sticky bar (menu); navTop cuộn đi, bottom-nav đã lo điều hướng */
@media (max-width:768px){
  .navTop{position:static;}
}
/* Desktop: viewport >= 1200px */
@media (min-width:1200px){
    .wrapper{width:1200px !important;margin:0 auto;}
    .menu{width:1200px;margin:0 auto;}
    .header{width:1200px;margin:0 auto;}
    .ColLeft,.ColCenter,.ColRight{float:left !important;box-sizing:border-box !important;}
    .ColLeft{width:220px !important;}
    .ColCenter{width:730px !important;margin:0 15px !important;}
    .ColRight{width:220px !important;}
    .tabTinItem{width:48% !important;box-sizing:border-box !important;}
    .tabTinItemR{float:right !important;}
}

/* ============ v6.8.0 — Preset Filter Sidebar (cột phải list bán/thuê/sang-nhượng + search) ============
   3 box: Lọc giá / Lọc diện tích / Tỉnh→Phường. `.ColRight--filter` kế thừa `.ColRight` (220px, đã
   float @≥1200, tự ẩn @992-1199). Chỉ cần style box + ẩn <992 (mobile stack). */
.presetFilterBox{ background:var(--color-card,#fff); border:1px solid var(--color-border,#e5e7eb); border-radius:var(--radius-md,8px); box-shadow:var(--shadow-card,0 1px 3px rgba(0,0,0,.08)); margin-bottom:14px; overflow:hidden; }
.pfBoxTitle{ font-weight:700; font-size:var(--text-sm,13px); color:var(--color-text,#111); padding:10px 12px; border-bottom:1px solid var(--color-border,#eee); border-left:3px solid var(--color-accent,#05a21b); }
.presetFilterBox a{ display:block; padding:7px 12px; font-size:var(--text-sm,13px); color:var(--color-text,#333); text-decoration:none; border-top:1px solid #f4f4f4; transition:background .15s,color .15s; }
.presetFilterBox a:first-of-type{ border-top:0; }
/* [I-1] attribute selector (0,2,1) thắng `.presetFilterBox a{display:block}` (0,1,1) → `hidden` mới ẩn được (collapse "Xem thêm"). UA `[hidden]{display:none}` bị author display:block đè. */
.presetFilterBox a[hidden]{ display:none; }
.presetFilterBox a:hover{ background:#f6f8fa; color:var(--color-primary,#055699); }
.presetFilterBox a.is-active{ background:#eef5ff; color:var(--color-primary,#055699); font-weight:600; }
.pf-cnt{ color:#999; font-weight:400; font-size:12px; }
.pf-prov-all{ color:var(--color-primary,#055699) !important; font-weight:600; }
.pf-more-toggle{ display:block; width:100%; text-align:center; padding:8px; background:none; border:0; border-top:1px solid #eee; color:var(--color-primary,#055699); font-size:12px; cursor:pointer; font-family:inherit; }
.pf-more-toggle:hover{ background:#f6f8fa; }
@media (max-width:1199px){ .ColRight--filter{ display:none !important; } }

/* ============ v6.7.64 — P02.2 tablet breakpoint 992-1199px (U1) ============
   Trước đây: <1200px rơi thẳng về mobile-stack trong khi wrapper vài chỗ vẫn 1200px cứng
   → iPad ngang tràn ngang + menu cụt chữ. Giờ: 2 cột fluid, ẩn ColRight (chỉ home có). */
@media (min-width: 992px) and (max-width: 1199px) {
  .wrapper, .header, .menu { width: 100% !important; max-width: 1199px; padding-left: 12px; padding-right: 12px; box-sizing: border-box; margin: 0 auto; }
  .ColLeft  { width: 200px !important; float: left !important; }
  .ColCenter{ width: calc(100% - 212px) !important; margin: 0 0 0 12px !important; float: left !important; }
  .ColRight { display: none; }
  /* menu 9 mục vừa 1 hàng */
  ul#navigation > li > a { padding: 12px 8px !important; font-size: 12.5px !important; }
  /* cards 2 cột trong tab tin */
  .tabTinItem { width: 48% !important; box-sizing: border-box !important; }
  .tabTinItemR { float: right !important; }
  /* sub-pages (--wide): cùng kỹ thuật float-escape như desktop 1200 — thắng rule width:100% 2-class */
  .ColCenter.ColCenter--wide { float: none !important; width: auto !important; margin: 0 0 0 212px !important; }
  /* detail 2-cột: không có ColLeft → ColCenter full (bỏ calc 212 giả định ColLeft) */
  .detail-2col-layout .ColCenter { width: 100% !important; margin: 0 !important; float: none !important; }
}

/* Gallery lên top (batdongsan-style #19): .tabs2 có float:left từ theme → title/chips sau nó
   chảy vào gutter hẹp → ép dọc. Gallery-top là block full-width, bỏ float. */
.detail-gallery-top { float: none !important; width: 100% !important; margin-bottom: 12px; }
/* Ẩn border TỔNG của container ngoài + gallery box (theme render border 3 cạnh no-top → nhìn lệch/khó chịu).
   .ContentPagePadd (theme: border 1px + border-top:0) là hộp bao TOÀN BỘ nội dung dưới title → ẩn hẳn.
   Gallery .tabs2Bor + .tabsC cũng bỏ (user duyệt). Các bảng info CON (.detail-info-table) GIỮ border riêng. */
.detail-2col-layout .tabs2.tabs2Bor { border: 0 !important; border-radius: 0 !important; }
.detail-gallery-top .tabsC { border: 0 !important; }
.detail-2col-layout .ContentPagePadd { border: 0 !important; }

/* Bỏ line xanh dưới title + section heading trên trang chi tiết (giảm cảm giác ngăn cách #21).
   Scope .detail-2col-layout → home/listing giữ line "DỰ ÁN NỔI BẬT"... như cũ. */
.detail-2col-layout .HomeTitle,
.detail-2col-layout .detail-info-heading { border-bottom: 0 !important; }

/* Siết khoảng trắng title → chips → "Thông tin chung" (#23). Bỏ padding box title (đã bỏ border),
   thu margin chips + heading top. Scope detail. */
.detail-2col-layout .HomeTitle { padding-top: 0 !important; padding-bottom: 0 !important; margin-bottom: 6px !important; }
.detail-2col-layout .detail-top-features { margin-top: 6px !important; margin-bottom: 0 !important; }
.detail-2col-layout .ContentPagePadd { padding-top: 4px !important; }
.detail-2col-layout .detail-info-heading { margin-top: 12px !important; }
/* siết margin trên/dưới 2 nút Tiện ích (Biến động giá + Tính lãi vay) */
.detail-2col-layout .price-chart-btn-wrap,
.detail-2col-layout .loan-calc-btn-wrap { margin-top: 3px !important; margin-bottom: 3px !important; }

/* ============ v6.9.4 — detail 2-cột (content + thẻ người đăng/BĐS liên quan, batdongsan-style) ============ */
/* Desktop ≥1200: content ~865 + cột phải 320 (bỏ search trái). Thẻ TĨNH (không sticky — layout float+overflow:hidden). */
@media (min-width: 1200px) {
  /* width cột phải = batdongsan (~292px). Content chiếm phần còn lại. */
  .detail-2col-layout .ColCenter { width: 895px !important; margin: 0 !important; float: left !important; }
  /* margin-top 20px = khớp margin-top của gallery (.tabs2.tabs2Bor) → cột phải bắt đầu ngang hàng ảnh gallery bên cạnh */
  .detail-2col-layout .ColRight--detail { width: 290px !important; float: right !important; display: block !important; margin-top: 20px !important; }
  /* Desktop đã có thẻ phải → ẩn contact inline Card 2 + ẩn Card 2 khi 0 legal (I-2/I-3) */
  .dpm-mobile-only { display: none !important; }
  .dpm-legal-empty { display: none !important; }
}
/* <1200: 1 cột, ẩn cột phải, contact hiện lại inline Card 2 (mobile-first) */
@media (max-width: 1199px) {
  .ColRight--detail { display: none !important; }
}

/* Thẻ người đăng */
.dps-poster { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 14px; margin-bottom: 14px; background: #fff; }
.dps-head { display: flex; align-items: center; gap: 10px; }
.dps-avatar { flex: 0 0 auto; display: inline-block; }
.dps-avatar img, .dps-avatar .bdsAvatarInitial { width: 48px !important; height: 48px !important; border-radius: 50%; font-size: 18px; }
.dps-meta { min-width: 0; }
.dps-name { display: block; font-weight: 600; font-size: 14px; color: var(--color-text); line-height: 1.3; }
.dps-name:hover { color: var(--color-primary); }
.dps-more { display: block; font-size: 12px; color: var(--color-text-secondary); margin-top: 3px; }
.dps-more:hover { color: var(--color-primary); text-decoration: underline; }
.dps-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.dps-btn { display: block; text-align: center; padding: 10px; border-radius: var(--radius-md); font-weight: 600; font-size: 14px; line-height: 1.3; }
.dps-btn--msg { border: 1px solid var(--color-primary); color: var(--color-primary); background: #fff; }
.dps-btn--msg:hover { background: var(--color-primary); color: #fff; }
.dps-btn--phone { background: var(--color-accent); color: #fff; cursor: pointer; }
.dps-btn--phone a { color: #fff; }
.dps-btn--phone .less-phone { display: inline; }
/* Box "theo tỉnh" ở cột phải dùng lại CSS preset-filter (.presetFilterBox/.pf-prov...) từ #89 */

/* ============ v6.7.64 — P03 mobile search hero (home, <992px only) ============ */
.mobileSearchHero { display: none; }
@media (max-width: 991px) {
  /* Nằm gọn trong cột nội dung (wrapper mobile có gutter ~35px/bên, cột 320px) —
     KHÔNG dùng 100vw (đo thật: tràn 35px khỏi cột, mất bo phải). */
  .mobileSearchHero { display: block; padding: 10px 0 4px; background: var(--color-card); }
  .msh-input {
    display: flex; align-items: center; gap: 10px;
    min-height: 44px; padding: 10px 14px;
    border: 1.5px solid var(--color-border); border-radius: var(--radius-full);
    background: var(--color-bg); color: var(--color-text-secondary);
    font-size: var(--text-md); text-decoration: none;
  }
  .msh-input i { color: var(--color-primary); font-size: 15px; }
  .msh-input:hover, .msh-input:active { border-color: var(--color-primary); color: var(--color-text-secondary); }
  .msh-chips { display: flex; gap: 8px; margin-top: 8px; }
  .msh-chip {
    flex: 1; text-align: center; padding: 8px 4px;
    border: 1px solid var(--color-border); border-radius: var(--radius-md);
    background: var(--color-card); color: var(--color-primary);
    font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
  }
  .msh-chip:active { background: var(--color-primary-light); }
}

/* ============ v6.9.0 — detail gallery slider (batdongsan-style, Fancybox) ============ */
.dgs { margin-bottom: 16px; }
.dgs-stage {
  position: relative; width: 100%; height: 430px;
  border-radius: var(--radius-md); overflow: hidden;
  background: #eaecef; /* nền xám phẳng lấp phần thiếu 2 bên — không phân tâm */
}
.dgs-slide {
  position: absolute; inset: 0; display: block;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.dgs-slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
/* ảnh chính giữ tỉ lệ gốc (contain), canh giữa trên nền xám — không méo/mờ */
.dgs-photo {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.dgs-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.4); color: #fff; font-size: 20px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.dgs-nav:hover { background: rgba(0,0,0,.65); }
.dgs-prev { left: 12px; }
.dgs-next { right: 12px; }
.dgs-counter {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  background: rgba(0,0,0,.6); color: #fff; font-size: 13px; font-weight: 600;
  padding: 4px 10px; border-radius: 14px; letter-spacing: .3px; pointer-events: none;
}
.dgs-thumbs {
  display: flex; gap: 8px; margin-top: 8px; overflow-x: auto;
  padding-bottom: 4px; scrollbar-width: thin;
}
.dgs-thumb {
  flex: 0 0 auto; width: 92px; height: 68px; padding: 0;
  border: 2px solid transparent; border-radius: var(--radius-md);
  overflow: hidden; cursor: pointer; background: var(--color-bg);
  transition: border-color .2s;
}
.dgs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dgs-thumb.is-active { border-color: var(--color-primary); }
.dgs--empty .dgs-stage img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 768px) {
  .dgs-stage { height: 260px; }
  .dgs-thumb { width: 72px; height: 54px; }
  .dgs-nav { width: 34px; height: 34px; font-size: 17px; }
}

/* ============ v6.9.10 — "BĐS liên quan" grid (batdongsan "dành cho bạn" style) — detail bottom ============ */
.relatedGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; }
@media (max-width: 1069px) { .relatedGrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .relatedGrid { grid-template-columns: 1fr; } }
.relatedCard { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; background: #fff; }
.relatedCard:hover { box-shadow: var(--shadow-card); }
.relatedCardImg { position: relative; display: block; aspect-ratio: 16 / 9; min-height: 130px; overflow: hidden; background: #eaecef; } /* 16:9 = chiều cao ảnh ~batdongsan (264x148) */
.relatedCardImg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-photos { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 3px; }
.relatedCardBody { padding: 8px 10px 10px; }
.relatedCardTitle { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 13px; font-weight: 500; line-height: 1.35; color: var(--color-text); min-height: 35px; }
.relatedCardTitle:hover { color: var(--color-primary); }
.relatedCardPrice { margin-top: 5px; font-size: 14px; font-weight: 600; color: var(--color-error); }
.relatedCardLoc { margin-top: 4px; font-size: 12px; color: var(--color-text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.relatedCardFoot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.rc-time { font-size: 11px; color: var(--color-text-secondary); }
.related-more-wrap { text-align: center; margin: 14px 0 4px; }
.related-more { border: 1px solid var(--color-primary); color: var(--color-primary); background: #fff;
  padding: 9px 26px; border-radius: var(--radius-md); font-size: 14px; font-weight: 600; cursor: pointer; }
.related-more:hover { background: var(--color-primary); color: #fff; }
.related-more[disabled] { opacity: .5; cursor: default; }
