/* 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: 44%; }
.home-prices__table th:nth-child(2),
.home-prices__table td:nth-child(2) { width: 36%; }
.home-prices__table th:nth-child(3),
.home-prices__table td:nth-child(3) { width: 20%; text-align: right; }
.home-prices__table thead th:nth-child(3) { text-align: right; }

.home-prices__table th,
.home-prices__table td {
  padding: .65rem .75rem;
  border-bottom: 1px solid #e6ede2;
  text-align: left;
  vertical-align: middle;
}
.home-prices__table thead th {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #2e5a27;
  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: #213d1d;
  font-size: .74rem;
}
.home-prices__price {
  color: var(--ink, #1f2a1c);
  font-weight: 600;
  word-break: break-word;
  overflow-wrap: break-word;
}
.home-prices__val {
  display: inline;
  white-space: nowrap;
}
.home-prices__unit {
  color: #3b5035;
  font-size: .78rem;
  font-weight: normal;
  white-space: nowrap;
  display: inline-block;
  margin-left: 2px;
}
.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: #3b5035; }

.home-prices__empty {
  padding: 1.25rem .25rem;
  color: #3b5035;
  font-family: var(--sans);
}
.home-prices__source {
  margin-top: .85rem;
  font-size: .8rem;
  color: #3b5035;
  font-family: var(--sans);
}
.home-prices__source a { color: var(--forest, #2e5a27); }
.home-prices__note {
  margin: .85rem 0 0;
  font-size: .84rem;
  color: #3b5035;
  font-family: var(--sans);
}
.home-prices__sources-box {
  margin-top: 1rem;
  padding: .95rem 1.15rem;
  border-radius: 10px;
  background: #f4f8f1;
  border: 1px solid #d7e3d2;
  border-left: 4px solid var(--forest, #2e5a27);
  font-family: var(--sans);
  font-size: .88rem;
  line-height: 1.55;
  color: var(--ink, #1f2a1c);
}
.home-prices__sources-title {
  margin: 0 0 .4rem;
  font-weight: 700;
  color: var(--forest, #2e5a27);
}
.home-prices__sources-list {
  margin: 0 0 .65rem;
  padding-left: 1.25rem;
}
.home-prices__sources-list li {
  margin-bottom: .25rem;
}
.home-prices__sources-list a {
  color: var(--forest, #2e5a27);
  font-weight: 600;
  text-decoration: underline;
}
.home-prices__sources-list a:hover {
  color: #1b5e20;
}
.home-prices__disclaimer {
  margin: 0;
  color: #213d1d;
}
.home-prices__sources-box--mock {
  background: #fffbeb;
  border-color: #f5d08a;
  border-left-color: #d97706;
  color: #92400e;
}
.home-prices__sources-box--mock .home-prices__disclaimer {
  color: #92400e;
}

@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: 48%; }
  .home-prices__table th:nth-child(2),
  .home-prices__table td:nth-child(2) { width: 52%; text-align: right; }
  .home-prices__table thead th:nth-child(2) { text-align: right; }
  .home-prices__table th,
  .home-prices__table td { padding: .55rem .45rem; }
}

@media (max-width: 380px) {
  .home-prices.wrap {
    padding-left: 10px;
    padding-right: 10px;
  }
  .home-prices__table {
    font-size: .86rem;
  }
  .home-prices__table th,
  .home-prices__table td {
    padding: .5rem .3rem;
  }
  .home-prices__region {
    display: block;
    margin-left: 0;
    margin-top: .15rem;
    width: fit-content;
  }
  .home-prices__val {
    letter-spacing: -0.2px;
  }
  .home-prices__unit {
    font-size: .74rem;
  }
}

/* Trang Programmatic SEO /gia-nong-san/ */
.mkt-hero {
  margin: 1.5rem 0 1.25rem;
}
.mkt-hero h1 {
  margin: .35rem 0 .45rem;
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  color: var(--forest, #1b5e20);
}
.mkt-hero__meta {
  margin: .35rem 0 0;
  font-size: .88rem;
  color: #4b5563;
}
.mkt-back {
  display: inline-block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--forest, #1b5e20);
  text-decoration: none;
}
.mkt-back:hover { text-decoration: underline; }
.mkt-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1.15rem;
}
.mkt-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.mkt-tab {
  padding: .42rem .95rem;
  border: 1px solid #d7e3d2;
  border-radius: 999px;
  background: #f4f8f1;
  color: var(--forest, #1b5e20);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
}
.mkt-tab.is-active {
  background: var(--forest, #1b5e20);
  border-color: var(--forest, #1b5e20);
  color: #fff;
}
.mkt-region-filter select {
  padding: .45rem .85rem;
  border: 1px solid #d7e3d2;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: .88rem;
}
.mkt-table-wrap { overflow-x: auto; }
.mkt-item-link {
  color: var(--forest, #1b5e20);
  font-weight: 700;
  text-decoration: none;
}
.mkt-item-link:hover { text-decoration: underline; }
.mkt-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
  margin-bottom: 1.25rem;
}
.mkt-kpi {
  padding: .9rem 1rem;
  border: 1px solid #d7e3d2;
  border-radius: 12px;
  background: #f8fbf6;
}
.mkt-kpi--primary {
  background: #eef7ea;
  border-color: #a8d9ac;
}
.mkt-kpi__label {
  display: block;
  font-size: .78rem;
  color: #4b5563;
  margin-bottom: .25rem;
}
.mkt-kpi__val {
  font-size: 1.15rem;
  color: var(--forest, #1b5e20);
}
.mkt-kpi__val small { font-size: .78rem; font-weight: 500; }
.mkt-card {
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid #e6ede2;
  border-radius: 12px;
  background: #fff;
}
.mkt-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  margin-bottom: .75rem;
}
.mkt-card__head h2,
.mkt-card__title {
  margin: 0 0 .75rem;
  font-size: 1.08rem;
  color: var(--forest, #1b5e20);
}
.mkt-card__head h2 { margin-bottom: 0; }
.mkt-range-tabs { display: flex; gap: .35rem; }
.mkt-range-btn {
  padding: .3rem .75rem;
  border: 1px solid #d7e3d2;
  border-radius: 999px;
  background: #f4f8f1;
  color: var(--forest, #1b5e20);
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
}
.mkt-range-btn.is-active {
  background: var(--forest, #1b5e20);
  border-color: var(--forest, #1b5e20);
  color: #fff;
}
.mkt-chart { width: 100%; height: auto; display: block; }
.mkt-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .6rem;
}
.mkt-related-list a {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  padding: .6rem .8rem;
  border: 1px solid #e6ede2;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink, #1f2a1c);
  font-size: .88rem;
}
.mkt-related-list a:hover { border-color: var(--forest, #1b5e20); }
@media (max-width: 768px) {
  .mkt-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
