/*
Theme Name: TimNha24h - Hệ Thống BĐS Việt Nam
Theme URI: https://timnha24h.com.vn/
Author: Lê Tiến
Author URI: https://timnha24h.com.vn/
Description: Giao diện Cổng thông tin Bất động sản Việt Nam chính chủ cao cấp (TimNha24h.com.vn), chuẩn SEO Google, tốc độ cao, phông chữ Merriweather & Roboto, không dùng plugin ngoài.
Version: 1.2.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: timnha24h
Tags: real-estate, custom-post-types, seo-optimized, fast-loading, clean-code, no-plugins-required
*/

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.85; color: #222222; background-color: #ffffff; -webkit-tap-highlight-color: transparent; }
a { text-decoration: none; color: inherit; }

/* 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 SHOW LỚN CAO CẤP, CÂN ĐỐI 1280PX ĐỒNG BỘ NỘI DUNG, CAO 64PX */
.header { background: #fff; border-bottom: 1px solid #e2e8f0; width: 100%; height: 64px; padding: 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.04); }
.header-container { max-width: 1280px; margin: 0 auto; padding: 0 16px; height: 100%; display: flex; align-items: center; justify-content: space-between; width: 100%; }
.header-left { display: flex; align-items: center; gap: 16px; }
.btn-menu-mobile { display: none; background: none; border: none; font-size: 26px; color: #238843; cursor: pointer; padding: 4px; line-height: 1; }
.logo { font-size: 24px; font-weight: 800; color: #238843; cursor: pointer; letter-spacing: -0.5px; white-space: nowrap; }
.logo span { color: #e03c31; }

/* MENU CHÍNH VÀ DROPDOWN SUBMENU CHUẨN ECOPARKHOME.VN */
.nav-items { display: flex; align-items: center; gap: 20px; font-size: 15px; font-weight: 600; height: 100%; letter-spacing: -0.1px; }
.nav-item { position: relative; cursor: pointer; padding: 0 4px; height: 100%; color: #1e293b; display: flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 600; box-sizing: border-box; }
.nav-item a { color: #1e293b; font-size: 15px; font-weight: 600; transition: color 0.2s ease; }
.nav-item:hover, .nav-item.active { color: #238843 !important; border-bottom: 2.5px solid #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: 4px; transition: transform 0.25s ease; color: #64748b; line-height: 1; }
.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; }
.dropdown-item { padding: 9px 18px; font-size: 14.5px; font-weight: 500; color: #334155; transition: all 0.15s ease; white-space: nowrap; border-bottom: 1px solid #f8fafc; }
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: #f0fdf4; color: #238843; padding-left: 22px; }

/* 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; }
.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: 1260px; 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: 1100px; 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Ề RỘNG VÀ CÂN ĐỐI 1280PX CHUẨN KHUNG ĐỎ */
.container { max-width: 1280px; margin: 24px auto; padding: 0 16px; display: grid; grid-template-columns: 1fr 320px; gap: 30px; }
.container.full-width { grid-template-columns: 1fr !important; }
.container.full-width .sidebar { display: none !important; }

.section-block { margin-bottom: 38px; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; border-bottom: 1px solid #e2e8f0; padding-bottom: 10px; gap: 12px; }
.title-sec { font-family: 'Merriweather', Georgia, 'Times New Roman', 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.2px; 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; }
  .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) {
  .grid, .news-grid,
  .container.full-width .grid,
  .container:not(.full-width) .grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .title-sec { font-size: 17px !important; margin-bottom: 18px !important; }
  .section-header .title-sec { margin: 0 !important; }
  #secTitle { margin-bottom: 18px !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, .card 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: 'Merriweather', Georgia, 'Times New Roman', serif; font-size: 22px; font-weight: 700; color: #238843; margin-bottom: 12px; line-height: 1.35; letter-spacing: -0.2px; }
.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: 15px; 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: #e03c31 !important; }

.detail-desc { font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 15.5px; line-height: 1.8; color: #222222 !important; text-align: justify; }
.detail-desc p, .detail-desc div, .detail-desc li { color: #222222 !important; font-size: 15.5px; 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 (CHUẨN 100% ECOPARKHOME.VN) */
.proj-article { background: #fff; line-height: 1.85; color: #222222; }
.proj-header { margin-bottom: 22px; border-bottom: 1px solid #e2e8f0; padding-bottom: 16px; }
.proj-title { font-family: 'Merriweather', Georgia, 'Times New Roman', serif; font-size: 22px; font-weight: 700; color: #238843; margin-bottom: 12px; line-height: 1.35; letter-spacing: -0.2px; }
.proj-meta { display: flex; gap: 18px; font-size: 13.5px; color: #64748b; flex-wrap: wrap; }
.proj-h2 { font-family: 'Merriweather', Georgia, 'Times New Roman', serif; font-size: 22px; font-weight: 700; color: #238843; margin: 28px 0 14px 0; padding-left: 0; border-left: none; border-bottom: none; line-height: 1.4; }
.proj-h3 { font-family: 'Merriweather', Georgia, 'Times New Roman', serif; font-size: 18px; font-weight: 700; color: #238843; margin: 24px 0 10px 0; line-height: 1.4; }
.proj-h4 { font-family: 'Merriweather', Georgia, serif; font-size: 16px; font-weight: 700; color: #238843; margin: 18px 0 8px 0; }
.proj-text, .proj-content-body { font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.85; color: #222222 !important; margin-bottom: 18px; text-align: justify; }
.proj-content-body p, .detail-desc p, .proj-article p { font-size: 16px; line-height: 1.85; color: #222222 !important; margin-bottom: 18px; text-align: justify; }
.proj-content-body li, .detail-desc li, .proj-article li { font-size: 16px; line-height: 1.85; color: #222222 !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; }

/* ẢNH TRONG CÁC TAB HIỂN THỊ KÍCH THƯỚC ĐẦY ĐỦ (FULL SIZE), TỰ NHIÊN, KHÔNG ĐÓNG KHUNG */
.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, .tab-img-clean img, .sub-tab-panel img, .proj-content-body img { width: 100% !important; max-width: 100% !important; height: auto !important; border: none !important; box-shadow: none !important; border-radius: 0 !important; display: block; margin: 0 auto; object-fit: contain; }

/* 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: 700; 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 NỀN XANH ECOPARK TƯƠI SÁNG ĐỒNG BỘ HEADER VÀ FILE ĐÍNH KÈM */
.site-footer { background: #1b6b44; background: linear-gradient(180deg, #238843 0%, #175e30 100%); color: #ffffff; padding: 45px 0 22px 0; margin-top: 45px; border-top: 4px solid #38a169; }
.footer-container { max-width: 1280px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 32px; }
.footer-col-title { font-size: 16px; font-weight: 700; color: #ffffff; margin-bottom: 16px; position: relative; padding-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: #ffffff; }

.contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; font-size: 14px; line-height: 1.6; }
.contact-icon { font-size: 15px; color: #ffffff; margin-top: 3px; flex-shrink: 0; }
.contact-item strong { color: #ffffff; }

.footer-form { display: flex; flex-direction: column; gap: 9px; }
.f-input-group { position: relative; display: flex; align-items: center; }
.f-input-field { width: 100%; padding: 8px 34px 8px 11px; border: 1px solid #cbd5e1; border-radius: 4px; font-size: 13.5px; outline: none; font-family: inherit; background: #ffffff; color: #222; }
.f-input-icon { position: absolute; right: 10px; color: #64748b; font-size: 14px; pointer-events: none; }
.f-textarea-group { position: relative; }
.f-textarea-field { width: 100%; height: 75px; padding: 8px 34px 8px 11px; border: 1px solid #cbd5e1; border-radius: 4px; font-size: 13.5px; outline: none; font-family: inherit; background: #ffffff; color: #222; resize: none; }
.f-textarea-icon { position: absolute; right: 10px; top: 10px; color: #64748b; font-size: 14px; pointer-events: none; }

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

.btn-footer-submit { background: #ffffff; color: #238843; border: none; padding: 10px 14px; border-radius: 6px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.2s; width: 100%; margin-top: 4px; box-shadow: 0 2px 6px rgba(0,0,0,0.12); }
.btn-footer-submit:hover { background: #f1f5f9; color: #0f3d2e; }

.fanpage-box { background: #ffffff; border-radius: 6px; overflow: hidden; color: #222; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.fanpage-cover { height: 85px; background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), 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.2); }
.fanpage-body { padding: 22px 14px 14px 14px; }
.fanpage-name { font-weight: 700; font-size: 14.5px; color: #238843; }
.fanpage-sub { font-size: 12px; color: #64748b; margin-bottom: 12px; }
.btn-facebook-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #1877f2; color: #fff; padding: 7px 14px; border-radius: 4px; font-weight: 600; font-size: 13px; width: 100%; }
.btn-facebook-link:hover { background: #0e65d9; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.2); margin-top: 30px; padding-top: 16px; text-align: center; font-size: 13px; color: #d1fae5; }

/* 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;
    }
    /* Ẩn khối Ưu đãi độc quyền trên điện thoại */
    .detail-desc blockquote,
    .detail-desc-content blockquote,
    .proj-article blockquote {
        display: none !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 { 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: 13.5px; display: table; width: 100%; }
  .specs-table th, .specs-table td { padding: 8px 10px; }
  .specs-table th { width: 34%; }
  .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: 'Merriweather', Georgia, 'Times New Roman', 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: 'Roboto', 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;
    }
}

