/* ============================================
   THANH LÝ BĐS - Premium Real Estate Website
   Website thanh lý bất động sản
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Roboto:wght@300;400;500;700&family=Dancing+Script:wght@700&display=swap');

/* === CSS Variables === */
:root {
  --primary: #008C4F;
  --primary-dark: #006B3C;
  --primary-light: #e6f4ec;
  --accent-gold: #E49F15;
  --accent-red: #e74c3c;
  --navy: #1a2332;
  --navy-light: #243447;
  --white: #ffffff;
  --gray-50: #f8fafb;
  --gray-100: #f0f3f5;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e0;
  --gray-400: #a0aec0;
  --gray-500: #718096;
  --gray-600: #4a5568;
  --gray-700: #2d3748;
  --gray-800: #1a202c;
  --text-primary: #2d3436;
  --text-secondary: #636e72;
  --text-light: #b2bec3;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-width: 1200px;
}

/* === Reset === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--gray-50);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; outline: none; font-family: var(--font-body); }
input, select, textarea { font-family: var(--font-body); outline: none; }

/* === Custom Scrollbar === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-400); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-500); }

/* === Utility === */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-left: 16px;
  border-left: 4px solid var(--primary);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 40px;
  padding-left: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid transparent;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,140,79,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  border: 2px solid var(--primary);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* ========================
   HEADER
   ======================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--gray-200);
}

/* 3 cột: logo trái - menu chính giữa màn hình - hotline phải.
   Dùng grid để menu luôn nằm đúng giữa dù logo và hotline dài ngắn khác nhau */
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 76px;
}
.header-left { justify-self: start; }
.nav-links { justify-self: center; }
.header-actions { justify-self: end; }

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ===== Logo BĐS Thanh Lý ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  transition: var(--transition);
}
.logo:hover { transform: translateY(-1px); }

.logo-mark {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 5px 12px rgba(0,140,79,0.32));
  transition: var(--transition);
}
.logo-mark svg { width: 100%; height: 100%; display: block; }
.logo:hover .logo-mark { transform: rotate(-4deg) scale(1.04); }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-text strong {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--primary-dark);
  white-space: nowrap;
}
.logo-text strong em {
  font-style: normal;
  color: var(--accent-gold);
}
.logo-text small {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 3px;
  white-space: nowrap;
}

/* Logo ảnh (nếu sau này bạn thay bằng file logo riêng) */
.logo-img {
  height: 42px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  white-space: nowrap;
}
.nav-links a {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hotline-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  transition: var(--transition);
}
.hotline-btn svg { width: 19px; height: 19px; stroke: var(--primary); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 5px;
}
.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========================
   HERO
   ======================== */
.hero {
  position: relative;
  min-height: 660px;
  margin-top: 76px;
  display: flex;
  flex-direction: column;
  /* Chặn quầng sáng sau khối chữ tràn ra ngoài gây kéo ngang trang */
  overflow: hidden;
}
/* Ảnh chạy nền toàn màn hình */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Lớp phủ rất nhẹ, chỉ tối nhẹ phần dưới để thanh tìm kiếm tách khỏi ảnh.
   Ảnh nền giữ nguyên độ nét, không bị phủ trắng - chữ đọc rõ nhờ đổ bóng riêng. */
.hero-bg-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.10) 0%,
    rgba(0,0,0,0.04) 45%,
    rgba(0,0,0,0.12) 100%);
}

/* Nội dung nằm giữa màn hình, đè lên ảnh nền */
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: center;
  gap: 0;
  flex: 1;
  width: 100%;
  max-width: 1560px;
  /* Chừa chỗ cho ô tìm kiếm + hàng bộ lọc nằm đè ở đáy hero */
  padding: 56px 32px 180px;
}
.hero-slideshow .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
.hero-slideshow .slide.active {
  opacity: 1;
}

.hero-right {
  position: relative;
  min-width: 0;
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
}
/* Quầng sáng toả sau khối chữ: không có mép cứng nên không thấy khung,
   nhưng đủ sáng để chữ nổi trên ảnh nền */
/* Bỏ quầng sáng phủ lên ảnh - chữ đã đủ rõ nhờ đổ bóng ở từng phần tử */
.hero-right::before { content: none; }
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}
.title-main {
  font-family: var(--font-heading);
  /* Co giãn theo bề rộng màn hình để không bị xuống dòng lộn xộn */
  font-size: clamp(32px, 3.6vw, 58px);
  font-weight: 800;
  color: #0a6b3d;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
  /* Viền trắng quanh chữ để nổi rõ trên ảnh nền mà không cần phủ mờ ảnh */
  text-shadow:
    0 0 2px rgba(255,255,255,0.95),
    0 2px 4px rgba(255,255,255,0.9),
    0 3px 14px rgba(0,0,0,0.28);
}
.title-script {
  /* Dancing Script có đầy đủ dấu tiếng Việt, nét dày và rõ hơn Brush Script */
  font-family: 'Dancing Script', 'Brush Script MT', cursive;
  font-weight: 700;
  font-size: clamp(46px, 6.1vw, 90px);
  color: #E49F15;
  margin-top: -2px;
  transform: rotate(-3deg);
  display: inline-block;
  white-space: nowrap;
  letter-spacing: 0.5px;
  /* Viền trắng dày quanh chữ để nổi rõ trên ảnh nền thật */
  text-shadow:
    0 0 3px rgba(255,255,255,0.95),
    0 2px 5px rgba(255,255,255,0.85),
    0 4px 16px rgba(0,0,0,0.3);
}

.hero-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}
.hero-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.benefit-ico {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.benefit-ico svg { width: 20px; height: 20px; }
/* Nền kính mờ sau mỗi mục để chữ đọc rõ trên ảnh thật, ảnh vẫn thấy xuyên qua */
.hero-benefit-item {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 10px;
  padding: 10px 14px 10px 10px;
}
.hero-benefit-item strong {
  display: block;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.hero-benefit-item small {
  font-size: 13px;
  color: var(--gray-600);
}

/* ========================
   HERO SEARCH BAR
   ======================== */
.hero-search-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
}
.hero-search-inner {
  background: white;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  padding: 12px 20px 16px;
  gap: 12px;
  width: 90%;
  max-width: 1080px;
}

/* Hàng trên: tab loại BĐS + ô tìm kiếm */
.hero-search-top {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-search-tabs {
  display: flex;
  gap: 10px;
}
.hero-search-tabs .search-tab {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}
.hero-search-tabs .search-tab.active {
  background: var(--gray-100);
  color: var(--primary);
}

.hero-search-form {
  flex: 1;
  display: flex;
  gap: 10px;
  background: var(--gray-50);
  padding: 6px;
  border-radius: 8px;
}
.hero-search-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 16px;
  font-size: 14px;
  outline: none;
}
.hero-search-form .btn-search {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}
.hero-search-form .btn-search:hover {
  background: var(--primary-dark);
}
.hero-search-form .btn-search svg { width: 16px; height: 16px; }

/* ========================
   HÀNG BỘ LỌC DƯỚI Ô TÌM KIẾM
   ======================== */
.hero-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.hero-filter-row select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--gray-200);
  background: var(--white);
  border-radius: 8px;
  padding: 9px 34px 9px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  /* Mũi tên xổ xuống vẽ bằng SVG inline */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23636e72' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 15px;
}
.hero-filter-row select:hover {
  border-color: var(--primary);
}
.hero-filter-row select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,140,79,0.12);
}
/* Bộ lọc đang có giá trị thì tô xanh cho dễ thấy */
.hero-filter-row select.has-value {
  border-color: var(--primary);
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}

.hero-filter-row .btn-reset {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}
.hero-filter-row .btn-reset svg { width: 15px; height: 15px; }
.hero-filter-row .btn-reset:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ========================
   PROPERTY SECTION
   ======================== */
.property-section {
  padding: 40px 0 80px;
}

.property-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.property-sort {
  display: flex;
  align-items: center;
  gap: 12px;
}
.property-sort label {
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.property-sort select {
  padding: 8px 36px 8px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--white);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.result-count {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.result-count strong { color: var(--primary); }

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  min-height: 300px;
}

/* ========================
   PROPERTY CARD
   ======================== */
.property-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-100);
}
.property-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.card-image {
  display: block;
  position: relative;
  height: 220px;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.property-card:hover .card-image img {
  transform: scale(1.08);
}

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}
.badge-new { background: var(--primary); color: var(--white); }
.badge-hot { background: var(--accent-red); color: var(--white); }
.badge-sale { background: var(--accent-gold); color: var(--white); }

.card-status {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
  display: none;
}
.status-pending {
  display: inline-block;
  background: rgba(228,159,21,0.9);
  color: var(--white);
}
.status-sold {
  display: inline-block;
  background: rgba(26,35,50,0.85);
  color: var(--white);
}

.card-content {
  padding: 20px;
}

.card-type {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-location {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.4;
}
.card-location svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  stroke: var(--text-secondary);
}

.card-info {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 14px;
}
.card-info span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-secondary);
}
.card-info svg {
  width: 16px;
  height: 16px;
  stroke: var(--gray-400);
}

.card-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.original-price {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: line-through;
}
.liquidation-price {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}
.discount-badge {
  background: linear-gradient(135deg, var(--accent-red), #c0392b);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
}

.card-actions {
  display: flex;
  gap: 10px;
}
.card-actions .btn-primary,
.card-actions .btn-outline {
  flex: 1;
  justify-content: center;
  padding: 10px 16px;
  font-size: 13px;
}

/* No results */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
}
.no-results svg { width: 64px; height: 64px; stroke: var(--gray-300); margin-bottom: 16px; }
.no-results h3 { font-family: var(--font-heading); font-size: 20px; color: var(--text-primary); margin-bottom: 8px; }
.no-results p { font-size: 15px; }

.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
  font-size: 15px;
}

/* ========================
   PAGINATION
   ======================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
}
.pagination button {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  border: 1.5px solid var(--gray-200);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pagination button:hover:not(.active):not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}
.pagination button.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pagination button svg { width: 18px; height: 18px; }

/* ========================
   BENEFITS SECTION
   ======================== */
/* Tông xanh nhạt tươi sáng */
.benefits-section {
  padding: 84px 0 92px;
  background: linear-gradient(160deg, #e9f7ef 0%, #ffffff 48%, #eef9f3 100%);
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
}
/* Hai mảng màu mềm trang trí ở góc */
.benefits-section::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -140px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,140,79,0.10) 0%, rgba(0,140,79,0) 70%);
}
.benefits-section::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -160px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228,159,21,0.12) 0%, rgba(228,159,21,0) 70%);
}
.benefits-section .container { position: relative; z-index: 1; }

.benefits-section .section-title {
  color: var(--primary-dark);
  text-align: center;
  border: none;
  padding: 0;
  font-size: 34px;
  margin-bottom: 10px;
}
/* Gạch chân vàng nhỏ dưới tiêu đề */
.benefits-section .section-title::after {
  content: '';
  display: block;
  width: 58px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-gold), #f7c25c);
}
.benefits-section .section-subtitle {
  color: var(--text-secondary);
  text-align: center;
  padding: 0;
  margin-bottom: 46px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.benefit-card {
  text-align: center;
  padding: 38px 24px 32px;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid rgba(0,140,79,0.10);
  box-shadow: 0 6px 24px rgba(0,140,79,0.07);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
/* Vệt màu chạy ngang mép trên khi rê chuột */
.benefit-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.benefit-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0,140,79,0.25);
  box-shadow: 0 18px 40px rgba(0,140,79,0.16);
}
.benefit-card:hover::before { transform: scaleX(1); }

.benefit-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--primary) 0%, #00a862 100%);
  box-shadow: 0 10px 22px rgba(0,140,79,0.30);
  transition: var(--transition);
}
/* Thẻ thứ 2 và 4 dùng tông vàng cho đỡ đơn điệu */
.benefit-card:nth-child(2n) .benefit-icon {
  background: linear-gradient(140deg, var(--accent-gold) 0%, #f7c25c 100%);
  box-shadow: 0 10px 22px rgba(228,159,21,0.32);
}
.benefit-card:hover .benefit-icon {
  transform: translateY(-3px) scale(1.06);
}
.benefit-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--white);
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
}
.benefit-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================
   PROCESS SECTION
   ======================== */
.process-section {
  padding: 80px 0;
  background: var(--white);
}

.process-section .section-title,
.process-section .section-subtitle {
  text-align: center;
  border: none;
  padding: 0;
}

.process-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.process-timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 80px;
  right: 80px;
  height: 3px;
  background: var(--gray-200);
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 2;
  flex: 1;
}
.step-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: 0 6px 20px rgba(0,140,79,0.3);
  transition: var(--transition);
}
.process-step:hover .step-number { transform: scale(1.1); }
.process-step h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.process-step p {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 180px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ========================
   CONTACT SECTION
   ======================== */
.contact-section {
  padding: 80px 0;
  background: var(--gray-50);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.contact-info > p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-200);
}
.contact-detail:last-of-type { border-bottom: none; }
.contact-detail-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon svg { width: 22px; height: 22px; stroke: var(--primary); }
.contact-detail h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
}
.contact-detail p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.contact-detail p a { transition: var(--transition); }
.contact-detail p a:hover { color: var(--primary); text-decoration: underline; }

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.contact-form-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.form-group label .required { color: var(--accent-red); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: var(--transition);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,140,79,0.1);
}
.form-group .error-text {
  font-size: 12px;
  color: var(--accent-red);
  margin-top: 4px;
  display: none;
}
.form-group.has-error input,
.form-group.has-error select {
  border-color: var(--accent-red);
}
.form-group.has-error .error-text { display: block; }

.form-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 4px;
}
.form-submit:hover {
  box-shadow: 0 6px 20px rgba(0,140,79,0.35);
  transform: translateY(-2px);
}

/* ========================
   FOOTER
   ======================== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand p { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }

.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); }
.footer-social svg { width: 18px; height: 18px; fill: var(--white); }

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links li { margin-bottom: 0; }
.footer-links a {
  font-size: 14px;
  transition: var(--transition);
  display: inline-block;
}
.footer-links a:hover { color: var(--primary); transform: translateY(-2px); }

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
}
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--primary); }
.footer-contact li a { transition: var(--transition); word-break: break-word; }
.footer-contact li a:hover { color: var(--primary); }

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ========================
   TOAST NOTIFICATION
   ======================== */
.toast-container {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
}
.toast.show { transform: translateX(0); }
.toast-success { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.toast-error { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.toast-info { background: linear-gradient(135deg, #3498db, #2980b9); }
.toast svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ========================
   BACK TO TOP
   ======================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 100;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,140,79,0.4);
}
.back-to-top svg { width: 22px; height: 22px; }

/* ========================
   ANIMATIONS
   ======================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 2000px 100%;
  animation: shimmer 2s infinite;
  border-radius: var(--radius-sm);
}

/* ========================
   RESPONSIVE
   ======================== */
/* Màn hình hẹp: hình ảnh nằm trên, nội dung nằm dưới */
@media (max-width: 980px) {
  .hero { min-height: 0; }
  .hero-inner {
    gap: 26px;
    padding: 40px 20px 36px;
  }
  .title-main { white-space: normal; font-size: clamp(30px, 6vw, 48px); }
  .title-script { font-size: clamp(44px, 9.5vw, 78px); }
  .hero-title { margin-bottom: 26px; }
  .hero-benefits { gap: 14px 20px; }

  /* Thanh tìm kiếm không còn đè lên nội dung: cho chảy theo dòng bình thường */
  .hero-search-bar { position: static; padding: 0 16px; }
  .hero-search-inner {
    width: 100%;
    max-width: 720px;
    gap: 12px;
    border-radius: 14px 14px 0 0;
  }
  .hero-search-top { flex-wrap: wrap; gap: 12px; }
  /* Tab nằm một hàng, vuốt ngang được thay vì rớt xuống dòng */
  .hero-search-tabs {
    flex-wrap: nowrap;
    gap: 6px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hero-search-tabs::-webkit-scrollbar { display: none; }
  .hero-search-tabs .search-tab {
    flex: 0 0 auto;
    padding: 9px 13px;
    font-size: 13.5px;
    white-space: nowrap;
  }
  .hero-search-form { flex: 1 1 100%; min-width: 0; }
  .hero-search-form input { min-width: 0; }
  .hero-filter-row select { flex: 1 1 160px; min-width: 0; }
  .hero-filter-row .btn-reset { margin-left: 0; flex: 1 1 100%; justify-content: center; }
}

@media (max-width: 1024px) {
  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .modal-details { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    box-shadow: var(--shadow-lg);
  }
  /* Animation phải đặt ở .active: đặt trên .nav-links thì lúc còn display:none
     nó không chạy được, mở menu ra bị kẹt ở khung hình đầu (lệch lên 10px) */
  .nav-links.active {
    display: flex;
    animation: slideDown 0.3s ease;
  }
  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
    width: 100%;
  }
  /* Menu thu vào nút hamburger nên bỏ lưới 3 cột, quay về flex 2 đầu */
  .header-inner { display: flex; justify-content: space-between; }
  .hamburger { display: flex; }
  .hotline-btn span { display: none; }
  .hotline-btn { padding: 10px; border-radius: 50%; }

  .hero-title { margin-bottom: 28px; }

  .section-title { font-size: 24px; }

  .process-timeline {
    flex-direction: column;
    gap: 32px;
    align-items: center;
  }
  .process-timeline::before {
    top: 40px;
    bottom: 40px;
    left: 50%;
    right: auto;
    width: 3px;
    height: auto;
  }

  .contact-grid { 
    grid-template-columns: 1fr; 
    display: flex;
    flex-direction: column;
  }
  .contact-info { order: 2; margin-top: 20px; }
  .contact-form-card { order: 1; }
  .form-row { grid-template-columns: 1fr; }

  .modal { max-height: 95vh; }
  .modal-image { height: 250px; }
  .modal-body { padding: 20px; }
  .modal-title { font-size: 22px; }
  .modal-details { grid-template-columns: repeat(2, 1fr); }
  .modal-price-box { flex-direction: column; text-align: center; }
  .modal-price-left .modal-liq-price { font-size: 26px; }
  .modal-actions { flex-direction: column; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Chỉ điện thoại mới dồn về 1 cột; máy tính bảng vẫn giữ 2 cột cho đỡ trống */
@media (max-width: 600px) {
  .property-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }

  /* Ưu đãi ở hero vẫn chia 2 cột trên điện thoại: thu nhỏ icon và chữ lại cho vừa */
  .hero-benefits {
    grid-template-columns: 1fr 1fr;
    gap: 16px 10px;
    max-width: none;
  }
  .hero-benefit-item { gap: 7px; align-items: flex-start; }
  .benefit-ico {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }
  .benefit-ico svg { width: 16px; height: 16px; }
  .hero-benefit-item strong { font-size: 12.5px; line-height: 1.25; margin-bottom: 1px; }
  .hero-benefit-item small { font-size: 11px; line-height: 1.3; }
}

@media (max-width: 480px) {
  /* Màn hẹp: nút Tìm kiếm xuống dòng để ô nhập không bị bóp cụt */
  .hero-search-form { flex-direction: column; }
  .hero-search-form .btn-search { justify-content: center; padding: 12px 24px; }
  .card-actions { flex-direction: column; }
  .card-actions .btn-primary,
  .card-actions .btn-outline { width: 100%; }
  .modal-details { grid-template-columns: 1fr; }
  .step-number { width: 60px; height: 60px; font-size: 22px; }
}
