/*
Theme Name: Dự Án Ecopark - Cổng Thông Tin BĐS Ecopark
Theme URI: https://duanecopark.com.vn/
Author: Lê Tiến
Author URI: https://duanecopark.com.vn/
Description: Giao diện chuyên biệt cho Cổng thông tin & Bảng hàng Dự án Khu đô thị Ecopark (duanecopark.vn / duanecopark.com.vn), tốc độ cao, chuẩn SEO Google, tối ưu 100% hiển thị trên điện thoại, iPad và máy tính, không dùng plugin ngoài.
Version: 1.2.8
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: duanecopark
Tags: real-estate, ecopark, custom-post-types, seo-optimized, fast-loading, clean-code, no-plugins-required
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  position: relative;
}
body { font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.75; color: #1e293b; background-color: #ffffff; -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }

/* TƯƠNG THÍCH VỚI THANH WORDPRESS ADMIN BAR (TRÁNH BỊ CHE MENU KHI ĐĂNG NHẬP) */
body.admin-bar .header {
  top: 32px !important;
}
body.admin-bar .mobile-menu-drawer,
body.admin-bar .drawer-overlay {
  top: 32px !important;
}
@media screen and (max-width: 782px) {
  body.admin-bar .header {
    top: 46px !important;
  }
  body.admin-bar .mobile-menu-drawer,
  body.admin-bar .drawer-overlay {
    top: 46px !important;
  }
}
@media screen and (max-width: 600px) {
  body.admin-bar .header {
    top: 0 !important;
  }
  body.admin-bar .mobile-menu-drawer,
  body.admin-bar .drawer-overlay {
    top: 0 !important;
  }
}

/* TOP BAR - MÀU NỀN XANH ECOPARK TƯƠI SÁNG CHUẨN FILE ĐÍNH KÈM */
.top-bar { background: #238843; background: linear-gradient(135deg, #2e944b 0%, #238843 100%); color: #ffffff; font-size: 13.5px; padding: 7px 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.top-bar strong { color: #ffffff; }
.top-bar-right { display: flex; align-items: center; gap: 14px; }
.btn-admin-panel { background: #d97706; color: #ffffff; border: none; padding: 4px 10px; border-radius: 4px; font-weight: 700; font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.btn-admin-panel:hover { background: #b45309; }
.pending-badge { background: #ef4444; color: #fff; border-radius: 10px; padding: 1px 6px; font-size: 11px; font-weight: 800; }

/* HEADER - THANH ĐIỀU HƯỚNG GỌN GÀNG CAO CẤP, CÂN ĐỐI 1340PX, CAO 56PX */
.header { background: #fff; border-bottom: 1px solid #e2e8f0; width: 100%; height: 56px; padding: 0; position: sticky; top: 0; z-index: 999; box-shadow: 0 2px 10px rgba(0,0,0,0.04); }
.header-container { max-width: 1340px; margin: 0 auto; padding: 0 16px; height: 100%; display: flex; align-items: center; justify-content: space-between; width: 100%; box-sizing: border-box; }
.header-left { display: flex; align-items: center; gap: 14px; flex-shrink: 0; height: 100%; }
.btn-menu-mobile { display: none; background: none; border: none; font-size: 24px; color: #238843; cursor: pointer; padding: 4px; line-height: 1; }
.logo { display: inline-flex; align-items: center; font-size: 22px; font-weight: 800; color: #238843; cursor: pointer; letter-spacing: -0.5px; white-space: nowrap; text-decoration: none; flex-shrink: 0; }
.logo span { color: #e03c31; }
.site-custom-logo { max-height: 38px; width: auto; object-fit: contain; display: block; }

/* MENU CHÍNH VÀ DROPDOWN SUBMENU CHUẨN ECOPARK - DỊCH TRÁI GẦN LOGO CÂN ĐỐI, ĐẢM BẢO 100% TRÊN 1 DÒNG */
.nav-items { display: flex; align-items: center; justify-content: flex-start; gap: 12px; font-size: 14px; font-weight: 600; height: 56px; letter-spacing: -0.2px; white-space: nowrap; flex-shrink: 0; margin: 0 0 0 20px; margin-right: auto; padding: 0; }
.nav-item { position: relative; cursor: pointer; padding: 0 5px; height: 56px; color: #1e293b; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 14px; font-weight: 600; box-sizing: border-box; white-space: nowrap; flex-shrink: 0; border-bottom: 2.5px solid transparent; transition: color 0.2s ease, border-color 0.2s ease; }
.nav-item > a { color: inherit; font-size: 14px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; height: 100%; line-height: normal; white-space: nowrap; }
.nav-item:hover, .nav-item.active { color: #238843 !important; border-bottom-color: #238843 !important; }
.nav-item.active > a, .nav-item:hover > a { color: #238843 !important; }
.nav-item .arrow { display: inline-flex; align-items: center; justify-content: center; margin-left: 3px; transition: transform 0.25s ease, color 0.2s ease; color: #64748b; line-height: 1; flex-shrink: 0; pointer-events: none; }
.nav-item .arrow svg { display: block; width: 9px; height: 6px; }
.nav-item:hover .arrow { transform: rotate(180deg); color: #238843; }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  min-width: 220px;
  display: none;
  flex-direction: column;
  padding: 6px 0;
  z-index: 1000;
}
.nav-item:hover .dropdown-menu { display: flex; flex-direction: column; }
.dropdown-menu .dropdown-item,
.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  border-bottom: 1px solid #f8fafc;
  width: 100%;
  box-sizing: border-box;
  height: auto;
  min-height: 40px;
  line-height: normal;
}
.dropdown-menu .dropdown-item:last-child,
.dropdown-item:last-child { border-bottom: none; }
.dropdown-menu .dropdown-item:hover,
.dropdown-item:hover { background: #f0fdf4; color: #238843; padding-left: 18px; justify-content: flex-start; text-align: left; }

/* DESKTOP HEADER: DỊCH MENU SANG TRÁI GẦN LOGO, CÂN ĐỐI 100% TRÊN 1 DÒNG */
@media (min-width: 993px) {
  .header-container {
    max-width: 1340px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .header-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
  }
  .nav-items {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0 0 0 20px;
    margin-right: auto;
    flex-shrink: 0;
    gap: 12px;
  }
  .header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    gap: 10px;
  }
}

/* ĐẶC BIỆT CHO MÀN HÌNH TỪ 993PX ĐẾN 1260PX: TỰ ĐỘNG THU NHỎ KHOẢNG CÁCH CHỐNG TRÀN TUYỆT ĐỐI */
@media (min-width: 993px) and (max-width: 1260px) {
  .header-container {
    padding: 0 10px;
    gap: 10px;
  }
  .nav-items {
    gap: 7px;
    margin-left: 12px;
    font-size: 13.5px;
  }
  .nav-item {
    padding: 0 3px;
    font-size: 13.5px;
  }
  .nav-item > a {
    font-size: 13.5px;
  }
  .header-actions {
    gap: 6px;
  }
  .header-actions .btn-login-header {
    padding: 6px 10px;
    font-size: 13px;
  }
  .header-actions .btn-dangtin {
    padding: 7px 12px;
    font-size: 13px;
  }
}

/* MOBILE DRAWER CHO ĐIỆN THOẠI & IPAD */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 310px;
  height: 100%;
  background: #fff;
  box-shadow: 2px 0 16px rgba(0,0,0,0.2);
  z-index: 1100;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-menu-drawer.open { left: 0; }
.drawer-header { padding: 16px 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; background: #fafdfb; }
.drawer-title { font-weight: 800; color: #238843; font-size: 20px; }
.btn-close-drawer { font-size: 24px; font-weight: 700; color: #64748b; background: none; border: none; cursor: pointer; padding: 4px; }
.drawer-links { padding: 8px 0; }
.drawer-accordion-group { border-bottom: 1px solid #f1f5f9; }
.drawer-parent-row { padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; user-select: none; -webkit-tap-highlight-color: transparent; }
.drawer-link-title, .drawer-link-item { font-size: 16.5px !important; font-weight: 700 !important; color: #1e293b !important; display: flex; align-items: center; gap: 8px; text-decoration: none !important; flex: 1; }
.drawer-link-title:hover, .drawer-link-item:hover, .drawer-link-title:active, .drawer-link-item:active { color: #238843 !important; }
.drawer-toggle-arrow { display: inline-flex !important; align-items: center !important; justify-content: center !important; width: 36px !important; height: 36px !important; border-radius: 6px !important; background: transparent !important; border: none !important; color: #64748b !important; cursor: pointer !important; transition: transform 0.25s ease, color 0.2s ease, background 0.2s ease !important; padding: 0 !important; flex-shrink: 0 !important; }
.drawer-toggle-arrow svg { display: block !important; width: 10px !important; height: 6px !important; transition: transform 0.25s ease !important; }
.drawer-accordion-group.is-open .drawer-toggle-arrow { color: #238843 !important; background: #eef7f2 !important; }
.drawer-accordion-group.is-open .drawer-toggle-arrow svg { transform: rotate(180deg) !important; }
.drawer-accordion-group.is-open .drawer-parent-row { background: #f8fafc; }
.drawer-accordion-group.is-open .drawer-link-title { color: #238843 !important; }
.drawer-sub-menu { display: none; background: #f8fafc; padding: 6px 0 10px 0; border-top: 1px solid #f1f5f9; }
.drawer-accordion-group.is-open .drawer-sub-menu { display: block; }
.drawer-sub-item { padding: 10px 20px 10px 38px !important; font-size: 15.5px !important; font-weight: 500 !important; color: #334155 !important; display: block !important; text-decoration: none !important; transition: all 0.2s; }
.drawer-sub-item:hover, .drawer-sub-item:active { color: #238843 !important; background: #eef7f2 !important; padding-left: 42px !important; }
.drawer-sub-item-all { color: #238843 !important; font-weight: 700 !important; border-bottom: 1px dashed #e2e8f0; margin-bottom: 4px; }
.drawer-link-item { padding: 15px 20px !important; border-bottom: 1px solid #f1f5f9 !important; text-decoration: none !important; }
.drawer-link-item:hover { background: #f8fafc; color: #238843; }
button.drawer-link-item { background: transparent !important; border: none !important; border-bottom: 1px solid #f1f5f9 !important; width: 100% !important; text-align: left !important; font-family: inherit !important; cursor: pointer !important; box-sizing: border-box !important; outline: none !important; -webkit-tap-highlight-color: transparent !important; }
.drawer-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1050; display: none; }
.drawer-overlay.open { display: block; }

/* DRAWER USER BOX (MOBILE & IPAD) */
.drawer-user-section { padding: 14px 16px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.drawer-user-box { display: flex; flex-direction: column; gap: 10px; }
.drawer-user-info { display: flex; align-items: center; gap: 12px; }
.drawer-user-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #238843; box-shadow: 0 2px 6px rgba(0,0,0,0.12); flex-shrink: 0; }
.drawer-user-name { font-weight: 700; font-size: 14px; color: #238843; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-user-role { font-size: 11.5px; color: #238843; font-weight: 600; }
.drawer-user-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.btn-drawer-my-listings { background: #0284c7; color: #fff; border: none; padding: 7px 10px; border-radius: 4px; font-size: 12.5px; font-weight: 700; cursor: pointer; text-align: center; }
.btn-drawer-my-listings:hover { background: #0369a1; }
.btn-drawer-dangtin { background: #ffffff; color: #1e293b; border: 1px solid #cbd5e1; padding: 9px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; text-align: center; transition: all 0.2s ease; }
.btn-drawer-dangtin:hover { background: #f0fdf4; border-color: #238843; color: #238843; }
.btn-drawer-logout { grid-column: span 2; text-align: center; color: #64748b; font-size: 12px; padding: 4px; text-decoration: underline; }
.drawer-guest-box { display: flex; flex-direction: column; }
.btn-drawer-login { flex: 1; background: #ffffff; color: #1e293b; border: 1px solid #cbd5e1; padding: 9px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; }
.btn-drawer-register { flex: 1; background: #ffffff; color: #1e293b; border: 1px solid #cbd5e1; padding: 9px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; }
.btn-drawer-login:hover, .btn-drawer-register:hover { background: #f0fdf4; border-color: #238843; color: #238843; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.user-profile-badge { display: none; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #238843; background: #eef7f2; padding: 4px 10px; border-radius: 20px; border: 1px solid #d1fae5; }
.user-profile-badge.active { display: flex; }
.btn-my-listings { background: #0284c7; color: #fff; border: none; padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.btn-my-listings:hover { background: #0369a1; }
.btn-logout { background: none; border: none; color: #e03c31; font-size: 12px; cursor: pointer; text-decoration: underline; padding: 0 4px; }
.btn-login-header { background: transparent; border: 1px solid #cbd5e1; color: #334155; padding: 5px 12px; border-radius: 4px; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; }
.btn-login-header:hover { border-color: #238843; color: #238843; }
.btn-dangtin { background: #238843; color: #fff; border: none; padding: 6px 14px; border-radius: 6px; font-weight: 700; cursor: pointer; font-size: 13.5px; white-space: nowrap; box-shadow: 0 2px 6px rgba(35, 136, 67, 0.25); }
.btn-dangtin:hover { background: #1a6d36; }

/* ADMIN REVIEW BAR */
.admin-pending-bar { background: #fef3c7; border-bottom: 2px solid #f59e0b; padding: 12px 24px; display: none; }
.admin-pending-bar.show { display: block; }
.admin-bar-inner { max-width: 1280px; margin: 0 auto; }
.admin-bar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.admin-bar-title { font-weight: 800; font-size: 14.5px; color: #92400e; display: flex; align-items: center; gap: 8px; }
.pending-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.pending-card-item { background: #fff; border: 1px solid #fcd34d; border-radius: 6px; padding: 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 2px 6px rgba(0,0,0,0.05); }
.pending-card-title { font-size: 14px; font-weight: 700; color: #1e293b; line-height: 1.4; }
.pending-card-meta { font-size: 12px; color: #64748b; line-height: 1.5; }
.pending-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px dashed #e2e8f0; }
.btn-approve { flex: 1; background: #16a34a; color: #fff; border: none; padding: 6px 0; border-radius: 4px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.btn-reject { flex: 1; background: #dc2626; color: #fff; border: none; padding: 6px 0; border-radius: 4px; font-size: 12.5px; font-weight: 700; cursor: pointer; }

/* HERO SEARCH BAR */
.hero { background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?auto=format&fit=crop&w=1200&q=80') center/cover; padding: 28px 16px; transition: all 0.3s ease; }
.hero.hidden { display: none !important; }
.flat-box { max-width: 1280px; margin: 0 auto; background: rgba(20, 20, 20, 0.92); border-radius: 8px; padding: 18px; position: relative; }

.search-row { display: flex; background: #fff; border-radius: 6px; padding: 4px; gap: 8px; align-items: center; position: relative; }
.search-input { border: none; outline: none; padding: 9px 12px; font-size: 14.5px; width: 100%; font-family: inherit; }
.btn-search { background: #e03c31; color: #fff; border: none; padding: 9px 22px; border-radius: 4px; font-weight: 700; cursor: pointer; font-size: 14px; white-space: nowrap; }

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  border: 1px solid #e2e8f0;
  border-top: none;
  display: none;
  z-index: 1050;
  max-height: 280px;
  overflow-y: auto;
}
.suggestion-item { padding: 9px 14px; font-size: 13.5px; color: #334155; cursor: pointer; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #f1f5f9; }
.suggestion-item:hover { background: #f8fafc; color: #e03c31; font-weight: 600; }
.suggestion-tag { font-size: 11px; background: #e2e8f0; padding: 2px 7px; border-radius: 4px; color: #475569; }

.filters-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.f-select { background: rgba(255,255,255,0.18); color: #fff; border: 1px solid rgba(255,255,255,0.3); padding: 7px 11px; border-radius: 4px; font-size: 13px; outline: none; font-weight: 500; font-family: inherit; flex: 1; min-width: 135px; }
.f-select option { background: #fff; color: #222; }
.btn-reset { background: transparent; border: 1px dashed #aaa; color: #ddd; padding: 7px 12px; border-radius: 4px; font-size: 13px; cursor: pointer; white-space: nowrap; }

/* CONTAINER & GRID - CĂN LỀ GỌN GÀNG VÀ CÂN ĐỐI 1280PX ĐỒNG BỘ */
.container { width: 100%; max-width: 1280px; margin: 24px auto; padding: 0 16px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; box-sizing: border-box; }
.container.full-width { max-width: 1280px !important; grid-template-columns: 1fr !important; }
.container.full-width .sidebar { display: none !important; }

.main-content { min-width: 0; max-width: 100%; width: 100%; box-sizing: border-box; overflow-x: clip; }
.section-block { margin-bottom: 38px; width: 100%; min-width: 0; box-sizing: border-box; }
.section-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 1px solid #e2e8f0; padding-bottom: 10px; gap: 8px 12px; width: 100%; box-sizing: border-box; }
.sec-title-with-arrows { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.title-sec { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 20px; font-weight: 700; color: #0b4632; margin: 4px 0 24px 0; border-left: 4px solid #e03c31; padding-left: 12px; letter-spacing: -0.015em; line-height: 1.35; }
.section-header .title-sec { margin: 0; }
#secTitle { margin: 4px 0 24px 0 !important; }
.btn-view-all { font-size: 13.5px; font-weight: 700; color: #e03c31; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; transition: color 0.2s ease; white-space: nowrap; }
.btn-view-all:hover { color: #b91c1c; text-decoration: underline; }

/* LƯỚI SẢN PHẨM: TRANG CHỦ (FULL-WIDTH KHÔNG SIDEBAR) 4 CỘT, TRANG CÓ SIDEBAR 3 CỘT */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.container.full-width .grid { display: grid; grid-template-columns: repeat(4, 1fr) !important; gap: 18px; }
.container:not(.full-width) .grid { display: grid; grid-template-columns: repeat(3, 1fr) !important; gap: 18px; }
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

@media (max-width: 1024px) {
  .container { grid-template-columns: 1fr; gap: 24px; padding: 0 16px; }
  .grid, .news-grid,
  .container.full-width .grid,
  .container:not(.full-width) .grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
  .title-sec { font-size: 18px !important; margin-bottom: 20px !important; }
  .section-header .title-sec { margin: 0 !important; }
  #secTitle { margin-bottom: 20px !important; }
}

@media (max-width: 640px) {
  .container { padding: 0 12px !important; margin: 14px auto !important; }
  .grid, .news-grid,
  .container.full-width .grid,
  .container:not(.full-width) .grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .section-header { gap: 6px 10px !important; margin-bottom: 14px !important; padding-bottom: 8px !important; }
  .sec-title-with-arrows { gap: 8px !important; }
  .title-sec { font-size: 16px !important; margin: 0 !important; line-height: 1.35 !important; border-left-width: 3px !important; padding-left: 8px !important; }
  .section-header .title-sec { margin: 0 !important; }
  #secTitle { margin-bottom: 18px !important; }
  .btn-view-all { font-size: 12px !important; }
}

.card { background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid #e2e8f0; display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; cursor: pointer; text-decoration: none; color: inherit; box-shadow: 0 2px 6px rgba(0,0,0,0.03); }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(0,0,0,0.08); border-color: #cbd5e1; }
.card-img-wrap { width: 100%; height: 175px; position: relative; overflow: hidden; background: #f1f5f9; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.card:hover .card-img-wrap img { transform: scale(1.03); }
.card-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 14px !important; font-weight: 700 !important; margin-bottom: 6px; line-height: 1.4; color: #111111 !important; height: 39px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card:hover .card-title { color: #e03c31 !important; }
.card-price { font-size: 15.5px; font-weight: 700; color: #e03c31; margin-bottom: 6px; }
.card-price-area { display: flex; align-items: baseline; gap: 6px; font-size: 15.5px; font-weight: 700; color: #e03c31; margin-bottom: 6px; }
.card-price-area .area-txt { color: #e03c31; font-weight: 700; }
.card-price-area .dot-separator { color: #94a3b8; font-weight: 400; font-size: 13px; }
.card-location { font-size: 12.5px; color: #64748b; margin-bottom: 8px; display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-specs { font-size: 12.5px; color: #555555; margin-bottom: 12px; display: flex; gap: 12px; font-weight: 500; }
.btn-call { display: none !important; }

/* NÚT XEM TIẾP CĂN GIỮA */
.load-more-center-wrap { display: flex; justify-content: center; align-items: center; margin-top: 24px; margin-bottom: 12px; }
.btn-load-more { background: #ffffff; border: 1px solid #cbd5e1; color: #334155; padding: 9px 36px; border-radius: 6px; font-weight: 700; font-size: 13.5px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.btn-load-more:hover { background: #0b4632; color: #ffffff !important; border-color: #0b4632; box-shadow: 0 4px 12px rgba(11,70,50,0.2); }

/* LƯỚI TIN TỨC TRANG CHỦ 4 CỘT */
.news-card-home { background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid #eaeaea; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; cursor: pointer; text-decoration: none; color: inherit; }
.news-card-home:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.news-card-home img { width: 100%; height: 155px; object-fit: cover; display: block; }
.news-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.news-card-title { font-size: 14px; font-weight: 700; color: #111111 !important; line-height: 1.4; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 39px; }
.news-card-home:hover .news-card-title { color: #e03c31 !important; }
.news-card-date { font-size: 11.5px; color: #888; margin-bottom: 6px; }
.news-card-desc { font-size: 12.5px; color: #555; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* KHỐI TIN TỨC CHẠY NGANG (SLIDER) TRANG CHỦ */
.news-slider-container { position: relative; width: 100%; overflow: hidden; padding: 4px 2px 10px; }
.news-slider-track { display: flex; gap: 18px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.news-slider-track::-webkit-scrollbar { display: none; }
.news-slider-track .news-card-home { flex: 0 0 calc((100% - (18px * 3)) / 4); min-width: 250px; max-width: calc((100% - (18px * 3)) / 4); scroll-snap-align: start; box-sizing: border-box; }
.news-slider-arrows { display: inline-flex; gap: 6px; align-items: center; }
.btn-news-nav { width: 28px; height: 28px; border-radius: 50%; background: #f1f5f9; border: 1px solid #cbd5e1; color: #334155; font-size: 12px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s; user-select: none; line-height: 1; padding: 0; }
.btn-news-nav:hover { background: #0b4632; color: #fff; border-color: #0b4632; }

@media (max-width: 1024px) {
  .news-slider-track { gap: 14px; }
  .news-slider-track .news-card-home { flex: 0 0 calc((100% - 14px) / 2.2); max-width: calc((100% - 14px) / 2.2); min-width: 220px; }
}
@media (max-width: 640px) {
  .news-slider-track { gap: 12px; }
  .news-slider-track .news-card-home { flex: 0 0 calc(100% - 36px); max-width: calc(100% - 36px); min-width: 250px; }
}

/* SIDEBAR TIÊU ĐIỂM TIN TỨC */
.side-news-item { display: block; padding: 10px 0; border-bottom: 1px solid #f1f5f9; text-decoration: none !important; transition: all 0.15s ease; }
.side-news-item:last-child { border-bottom: none; padding-bottom: 0; }
.side-news-item:hover .side-news-title { color: #e03c31 !important; }
.side-news-title { font-size: 13.5px; font-weight: 600; color: #1e293b; line-height: 1.45; margin-bottom: 4px; }
.side-news-date { font-size: 11.5px; color: #888888; }

/* DETAIL VIEW - PHÔNG CHỮ VÀ MÀU SẮC CHUẨN 100% ECOPARKHOME.VN */
.detail-view { background: #fff; line-height: 1.85; color: #222222; }
.detail-back { display: inline-block; font-size: 13.5px; font-weight: 600; color: #238843; margin-bottom: 14px; cursor: pointer; }
.detail-back:hover { color: #1a6d36; text-decoration: underline; }
.gallery-main-img { width: 100%; height: 460px; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }
.gallery-thumbs { display: flex; gap: 10px; margin-bottom: 22px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumb { width: 90px; height: 65px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: 0.75; border: 2px solid transparent; transition: all 0.2s; flex-shrink: 0; }
.gallery-thumb.active, .gallery-thumb:hover { opacity: 1; border-color: #238843; }

.detail-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 24px; font-weight: 700; color: #0f172a; margin-bottom: 12px; line-height: 1.35; letter-spacing: -0.025em; }
.detail-meta { display: flex; gap: 24px; padding: 14px 0; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9; margin-bottom: 20px; flex-wrap: wrap; }
.meta-item .label { font-size: 12.5px; color: #64748b; text-transform: none; font-weight: 400; letter-spacing: 0; }
.meta-item .val { font-size: 14.5px; font-weight: 500; color: #334155 !important; margin-top: 3px; }
.meta-item-price .val, .meta-item .val.val-price { font-size: 16.5px; font-weight: 700; color: #dc2626 !important; }

.detail-desc { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; line-height: 1.8; color: #334155 !important; text-align: justify; }
.detail-desc p, .detail-desc div, .detail-desc li { color: #334155 !important; font-size: 15px; line-height: 1.8; margin-bottom: 16px; }
.detail-desc a { color: #238843; font-weight: 600; text-decoration: none; }
.detail-desc a:hover { color: #1a6d36; text-decoration: underline; }

/* PROJECT VIEW & SUB-TABS */
.proj-article { background: #fff; line-height: 1.8; color: #334155; }
.proj-header { margin-bottom: 22px; border-bottom: 1px solid #e2e8f0; padding-bottom: 16px; }
.proj-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 24px; font-weight: 700; color: #0f172a; margin-bottom: 12px; line-height: 1.35; letter-spacing: -0.025em; }
.proj-meta { display: flex; gap: 18px; font-size: 13.5px; color: #64748b; flex-wrap: wrap; }
.proj-h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 20px; font-weight: 700; color: #238843; margin: 28px 0 14px 0; padding-left: 0; border-left: none; border-bottom: none; line-height: 1.4; letter-spacing: -0.02em; }
.proj-h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 17px; font-weight: 600; color: #238843; margin: 24px 0 10px 0; line-height: 1.4; letter-spacing: -0.015em; }
.proj-h4 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; font-weight: 600; color: #238843; margin: 18px 0 8px 0; }
.proj-text, .proj-content-body { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; line-height: 1.8; color: #334155 !important; margin-bottom: 18px; text-align: justify; }
.proj-content-body p, .detail-desc p, .proj-article p { font-size: 15px; line-height: 1.8; color: #334155 !important; margin-bottom: 18px; text-align: justify; }
.proj-content-body li, .detail-desc li, .proj-article li { font-size: 15px; line-height: 1.8; color: #334155 !important; margin-bottom: 8px; }
.proj-content-body strong, .detail-desc strong, .proj-article strong,
.proj-content-body b, .detail-desc b, .proj-article b { color: #111827 !important; font-weight: 700; }
.proj-content-body a, .proj-article a { color: #238843; font-weight: 600; text-decoration: none; }
.proj-content-body a:hover, .proj-article a:hover { color: #1a6d36; text-decoration: underline; }
.proj-content-body blockquote, .detail-desc blockquote { border-left: 4px solid #238843; background: #f8fafc; padding: 14px 20px; font-style: italic; color: #222222; margin: 20px 0; border-radius: 0 4px 4px 0; }

.specs-table { width: 100%; border-collapse: collapse; margin: 20px 0; border: 1px solid #e2e8f0; font-size: 14.5px; background: #fff; }
.specs-table th, .specs-table td { border: 1px solid #e2e8f0; padding: 12px 18px; text-align: left; line-height: 1.6; color: #000000; }
.specs-table th { background-color: #f8fafc; width: 28%; font-weight: 600; color: #333333; }
.specs-table tr:nth-child(even) { background-color: #fafbfc; }

.sub-tabs { display: flex; gap: 10px; margin: 18px 0 14px 0; flex-wrap: wrap; }
.sub-tab-btn { background: #f1f5f9; border: 1px solid #e2e8f0; padding: 9px 20px; border-radius: 6px; font-size: 14px; font-weight: 700; cursor: pointer; color: #334155; transition: all 0.2s ease; }
.sub-tab-btn.active { background: #238843; color: #fff; border-color: #238843; box-shadow: 0 2px 6px rgba(35,136,67,0.25); }
.sub-tab-btn:hover:not(.active) { background: #e2e8f0; color: #238843; }
.sub-tab-panel { display: none; }

/* ==========================================================================
   CHỐNG TRÀN VIỀN 100% CHO HÌNH ẢNH & BẢNG BIỂU TRÊN MÁY TÍNH, IPAD & ĐIỆN THOẠI
   ========================================================================== */
.proj-article,
.proj-content-body,
.detail-desc,
.entry-content {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
}

.proj-article *,
.proj-content-body *,
.detail-desc *,
.entry-content * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.wp-caption,
.wp-block-image,
figure {
    width: auto !important;
    max-width: 100% !important;
    margin: 16px auto !important;
}

/* KHÓA CHẶT TẤT CẢ EMOJI VÀ BIỂU TƯỢNG CẢM XÚC - KHÔNG BAO GIỜ BỊ PHÓNG TO */
img.emoji,
img.wp-smiley,
.emoji,
.wp-smiley {
    display: inline-block !important;
    width: 1.15em !important;
    height: 1.15em !important;
    max-width: 1.15em !important;
    max-height: 1.15em !important;
    min-width: 1.15em !important;
    min-height: 1.15em !important;
    vertical-align: -0.15em !important;
    margin: 0 0.15em !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* 1. TẤT CẢ HÌNH ẢNH TRONG NỘI DUNG TỰ ĐỘNG CO DÃN VỪA KHÍT KHUNG, KHÔNG TRÀN */
.layout-img-box, .tab-img-clean { background: transparent !important; border: none !important; border-radius: 0 !important; padding: 0 !important; text-align: center; margin: 16px 0 !important; box-shadow: none !important; width: 100% !important; }
.layout-img-box img:not(.emoji):not(.wp-smiley),
.tab-img-clean img:not(.emoji):not(.wp-smiley),
.sub-tab-panel img:not(.emoji):not(.wp-smiley),
.proj-content-body img:not(.emoji):not(.wp-smiley),
.detail-desc img:not(.emoji):not(.wp-smiley),
.entry-content img:not(.emoji):not(.wp-smiley),
.wp-block-image img:not(.emoji):not(.wp-smiley),
.wp-caption img:not(.emoji):not(.wp-smiley),
figure img:not(.emoji):not(.wp-smiley) {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    display: block !important;
    margin: 16px auto !important;
    box-sizing: border-box !important;
    border-radius: 6px !important;
    border: none !important;
    box-shadow: none !important;
}

/* 2. KHUNG CHỨA ẢNH (FIGURE, CAPTION, BLOCK) */
.proj-content-body figure,
.detail-desc figure,
.entry-content figure,
.wp-block-image,
.wp-caption {
    max-width: 100% !important;
    width: 100% !important;
    margin: 16px auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* 3. BẢNG BIỂU (TABLE) & KHỐI THÔNG TIN: TỰ ĐỘNG VỪA VẶN MỌI THIẾT BỊ, CHỮ TO RÕ RÀNG */
.proj-content-body table,
.detail-desc table,
.entry-content table,
.proj-article table,
article table,
.specs-table {
    display: table !important;
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse !important;
    box-sizing: border-box !important;
    margin: 20px 0 !important;
    overflow: visible !important;
}
.proj-content-body table td,
.proj-content-body table th,
.detail-desc table td,
.detail-desc table th,
.entry-content table td,
.entry-content table th,
.proj-article table td,
.proj-article table th,
article table td,
article table th,
.specs-table td,
.specs-table th {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    box-sizing: border-box !important;
    padding: 11px 14px !important;
    vertical-align: middle !important;
    white-space: normal !important;
    font-size: 15.5px !important;
    line-height: 1.65 !important;
    color: #1e293b !important;
}
.proj-content-body table td *,
.proj-content-body table th *,
.detail-desc table td *,
.detail-desc table th *,
.entry-content table td *,
.entry-content table th *,
.proj-article table td *,
.proj-article table th *,
article table td *,
article table th *,
.specs-table td *,
.specs-table th * {
    font-size: inherit !important;
    line-height: inherit !important;
    box-sizing: border-box !important;
}
.proj-content-body table td p,
.proj-content-body table th p,
.detail-desc table td p,
.detail-desc table th p,
.entry-content table td p,
.entry-content table th p,
.proj-article table td p,
.proj-article table th p,
article table td p,
article table th p,
.specs-table td p,
.specs-table th p {
    margin: 0 !important;
    padding: 0 !important;
}
.proj-content-body table td strong,
.proj-content-body table th strong,
.proj-content-body table td b,
.proj-content-body table th b,
.specs-table th,
.specs-table strong {
    font-weight: 700 !important;
    color: #0f172a !important;
}
.proj-content-body table td img,
.proj-content-body table th img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
}
@media (max-width: 991px) {
    .proj-content-body table,
    .detail-desc table,
    .entry-content table,
    .proj-article table,
    article table,
    .specs-table {
        display: table !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .proj-content-body table td,
    .proj-content-body table th,
    .detail-desc table td,
    .detail-desc table th,
    .entry-content table td,
    .entry-content table th,
    .proj-article table td,
    .proj-article table th,
    article table td,
    article table th,
    .specs-table td,
    .specs-table th {
        padding: 10px 12px !important;
        font-size: 15.5px !important;
        line-height: 1.65 !important;
    }
}
@media (max-width: 768px) {
    .proj-content-body table,
    .detail-desc table,
    .entry-content table,
    .proj-article table,
    article table,
    .specs-table {
        display: table !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .proj-content-body table td,
    .proj-content-body table th,
    .detail-desc table td,
    .detail-desc table th,
    .entry-content table td,
    .entry-content table th,
    .proj-article table td,
    .proj-article table th,
    article table td,
    article table th,
    .specs-table td,
    .specs-table th {
        padding: 9px 10px !important;
        font-size: 15.5px !important;
        line-height: 1.65 !important;
    }
    .specs-table {
        font-size: 15.5px !important;
    }
}
@media (max-width: 480px) {
    .proj-content-body table td,
    .proj-content-body table th,
    .detail-desc table td,
    .detail-desc table th,
    .entry-content table td,
    .entry-content table th,
    .proj-article table td,
    .proj-article table th,
    article table td,
    article table th,
    .specs-table td,
    .specs-table th {
        padding: 8px 8px !important;
        font-size: 15px !important;
        line-height: 1.6 !important;
    }
    .specs-table {
        font-size: 15px !important;
    }
}

/* 4. CĂN CHỈNH ẢNH WORDPRESS (ALIGNMENT) */
.aligncenter {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
    height: auto !important;
}
.alignleft {
    float: left !important;
    margin: 8px 20px 16px 0 !important;
    max-width: 50% !important;
    height: auto !important;
}
.alignright {
    float: right !important;
    margin: 8px 0 16px 20px !important;
    max-width: 50% !important;
    height: auto !important;
}
.alignnone {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 16px auto !important;
}

@media (max-width: 768px) {
    .alignleft,
    .alignright {
        float: none !important;
        margin: 14px auto !important;
        display: block !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* DANH SÁCH DỰ ÁN SIDEBAR CÓ ẢNH ĐẠI DIỆN ĐI KÈM */
.side-project-list { list-style: none; padding: 0; margin: 0; }
.side-project-item { padding: 9px 0; border-bottom: 1px solid #f1f5f9; }
.side-project-item:last-child { border-bottom: none; }
.side-project-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; transition: opacity 0.2s; }
.side-project-link:hover .side-project-title { color: #e03c31; }
.side-project-thumb { width: 54px; height: 54px; border-radius: 6px; object-fit: cover; flex-shrink: 0; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.side-project-info { flex: 1; min-width: 0; }
.side-project-title { font-size: 13.5px; font-weight: 500; color: #1e293b; line-height: 1.35; white-space: normal; }
.side-project-count { font-size: 12px; color: #64748b; margin-top: 3px; }

/* NEWS VIEW */
.news-article-card { background: #fff; border-bottom: 1px solid #eee; padding-bottom: 14px; margin-bottom: 14px; display: grid; grid-template-columns: 230px 1fr; gap: 16px; cursor: pointer; text-decoration: none; color: inherit; }
.news-article-card:hover .news-article-title { color: #e03c31; }
.news-article-img { width: 100%; height: 145px; object-fit: cover; border-radius: 4px; }
.news-article-body { display: flex; flex-direction: column; justify-content: center; }
.news-article-title { font-size: 16px; font-weight: 700; color: #238843; line-height: 1.4; margin-bottom: 6px; }
.news-article-meta { font-size: 12px; color: #888; margin-bottom: 6px; }
.news-article-desc { font-size: 13.5px; color: #555; line-height: 1.5; }

/* SIDEBAR & KHUNG CHUYÊN VIÊN LÊ TIẾN */
.sidebar { display: flex; flex-direction: column; gap: 18px; }
.side-box { background: #fff; border: 1px solid #eee; border-radius: 6px; padding: 16px; }
.side-title { font-size: 14.5px; font-weight: 700; color: #238843; margin-bottom: 10px; border-bottom: 2px solid #e8f5e9; padding-bottom: 8px; }
.side-list { list-style: none; }
.side-list li { padding: 8px 6px; font-size: 13.5px; border-bottom: 1px dashed #eee; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: #444; transition: all 0.15s ease; border-radius: 4px; }
.side-list li:hover { color: #238843; font-weight: 600; background-color: #f8fafc; }
.side-list li.active, .side-list li.active-filter { color: #238843 !important; font-weight: 700 !important; background-color: #f0fdf4 !important; border-left: 3px solid #238843 !important; padding-left: 10px !important; }
.side-list li span { color: #94a3b8; transition: transform 0.15s ease; }
.side-list li:hover span, .side-list li.active span { color: #238843 !important; }

.agent-box { text-align: center; background: #fafdfb; border: 1px solid #d1fae5; border-radius: 6px; padding: 18px 16px; }
.agent-avatar { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; border: 2.5px solid #238843; margin: 0 auto 10px; display: block; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.agent-name { font-weight: 700; font-size: 15px; color: #238843; }
.agent-hotline { font-size: 19px; font-weight: 800; color: #e03c31; margin: 5px 0 10px; letter-spacing: 0.5px; }
.agent-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-agent-call { background: #238843; color: #fff; padding: 8px 0; border-radius: 4px; font-size: 12.5px; font-weight: 600; text-align: center; display: block; }
.btn-agent-zalo { background: #0068ff; color: #fff; padding: 8px 0; border-radius: 4px; font-size: 12.5px; font-weight: 600; text-align: center; display: block; }

.news-item { padding: 9px 0; border-bottom: 1px solid #f5f5f5; cursor: pointer; }
.news-item:hover .news-title { color: #e03c31; }
.news-title { font-size: 13.5px; font-weight: 600; line-height: 1.4; color: #222; }
.news-date { font-size: 11px; color: #888; margin-top: 4px; }

/* FOOTER - MÀU XANH LÁ NHẠT SANG TRỌNG (LUXURY SOFT MINT / SAGE GREEN) */
.site-footer {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    background: #f4f9f6;
    background: linear-gradient(180deg, #f7fbf8 0%, #edf5f0 100%);
    color: #334155;
    padding: 48px 0 24px 0;
    margin-top: 48px;
    border-top: 2px solid #d2e7dc;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.02);
}
.footer-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    box-sizing: border-box;
    gap: 36px;
}
.footer-col-title {
    font-size: 16px;
    font-weight: 700;
    color: #0b4632;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.footer-col-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 38px;
    height: 3px;
    background: #238843;
    border-radius: 2px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
}
.contact-icon {
    font-size: 15px;
    color: #238843;
    background: #ffffff;
    border: 1px solid #cce5d6;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.contact-item strong {
    color: #0b4632;
    font-weight: 700;
}

.footer-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.f-input-group {
    position: relative;
    display: flex;
    align-items: center;
}
.f-input-field {
    width: 100%;
    padding: 9px 36px 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13.5px;
    outline: none;
    font-family: inherit;
    background: #ffffff;
    color: #1e293b;
    transition: all 0.2s;
}
.f-input-field:focus {
    border-color: #238843;
    box-shadow: 0 0 0 3px rgba(35, 136, 67, 0.12);
}
.f-input-icon {
    position: absolute;
    right: 12px;
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
}
.f-textarea-group {
    position: relative;
}
.f-textarea-field {
    width: 100%;
    height: 75px;
    padding: 9px 36px 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13.5px;
    outline: none;
    font-family: inherit;
    background: #ffffff;
    color: #1e293b;
    resize: none;
    transition: all 0.2s;
}
.f-textarea-field:focus {
    border-color: #238843;
    box-shadow: 0 0 0 3px rgba(35, 136, 67, 0.12);
}
.f-textarea-icon {
    position: absolute;
    right: 12px;
    top: 10px;
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
}

.recaptcha-box {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #374151;
    margin-top: 2px;
}
.recaptcha-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
}
.recaptcha-left input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.recaptcha-right {
    text-align: center;
    font-size: 9px;
    color: #64748b;
    line-height: 1.1;
}
.recaptcha-logo {
    font-size: 18px;
    color: #1a73e8;
    display: block;
    margin-bottom: 2px;
}

.btn-footer-submit {
    background: #238843;
    background: linear-gradient(135deg, #27964b 0%, #1e7839 100%);
    color: #ffffff;
    border: none;
    padding: 11px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 4px;
    box-shadow: 0 3px 8px rgba(35, 136, 67, 0.22);
}
.btn-footer-submit:hover {
    background: #1b6b33;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(35, 136, 67, 0.32);
}

.fanpage-box {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.fanpage-cover {
    height: 85px;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?auto=format&fit=crop&w=600&q=80') center/cover;
    position: relative;
}
.fanpage-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2.5px solid #fff;
    position: absolute;
    bottom: -16px;
    left: 14px;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.fanpage-body {
    padding: 22px 16px 16px 16px;
}
.fanpage-name {
    font-weight: 700;
    font-size: 15px;
    color: #0b4632;
}
.fanpage-sub {
    font-size: 12.5px;
    color: #64748b;
    margin-bottom: 12px;
}
.btn-facebook-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1877f2;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    width: 100%;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-facebook-link:hover {
    background: #0e65d9;
}

.footer-bottom {
    border-top: 1px solid #d2e7dc;
    margin-top: 36px;
    padding-top: 18px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

/* NÚT HÀNH ĐỘNG GỌI NGAY & NHẮN ZALO TRONG CHI TIẾT BĐS: THU GỌN VỪA KHÍT CHỮ, KHÔNG BỊ RỘNG THỪA */
.bds-action-buttons {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}
.bds-action-buttons a,
.btn-action-call,
.btn-action-zalo,
a.btn-action-call,
a.btn-action-zalo {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #238843 !important;
    background: linear-gradient(135deg, #2e944b 0%, #238843 100%) !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    padding: 7px 14px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(35, 136, 67, 0.2) !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
    white-space: nowrap !important;
    border: none !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: max-content !important;
}
.bds-action-buttons a:hover,
.btn-action-call:hover,
.btn-action-zalo:hover {
    background: #1a6d36 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(35, 136, 67, 0.3) !important;
}

/* TRÊN ĐIỆN THOẠI & IPAD */
@media (max-width: 768px) {
    .bds-action-buttons {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100% !important;
        margin: 14px 0 !important;
        justify-content: flex-start !important;
    }
    .bds-action-buttons a,
    .btn-action-call,
    .btn-action-zalo,
    a.btn-action-call,
    a.btn-action-zalo {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: max-content !important;
        padding: 6px 12px !important;
        font-size: 12.5px !important;
        border-radius: 6px !important;
        color: #ffffff !important;
        text-align: center !important;
        justify-content: center !important;
    }
    /* Hiển thị khối trích dẫn / điểm nhấn đẹp mắt trên điện thoại và iPad */
    .detail-desc blockquote,
    .detail-desc-content blockquote,
    .proj-article blockquote,
    .proj-content-body blockquote {
        display: block !important;
        margin: 14px 0 !important;
        padding: 12px 16px !important;
    }
}

/* KHÔNG HIỂN THỊ WIDGET "TƯ VẤN NGAY" Ở BẤT KỲ BÀI VIẾT NÀO Ở NHÀ ĐẤT BÁN & CHO THUÊ */
.single-bds .contact-widget-wrap,
body.single-bds .contact-widget-wrap {
    display: none !important;
}

/* WIDGET LIÊN HỆ NỔI (SĐT LIỀN 0934373388) */
.contact-widget-wrap { position: fixed; bottom: 25px; left: 25px; z-index: 999; display: flex; align-items: center; gap: 10px; }
.widget-btn-main { width: 50px; height: 50px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45); cursor: pointer; position: relative; animation: pulseGreen 2s infinite; border: 2px solid #ffffff; flex-shrink: 0; }
.widget-btn-main svg { width: 26px; height: 26px; fill: #ffffff; }

@keyframes pulseGreen {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1.06); box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.widget-pill-label { background: #1e3a5f; color: #ffffff; font-size: 13px; font-weight: 700; padding: 8px 16px; border-radius: 24px; box-shadow: 0 4px 14px rgba(0,0,0,0.22); cursor: pointer; white-space: nowrap; }
.contact-popup-menu { position: absolute; bottom: 64px; left: 0; background: #ffffff; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,0.22); border: 1px solid #eaeaea; padding: 10px; width: 220px; display: none; flex-direction: column; gap: 6px; z-index: 1000; }
.contact-popup-menu.show { display: flex; }
.popup-menu-title { font-size: 11.5px; font-weight: 700; color: #64748b; text-transform: uppercase; padding: 4px 8px 6px 8px; border-bottom: 1px solid #f1f5f9; }
.contact-item-btn { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: #1e293b; }
.contact-item-btn:hover { background: #f8fafc; }
.c-icon { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; flex-shrink: 0; }
.c-icon.zalo { background: #0068ff; }
.c-icon.viber { background: #7360f2; }
.c-icon.messenger { background: #0084ff; }

/* MODAL POPUPS */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.65); display: none; justify-content: center; align-items: center; z-index: 2000; padding: 16px; }
.modal-overlay.open { display: flex; }
.modal-box { background: #fff; border-radius: 8px; width: 100%; max-width: 540px; padding: 22px; position: relative; max-height: 90vh; overflow-y: auto; box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.modal-close { position: absolute; top: 10px; right: 14px; font-size: 24px; font-weight: 700; color: #888; cursor: pointer; }
.modal-close:hover { color: #e03c31; }
.modal-title { font-size: 17.5px; font-weight: 700; color: #238843; margin-bottom: 6px; }
.modal-desc { font-size: 13px; color: #666; margin-bottom: 14px; }
.form-group { margin-bottom: 11px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #333; margin-bottom: 4px; }
.form-group label span.req { color: #e03c31; }
.form-control { width: 100%; padding: 8px 11px; border: 1px solid #ccc; border-radius: 4px; font-size: 13.5px; outline: none; font-family: inherit; }
.form-control:focus { border-color: #238843; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-submit { background: #e03c31; color: #fff; border: none; padding: 10px; border-radius: 4px; font-weight: 700; width: 100%; font-size: 14.5px; cursor: pointer; margin-top: 8px; }

.slug-input-wrap { display: flex; align-items: center; border: 1px solid #ccc; border-radius: 4px; overflow: hidden; background: #fff; }
.slug-prefix { background: #f5f5f5; padding: 7px 9px; font-size: 12.5px; color: #555; font-weight: 600; border-right: 1px solid #ccc; white-space: nowrap; }
.slug-field { border: none; outline: none; padding: 7px 9px; font-size: 13px; width: 100%; color: #238843; font-weight: 600; font-family: inherit; }

.upload-zone { border: 2px dashed #ccc; padding: 12px; text-align: center; border-radius: 4px; background: #fafafa; cursor: pointer; }
.preview-container { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.preview-img { width: 60px; height: 48px; object-fit: cover; border-radius: 4px; border: 1px solid #ddd; }

.auth-tabs { display: flex; border-bottom: 2px solid #e2e8f0; margin-bottom: 16px; }
.auth-tab-btn { flex: 1; text-align: center; padding: 9px 0; font-weight: 700; font-size: 13.5px; color: #64748b; background: none; border: none; cursor: pointer; }
.auth-tab-btn.active { color: #238843; border-bottom: 2px solid #238843; margin-bottom: -2px; }
.auth-content { display: none; }
.auth-content.active { display: block; }

/* WP Specific Utilities & Pagination (Chuẩn Xanh Ecopark #238843 Hiện Đại) */
.pagination { display: flex; gap: 8px; margin-top: 28px; justify-content: center; align-items: center; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 16px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 14px; font-weight: 700; color: #334155; background: #ffffff; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-width: 40px; transition: all 0.2s ease; }
.pagination .page-numbers.current { background: #238843 !important; color: #ffffff !important; border-color: #238843 !important; box-shadow: 0 2px 6px rgba(35, 136, 67, 0.25); }
.pagination .page-numbers:hover:not(.current) { background: #eef7f2; border-color: #238843; color: #238843; }
.pagination .page-numbers.dots { border: none; background: transparent; color: #94a3b8; }

/* RESPONSIVE IPAD & TABLET (768px - 1024px) - HIỂN THỊ GÓC RỘNG SANG TRỌNG */
@media (max-width: 992px) {
  .container { max-width: 100%; grid-template-columns: 1fr; gap: 24px; padding: 0 16px; margin: 18px auto; }
  .sidebar { order: 2; }
  .nav-items { display: none; }
  .btn-menu-mobile { display: block; }
  .header { padding: 0 16px; height: 50px; }
  .header-actions .user-profile-badge { display: none !important; }
  .footer-container { grid-template-columns: 1fr; gap: 30px; padding: 0 16px; }
  .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .gallery-main-img { height: 380px; width: 100%; object-fit: cover; border-radius: 8px; }
  .proj-title, .detail-title { font-size: 20px; line-height: 1.35; }
  .title-sec { font-size: 18px; }
  .card-title { font-size: 13.5px; height: 38px; line-height: 1.4; font-weight: 600; }
  .card-price { font-size: 14.5px; font-weight: 700; }
  .card-specs { font-size: 11.5px; }
  .layout-img-box img { max-height: 480px; }

  /* 4 Thuộc tính BĐS nằm cùng 1 hàng trên iPad */
  .detail-meta {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px !important;
    padding: 14px 0 !important;
  }
  .detail-meta .meta-item .val {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #334155 !important;
  }
  .detail-meta .meta-item-price .val,
  .detail-meta .meta-item .val.val-price {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #e03c31 !important;
  }

  /* Ẩn hoàn toàn nút Xem chi tiết & liên hệ */
  .btn-call {
    display: none !important;
  }

  /* Bảng tính ngân hàng full bằng với bài viết bên trên */
  .loan-calc-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 24px 0 !important;
    box-sizing: border-box !important;
  }
  .loan-calc-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 18px 12px !important;
    border-radius: 8px !important;
  }
  .loan-calc-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

/* RESPONSIVE SMARTPHONE & MOBILE (<640px) - GÓC RỘNG TOÀN DIỆN */
@media (max-width: 640px) {
  .top-bar { font-size: 11.5px; padding: 5px 10px; }
  .header { height: 48px; padding: 0 10px; }
  .logo { font-size: 18.5px; }
  .btn-dangtin { padding: 5px 10px; font-size: 12px; }
  .btn-login-header { padding: 5px 8px; font-size: 11.5px; }
  .container { padding: 0 10px; margin: 12px auto; }
  .hero { padding: 18px 8px; }
  .flat-box { padding: 12px; }
  .search-row { flex-direction: column; gap: 6px; }
  .btn-search { width: 100%; padding: 9px; }
  .filters-row { flex-direction: column; gap: 6px; }
  .f-select { width: 100%; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .card-img-wrap img { height: 190px; }
  .card-body { padding: 12px; }
  .news-article-card { grid-template-columns: 1fr; gap: 10px; }
  .news-article-img { height: 160px; }
  .gallery-main-img { height: 260px; border-radius: 6px; }
  .gallery-thumbs { gap: 6px; margin-bottom: 16px; }
  .gallery-thumb { width: 75px; height: 52px; }
  .proj-title, .detail-title { font-size: 17.5px; line-height: 1.38; }
  .title-sec { font-size: 16px; margin-bottom: 14px; }
  .card-title { font-size: 13px; height: 36px; line-height: 1.38; font-weight: 600; }
  .card-price { font-size: 13.5px; font-weight: 700; }
  .card-specs { font-size: 11px; }
  .proj-h2 { font-size: 18px; margin: 20px 0 10px 0; }
  .proj-h3 { font-size: 15.5px; margin: 16px 0 8px 0; }
  .proj-text, .detail-desc { font-size: 14.5px; line-height: 1.75; }
  .specs-table { font-size: 15.5px !important; display: table; width: 100%; }
  .specs-table th, .specs-table td { padding: 9px 10px; font-size: 15.5px !important; line-height: 1.65 !important; }
  .specs-table th { width: 32%; }
  .layout-img-box { padding: 8px; }
  .layout-img-box img { max-height: 380px; }
  .form-row { grid-template-columns: 1fr; gap: 8px; }
  .contact-widget-wrap { bottom: 16px; left: 14px; }
  .widget-pill-label { display: none; }
  .agent-box { padding: 14px 12px; }
  .agent-hotline { font-size: 18px; }

  /* 4 Thuộc tính BĐS nằm cùng 1 hàng trên điện thoại di động */
  .detail-meta {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 5px !important;
    padding: 12px 0 !important;
    margin-bottom: 16px !important;
  }
  .detail-meta .meta-item {
    min-width: 0 !important;
  }
  .detail-meta .meta-item .label {
    font-size: 11px !important;
    white-space: nowrap !important;
    color: #64748b !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
  }
  .detail-meta .meta-item .val {
    font-size: 12.5px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-top: 3px !important;
  }
  .detail-meta .meta-item-price .val,
  .detail-meta .meta-item .val.val-price {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #e03c31 !important;
  }
  .detail-meta .meta-item:nth-child(5) {
    grid-column: span 4 !important;
    margin-top: 6px !important;
  }

  /* Ẩn hoàn toàn nút Xem chi tiết & liên hệ */
  .btn-call {
    display: none !important;
  }

  /* Bảng tính ngân hàng full bằng với bài viết bên trên */
  .loan-calc-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 20px 0 !important;
    box-sizing: border-box !important;
  }
  .loan-calc-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 16px 10px !important;
    border-radius: 8px !important;
  }
}

/* ===================================================
   BẢNG TÍNH DỰ TÍNH KHOẢN VAY (CHUẨN CHUYÊN NGHIỆP)
   =================================================== */
.loan-calc-container {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}
.loan-calc-header-title {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #238843 !important;
    margin-bottom: 16px !important;
}
@media (max-width: 992px) {
    .loan-calc-header-title {
        font-size: 16.5px !important;
    }
}
@media (max-width: 640px) {
    .loan-calc-header-title {
        font-size: 15.5px !important;
    }
}
.loan-calc-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.loan-calc-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 32px;
    align-items: start;
}
.loan-col-inputs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.loan-input-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.loan-input-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}
.loan-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.loan-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}
.loan-input-box {
    position: relative;
    display: flex;
    align-items: center;
}
.loan-input-control {
    width: 100%;
    padding: 10px 30px 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14.5px;
    font-weight: 600;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.loan-input-control:focus {
    border-color: #238843;
    box-shadow: 0 0 0 3px rgba(35, 136, 67, 0.15);
}
.loan-input-control.readonly {
    background: #f8fafc;
    color: #1e293b;
    cursor: default;
}
.loan-input-control.rate-color {
    color: #b91c1c;
    font-weight: 700;
}
.loan-unit-tag {
    position: absolute;
    right: 10px;
    font-size: 13.5px;
    color: #64748b;
    font-weight: 600;
    pointer-events: none;
}
.loan-method-note {
    font-size: 12.5px;
    color: #64748b;
    font-style: italic;
    margin-top: 6px;
}

/* CỘT KẾT QUẢ PHÂN BỔ BÊN PHẢI */
.loan-col-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.loan-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}
.loan-bar-track {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 6px;
    display: flex;
    overflow: hidden;
}
.loan-bar-own {
    height: 100%;
    background: #238843;
    transition: width 0.3s ease;
}
.loan-bar-borrow {
    height: 100%;
    background: #1e3a8a;
    transition: width 0.3s ease;
}
.loan-metrics-chips {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding-top: 4px;
}
.loan-metric-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.loan-metric-title {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.loan-dot-own { color: #238843; font-size: 11px; }
.loan-dot-loan { color: #1e3a8a; font-size: 11px; }
.loan-dot-interest { color: #b45309; font-size: 11px; }

.loan-metric-val {
    font-size: 14.5px;
    font-weight: 700;
    white-space: nowrap;
}
.val-own { color: #238843; }
.val-loan { color: #1e3a8a; }
.val-interest { color: #b45309; }

.loan-result-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.loan-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.loan-result-lbl {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}
.loan-result-total-val {
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #b45309;
}
.loan-result-month-val {
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #0f172a;
}

@media (max-width: 820px) {
    .loan-calc-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .loan-input-row-2 {
        grid-template-columns: 1fr;
    }
    .loan-metrics-chips {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}
@media (max-width: 480px) {
    .loan-input-row-3 {
        grid-template-columns: 1fr;
    }
    .loan-metrics-chips {
        grid-template-columns: 1fr;
    }
    .loan-result-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ==========================================================================
   HÀNG CHIA CỘT (2, 3, 4 CỘT) CHO BÀI VIẾT DỰ ÁN & BÀI VIẾT BĐS
   Trên Desktop: Hiển thị 2, 3 hoặc 4 cột song song
   Trên iPad / Máy tính bảng: Tự động chuyển 2 cột
   Trên Điện thoại: Tự động co về 1 cột
   ========================================================================== */
.duan-row-grid,
.duan-row-2col,
.duan-row-3col,
.duan-row-4col {
    display: grid !important;
    gap: 20px;
    margin: 24px 0;
    width: 100%;
    box-sizing: border-box;
}
.duan-row-2col,
.duan-row-grid.duan-row-2col {
    grid-template-columns: repeat(2, 1fr) !important;
}
.duan-row-3col,
.duan-row-grid.duan-row-3col {
    grid-template-columns: repeat(3, 1fr) !important;
}
.duan-row-4col,
.duan-row-grid.duan-row-4col {
    grid-template-columns: repeat(4, 1fr) !important;
}
.duan-col-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}
.duan-col-item img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
    background: #ffffff;
}
.duan-col-item a {
    display: block !important;
    width: 100% !important;
    text-decoration: none !important;
    background: #ffffff;
}
.duan-row-3col .duan-col-item img,
.duan-row-grid.duan-row-3col .duan-col-item img {
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
}
.duan-row-4col .duan-col-item img,
.duan-row-grid.duan-row-4col .duan-col-item img {
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
}
.duan-col-caption {
    padding: 12px 14px;
    text-align: center;
    background: #fafafa;
    border-top: 1px solid #f1f5f9;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.duan-col-caption h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0b4632;
    margin-bottom: 4px;
    line-height: 1.4;
}
.duan-col-caption p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}
@media (max-width: 991px) {
    .duan-row-3col, .duan-row-grid.duan-row-3col,
    .duan-row-4col, .duan-row-grid.duan-row-4col {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
}
@media (max-width: 640px) {
    .duan-row-2col, .duan-row-grid.duan-row-2col,
    .duan-row-3col, .duan-row-grid.duan-row-3col,
    .duan-row-4col, .duan-row-grid.duan-row-4col {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .duan-col-item img {
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
    }
}

/* Đảm bảo khối chia cột Gutenberg của WordPress hiển thị trọn vẹn trên Điện thoại & iPad */
@media (max-width: 781px) {
    .wp-block-columns:not(.is-not-stacked-on-mobile) {
        flex-wrap: wrap !important;
    }
    .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
        flex-basis: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 16px !important;
    }
}
.wp-block-column img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

/* ==========================================================================
   MỤC LỤC BÀI VIẾT TỰ ĐỘNG CHUẨN SEO GOOGLE (TABLE OF CONTENTS - KHÔNG PLUGIN)
   ========================================================================== */
.timnha24h-toc-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 4px solid #238843;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 20px 0 28px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    max-width: 100%;
    box-sizing: border-box;
}
.timnha24h-toc-box img,
.timnha24h-toc-box .emoji,
.toc-title img,
.toc-title svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    border: none !important;
    box-shadow: none !important;
}
.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    gap: 12px;
}
.toc-title {
    font-size: 15.5px !important;
    font-weight: 700 !important;
    color: #0b4632 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
}
.toc-title span {
    white-space: nowrap !important;
}
.btn-toc-toggle {
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: #238843;
    cursor: pointer;
    padding: 2px 6px;
    flex-shrink: 0;
}
.btn-toc-toggle:hover {
    text-decoration: underline;
}
.toc-body {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}
.toc-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.toc-list li {
    margin-bottom: 8px;
    line-height: 1.5;
}
.toc-list li a {
    color: #1e293b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s ease;
}
.toc-list li a:hover {
    color: #238843;
    text-decoration: underline;
}
.toc-item-h2 {
    font-weight: 600;
}
.toc-item-h3 {
    padding-left: 20px;
    font-size: 13.5px;
}
.toc-item-h3 a {
    color: #475569 !important;
}

/* ==========================================================================
   TĂNG KÍCH THƯỚC CHỮ BÀI VIẾT & KHỐI BẢNG TRÊN ĐIỆN THOẠI & IPAD
   Đảm bảo chữ trong bảng/khối và chữ bài viết hiển thị to rõ ràng, không bị nhỏ
   ========================================================================== */
@media (max-width: 991px) {
    .proj-text,
    .proj-content-body,
    .proj-content-body p,
    .proj-article p,
    .proj-content-body li,
    .proj-article li,
    .sub-tab-panel p,
    .tab-pane p,
    .proj-content-body blockquote,
    .detail-desc blockquote {
        font-size: 15.5px !important;
        line-height: 1.8 !important;
    }
    .proj-content-body table td,
    .proj-content-body table th,
    .specs-table td,
    .specs-table th {
        font-size: 15.5px !important;
        line-height: 1.65 !important;
    }
}
@media (max-width: 768px) {
    .proj-text,
    .proj-content-body,
    .proj-content-body p,
    .proj-article p,
    .proj-content-body li,
    .proj-article li,
    .sub-tab-panel p,
    .tab-pane p,
    .proj-content-body blockquote,
    .detail-desc blockquote {
        font-size: 16.5px !important;
        line-height: 1.85 !important;
    }
    .proj-content-body table td,
    .proj-content-body table th,
    .specs-table td,
    .specs-table th {
        font-size: 15.5px !important;
        line-height: 1.65 !important;
    }
}
@media (max-width: 480px) {
    .proj-content-body table td,
    .proj-content-body table th,
    .specs-table td,
    .specs-table th {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }
}

/* ==========================================================================
   BẢNG ĐĂNG KÝ TƯ VẤN & NHẬN BẢNG GIÁ (LEAD FORM BOX)
   ========================================================================== */
.lead-form-box {
    margin: 32px 0 !important;
    background: #ffffff !important;
    border: 2px solid #0b4632 !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 30px rgba(11,70,50,0.12) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}
.lead-form-box h3 {
    color: #ffffff !important;
    margin: 0 0 6px 0 !important;
}
.lead-form-box p {
    color: #e2e8f0 !important;
    margin: 0 !important;
}
.lead-form-box a {
    color: #ffffff !important;
    text-decoration: none !important;
}
.lead-form-box a:hover {
    text-decoration: none !important;
    opacity: 0.92;
}
.lead-form-grid, .lead-form-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 640px) {
    .lead-form-grid, .lead-form-btns, .callback-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
}

