.tnt-search-actions {
  display: grid;
  grid-column: span 2;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  min-height: 48px;
  padding: 4px;
}

/* Nhịp giao diện cô đọng */
.site-header { height: 70px; }
.site-header .menu-item { padding-top: 24px; padding-bottom: 24px; }
.hero { min-height: 540px; }
.hero-copy { padding-top: 42px; padding-bottom: 34px; }
.hero h1 { font-size: clamp(42px, 4.3vw, 58px); line-height: 1.08; }
.hero-copy > p:not(.eyebrow) { max-width: 640px; font-size: 14px; line-height: 1.65; }

.archive-header h1,
.single-property h1,
.editorial-single h1 {
  font-size: clamp(32px, 3.5vw, 44px);
  line-height: 1.16;
}

.single-property h1 { font-size: clamp(30px, 3vw, 40px); }
.section { padding-top: 48px; padding-bottom: 48px; }
.section-head { margin-bottom: 22px; }
.section-title,
.guide .section-title { font-size: clamp(25px, 2.5vw, 31px); line-height: 1.25; }
.eyebrow { margin-bottom: 8px; }
.tnt-search { margin-top: 18px; padding: 9px; box-shadow: 0 12px 30px rgba(18, 63, 66, .09); }
.term-search-hero,
.single-search-hero { padding-top: 22px; padding-bottom: 22px; }
.term-search-hero .tnt-search { margin: 0; }
.archive-header { margin-bottom: 22px; }
.term-archive > .section { padding-top: 42px; }
.property-grid { gap: 18px; }
.property-body { padding: 16px; }
.property-title { min-height: 44px; font-size: 17px; line-height: 1.35; }
.guide { gap: 38px; }
.guide summary { padding: 15px 0; }
.single-grid { gap: 36px; }
.breadcrumbs { margin-bottom: 18px; }
.key-facts { margin: 20px 0 14px; padding: 15px 0; }
.updated { margin-bottom: 17px; }
.property-gallery { margin-bottom: 25px; }
.entry-content { font-size: 14px; line-height: 1.75; }

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  margin: 1.35em 0 .55em;
  color: var(--ink);
  font-family: "Lora", Georgia, serif;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.015em;
}

.entry-content h2 { font-size: 23px; }
.entry-content h3 { font-size: 20px; }
.entry-content h4,
.entry-content h5,
.entry-content h6 { font-size: 17px; }
.related-listings { margin-top: 48px; padding-top: 38px; }
.contact-card { padding: 23px; }
.contact-card-title { font-size: 23px; }
.contact-strip { padding-top: 36px; padding-bottom: 36px; }
.contact-strip .contact-title { font-size: clamp(24px, 2.5vw, 31px); }
.site-footer { gap: 36px; padding-top: 42px; }
.article-grid { gap: 18px; }
.article-body { padding: 16px; }
.article-title,
.article-body > .article-title:not(.article-meta),
.post-list-title { font-size: 18px; }

@media (max-width: 650px) {
  .hero h1 { font-size: 37px; }
  .archive-header h1,
  .single-property h1,
  .editorial-single h1 { font-size: 30px; }
  .section { padding-top: 40px; padding-bottom: 40px; }
  .section-title,
  .guide .section-title { font-size: 25px; }
  .term-search-hero,
  .single-search-hero { padding-top: 18px; padding-bottom: 18px; }
  .contact-strip .contact-title { font-size: 25px; }
}

.tnt-search .tnt-search-actions button {
  min-height: 42px;
  grid-column: auto;
  border-radius: 5px;
  font-weight: 800;
}

.tnt-search .tnt-submit {
  color: #fff;
  background: var(--orange);
  border: 0;
}

.tnt-search .tnt-clear {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.tnt-search .tnt-clear:hover {
  border-color: var(--ink);
  background: var(--cream);
}

@media (max-width: 980px) {
  .tnt-search-actions { grid-column: 1 / -1; }
}

/* Hệ thống giao diện cân đối */
:root {
  --ink: #123f42;
  --dark: #082f32;
  --orange: #d96738;
  --cream: #f7f4ed;
  --text: #293a38;
  --muted: #6b7c78;
  --line: #dde5e1;
}

body {
  color: var(--text);
  background: #fff;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  height: 76px;
  gap: 30px;
  box-shadow: 0 2px 16px rgba(18, 63, 66, .04);
}

.site-header nav {
  gap: clamp(18px, 2.2vw, 30px);
  font-size: 12px;
  letter-spacing: .01em;
}

.hero {
  min-height: 650px;
}

.hero-copy {
  padding-top: 58px;
}

.hero h1 {
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.archive-header h1,
.single-property h1,
.editorial-single h1 {
  margin: 0;
  color: var(--ink);
  font: 600 clamp(36px, 4.2vw, 54px)/1.12 "Lora", Georgia, serif;
  letter-spacing: -.035em;
}

.single-property h1 {
  font-size: clamp(34px, 3.5vw, 48px);
}

.editorial-single {
  max-width: 900px;
}

.editorial-single h1 {
  max-width: 820px;
}

.editorial-meta {
  margin: 14px 0 28px;
  color: var(--muted);
  font-size: 12px;
}

.editorial-image {
  width: 100%;
  max-height: 520px;
  margin-bottom: 30px;
  border-radius: 12px;
  object-fit: cover;
}

.section {
  width: min(1200px, 92%);
  padding-top: 66px;
  padding-bottom: 66px;
}

.section-title,
.guide .section-title {
  margin: 0;
  color: var(--ink);
  font: 600 clamp(28px, 3vw, 38px)/1.22 "Lora", Georgia, serif;
  letter-spacing: -.025em;
}

.eyebrow {
  margin-bottom: 11px;
  font-size: 10px;
  letter-spacing: .14em;
}

.tnt-search {
  padding: 12px;
  border: 1px solid rgba(18, 63, 66, .06);
  border-radius: 12px;
  box-shadow: 0 18px 46px rgba(18, 63, 66, .11);
}

.tnt-search label {
  padding: 9px 13px;
}

.tnt-search input,
.tnt-search select {
  font-size: 12px;
  line-height: 1.4;
}

.property-grid {
  gap: 26px;
}

.property-card {
  border-radius: 11px;
  box-shadow: 0 5px 20px rgba(18, 63, 66, .045);
}

.property-card:hover {
  box-shadow: 0 16px 36px rgba(18, 63, 66, .12);
}

.property-body {
  padding: 19px;
}

.property-title {
  min-height: 49px;
  margin: 0 0 9px;
  color: var(--ink);
  font: 700 18px/1.42 "Lora", Georgia, serif;
}

.property-location {
  min-height: 20px;
  margin: 0 0 13px;
  font-size: 11px;
}

.property-facts {
  align-items: center;
}

.guide {
  gap: clamp(42px, 6vw, 76px);
}

.guide summary {
  padding: 19px 0;
  font-size: 14px;
}

.single-grid {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(36px, 5vw, 58px);
}

.single-property article > p:not(.updated) {
  color: var(--muted);
}

.key-facts {
  margin: 25px 0 18px;
  padding: 18px 0;
}

.key-facts strong {
  font-size: 16px;
}

.updated {
  margin: 0 0 22px;
}

.property-gallery {
  margin-bottom: 34px;
}

.entry-content {
  color: #344441;
  font-size: 15px;
  line-height: 1.85;
}

.entry-content p {
  margin: 0 0 1.15em;
}

.content-heading {
  margin: 1.7em 0 .65em !important;
  color: var(--ink);
  font-family: "Lora", Georgia, serif;
  font-weight: 700;
  line-height: 1.35;
}

.content-heading-2 {
  font-size: 25px;
}

.content-heading-3 {
  font-size: 21px;
}

.content-heading-4,
.content-heading-5,
.content-heading-6 {
  font-size: 18px;
}

.contact-card {
  padding: 27px;
  border-radius: 11px;
  box-shadow: 0 14px 36px rgba(18, 63, 66, .09);
}

.contact-card-title {
  margin: 0 0 12px;
  color: var(--ink);
  font: 700 27px/1.25 "Lora", Georgia, serif;
}

.contact-strip {
  padding-top: 46px;
  padding-bottom: 46px;
}

.contact-strip .contact-title {
  margin: 0;
  color: #fff;
  font: 600 clamp(27px, 3vw, 37px)/1.22 "Lora", Georgia, serif;
}

.site-footer {
  font-size: 12px;
  line-height: 1.7;
}

.article-title,
.article-body > .article-title:not(.article-meta) {
  margin: 0 0 10px;
  color: var(--ink);
  font: 700 20px/1.42 "Lora", Georgia, serif;
}

.post-list {
  display: grid;
  gap: 18px;
}

.post-list article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.post-list-title {
  margin: 0 0 8px;
  color: var(--ink);
  font: 700 21px/1.4 "Lora", Georgia, serif;
}

@media (max-width: 980px) {
  .site-header {
    height: 70px;
  }

  .hero {
    min-height: auto;
  }

  .single-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    max-width: 600px;
  }
}

@media (max-width: 650px) {
  body {
    font-size: 14px;
  }

  .hero h1 {
    font-size: 43px;
  }

  .archive-header h1,
  .single-property h1,
  .editorial-single h1 {
    font-size: 34px;
    letter-spacing: -.025em;
  }

  .section {
    width: calc(100% - 36px);
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .section-head {
    align-items: flex-start;
    gap: 14px;
  }

  .section-title,
  .guide .section-title {
    font-size: 28px;
  }

  .property-grid {
    gap: 20px;
  }

  .property-title {
    min-height: 0;
    font-size: 18px;
  }

  .contact-card-title {
    font-size: 24px;
  }

  .contact-strip .contact-title {
    font-size: 28px;
  }

  .content-heading-2 {
    font-size: 22px;
  }

  .content-heading-3 {
    font-size: 19px;
  }
}

/* Bài viết mới trên trang chủ */
.articles-section {
  border-top: 1px solid var(--line);
}

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

.article-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.article-image {
  display: block;
  height: 190px;
  background: var(--cream);
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  padding: 18px;
}

.article-meta {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 10px;
  font-weight: 700;
}

.article-body h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font: 700 19px/1.4 "Lora", Georgia, serif;
}

.article-body h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font: 700 21px/1.4 "Lora", Georgia, serif;
}

.term-archive .archive-description {
  max-width: 760px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.term-archive .tnt-search {
  margin-bottom: 22px;
}

.term-archive .nav-links {
  margin-top: 40px;
}

.location-children {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 28px;
}

.location-children a {
  padding: 9px 13px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
}

.location-children a:hover {
  color: var(--orange);
  border-color: var(--orange);
}

.location-children small {
  color: var(--muted);
}

.single-search-hero {
  padding-top: 28px;
  padding-bottom: 28px;
}

.property-gallery {
  margin-bottom: 28px;
}

.property-gallery-main {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 9px;
  background: var(--cream);
}

.property-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-gallery-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 105px;
  gap: 9px;
  overflow-x: auto;
  padding: 10px 1px 3px;
  scrollbar-width: thin;
}

.gallery-thumb {
  height: 76px;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  background: var(--cream);
  cursor: pointer;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb:hover,
.gallery-thumb.is-active {
  border-color: var(--orange);
}

@media (max-width: 650px) {
  .single-search-hero {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .property-gallery-thumbs {
    grid-auto-columns: 82px;
  }

  .gallery-thumb {
    height: 62px;
  }
}

.term-search-hero {
  padding: 34px max(4vw, 28px);
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.term-search-inner {
  width: min(1180px, 100%);
  margin: auto;
}

.term-search-hero .eyebrow {
  margin-bottom: 10px;
}

.term-search-hero .tnt-search {
  width: 100%;
  margin: 0;
}

.term-archive > .section {
  padding-top: 55px;
}

@media (max-width: 650px) {
  .term-search-hero {
    padding: 25px 18px;
  }
}

.article-body > p:not(.article-meta) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.article-link {
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
}

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

@media (max-width: 650px) {
  .article-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .tnt-search-actions { grid-template-columns: 1fr; }
}

.single-property .key-facts {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.related-listings {
  margin-top: 70px;
  padding-top: 55px;
  border-top: 1px solid var(--line);
}

.tnt-no-results {
  grid-column: 1 / -1;
  padding: 40px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
  background: var(--cream);
}

/* Menu chính và menu con */
.site-header nav,
.site-header nav ul,
.site-header nav li {
  list-style: none;
}

.site-header nav > .menu-item {
  margin: 0;
  text-align: center;
}

.site-header nav > .menu-item > a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  line-height: 1.35;
}

.site-header .sub-menu {
  width: max-content;
  min-width: 210px;
  max-width: 290px;
  left: 50%;
  gap: 2px;
  transform: translate(-50%, 8px);
}

.site-header .menu-item:hover > .sub-menu,
.site-header .menu-item:focus-within > .sub-menu {
  transform: translate(-50%, 0);
}

.site-header .sub-menu .menu-item {
  width: 100%;
  padding: 0;
  text-align: left;
}

.site-header .sub-menu a {
  width: 100%;
  padding: 9px 12px;
  border-radius: 4px;
  line-height: 1.45;
  white-space: normal;
}

.site-footer ul,
.site-footer li {
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 980px) {
  .site-header nav {
    gap: 2px;
    margin: 0;
  }

  .site-header nav > .menu-item {
    width: 100%;
    text-align: left;
  }

  .site-header nav > .menu-item > a {
    justify-content: flex-start;
    padding: 10px 12px;
    border-radius: 4px;
  }

  .site-header .sub-menu,
  .site-header .menu-item:hover > .sub-menu,
  .site-header .menu-item:focus-within > .sub-menu {
    width: 100%;
    max-width: none;
    margin: 2px 0 5px;
    padding: 3px 0 3px 14px;
    transform: none;
    background: var(--cream);
  }

  .site-header .sub-menu a {
    padding: 8px 11px;
  }
}

/* Ưu tiên cuối: bố cục tập trung và tiêu đề vừa phải */
.site-header { height: 70px; }
.site-header .menu-item { padding-top: 24px; padding-bottom: 24px; }
.hero { min-height: 540px; }
.hero-copy { padding-top: 42px; padding-bottom: 34px; }
.hero h1 { font-size: clamp(42px, 4.3vw, 58px); line-height: 1.08; }
.hero-copy > p:not(.eyebrow) { font-size: 14px; line-height: 1.65; }
.archive-header h1,
.single-property h1,
.editorial-single h1 { font-size: clamp(32px, 3.5vw, 44px); line-height: 1.16; }
.single-property h1 { font-size: clamp(30px, 3vw, 40px); }
.section { padding-top: 48px; padding-bottom: 48px; }
.section-head { margin-bottom: 22px; }
.section-title,
.guide .section-title { font-size: clamp(25px, 2.5vw, 31px); line-height: 1.25; }
.eyebrow { margin-bottom: 8px; }
.tnt-search { margin-top: 18px; padding: 9px; box-shadow: 0 12px 30px rgba(18, 63, 66, .09); }
.term-search-hero,
.single-search-hero { padding-top: 22px; padding-bottom: 22px; }
.term-search-hero .tnt-search { margin: 0; }
.archive-header { margin-bottom: 22px; }
.term-archive > .section { padding-top: 42px; }
.property-grid,
.article-grid { gap: 18px; }
.property-body,
.article-body { padding: 16px; }
.property-title { min-height: 44px; font-size: 17px; line-height: 1.35; }
.guide { gap: 38px; }
.guide summary { padding: 15px 0; }
.single-grid { gap: 36px; }
.breadcrumbs { margin-bottom: 18px; }
.key-facts { margin: 20px 0 14px; padding: 15px 0; }
.updated { margin-bottom: 17px; }
.property-gallery { margin-bottom: 25px; }
.entry-content { font-size: 14px; line-height: 1.75; }
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  margin: 1.35em 0 .55em;
  color: var(--ink);
  font-family: "Lora", Georgia, serif;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.015em;
}
.entry-content h2 { font-size: 23px; }
.entry-content h3 { font-size: 20px; }
.entry-content h4,
.entry-content h5,
.entry-content h6 { font-size: 17px; }
.related-listings { margin-top: 48px; padding-top: 38px; }
.contact-card { padding: 23px; }
.contact-card-title { font-size: 23px; }
.contact-strip { padding-top: 36px; padding-bottom: 36px; }
.contact-strip .contact-title { font-size: clamp(24px, 2.5vw, 31px); }
.site-footer { gap: 36px; padding-top: 42px; }
.article-title,
.article-body > .article-title:not(.article-meta),
.post-list-title { font-size: 18px; }

@media (max-width: 650px) {
  .hero h1 { font-size: 37px; }
  .archive-header h1,
  .single-property h1,
  .editorial-single h1 { font-size: 30px; }
  .section { padding-top: 40px; padding-bottom: 40px; }
  .section-title,
  .guide .section-title { font-size: 25px; }
  .term-search-hero,
  .single-search-hero { padding-top: 18px; padding-bottom: 18px; }
  .contact-strip .contact-title { font-size: 25px; }
}
.brand-header,
.brand-footer {
  flex: 0 0 auto;
  line-height: 0;
}

.brand-logo {
  display: block;
  width: 214px;
  height: auto;
}

.brand-header .brand-logo {
  max-height: 52px;
}

.brand-footer .brand-logo {
  width: 214px;
  margin-bottom: 6px;
}

@media (max-width: 650px) {
  .brand-logo {
    width: 176px;
  }

  .brand-header .brand-logo {
    max-height: 44px;
  }

  .brand-footer .brand-logo {
    width: 198px;
  }
}
