:root {
  --ink: #18201e;
  --muted: #6c7471;
  --paper: #f4f2ed;
  --white: #fff;
  --line: #d8dad5;
  --accent: #d9472d;
  --forest: #213b34;
  --sand: #e8dfd2;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", "Noto Sans SC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 14px clamp(20px, 4vw, 64px);
  background: rgba(244, 242, 237, .94);
  border-bottom: 1px solid rgba(24, 32, 30, .15);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  color: var(--white);
  background: var(--accent);
  border-radius: 50%;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
}
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 1rem; letter-spacing: .08em; }
.brand-copy small { margin-top: 6px; font-size: .58rem; letter-spacing: .14em; }
.site-header nav { display: flex; align-items: center; gap: 28px; font-size: .9rem; font-weight: 600; }
.language-switch { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.6); }
.language-switch button { padding: 3px 5px; border: 0; background: transparent; color: var(--muted); font-size: .75rem; font-weight: 700; cursor: pointer; }
.language-switch button.active { color: var(--accent); }
.language-switch span { color: #a7adaa; font-size: .7rem; }
.filter b { font-weight: 500; }
.site-header nav > a:not(.header-contact):hover { color: var(--accent); }
.header-contact {
  padding: 11px 18px;
  color: var(--white);
  background: var(--ink);
  border-radius: 999px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(400px, .95fr);
  grid-template-rows: 1fr auto;
  min-height: 700px;
  background: var(--sand);
}
.intro-copy { align-self: center; padding: 72px clamp(24px, 6vw, 96px); }
.eyebrow, .section-kicker { margin: 0 0 18px; font-size: .72rem; font-weight: 700; letter-spacing: .18em; }
.intro h1 {
  max-width: 720px;
  margin: 0;
  font-family: "Noto Sans SC", sans-serif;
  font-size: clamp(3.2rem, 6.2vw, 7.1rem);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .98;
}
.intro h1 em { color: var(--accent); font-style: normal; }
.lede { max-width: 620px; margin: 30px 0 0; color: #4e5653; font-size: 1.08rem; }
.intro-feature { position: relative; min-height: 580px; overflow: hidden; }
.intro-feature > img { height: 100%; object-fit: cover; }
.feature-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(92%, 430px);
  padding: 28px 30px;
  color: var(--white);
  background: rgba(24, 32, 30, .9);
  backdrop-filter: blur(8px);
}
.feature-caption span { color: #d4dcd9; font-size: .74rem; letter-spacing: .08em; }
.feature-caption strong { display: block; margin-top: 8px; font-size: 1.55rem; }
.feature-caption p { margin: 3px 0 12px; color: #d4dcd9; }
.feature-caption b { color: #ff9e8d; font-size: 1.25rem; }
.intro-stats {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(24, 32, 30, .16);
}
.intro-stats div { display: flex; align-items: baseline; gap: 12px; padding: 23px clamp(24px, 5vw, 72px); border-right: 1px solid rgba(24, 32, 30, .16); }
.intro-stats div:last-child { border-right: 0; }
.intro-stats strong { font-size: 1.6rem; }
.intro-stats span { color: var(--muted); font-size: .85rem; }

.catalog { padding: 100px clamp(20px, 4vw, 64px) 120px; background: #f8f7f3; }
.catalog-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.catalog h2, .advisor h2 { margin: 0; font-family: "Noto Sans SC", sans-serif; font-size: clamp(2.5rem, 5vw, 5.4rem); font-weight: 500; letter-spacing: -.05em; line-height: 1.07; }
.sample-note { margin: 12px 0 0; color: var(--muted); font-size: .9rem; }
.search { display: flex; align-items: center; width: min(100%, 360px); border-bottom: 1px solid var(--ink); }
.search svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.search input { width: 100%; padding: 15px 12px; border: 0; outline: 0; background: transparent; }
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 50px 0 20px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
}
.filter span { margin-left: 5px; color: var(--muted); font-size: .78rem; }
.filter:hover, .filter.active { color: var(--white); background: var(--ink); border-color: var(--ink); }
.filter.active span { color: #cbd1cf; }
.secondary .filter { background: transparent; }
.secondary .filter:hover, .secondary .filter.active { color: var(--accent); background: transparent; border-color: var(--accent); }
.result-line { display: flex; justify-content: space-between; padding: 18px 0; color: var(--muted); border-top: 1px solid var(--line); font-size: .8rem; }
.listing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.listing-card { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-width: 0; min-height: 178px; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s ease, box-shadow .2s ease; }
.listing-card:hover { border-color: #b7bdb9; box-shadow: 0 10px 24px rgba(30,45,40,.07); }
.card-media { position: relative; min-height: 178px; overflow: hidden; background: #dfe1dc; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.listing-card:hover .card-media img { transform: scale(1.035); }
.media-placeholder { display: grid; place-items: center; height: 100%; color: rgba(255,255,255,.8); background: linear-gradient(135deg, #4a625b, #172a25); font-size: 2rem; font-weight: 700; }
.media-placeholder.commercial { background: linear-gradient(135deg, #a17c5d, #49382e); }
.media-placeholder.residential { background: linear-gradient(135deg, #7794a3, #30434c); }
.card-tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 5px; }
.card-tags span { padding: 5px 8px; color: var(--ink); background: rgba(255,255,255,.92); border-radius: 999px; font-size: .68rem; font-weight: 700; }
.card-body { display: flex; flex-direction: column; align-items: flex-start; padding: 17px 18px 15px; }
.card-overline { color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .04em; }
.card-body h3 { margin: 7px 0 4px; font-size: 1.05rem; line-height: 1.25; }
.card-location { max-width: 100%; margin: 0; overflow: hidden; color: var(--muted); font-size: .82rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.card-price { display: block; margin-top: 9px; color: var(--accent); font-size: 1.08rem; }
.card-facts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.card-facts span { padding: 4px 7px; color: #4d5753; background: #f1f3f0; border-radius: 5px; font-size: .71rem; }
.card-link { display: inline-flex; margin-top: auto; padding-top: 10px; color: #334a42; font-size: .78rem; font-weight: 700; }
.empty-state { padding: 90px 20px; text-align: center; border: 1px solid var(--line); }
.empty-state > span { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 22px; color: var(--white); background: var(--accent); border-radius: 50%; font-weight: 700; }
.empty-state h3 { margin: 0; font-size: 1.6rem; }
.empty-state p { color: var(--muted); }
.empty-state a { display: inline-block; margin-top: 10px; padding: 11px 18px; color: var(--white); background: var(--ink); border-radius: 999px; }

.advisor { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; min-height: 600px; background: var(--forest); color: var(--white); overflow: hidden; }
.advisor-copy { align-self: center; padding: 90px clamp(28px, 7vw, 110px); }
.advisor-copy p:not(.section-kicker) { max-width: 620px; color: #c8d1ce; font-size: 1.02rem; }
.advisor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 34px; }
.primary-btn { padding: 13px 20px; color: var(--ink); background: #f4a896; border-radius: 999px; font-weight: 700; }
.text-link { padding-bottom: 4px; border-bottom: 1px solid #83918d; }
.advisor-panel { align-self: center; margin: 54px clamp(150px, 13vw, 210px) 140px 0; padding: 30px; border: 1px solid #536861; }
.advisor-panel > span { color: #f4a896; font-size: .76rem; letter-spacing: .11em; }
.advisor-panel ul { margin: 20px 0 0; padding: 0; list-style: none; }
.advisor-panel li { padding: 12px 0; border-top: 1px solid #536861; }
.advisor-panel li::before { content: "—"; margin-right: 10px; color: #f4a896; }
.wechat-contact { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding-top: 24px; border-top: 1px solid #536861; }
.wechat-contact img { width: 118px; height: 158px; object-fit: cover; background: #fff; border: 6px solid #fff; }
.wechat-contact div { display: grid; }
.wechat-contact strong { color: #fff; font-size: 1rem; }
.wechat-contact small { max-width: 110px; margin-top: 6px; color: #b8c4c0; font-size: .78rem; line-height: 1.4; }
.advisor-photo-small { position: absolute; right: clamp(28px, 4vw, 64px); bottom: 34px; display: flex; align-items: center; gap: 14px; margin: 0; }
.advisor-photo-small img { width: 96px; height: 96px; object-fit: cover; object-position: center 20%; border: 3px solid rgba(255,255,255,.75); border-radius: 50%; }
.advisor-photo-small figcaption { display: grid; max-width: 150px; line-height: 1.25; }
.advisor-photo-small strong { font-size: .95rem; }
.advisor-photo-small span { margin-top: 5px; color: #b8c4c0; font-size: .72rem; letter-spacing: .04em; }

footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 40px clamp(20px, 4vw, 64px); background: #141a18; color: var(--white); }
.footer-brand .brand-mark { width: 38px; height: 38px; }
footer > p { margin: 0; color: #c0c7c4; font-size: .8rem; text-align: center; }
.fine-print { text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 980px) {
  .intro { grid-template-columns: 1fr; }
  .intro-feature { min-height: 520px; }
  .intro-stats { grid-column: 1; }
  .listing-card { grid-template-columns: 145px minmax(0, 1fr); }
  .advisor { grid-template-columns: 1fr 1fr; }
  .advisor-panel { margin: 70px 30px 150px 0; }
  footer { grid-template-columns: 1fr 1fr; }
  footer > p:nth-child(2) { display: none; }
}

@media (max-width: 680px) {
  .site-header { min-height: 70px; }
  .site-header .brand { gap: 8px; }
  .site-header .brand-mark { width: 36px; height: 36px; flex: 0 0 36px; }
  .site-header .brand-copy strong { max-width: 145px; font-size: .76rem; line-height: 1.16; }
  .brand-copy small { display: none; }
  .site-header nav > a:not(.header-contact) { display: none; }
  .site-header nav { gap: 8px; }
  .header-contact { padding: 9px 13px; font-size: .8rem; }
  .intro-copy { padding-top: 64px; padding-bottom: 64px; }
  .intro h1 { font-size: clamp(3rem, 15vw, 5.4rem); }
  .intro-feature { min-height: 440px; }
  .feature-caption { padding: 22px; }
  .intro-stats div { display: grid; gap: 2px; padding: 18px 16px; }
  .intro-stats strong { font-size: 1.25rem; }
  .catalog { padding-top: 72px; padding-bottom: 80px; }
  .catalog-head, .filter-row { align-items: stretch; flex-direction: column; }
  .search { width: 100%; }
  .filter-group { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .filter { flex: 0 0 auto; }
  .result-line span:last-child { display: none; }
  .listing-grid { grid-template-columns: 1fr; gap: 10px; }
  .listing-card { grid-template-columns: 124px minmax(0, 1fr); min-height: 150px; }
  .card-media { min-height: 150px; }
  .card-body { padding: 13px 14px 12px; }
  .card-body h3 { font-size: .98rem; }
  .card-facts span:nth-child(n+4) { display: none; }
  .advisor { grid-template-columns: 1fr; }
  .advisor-copy { padding: 64px 24px 28px; }
  .advisor-panel { grid-column: 1; margin: 20px 24px 170px; }
  .wechat-contact img { width: 105px; height: 141px; }
  .advisor-photo-small { right: 24px; bottom: 38px; }
  footer { grid-template-columns: 1fr; }
  .fine-print { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-media img { transition: none; }
}
