/* 711 Real Estate Thailand — styles
   Palette: jade + brass on cool porcelain. Colours live in tokens below. */
:root {
  --paper: #f4f6fa;
  --surface: #ffffff;
  --sunk: #e8edf6;
  --ink: #0f1a33;
  --ink-2: #36415a;
  --muted: #5d6882;
  --line: #d5dcea;
  --jade: #0f2f86;
  --jade-ink: #ffffff;
  --jade-soft: #e2e9fb;
  --brass: #a9773a;
  --brass-soft: #f6ecdc;
  --danger: #a33a2c;
  --ok: #1d6b45;
  --shadow: 0 1px 2px rgba(21,32,43,.06), 0 8px 24px -12px rgba(21,32,43,.18);
  --radius: 10px;
  --wrap: 1180px;
  --display: "Marcellus", "Noto Serif Thai", "Noto Serif Myanmar", "Noto Serif SC", Georgia, serif;
  --body: "Albert Sans", "Noto Sans Thai", "Noto Sans Myanmar", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1020; --surface: #121a2e; --sunk: #19223a; --ink: #e7ebf5; --ink-2: #c3cadb;
    --muted: #939cb4; --line: #28324c; --jade: #86a8ff; --jade-ink: #07102a; --jade-soft: #1a2750;
    --brass: #dcaa6a; --brass-soft: #30251a; --danger: #e07a6a; --ok: #6fcf99;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px -14px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b1020; --surface: #121a2e; --sunk: #19223a; --ink: #e7ebf5; --ink-2: #c3cadb;
  --muted: #939cb4; --line: #28324c; --jade: #86a8ff; --jade-ink: #07102a; --jade-soft: #1a2750;
  --brass: #dcaa6a; --brass-soft: #30251a; --danger: #e07a6a; --ok: #6fcf99;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px -14px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased;
}
:lang(my) body, :lang(my) { line-height: 1.85; }
img { max-width: 100%; display: block; }
a { color: var(--jade); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brass); outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.2; text-wrap: balance; margin: 0; letter-spacing: -.005em; }
:lang(my) h1, :lang(my) h2, :lang(my) h3 { line-height: 1.6; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
@media (max-width: 480px) { .wrap { padding-inline: 16px; } }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); font-weight: 600; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-logo { height: 48px; width: auto; border-radius: 8px; background: #fff; padding: 2px 4px; flex: none; }
.brand-mark {
  font-family: var(--display); font-size: 30px; line-height: 1; color: var(--jade);
  letter-spacing: -.02em; position: relative; padding-bottom: 3px;
}
.brand-mark::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brass); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-weight: 600; font-size: 15px; letter-spacing: .01em; }
.brand-text span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.main-nav { display: flex; gap: 4px; }
.main-nav a {
  text-decoration: none; color: var(--ink-2); font-size: 15px; padding: 8px 12px; border-radius: 8px; white-space: nowrap;
}
.main-nav a:hover { background: var(--sunk); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--jade); font-weight: 600; }
.langs { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.langs button {
  border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 13px; padding: 4px 10px; border-radius: 999px; cursor: pointer;
}
.langs button[aria-pressed="true"] { background: var(--jade); color: var(--jade-ink); }
.menu-btn { display: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 8px 12px; font: inherit; font-size: 14px; cursor: pointer; }
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 16px 16px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px; font-size: 16px; }
  .header-row { gap: 10px; flex-wrap: wrap; padding-block: 10px; }
  .langs { order: 3; width: 100%; justify-content: space-between; }
  .langs button { flex: 1; }
}

/* ---------- Buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 8px; padding: 12px 20px; font: inherit; font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--jade); color: var(--jade-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--jade) 86%, var(--ink)); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-line { background: #06c755; color: #fff; }
.btn-wa { background: #1f9d55; color: #fff; }
.btn:active { transform: translateY(1px); }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); min-width: 0; }
input, select, textarea {
  font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; width: 100%; min-width: 0;
}
textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--jade); }

/* ---------- Hero ---------- */
.hero { padding-block: 56px 40px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; }
.hero h1 { font-size: clamp(34px, 5.2vw, 60px); margin-block: 14px 18px; }
.hero p.lead { font-size: 18px; color: var(--ink-2); max-width: 36em; margin: 0; }

/* Warm, friendly hero: sunset sky, drawn Bangkok skyline, greeting in four languages */
.hero-warm {
  --sky-top: #fff9f0; --sky-mid: #fdeed8; --sky-low: #f9dcc0;
  --sun-c: #f6c46f; --bld-back: #e9c9ae; --bld-front: #c99a7a; --bld-win: #fff1c9;
  background:
    radial-gradient(60% 70% at 78% 62%, color-mix(in srgb, var(--sun-c) 38%, transparent), transparent 70%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 58%, var(--sky-low) 100%);
  padding-block: 52px 170px;
  border-bottom: 1px solid var(--line);
}
/* With a photo: a wide photo band with the headline in the sky, intro + search below on warm cream */
.hero-warm.has-photo { padding: 0 0 48px; background: linear-gradient(180deg, var(--sky-mid) 0%, var(--paper) 100%); }
.hero-band { position: relative; height: clamp(400px, 38vw, 660px); overflow: hidden; background: #6b4526; }
.hero-photo { position: absolute; inset: 0; background: var(--hero-img) center 24%/cover no-repeat; animation: photo-in 1.4s ease-out both; }
.hero-photo { transition: opacity 1.4s ease; }
.hero-photo.off { opacity: 0 !important; }
.hero-slide { animation: none; opacity: 1; background-image: none; background-size: cover; background-repeat: no-repeat; background-position: center 45%; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 52px; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.hero-dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.25); cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.hero-dot.on { background: #fff; width: 22px; border-radius: 5px; }
@media (prefers-reduced-motion: reduce) { .hero-photo { transition: none; } }
.hero-photo::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(40,22,8,.55) 0%, rgba(40,22,8,.18) 38%, rgba(0,0,0,0) 60%, rgba(253,238,216,.0) 82%, var(--sky-mid) 100%); }
@keyframes photo-in { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.band-copy { position: relative; padding-top: clamp(24px, 4vw, 48px); text-align: center; animation: rise .8s .1s cubic-bezier(.2,.7,.2,1) both; }
.band-copy .hello { background: rgba(255,249,240,.9); }
.hero-warm .band-copy h1 { color: #fff; font-size: clamp(30px, 4.4vw, 58px); max-width: 16em; margin: 0 auto; text-shadow: 0 2px 18px rgba(40,20,0,.55), 0 1px 3px rgba(0,0,0,.4); }
.hero-credit { position: absolute; right: 12px; top: 8px; font-size: 11px; color: rgba(255,255,255,.8); text-shadow: 0 1px 2px rgba(0,0,0,.6); text-decoration: none; z-index: 1; }
.hero-credit:hover { text-decoration: underline; }
.has-photo .hero-grid { margin-top: -36px; align-items: start; }
.has-photo .hero-copy { background: var(--surface); border-radius: 20px; padding: 28px 30px; box-shadow: 0 2px 4px rgba(80,40,0,.05), 0 24px 48px -22px rgba(80,40,0,.35); }
.has-photo .hero-copy .lead { margin-top: 10px; }
.has-photo .hero-points li { background: var(--brass-soft); }
@media (max-width: 860px) {
  .hero-band { height: 380px; }
  .hero-photo:not(.hero-slide) { background-image: var(--hero-img-m); background-position: 45% 40%; }
  .hero-dots { bottom: 44px; }
  .hero-warm .band-copy h1 { font-size: 28px; }
  .has-photo .hero-grid { margin-top: -28px; }
  .has-photo .hero-copy { padding: 22px 20px; }
}
.hero-scene { position: absolute; inset: auto 0 0 0; height: 190px; pointer-events: none; }
.hero-scene svg { width: 100%; height: 100%; display: block; }
.hero-scene .sun { fill: var(--sun-c); opacity: .85; transform-origin: 930px 96px; animation: sun-glow 6s ease-in-out infinite alternate; }
.hero-scene .sky-back { fill: var(--bld-back); }
.hero-scene .sky-front { fill: var(--bld-front); }
.hero-scene .sky-win { fill: var(--bld-win); opacity: .9; animation: win-twinkle 4s steps(2) infinite alternate; }
@keyframes sun-glow { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes win-twinkle { from { opacity: .95; } to { opacity: .6; } }
.hero-warm .hero-grid { position: relative; align-items: center; }
.hero-copy > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; } .hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; } .hero-copy > :nth-child(5) { animation-delay: .24s; } .hero-copy > :nth-child(6) { animation-delay: .3s; }
.hero-warm .search-card { animation: rise .8s .15s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hello {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 16px;
  background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid color-mix(in srgb, var(--brass) 35%, transparent);
  border-radius: 999px; padding: 6px 16px; font-size: 14px; font-weight: 600; color: var(--brass);
}
.hello i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }
.hero-warm h1 { color: var(--jade); }
.hero-points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.hero-points li {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2);
  background: color-mix(in srgb, var(--surface) 72%, transparent); border-radius: 999px; padding: 6px 14px 6px 8px;
}
.hero-points li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--brass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.hero-talk { margin-top: 26px; }
.hero-talk-label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.hero-talk-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-talk .btn { border-radius: 999px; padding: 10px 18px; box-shadow: 0 6px 16px -10px rgba(60,30,0,.5); }
.hero-talk .btn:hover { transform: translateY(-2px); }
.hero-talk .btn-ghost { background: var(--surface); }
.hero-warm .search-card { border-radius: 20px; border-top: 4px solid var(--brass); padding: 24px; box-shadow: 0 2px 4px rgba(80,40,0,.05), 0 24px 48px -22px rgba(80,40,0,.35); }
.search-title { font-size: 24px; color: var(--ink); margin-bottom: 2px; }
.quick-areas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.quick-areas span { margin-right: 2px; }
.quick-areas button {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); font: inherit; font-size: 13px;
  border-radius: 999px; padding: 5px 12px; cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.quick-areas button:hover { border-color: var(--brass); color: var(--brass); background: var(--brass-soft); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-warm { --sky-top: #0e1224; --sky-mid: #1d1a2c; --sky-low: #2e2230; --sun-c: #e0a25a; --bld-back: #2a2438; --bld-front: #181526; --bld-win: #f3c77a; }
}
:root[data-theme="dark"] .hero-warm { --sky-top: #0e1224; --sky-mid: #1d1a2c; --sky-low: #2e2230; --sun-c: #e0a25a; --bld-back: #2a2438; --bld-front: #181526; --bld-win: #f3c77a; }
.search-card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.search-card .full { grid-column: 1 / -1; }
.seg { display: flex; background: var(--sunk); border-radius: 10px; padding: 4px; gap: 4px; }
.seg button { flex: 1; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 9px 6px; border-radius: 7px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--jade); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
@media (max-width: 860px) {
  .hero { padding-block: 32px 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-warm { padding-block: 28px 110px; }
  .hero-scene { height: 120px; }
  .hero-talk-btns .btn { flex: 1 1 auto; }
}
@media (max-width: 480px) { .search-card { grid-template-columns: 1fr; padding: 16px; } }

/* ---------- Sections ---------- */
.section { padding-block: 64px; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); }
.section-head p { margin: 6px 0 0; color: var(--muted); max-width: 40em; }
@media (max-width: 600px) { .section { padding-block: 44px; } }

/* ---------- Property cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--sunk); max-width: 100%; }
.card-media img, .card-media svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.tags { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; right: 12px; }
.tag { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 6px; background: var(--surface); color: var(--ink); line-height: 1.3; }
.tag-sale { background: var(--jade); color: var(--jade-ink); }
.tag-rent { background: var(--brass); color: #1b1407; }
.tag-sample { background: color-mix(in srgb, var(--ink) 78%, transparent); color: var(--paper); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.price { font-family: var(--display); font-size: 24px; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.price small { font-family: var(--body); font-size: 13px; color: var(--muted); }
.card h3 { font-family: var(--body); font-weight: 600; font-size: 16px; line-height: 1.4; }
.transit { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.transit::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--jade); flex: none; }
.specs { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.specs b { color: var(--ink); font-weight: 600; }
.quota { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.quota.yes { color: var(--ok); }
.quota::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Area line (transit-map style) ---------- */
.line-map { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; padding-top: 8px; }
.line-map::before { content: ""; position: absolute; left: 8%; right: 8%; top: 29px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--jade), var(--brass)); }
.stop { position: relative; text-align: center; padding: 0 8px; background: none; border: 0; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.stop .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--surface); border: 6px solid var(--jade); position: relative; z-index: 1; transition: transform .15s; }
.stop:hover .dot { transform: scale(1.15); border-color: var(--brass); }
.stop b { font-family: var(--display); font-weight: 400; font-size: 18px; line-height: 1.3; }
.stop .line-name { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--brass); font-weight: 600; }
.stop-txt { display: flex; flex-direction: column; gap: 4px; align-items: inherit; }
.stop p { font-size: 14px; color: var(--muted); margin: 0; }
.stop .count { font-size: 12px; font-weight: 600; color: var(--jade); }
@media (max-width: 860px) {
  .line-map { grid-template-columns: 1fr; gap: 0; padding-left: 4px; }
  .line-map::before { left: 17px; right: auto; top: 20px; bottom: 20px; width: 6px; height: auto; background: linear-gradient(180deg, var(--jade), var(--brass)); }
  .stop { flex-direction: row; text-align: left; align-items: flex-start; padding: 10px 0; gap: 16px; }
  .stop .dot { flex: none; }
  .stop-txt { display: flex; flex-direction: column; gap: 2px; }
}

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.why h3 { font-size: 22px; margin-bottom: 8px; }
.why p { margin: 0; color: var(--ink-2); }
.why .n { font-family: var(--display); font-size: 15px; color: var(--brass); display: block; margin-bottom: 10px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
@media (max-width: 800px) { .why { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Guide teaser / CTA ---------- */
.band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.band h2 { font-size: clamp(26px, 3.2vw, 38px); margin-block: 10px 14px; }
.band p { color: var(--ink-2); margin: 0 0 22px; max-width: 38em; }
.quota-meter { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.quota-meter .bar { display: flex; height: 44px; border-radius: 8px; overflow: hidden; margin-block: 12px; font-size: 13px; font-weight: 600; }
.quota-meter .bar span { display: flex; align-items: center; padding-inline: 12px; }
.quota-meter .bar .f { width: 49%; background: var(--jade); color: var(--jade-ink); }
.quota-meter .bar .t { flex: 1; background: var(--sunk); color: var(--ink-2); justify-content: flex-end; }
.quota-meter small { color: var(--muted); font-size: 13px; }
@media (max-width: 800px) { .band { grid-template-columns: 1fr; gap: 24px; } }
.cta { background: var(--jade); color: var(--jade-ink); border-radius: 16px; padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(24px, 3vw, 34px); }
.cta p { margin: 8px 0 0; opacity: .88; max-width: 36em; }
.cta .btn { background: var(--paper); color: var(--ink); }
@media (max-width: 600px) { .cta { padding: 26px 20px; } }

/* ---------- Listings page ---------- */
.page-head { padding-block: 40px 20px; }
.page-head h1 { font-size: clamp(30px, 4vw, 46px); }
.listing-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; padding-bottom: 64px; }
.filters { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .count { font-weight: 600; font-variant-numeric: tabular-nums; }
.toolbar select { width: auto; }
.filters-toggle { display: none; }
.empty { padding: 48px 24px; text-align: center; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }
@media (max-width: 900px) {
  .listing-layout { grid-template-columns: 1fr; gap: 16px; }
  .filters { position: static; display: none; }
  .filters.open { display: flex; }
  .filters-toggle { display: inline-flex; }
}

/* ---------- Detail ---------- */
.back { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; font-size: 14px; color: var(--ink-2); margin-block: 24px 16px; }
.back:hover { color: var(--jade); }
.detail > * { min-width: 0; }
.detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 36px; align-items: start; padding-bottom: 64px; }
.gallery-main { border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--sunk); position: relative; max-width: 100%; }
.gallery-main img, .gallery-main svg { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.thumbs button { flex: none; width: 88px; aspect-ratio: 4/3; border: 2px solid transparent; border-radius: 6px; padding: 0; overflow: hidden; cursor: pointer; background: var(--sunk); }
.thumbs button[aria-pressed="true"] { border-color: var(--jade); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail h1 { font-size: clamp(26px, 3.4vw, 38px); margin-block: 12px 8px; }
.detail .price { font-size: 32px; }
.detail h2 { font-size: 22px; margin-block: 32px 12px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.facts div { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.facts div:nth-child(odd) { border-right: 1px solid var(--line); }
.facts dt { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.feat-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.feat-list li { background: var(--jade-soft); color: var(--ink); border-radius: 6px; padding: 6px 12px; font-size: 14px; }
.ask { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.ask h3 { font-size: 22px; }
.ask .id { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; background: var(--brass-soft); color: var(--ink); padding: 3px 8px; border-radius: 5px; align-self: flex-start; }
.ask .btn { width: 100%; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } .ask { position: static; } }
@media (max-width: 420px) { .facts { grid-template-columns: 1fr; } .facts div:nth-child(odd) { border-right: 0; } }

/* ---------- Guide ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: 26px; margin-block: 44px 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; display: flex; flex-direction: column; gap: 10px; }
.prose b { color: var(--ink); }
.guide-intro { font-size: 18px; color: var(--ink-2); max-width: 44em; }
.table-wrap { overflow-x: auto; }
.guide-table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.guide-table th, .guide-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide-table th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--sunk); }
.guide-note { font-size: 14px; color: var(--muted); }
.steps { list-style: none; padding: 0; counter-reset: s; display: flex; flex-direction: column; gap: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 22px 52px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--jade); color: var(--jade-ink); display: grid; place-items: center; font-family: var(--display); font-size: 17px; }
.steps li::after { content: ""; position: absolute; left: 16px; top: 36px; bottom: 2px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.disclaimer { margin-top: 40px; padding: 16px 18px; background: var(--brass-soft); border-radius: 10px; font-size: 14px; color: var(--ink-2); }

/* ---------- About / Contact ---------- */
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; padding-bottom: 64px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }
.services { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.services li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: baseline; }
.services li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); flex: none; transform: translateY(-2px); }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--jade-soft); color: var(--jade); display: grid; place-items: center; font-family: var(--display); font-size: 22px; margin-bottom: 8px; }
.person b { font-size: 16px; }
.person span { font-size: 13px; color: var(--muted); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; padding: 18px; } }
.notice { padding: 12px 14px; border-radius: 8px; font-size: 14px; }
.notice.ok { background: var(--jade-soft); color: var(--ink); }
.notice.err { background: color-mix(in srgb, var(--danger) 14%, var(--surface)); color: var(--ink); }
.contact-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.contact-list div { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.contact-list div:last-child { border-bottom: 0; }
.contact-list dt { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.contact-list dd { margin: 0; font-weight: 600; user-select: all; word-break: break-word; }
.copy { border: 1px solid var(--line); background: none; color: var(--ink-2); font: inherit; font-size: 12px; padding: 4px 10px; border-radius: 6px; cursor: pointer; }
.quick { display: flex; gap: 10px; flex-wrap: wrap; margin-block: 16px; }
.quick .btn { flex: 1; min-width: 140px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-block: 48px 32px; margin-top: 0; }
.site-footer a { color: var(--paper); opacity: .85; text-decoration: none; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.site-footer .brand-mark { color: var(--paper); }
.foot-small { margin-top: 36px; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); font-size: 13px; opacity: .7; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Floating chat buttons ---------- */
.float-chat { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 10px; z-index: 30; }
.float-chat a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.25); text-decoration: none; font-weight: 700; font-size: 13px; }
.float-chat .l { background: #06c755; }
.float-chat .w { background: #1f9d55; }

/* ---------- Knowledge articles ---------- */
.learn-tabs { margin-top: 20px; }
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.art-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.art-card:hover { box-shadow: 0 14px 32px -18px rgba(80,40,0,.35); transform: translateY(-2px); }
.art-card h3 { margin: 0; font-size: 18px; line-height: 1.35; }
.art-card p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; flex: 1; }
.art-cat { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brass, #a8742f); }
.art-more { font-weight: 600; font-size: 14px; color: var(--jade, #0f2f86); }
.article { max-width: 780px; }
.article h1 { margin: 8px 0 0; line-height: 1.25; }
.art-meta { font-size: 13px; color: var(--ink-2); margin: 8px 0; }
.art-meta a { color: inherit; }
.art-note { margin: 14px 0 6px; padding: 12px 16px; border-radius: 12px; background: var(--brass-soft, #f6ead6); font-size: 14px; }
.article .prose h3 { margin-top: 26px; }
.art-card h3, .article h1 { max-width: none; }

.offer-email { margin: 14px 0 6px; font-size: 16px; }
.offer-email a { color: var(--jade, #0f2f86); }
.freead-band { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 18px 22px; border-radius: 16px; background: var(--brass-soft, #f6ead6); color: inherit; text-decoration: none; border: 1px solid var(--line); }
.freead-band b { font-size: 17px; flex: 1; min-width: 200px; }
.freead-band span:last-child { font-weight: 600; color: var(--jade, #0f2f86); }
.art-video { margin: 18px 0 8px; }
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.vid-card .video { margin: 0; }
.vid-card .video-link { display: none; }
.vid-title { display: block; margin-top: 10px; font-weight: 600; color: inherit; text-decoration: none; line-height: 1.4; }
.vid-title:hover { color: var(--jade, #0f2f86); }
