/* ==========================================================
   Patricia · Warm luxury real estate theme
   ========================================================== */
:root {
  --bg: #F7F2EA;
  --paper: #FFFDF9;
  --sand: #EFE6D8;
  --ink: #211A15;
  --ink-2: #4A3F37;
  --muted: #85786C;
  --line: #E6DCCD;
  --gold: #A9855A;
  --gold-deep: #8C6A42;
  --gold-soft: #EADBC4;
  --dark: #1C1511;
  --dark-2: #2A211B;
  --ok: #3F7A55;
  --err: #A94432;

  --serif: "Cormorant Garamond", "Noto Serif SC", "Noto Serif CJK SC", "Songti SC", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(33, 26, 21, .04), 0 12px 32px -12px rgba(33, 26, 21, .14);
  --shadow-lg: 0 30px 60px -20px rgba(33, 26, 21, .28);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --cta: #1E8A4C;
  --cta-deep: #166B3A;
  --cta-light: #7FD3A2;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.12; }
h1, h2, .serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }
.lang-zh h1, .lang-zh h2, .lang-zh .serif { letter-spacing: 0.02em; font-weight: 600; }

.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 999; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 820px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-sm { padding: clamp(40px, 6vw, 72px) 0; }
.bg-paper { background: var(--paper); }
.bg-sand { background: var(--sand); }
.bg-dark { background: var(--dark); color: #F4ECE0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lang-zh .eyebrow { letter-spacing: .1em; }
.bg-dark .eyebrow, .is-light .eyebrow { color: var(--gold-soft); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 { font-size: clamp(34px, 4.4vw, 54px); max-width: 17ch; }
.section-head.is-center { justify-content: center; text-align: center; }
.section-head.is-center h2 { margin: 0 auto; }
.section-head.is-center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }

.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 56ch; }
.muted { color: var(--muted); }
em { font-style: italic; }
h1 em, h2 em { color: var(--gold); font-style: italic; }
.lang-zh h1 em, .lang-zh h2 em { font-style: normal; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: 15px; line-height: 1; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #FBF6EE; }
.btn-dark:hover { background: #000; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-deep); }
.btn-light { background: #FBF6EE; color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
/* Only WhatsApp buttons are green */
.btn-wa { background: var(--cta); color: #fff; }
.btn-wa:hover { background: var(--cta-deep); }
.btn-sm { padding: 11px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; border-bottom: 1px solid currentColor; padding-bottom: 3px; white-space: nowrap; }
.link-arrow .ic { transition: transform .2s; }
.link-arrow:hover .ic { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(247, 242, 234, .92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.has-hero .site-header { position: fixed; left: 0; right: 0; }
.has-hero .site-header.is-over { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }

.logo { display: inline-flex; align-items: center; flex: none; color: var(--ink); --mark-line: var(--gold); }
.logo svg { width: 38px; height: 46px; display: block; overflow: visible; }
.logo .m-arch { fill: none; stroke: var(--mark-line); stroke-width: 1.4; }
.logo .m-sill { stroke: var(--mark-line); stroke-width: 1.4; }
.logo .m-p { fill: currentColor; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 32px; }
.logo--light, .is-over .logo { color: #FBF4EA; --mark-line: #D8BD93; }

.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a { font-size: 14.5px; font-weight: 500; opacity: .82; position: relative; padding: 6px 0; }
.main-nav a:hover, .main-nav a.is-active { opacity: 1; }
.main-nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; border: 1px solid currentColor; border-radius: 999px; padding: 3px; opacity: .85; }
.site-header .lang-switch { border-color: rgba(0, 0, 0, .14); }
.is-over .lang-switch { border-color: rgba(255, 255, 255, .35); }
.lang-switch a { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; line-height: 1; }
.lang-switch a.is-active { background: var(--ink); color: #fff; }
.is-over .lang-switch a.is-active { background: #fff; color: var(--ink); }
.is-over .header-wa { background: var(--cta); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; font-size: 22px; line-height: 0; }

.drawer {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: flex; flex-direction: column; padding: 0 var(--gutter) 28px; overflow-y: auto;
}
.drawer[hidden] { display: none; }
.drawer-top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.drawer-top .nav-toggle { display: block; }
.drawer-nav { display: flex; flex-direction: column; padding: 16px 0; flex: 1; }
.drawer-nav a { font-family: var(--serif); font-size: 34px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.drawer-nav a.is-active { color: var(--gold); }
.drawer-bottom { display: grid; gap: 12px; }
.drawer-bottom .lang-switch { justify-self: start; margin-bottom: 8px; }
body.no-scroll { overflow: hidden; }

@media (max-width: 1080px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .header-actions .lang-switch, .header-wa span { display: none; }
  .header-wa { padding: 10px; }
  .logo svg { width: 33px; height: 40px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img, .hero-bg video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 14, 10, .62) 0%, rgba(20, 14, 10, .25) 45%, rgba(20, 14, 10, 0) 70%), linear-gradient(180deg, rgba(20, 14, 10, .45) 0%, rgba(20, 14, 10, .1) 35%, rgba(20, 14, 10, .7) 100%); }
.hero-bg img, .hero-bg video { object-position: 65% center; }
.hero-inner { padding-top: calc(var(--header-h) + 36px); padding-bottom: clamp(40px, 6vw, 72px); width: 100%; }
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 { font-size: clamp(44px, 7.2vw, 96px); line-height: 1.02; max-width: 13ch; }
.hero h1 em { color: #E9D3B0; }
.hero-sub { font-size: clamp(17px, 1.8vw, 20px); max-width: 44ch; margin-top: 20px; opacity: .9; }

.search-box {
  margin-top: clamp(28px, 4vw, 48px); background: var(--paper); color: var(--ink);
  border-radius: 20px; padding: 10px; box-shadow: var(--shadow-lg); max-width: 1000px;
}
.search-tabs { display: flex; gap: 4px; padding: 4px 6px 10px; }
.search-tabs label { cursor: pointer; }
.search-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.search-tabs span { display: block; padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); }
.search-tabs input:checked + span { background: var(--ink); color: #fff; }
.search-tabs input:focus-visible + span { outline: 2px solid var(--gold); }
.search-fields { display: grid; grid-template-columns: 1.1fr 1fr 1.4fr auto; gap: 8px; }
.field-box { position: relative; background: var(--bg); border-radius: 12px; padding: 10px 16px 10px; }
.field-box label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field-box select, .field-box input { width: 100%; border: 0; background: transparent; padding: 2px 0 0; font-size: 15px; font-weight: 500; outline: none; appearance: none; -webkit-appearance: none; }
.field-box select { padding-right: 20px; cursor: pointer; }
.field-box .ic-sel { position: absolute; right: 14px; bottom: 14px; color: var(--muted); pointer-events: none; }
.search-fields .btn { height: 100%; min-height: 58px; border-radius: 12px; padding: 0 30px; }
@media (max-width: 860px) {
  .search-fields { grid-template-columns: 1fr 1fr; }
  .search-fields .field-q, .search-fields .btn { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .hero { min-height: auto; }
  .hero-inner { padding-top: calc(var(--header-h) + 48px); }
  .search-fields { grid-template-columns: 1fr; }
}

/* ---------- Intro / stats ---------- */
.intro { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.intro-photo { position: relative; }
.intro-photo img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 200px 200px var(--radius) var(--radius); width: 100%; background: var(--sand); }
.intro-photo .ren-chip {
  position: absolute; left: -16px; bottom: 32px; background: var(--paper); border-radius: 14px; padding: 14px 18px;
  box-shadow: var(--shadow); font-size: 13px; line-height: 1.4;
}
.ren-chip strong { display: block; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.intro h2 { font-size: clamp(34px, 4.2vw, 52px); max-width: 18ch; }
.intro .lead { margin-top: 22px; }
.intro .lead p + p { margin-top: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 36px 0 34px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--serif); font-size: clamp(38px, 4vw, 52px); font-weight: 500; line-height: 1; color: var(--gold-deep); }
.stat span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 860px) {
  .intro { grid-template-columns: 1fr; }
  .intro-photo { max-width: 420px; }
  .intro-photo .ren-chip { left: 12px; }
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1024px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 rgba(33, 26, 21, .04); transition: transform .35s, box-shadow .35s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-media img { transform: scale(1.05); }
.card.is-closed .card-media img { filter: grayscale(.6) brightness(.85); }
.badge { position: absolute; top: 14px; left: 14px; background: rgba(255, 253, 249, .95); color: var(--ink); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; }
.badge-dark { background: var(--ink); color: #fff; }
.badge-gold { background: var(--gold); color: #fff; }
.badge-right { left: auto; right: 14px; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-type { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; margin-bottom: 8px; }
.card-title { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.18; }
.lang-zh .card-title { font-size: 20px; }
.card-title a:hover { color: var(--gold-deep); }
.card-loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin-top: 8px; }
.card-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.card-price { font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.card-price small { font-weight: 400; font-size: 13px; color: var(--muted); }
.card-specs { display: flex; gap: 14px; color: var(--ink-2); font-size: 13.5px; }
.card-specs > span { display: inline-flex; align-items: center; gap: 5px; }
.card-specs .ic { color: var(--muted); }

/* Category tiles */
.cat-tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; color: #fff; isolation: isolate; background: var(--dark-2); }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.cat-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(20, 14, 10, .78)); }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile-body { position: absolute; left: 22px; right: 22px; bottom: 22px; }
.cat-tile h3 { font-family: var(--serif); font-weight: 500; font-size: 32px; }
.cat-tile p { font-size: 14px; opacity: .85; }
.cat-tile .count { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, .5); padding-bottom: 2px; }
@media (max-width: 640px) {
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat-tile { aspect-ratio: 4 / 5; }
  .cat-tile h3 { font-size: 24px; }
  .cat-tile-body { left: 14px; right: 14px; bottom: 14px; }
  .cat-tile p { display: none; }
}

/* Pillars */
.pillar { padding: 32px 28px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .02); }
.pillar-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold-soft); font-size: 22px; margin-bottom: 26px; }
.pillar h3 { font-family: var(--serif); font-size: 28px; font-weight: 500; margin-bottom: 10px; }
.pillar p { font-size: 15px; opacity: .72; }
.bg-dark .section-head h2 { color: #FBF4EA; }

/* Split CTA */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.split-card { position: relative; border-radius: 24px; padding: clamp(32px, 4.5vw, 60px); overflow: hidden; min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.split-card h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.3vw, 42px); max-width: 16ch; }
.split-card p { margin: 14px 0 28px; max-width: 40ch; }
.split-card .btn { align-self: flex-start; }
.split-card.is-img { color: #fff; }
.split-card.is-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.split-card.is-img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 14, 10, .15), rgba(20, 14, 10, .8)); }
.split-card.is-img .eyebrow { color: var(--gold-soft); }
.split-card.is-plain { background: var(--gold-soft); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-card { min-height: 300px; } }

/* Posts */
.post-card { display: flex; flex-direction: column; }
.post-media { display: block; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; background: var(--sand); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.post-card:hover .post-media img { transform: scale(1.04); }
.post-date { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.post-card h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.2; }
.lang-zh .post-card h3 { font-size: 21px; }
.post-card h3 a:hover { color: var(--gold-deep); }
.post-excerpt { color: var(--ink-2); margin: 10px 0 16px; font-size: 15px; }
.post-card .link-arrow { align-self: flex-start; margin-top: auto; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(36px, 5vw, 64px); max-width: 18ch; margin: 0 auto; color: #FBF4EA; }
.cta-band p { margin: 18px auto 34px; opacity: .75; }
.cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(24px, 3.2vw, 44px) 0 clamp(24px, 3vw, 40px); }
.page-hero h1 { font-size: clamp(42px, 6vw, 76px); max-width: 16ch; }
.page-hero .lead { margin-top: 18px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); margin-bottom: 22px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }

/* ---------- Listings page ---------- */
.list-layout { display: grid; grid-template-columns: 290px 1fr; gap: 40px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); background: var(--paper); border-radius: var(--radius); padding: 24px; }
.filters h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; }
.filters h3 a { font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--muted); font-weight: 500; text-decoration: underline; }
.f-group { margin-bottom: 18px; }
.f-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--bg); font-size: 15px; outline: none; transition: border-color .2s, background .2s;
}
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2385786C' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold); background: #fff; }
.textarea { min-height: 120px; resize: vertical; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg); border-radius: var(--radius-sm); padding: 3px; border: 1px solid var(--line); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 8px 4px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--gold); }
.list-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.list-top .count { font-family: var(--serif); font-size: 28px; }
.list-top .sort { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.list-top .sort .select { width: auto; padding-top: 9px; padding-bottom: 9px; background-color: var(--paper); }
.filter-btn { display: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 13px; }
.chip:hover { border-color: var(--ink); }
.empty { text-align: center; padding: 64px 24px; background: var(--paper); border-radius: var(--radius); }
.empty h3 { font-family: var(--serif); font-size: 30px; font-weight: 500; }
.empty p { color: var(--muted); margin: 10px auto 24px; max-width: 42ch; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 48px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; background: var(--paper); }
.pager a:hover { border-color: var(--ink); }
.pager .is-current { background: var(--ink); color: #fff; border-color: var(--ink); }
.list-layout .grid-3 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1200px) { .list-layout .grid-3 { grid-template-columns: repeat(3, 1fr); } .list-layout .card-title { font-size: 21px; } }
@media (max-width: 960px) {
  .list-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0; top: 0; z-index: 120; border-radius: 0; overflow-y: auto; display: none; padding-bottom: 100px; }
  .filters.is-open { display: block; }
  .filter-btn { display: inline-flex; }
  .filters-close { display: inline-flex !important; }
  .filters-apply { position: fixed; left: 0; right: 0; bottom: 0; padding: 14px var(--gutter); background: var(--paper); border-top: 1px solid var(--line); }
}
@media (max-width: 640px) { .list-layout .grid-3 { grid-template-columns: 1fr; } }
.filters-close { display: none !important; }

/* ---------- Property detail ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: clamp(320px, 56vw, 600px); border-radius: 20px; overflow: hidden; position: relative; }
.gallery button { border: 0; padding: 0; margin: 0; cursor: zoom-in; background: var(--sand); overflow: hidden; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery button:hover img { transform: scale(1.03); }
.gallery .g-main { grid-row: 1 / 3; }
.gallery.is-single { grid-template-columns: 1fr; }
.gallery.is-single .g-main { grid-row: auto; }
.gallery.is-two { grid-template-rows: 1fr; }
.gallery.is-two .g-main { grid-row: auto; }
.gallery .g-count { position: absolute; right: 16px; bottom: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 253, 249, .95); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; border: 0; cursor: pointer; box-shadow: var(--shadow); }
@media (max-width: 720px) {
  .gallery { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 72vw; border-radius: 16px; }
  .gallery .g-side { display: none; }
  .gallery .g-main { grid-row: auto; }
}

.detail { display: grid; grid-template-columns: 1fr 380px; gap: clamp(32px, 5vw, 72px); margin-top: 40px; align-items: start; }
.detail-head .badges { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.detail-head .badge { position: static; border: 1px solid var(--line); }
.detail-head h1 { font-size: clamp(34px, 4.6vw, 58px); }
.detail-loc { display: flex; align-items: center; gap: 8px; color: var(--muted); margin-top: 12px; }
.detail-price { font-size: clamp(28px, 3vw, 36px); font-weight: 600; letter-spacing: -.03em; margin-top: 22px; }
.detail-price small { font-size: 16px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.keyfacts { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 32px 0 44px; }
.keyfact { background: var(--paper); padding: 18px 18px; flex: 1 1 118px; }
.keyfact .ic { color: var(--gold); font-size: 22px; margin-bottom: 10px; display: block; }
.keyfact strong { display: block; font-size: 16px; font-weight: 600; white-space: nowrap; }
.keyfact span { font-size: 13px; color: var(--muted); }
.detail-block { padding: 36px 0; border-top: 1px solid var(--line); }
.detail-block h2 { font-size: 32px; margin-bottom: 18px; }
.prose { color: var(--ink-2); font-size: 16.5px; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 16px; }
.prose h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--ink); margin: 32px 0 12px; }
.prose ul { padding-left: 0; list-style: none; margin: 16px 0; }
.prose li { position: relative; padding-left: 26px; margin: 8px 0; }
.prose li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--gold); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { color: var(--muted); font-weight: 400; width: 42%; }
.spec-table td { font-weight: 500; }
.spec-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
@media (max-width: 640px) { .spec-cols { grid-template-columns: 1fr; } }
.map-embed { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--sand); }
.map-embed iframe, .video-embed iframe { width: 100%; height: 100%; border: 0; }
.video-embed { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: #000; }

.agent-card { position: sticky; top: calc(var(--header-h) + 20px); background: var(--paper); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.agent-row { display: flex; gap: 14px; align-items: center; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.agent-row img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--sand); }
.agent-row strong { font-family: var(--serif); font-size: 24px; font-weight: 600; display: block; line-height: 1.1; }
.agent-row span { font-size: 13px; color: var(--muted); }
.agent-card h3 { font-family: var(--serif); font-size: 26px; font-weight: 500; }
.agent-card > p { color: var(--muted); font-size: 14.5px; margin: 6px 0 18px; }
.agent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.agent-actions .btn { padding: 13px 12px; font-size: 14px; }
.or-line { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 4px 0 16px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.form-grid { display: grid; gap: 10px; }
.form-note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14.5px; margin-bottom: 16px; }
.alert strong { display: block; }
.alert-ok { background: #E6F0E8; color: #24503A; }
.alert-err { background: #F6E3DE; color: #7A2F21; }
.sold-note { background: var(--ink); color: #fff; padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14.5px; margin-top: 18px; }
.share-row { display: flex; gap: 8px; margin-top: 20px; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 18px; }
.icon-btn:hover { border-color: var(--ink); }
@media (max-width: 1000px) {
  .detail { grid-template-columns: 1fr; }
  .agent-card { position: static; }
}

/* Mobile sticky contact bar on property page */
.mobile-bar { display: none; }
@media (max-width: 1000px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 253, 249, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .mobile-bar .btn { padding: 14px; }
  .has-mobile-bar .wa-float { display: none; }
  .has-mobile-bar .site-footer { padding-bottom: 90px; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(14, 10, 8, .96); display: flex; align-items: center; justify-content: center; color: #fff; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 6px; user-select: none; }
.lb-btn { position: absolute; background: rgba(255, 255, 255, .1); border: 0; color: #fff; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; font-size: 22px; }
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-prev { left: 20px; } .lb-next { right: 20px; } .lb-close { top: 18px; right: 18px; }
.lb-count { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); font-size: 14px; opacity: .7; }
@media (max-width: 640px) { .lb-prev, .lb-next { bottom: 24px; top: auto; } .lb-prev { left: 30%; } .lb-next { right: 30%; } }

/* ---------- About ---------- */
.about-hero { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-hero h1 { font-size: clamp(46px, 6.4vw, 84px); }
.about-hero .prose { margin-top: 24px; font-size: 18px; }
.about-hero .cta-actions { margin-top: 36px; }
.about-hero .stats + .cta-actions, .about-hero .stats-row + .cta-actions { margin-top: 32px; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius) var(--radius) 240px 240px; background: var(--sand); }
.cred-list { display: grid; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.cred-list div { background: var(--paper); padding: 18px 22px; display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.cred-list span { color: var(--muted); }
.cred-list strong { font-weight: 600; text-align: right; }
.area-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.area-tags span { padding: 10px 18px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 15px; }
.step-num { font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--gold); display: block; margin-bottom: 14px; }
.approach h3 { font-family: var(--serif); font-size: 28px; font-weight: 500; margin-bottom: 8px; }
.approach p { color: var(--ink-2); }
@media (max-width: 860px) { .about-hero { grid-template-columns: 1fr; } .about-photo { max-width: 440px; order: -1; } }

/* ---------- Sell ---------- */
.sell-layout { display: grid; grid-template-columns: 1fr 480px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.form-card { background: var(--paper); border-radius: 24px; padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); }
.form-card h2 { font-size: 32px; margin-bottom: 20px; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 36px; }
.why-item .ic { font-size: 26px; color: var(--gold); margin-bottom: 12px; display: block; }
.why-item h3 { font-size: 17px; margin-bottom: 6px; }
.why-item p { color: var(--ink-2); font-size: 15px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.step { border-top: 1px solid var(--ink); padding-top: 20px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 1000px) { .sell-layout { grid-template-columns: 1fr; } .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why-list, .steps { grid-template-columns: 1fr; } }

/* ---------- Tools ---------- */
.tool-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tool-tab { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 15px; font-weight: 500; }
.tool-tab .ic { color: var(--gold); }
.tool-tab.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tool-tab.is-active .ic { color: var(--gold-soft); }
.tool { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.tool[hidden] { display: none; }
.tool-form { padding: clamp(24px, 4vw, 44px); }
.tool-form h2 { font-size: 36px; }
.tool-form > p { color: var(--muted); margin: 6px 0 26px; }
.tool-out { background: var(--dark); color: #F4ECE0; padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.out-main span { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); }
.out-main strong { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(48px, 6vw, 72px); line-height: 1.05; margin: 8px 0 28px; }
.out-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 15px; }
.out-rows div span { opacity: .7; }
.out-rows .is-total { font-weight: 600; font-size: 17px; border-top-color: rgba(255, 255, 255, .35); }
.out-note { font-size: 12.5px; opacity: .55; margin-top: 18px; }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input[type=range] { flex: 1; accent-color: var(--gold); }
.range-row .input { width: 110px; flex: none; }
.convert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 860px) { .tool { grid-template-columns: 1fr; } }

/* ---------- Article ---------- */
.article-hero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 20px; margin-top: 40px; background: var(--sand); }
.article-body { font-size: 18px; line-height: 1.8; }
.article-body.prose { font-size: 18px; }
.article-meta { display: flex; gap: 18px; color: var(--muted); font-size: 14px; margin-top: 18px; flex-wrap: wrap; }
.article-meta span { display: inline-flex; gap: 6px; align-items: center; }
.author-box { display: flex; gap: 18px; align-items: center; padding: 24px; background: var(--paper); border-radius: var(--radius); margin-top: 48px; }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.author-box strong { font-family: var(--serif); font-size: 22px; display: block; }
.author-box p { font-size: 14.5px; color: var(--muted); }
@media (max-width: 560px) { .author-box { flex-direction: column; align-items: flex-start; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-list { display: grid; gap: 12px; margin-top: 36px; }
.contact-item { display: flex; align-items: center; gap: 18px; padding: 20px 22px; background: var(--paper); border-radius: var(--radius); transition: transform .2s, box-shadow .2s; }
a.contact-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.contact-item .ci-ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-deep); font-size: 20px; flex: none; }
.contact-item span { display: block; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-item strong { font-weight: 500; font-size: 16px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #CFC3B4; padding: 80px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-tag { font-family: var(--serif); font-style: italic; font-size: 24px; color: #EFE3D1; margin-top: 22px; }
.lang-zh .footer-tag { font-style: normal; }
.site-footer h4 { color: #fff; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: #fff; }
.footer-contact li a, .footer-contact li span { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .ic { margin-top: 4px; color: var(--gold); }
.socials { display: flex; gap: 8px; margin-top: 24px; }
.socials a { width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 50%; display: grid; place-items: center; }
.socials a:hover { border-color: var(--gold); color: var(--gold-soft); }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; font-size: 13px; opacity: .6; flex-wrap: wrap; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 45; width: 58px; height: 58px; border-radius: 50%; background: var(--cta); color: #fff; display: grid; place-items: center; font-size: 28px; box-shadow: 0 10px 30px -6px rgba(31, 157, 85, .55); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: .3s; z-index: 300; }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* 404 */
.nf { text-align: center; padding: clamp(80px, 14vw, 180px) 0; }
.nf .big { font-family: var(--serif); font-size: clamp(100px, 18vw, 200px); color: var(--gold); line-height: 1; }
.nf h1 { font-size: clamp(34px, 4vw, 48px); margin: 12px 0; }
.nf p { color: var(--muted); margin-bottom: 30px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}
@media (max-width: 640px) {
  .hero::before { background: linear-gradient(180deg, rgba(20, 14, 10, .55) 0%, rgba(20, 14, 10, .45) 50%, rgba(20, 14, 10, .75) 100%); }
}
.lang-zh .hero h1 { max-width: none; font-size: clamp(40px, 6vw, 84px); line-height: 1.15; }
.lang-zh .hero h1 em { white-space: nowrap; }

/* First block under the header: tighter top spacing on every page */
.page-top { padding-top: clamp(24px, 3.2vw, 44px) !important; }
.crumbs { margin-bottom: 16px; }

/* Coming soon (private preview) */
.cs-body { min-height: 100vh; display: grid; place-items: center; padding: 32px var(--gutter); }
.cs { max-width: 640px; display: grid; gap: 18px; }
.cs .logo svg { width: 48px; height: 58px; }
.cs h1 { font-size: clamp(42px, 6vw, 68px); }
.cs-agency { font-size: 13px; color: var(--muted); margin-top: 24px; line-height: 1.6; }
.cs-login { font-size: 12px; color: var(--muted); opacity: .6; justify-self: start; }
.preview-bar { background: var(--ink); color: #FBF4EA; font-size: 13.5px; text-align: center; padding: 9px 16px; position: relative; z-index: 60; }
.preview-bar a { text-decoration: underline; color: var(--gold-soft); }
.has-hero .preview-bar { position: fixed; top: 0; left: 0; right: 0; }
.has-hero.is-preview .site-header { top: 38px; }
.cat-grid .cat-tile { aspect-ratio: 5 / 4; }
@media (max-width: 640px) { .cat-grid .cat-tile { aspect-ratio: 4 / 5; } }
.verified-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13.5px; color: #2F6B45; background: #E6F0E8; padding: 7px 12px; border-radius: 999px; }
