/*
Theme Name: TamLayThong
Theme URI: https://tamlaythong.com
Description: ธีมลูกสำหรับแพลตฟอร์มประกาศอสังหาริมทรัพย์ TamLayThong
Author: TamLayThong
Template: listinghive
Version: 1.4.2
Text Domain: tamlaythong
*/

:root {
  --tlt-gold: #c9952f;
  --tlt-gold-dark: #9e6f16;
  --tlt-ink: #142019;
  --tlt-muted: #66716a;
  --tlt-cream: #fbf8f1;
  --tlt-line: #e9e3d7;
  --tlt-green: #1f6548;
  --tlt-white: #ffffff;
  --tlt-shadow: 0 18px 48px rgba(20, 32, 25, 0.10);
}

body {
  color: var(--tlt-ink);
  font-family: "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
  background: #fff;
}

body.home .site-content {
  width: 100%;
  max-width: none;
  padding-top: 0;
  overflow: clip;
}

body.home .site-content > .container,
body.home .site-content > .container > .content-area,
.tlt-home {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.tlt-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.tlt-section {
  padding: 78px 0;
  content-visibility: auto;
  contain-intrinsic-size: 720px;
}

.tlt-section--soft {
  background: var(--tlt-cream);
}

.tlt-eyebrow {
  margin: 0 0 10px;
  color: var(--tlt-gold-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tlt-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.tlt-section-head h2 {
  margin: 0;
  max-width: 700px;
  color: var(--tlt-ink);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.22;
}

.tlt-text-link {
  color: var(--tlt-green);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.tlt-hero {
  position: relative;
  width: 100%;
  min-height: min(780px, calc(100svh - 82px));
  display: grid;
  align-items: center;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.tlt-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(transparent, rgba(0,0,0,.18));
  pointer-events: none;
}

.tlt-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100% - 64px));
  padding: 92px 0 84px;
}

.tlt-hero__content {
  max-width: 760px;
  color: #fff;
}

.tlt-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 999px;
  background: rgba(17, 30, 23, .52);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
}

.tlt-hero h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.08;
  letter-spacing: -.03em;
  text-shadow: 0 3px 24px rgba(0,0,0,.28);
}

.tlt-hero__lead {
  max-width: 640px;
  margin: 0 0 30px;
  color: rgba(255,255,255,.94);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.tlt-search {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 210px auto;
  gap: 10px;
  max-width: 740px;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0,0,0,.22);
}

.tlt-search__field {
  display: flex;
  align-items: center;
  min-width: 0;
}

.tlt-search__field > span {
  padding-left: 12px;
  color: var(--tlt-gold-dark);
  font-size: 25px;
}

.tlt-search input[type="search"],
.tlt-search select {
  min-width: 0;
  height: 54px;
  padding: 0 18px;
  border: 0;
  outline: 0;
  color: var(--tlt-ink);
  background: transparent;
  font-size: 16px;
}

.tlt-search select {
  border-left: 1px solid var(--tlt-line);
  cursor: pointer;
}

.tlt-btn,
.tlt-search button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: var(--tlt-gold);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.tlt-btn:hover,
.tlt-search button:hover {
  color: #fff;
  background: var(--tlt-gold-dark);
  transform: translateY(-1px);
}

.tlt-btn--light {
  color: var(--tlt-ink);
  background: #fff;
}

.tlt-hero__perks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tlt-hero__perks span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 30, 23, .62);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 700;
}

.tlt-market-stats {
  position: relative;
  z-index: 2;
  color: #fff;
  background: var(--tlt-ink);
}

.tlt-market-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tlt-market-stats__grid > div {
  display: flex;
  min-height: 116px;
  flex-direction: column;
  justify-content: center;
  padding: 22px 28px;
  border-right: 1px solid rgba(255,255,255,.12);
}

.tlt-market-stats__grid > div:last-child {
  border-right: 0;
}

.tlt-market-stats strong {
  color: #e4bb65;
  font-size: 31px;
  line-height: 1;
}

.tlt-market-stats span {
  margin-top: 9px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
}

.tlt-section-intro {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--tlt-muted);
  font-size: 16px;
  line-height: 1.7;
}

.tlt-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tlt-category-card {
  display: flex;
  min-height: 145px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--tlt-line);
  border-radius: 18px;
  color: var(--tlt-ink);
  background: #fff;
  box-shadow: 0 8px 28px rgba(20, 32, 25, .05);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tlt-category-card:hover {
  color: var(--tlt-ink);
  border-color: rgba(201,149,47,.65);
  box-shadow: var(--tlt-shadow);
  transform: translateY(-4px);
}

.tlt-category-card__icon {
  font-size: 38px;
  line-height: 1;
}

.tlt-category-card h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.tlt-category-card p {
  margin: 0;
  color: var(--tlt-muted);
  font-size: 13px;
}

.tlt-listing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.tlt-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.tlt-listing-card,
.tlt-article-card {
  overflow: hidden;
  border: 1px solid var(--tlt-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 36px rgba(20, 32, 25, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}

.tlt-listing-card:hover,
.tlt-article-card:hover {
  box-shadow: var(--tlt-shadow);
  transform: translateY(-5px);
}

.tlt-listing-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8ece9;
}

.tlt-listing-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.tlt-listing-card:hover img {
  transform: scale(1.035);
}

.tlt-sample-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(20,32,25,.86);
  font-size: 12px;
  font-weight: 800;
}

.tlt-listing-card__body {
  padding: 18px;
}

.tlt-listing-card__location {
  margin: 0 0 7px;
  color: var(--tlt-muted);
  font-size: 13px;
}

.tlt-listing-card h3 {
  min-height: 54px;
  margin: 0 0 13px;
  font-size: 17px;
  line-height: 1.45;
}

.tlt-listing-card h3 a {
  color: var(--tlt-ink);
  text-decoration: none;
}

.tlt-listing-card__price {
  margin-bottom: 15px;
  color: var(--tlt-gold-dark);
  font-size: 20px;
  font-weight: 900;
}

.tlt-listing-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--tlt-line);
  color: var(--tlt-muted);
  font-size: 12px;
}

.tlt-listing-card__facts span {
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--tlt-cream);
}

.tlt-coverage {
  background: linear-gradient(180deg, #fff 0%, #f7f2e8 100%);
}

.tlt-region-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tlt-region-card {
  padding: 24px;
  border: 1px solid var(--tlt-line);
  border-radius: 18px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 8px 28px rgba(20,32,25,.04);
}

.tlt-region-card:last-child {
  grid-column: 1 / -1;
}

.tlt-region-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.tlt-region-card h3 {
  margin: 0;
  font-size: 20px;
}

.tlt-region-card__head span {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--tlt-green);
  background: #eaf4ef;
  font-size: 12px;
  font-weight: 800;
}

.tlt-province-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tlt-province-links a {
  padding: 7px 10px;
  border: 1px solid var(--tlt-line);
  border-radius: 8px;
  color: var(--tlt-muted);
  background: #fff;
  font-size: 12px;
  text-decoration: none;
}

.tlt-province-links a:hover {
  border-color: var(--tlt-gold);
  color: var(--tlt-gold-dark);
}

.tlt-how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.tlt-how-card {
  padding: 28px;
  border-top: 3px solid var(--tlt-gold);
  border-radius: 0 0 16px 16px;
  background: #fff;
}

.tlt-how-card__number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #fff;
  background: var(--tlt-green);
  font-weight: 900;
}

.tlt-how-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.tlt-how-card p {
  margin: 0;
  color: var(--tlt-muted);
  line-height: 1.7;
}

.tlt-article-card {
  padding: 26px;
}

.tlt-article-card__meta {
  margin-bottom: 10px;
  color: var(--tlt-gold-dark);
  font-size: 12px;
  font-weight: 800;
}

.tlt-article-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.5;
}

.tlt-article-card h3 a {
  color: var(--tlt-ink);
  text-decoration: none;
}

.tlt-article-card p {
  margin: 0 0 16px;
  color: var(--tlt-muted);
  line-height: 1.7;
}

.tlt-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 44px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(125deg, #153f30, #1f6548);
  box-shadow: var(--tlt-shadow);
}

.tlt-cta h2 {
  margin: 0 0 9px;
  color: #fff;
  font-size: clamp(26px, 4vw, 40px);
}

.tlt-cta p {
  margin: 0;
  color: rgba(255,255,255,.8);
  font-size: 17px;
}

.tlt-sample-notice {
  margin: 0 0 26px;
  padding: 17px 20px;
  border-left: 4px solid var(--tlt-gold);
  border-radius: 8px;
  color: #4d3b18;
  background: #fff7df;
}

.tlt-property-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.tlt-property-facts li {
  padding: 12px 14px;
  border-radius: 9px;
  background: var(--tlt-cream);
}

.header-navbar .hp-menu__item--listing-submit {
  border-color: var(--tlt-gold) !important;
  color: #fff !important;
  background: var(--tlt-gold) !important;
  box-shadow: 0 10px 24px rgba(201, 149, 47, 0.24);
}

.header-navbar .hp-menu__item--listing-submit:hover {
  border-color: var(--tlt-gold-dark) !important;
  background: var(--tlt-gold-dark) !important;
}

@media (max-width: 900px) {
  .tlt-category-grid,
  .tlt-listing-grid,
  .tlt-article-grid,
  .tlt-how-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tlt-article-grid > :last-child,
  .tlt-how-grid > :last-child {
    grid-column: 1 / -1;
  }

  .tlt-search {
    grid-template-columns: 1fr auto;
  }

  .tlt-search select {
    display: none;
  }
}

@media (max-width: 640px) {
  .tlt-shell {
    width: min(100% - 28px, 1180px);
  }

  .tlt-section {
    padding: 56px 0;
  }

  .tlt-hero {
    min-height: 650px;
  }

  .tlt-search {
    grid-template-columns: 1fr;
  }

  .tlt-market-stats__grid,
  .tlt-region-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tlt-market-stats__grid > div {
    min-height: 100px;
    padding: 18px;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  .tlt-section-head,
  .tlt-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .tlt-category-grid,
  .tlt-listing-grid,
  .tlt-article-grid,
  .tlt-how-grid,
  .tlt-property-facts {
    grid-template-columns: 1fr;
  }

  .tlt-article-grid > :last-child,
  .tlt-how-grid > :last-child {
    grid-column: auto;
  }

  .tlt-cta {
    padding: 30px;
  }

  .tlt-region-grid,
  .tlt-region-card:last-child {
    grid-template-columns: 1fr;
    grid-column: auto;
  }
}
