/* Bảng giá nhanh trang chủ (home-prices) - tự chứa, không đụng home.css */
.home-prices {
  padding-block: 2.5rem;
  contain: layout;
}
.home-prices__tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 1rem;
}
.home-prices__tab {
  border: 1px solid #d7e3d2;
  background: #f4f8f1;
  color: var(--forest, #2e5a27);
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 600;
  padding: .5rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
}
.home-prices__tab.is-active {
  background: var(--forest, #2e5a27);
  border-color: var(--forest, #2e5a27);
  color: #fff;
}
.home-prices__panel {
  display: none;
  min-height: 220px;
}
.home-prices__panel.is-active {
  display: block;
}
.home-prices__panel[hidden] {
  display: none !important;
}

.home-prices__table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: .93rem;
  table-layout: fixed;
}
.home-prices__table th:nth-child(1),
.home-prices__table td:nth-child(1) { width: 50%; }
.home-prices__table th:nth-child(2),
.home-prices__table td:nth-child(2) { width: 26%; }
.home-prices__table th:nth-child(3),
.home-prices__table td:nth-child(3) { width: 24%; }

.home-prices__table th,
.home-prices__table td {
  padding: .65rem .75rem;
  border-bottom: 1px solid #e6ede2;
  text-align: left;
}
.home-prices__table thead th {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6b7f66;
  background: #f4f8f1;
}
.home-prices__name {
  font-weight: 600;
  color: var(--ink, #1f2a1c);
}
.home-prices__region {
  display: inline-block;
  margin-left: .45rem;
  padding: .1rem .5rem;
  border-radius: 999px;
  background: #eef4ea;
  color: #5c7355;
  font-size: .74rem;
}
.home-prices__price { white-space: nowrap; }
.home-prices__price small { color: #7a8b74; font-size: .78rem; }
.home-prices__change { white-space: nowrap; font-weight: 600; }
.home-prices__change.is-up { color: #1b7f3b; }
.home-prices__change.is-down { color: #c62828; }
.home-prices__change.is-flat { color: #7a8b74; }

.home-prices__empty {
  padding: 1.25rem .25rem;
  color: #7a8b74;
  font-family: var(--sans);
}
.home-prices__source {
  margin-top: .85rem;
  font-size: .8rem;
  color: #7a8b74;
  font-family: var(--sans);
}
.home-prices__source a { color: var(--forest, #2e5a27); }

@media (max-width: 640px) {
  .home-prices__table th:nth-child(3),
  .home-prices__table td:nth-child(3) { display: none; }
  .home-prices__table th:nth-child(1),
  .home-prices__table td:nth-child(1) { width: 65%; }
  .home-prices__table th:nth-child(2),
  .home-prices__table td:nth-child(2) { width: 35%; }
  .home-prices__table th,
  .home-prices__table td { padding: .55rem .45rem; }
}
