/* Tâm – Nhà Đất Hà Nội · base stylesheet
   Structure and components shared by every style. Each style in css/themes/ sets the
   custom properties below and adds its own opening section and details. */

*, *::before, *::after { box-sizing: border-box; }

:root {
  /* colour */
  --bg: #fff; --bg-2: #f4f5f6; --surface: #fff;
  --ink: #181c20; --ink-2: #4c545e; --ink-3: #6f7782;
  --line: #e1e4e8; --line-2: #cfd4da;
  --brand: #c81e2e; --brand-2: #a51422; --brand-ink: #fff; --brand-soft: #fdecee;
  --ok: #0a6b43; --ok-soft: #e5f3ec; --warn: #7a4f00; --warn-soft: #fdf3dc;
  --scrim: rgb(0 0 0 / .55);
  /* type */
  --font-body: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: var(--font-body);
  --font-num: var(--font-body);
  --fw-display: 700; --ls-display: -0.02em; --lh-display: 1.12; --tt-display: none;
  --fs-h1: clamp(2rem, 1.1rem + 3.4vw, 3.75rem);
  --fs-h2: clamp(1.5rem, 1.15rem + 1.4vw, 2.25rem);
  --fs-h3: 1.125rem;
  --fs-lede: clamp(1.05rem, .98rem + .35vw, 1.25rem);
  /* shape */
  --r-s: 6px; --r-m: 10px; --r-l: 16px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgb(16 24 40 / .06), 0 2px 6px rgb(16 24 40 / .05);
  --sh-2: 0 6px 14px rgb(16 24 40 / .08), 0 18px 40px rgb(16 24 40 / .1);
  /* layout */
  --wrap: 1240px; --gut: clamp(16px, 4vw, 40px); --sec: clamp(56px, 7vw, 104px); --gap: clamp(16px, 2vw, 28px);
  /* components */
  --btn-h: 48px; --btn-r: var(--r-m); --btn-fw: 600; --btn-tt: none; --btn-ls: 0; --btn-fs: .95rem;
  --field-h: 48px; --field-r: var(--r-m); --field-bg: var(--surface); --field-line: var(--line-2); --field-ink: var(--ink);
  --card-r: var(--r-l); --card-bg: var(--surface); --card-line: var(--line); --card-sh: none; --card-ratio: 4 / 3; --card-pad: 16px 16px 14px;
  --chip-r: var(--r-pill);
  --header-bg: var(--bg); --header-ink: var(--ink); --header-line: var(--line); --header-h: 72px;
  --footer-bg: #14181c; --footer-ink: #fff; --footer-ink-2: rgb(255 255 255 / .72); --footer-line: rgb(255 255 255 / .14);
  --focus: var(--brand);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font-body); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; accent-color: var(--brand);
}
main { flex: 1 0 auto; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--fw-display); letter-spacing: var(--ls-display); line-height: var(--lh-display); text-transform: var(--tt-display); text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
p { text-wrap: pretty; }
b, strong { font-weight: 600; }
::selection { background: var(--brand); color: var(--brand-ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
html { scrollbar-color: var(--line-2) transparent; }
[hidden] { display: none !important; }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 18px; background: var(--ink); color: var(--bg); border-radius: var(--r-m); text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- icons, brand mark ---------- */
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mark { width: 40px; height: 40px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mark-roof { stroke: var(--mark-roof, var(--brand)); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-text { display: grid; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: var(--fw-display); letter-spacing: var(--ls-display); }
.brand--art { gap: 0; }
.brand-logo { display: block; height: 52px; width: auto; }
.site-footer .brand-logo { height: 62px; }
.brand-sub { font-size: .72rem; color: var(--brand-sub, var(--ink-2)); letter-spacing: .04em; white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--btn-h); padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--btn-r); font-family: var(--btn-font, inherit); font-size: var(--btn-fs); font-weight: var(--btn-fw);
  letter-spacing: var(--btn-ls); text-transform: var(--btn-tt); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn-line { background: var(--btn-line-bg, transparent); color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--ink); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); background: var(--bg-2); }
.btn[disabled], .btn[aria-busy='true'] { opacity: .6; pointer-events: none; }
.more-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--link, var(--brand)); white-space: nowrap; }
.more-link .i { transition: transform .25s var(--ease); }
.more-link:hover .i { transform: translateX(4px); }
.hbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 10px; border-radius: var(--r-m); text-decoration: none; font-size: .85rem; font-weight: 600; color: inherit; }
.hbtn:hover { background: color-mix(in srgb, currentColor 9%, transparent); }

/* ---------- chips, badges, tags ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--chip-r); background: var(--surface); font-size: .9rem; text-decoration: none; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.chip:hover { border-color: var(--ink); }
.chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.chip--active { background: var(--brand-soft); border-color: transparent; color: var(--ink); }
.chip--active .i { width: 1em; height: 1em; }
.chip-clear { align-self: center; margin-left: 4px; font-size: .9rem; color: var(--ink-2); }
.badge { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: var(--badge-r, var(--r-s)); background: var(--surface); color: var(--ink); font-size: .75rem; font-weight: 600; letter-spacing: .01em; }
.badge--sale, .badge--rent { background: var(--badge-bg, var(--ink)); color: var(--badge-ink, #fff); }
.badge--deposit { background: var(--warn-soft); color: var(--warn); }
.badge--done { background: var(--ink); color: var(--bg); }
.badge--tour { gap: 4px; background: var(--brand); color: var(--brand-ink, #fff); }
.badge--tour .i { width: 14px; height: 14px; }
.badge--sample { background: rgb(255 255 255 / .9); color: #3b4148; border: 1px dashed #8a919b; }
.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: var(--r-s); background: var(--bg-2); color: var(--ink-2); font-size: .8rem; }

/* ---------- form controls ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field-l, .ff-l, .qs-l { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.field-l output { font-weight: 400; color: var(--ink); float: right; font-variant-numeric: tabular-nums; }
input[type='text'], input[type='tel'], input[type='search'], input[type='date'], input[type='number'], input[type='password'], input[type='email'], select, textarea {
  width: 100%; min-height: var(--field-h); padding: 10px 14px; border: 1px solid var(--field-line); border-radius: var(--field-r);
  background: var(--field-bg); color: var(--field-ink); outline-offset: 0; transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); border-color: var(--focus); }
input[aria-invalid='true'], textarea[aria-invalid='true'] { border-color: #c0261c; }
select { appearance: none; padding-right: 40px; cursor: pointer; text-overflow: ellipsis; }
.qs-c { position: relative; display: flex; align-items: center; min-width: 0; }
.qs-c > .i-chevron-down { position: absolute; right: 12px; pointer-events: none; color: var(--ink-2); }
.qs-c > .i-search { position: absolute; left: 12px; pointer-events: none; color: var(--ink-3); }
.qs-c > .i-search + input { padding-left: 40px; }
input[type='range'] { width: 100%; height: 28px; cursor: pointer; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.form { display: grid; gap: 14px; }
.form h2 { font-size: 1.25rem; }
.form-note { font-size: .8rem; color: var(--ink-3); }
.form-status { font-size: .92rem; }
.form-status:empty { display: none; }
.form-status.is-error { padding: 10px 14px; border-radius: var(--r-m); background: #fdecea; color: #8c1d14; }
.form-done { display: grid; gap: 8px; padding: 22px; border-radius: var(--r-l); background: var(--ok-soft); color: var(--ok); }
.form-done h3 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; }
.form-done p { color: var(--ink); }
.field-error { font-size: .82rem; color: #b3261e; }
.seg { display: grid; gap: 6px; }
.seg legend { margin-bottom: 6px; }
.seg label, .qs-tabs label { position: relative; display: inline-flex; }
.seg { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; }
.seg input, .qs-tabs input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { flex: 1; display: flex; align-items: center; justify-content: center; min-height: var(--field-h); border: 1px solid var(--field-line); background: var(--field-bg); font-weight: 600; font-size: .92rem; }
.seg label:first-of-type span { border-radius: var(--field-r) 0 0 var(--field-r); }
.seg label:last-of-type span { border-radius: 0 var(--field-r) var(--field-r) 0; border-left: 0; }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.seg label:has(input:focus-visible) span, .qs-tabs label:has(input:focus-visible) span { outline: 2px solid var(--focus); outline-offset: 2px; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--header-bg); color: var(--header-ink); border-bottom: 1px solid var(--header-line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav a { padding: 10px 14px; border-radius: var(--r-m); font-family: var(--nav-font, inherit); font-size: var(--nav-fs, .95rem); font-weight: var(--nav-fw, 500); letter-spacing: var(--nav-ls, 0); text-transform: var(--nav-tt, none); text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s; }
.nav a:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.nav a[aria-current] { color: var(--nav-active, var(--brand)); }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav + .header-actions { margin-left: 0; }
.header-cta { margin-left: 8px; min-height: 44px; padding: 0 16px; font-variant-numeric: tabular-nums; }
.saved-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: var(--brand-ink); font-size: .68rem; line-height: 18px; text-align: center; }
.nav-toggle { display: none; }
.mobile-menu { border-top: 1px solid var(--header-line); background: var(--header-bg); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.mobile-menu nav { display: grid; padding-block: 12px 24px; }
.mobile-menu nav > a { padding: 14px 4px; border-bottom: 1px solid var(--header-line); text-decoration: none; font-size: 1.05rem; font-weight: 500; }
.mobile-menu-cta { display: grid; gap: 10px; margin-top: 18px; }
@media (max-width: 1240px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 620px) {
  :root { --header-h: 60px; }
  .header-cta span { display: none; }
  .header-cta { width: 44px; padding: 0; margin-left: 4px; }
  .lang-link span { display: none; }
  .brand-name { font-size: 1.3rem; }
  .mark { width: 34px; height: 34px; }
  .brand-logo { height: 40px; }
}

/* ---------- footer ---------- */
.site-footer { margin-top: var(--sec); padding-top: clamp(40px, 6vw, 72px); background: var(--footer-bg); color: var(--footer-ink); --ink-2: var(--footer-ink-2); --brand-sub: var(--footer-ink-2); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px clamp(24px, 4vw, 64px); }
.footer-brand p { margin-top: 16px; max-width: 34ch; color: var(--footer-ink-2); font-size: .95rem; }
.site-footer h2 { margin-bottom: 14px; font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--footer-ink-2); }
.site-footer li + li { margin-top: 10px; }
.site-footer li a, .site-footer li { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: clamp(32px, 5vw, 56px); padding-block: 20px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--footer-line); font-size: .82rem; color: var(--footer-ink-2); }
.footer-base p:last-child { max-width: 70ch; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 760px) { .site-footer { padding-bottom: 72px; } }

/* ---------- quick search ---------- */
.qs { display: grid; gap: 0; }
.qs-tabs { display: flex; gap: 4px; }
.qs-tabs span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: var(--r-m) var(--r-m) 0 0; font-weight: 600; font-size: .95rem; color: var(--qs-tab-ink, inherit); background: var(--qs-tab-bg, transparent); transition: background-color .2s, color .2s; }
.qs-tabs input:checked + span { background: var(--qs-bg, var(--surface)); color: var(--qs-tab-on, var(--brand)); }
.qs-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: end; gap: 12px; padding: 16px; background: var(--qs-bg, var(--surface)); border-radius: 0 var(--r-l) var(--r-l) var(--r-l); box-shadow: var(--qs-sh, var(--sh-2)); color: var(--ink); }
.qs-f { display: grid; gap: 4px; min-width: 0; }
.qs-go { min-width: 140px; }
.qs--stack .qs-fields { grid-template-columns: 1fr 1fr; }
.qs--stack .qs-go, .qs--stack .qs-f--q { grid-column: 1 / -1; }
.qs-sentence { font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1.6vw, 2.1rem); line-height: 1.7; }
.qs--sentence { gap: 20px; justify-items: start; }
.qs--sentence .qs-c { display: inline-flex; vertical-align: baseline; }
.qs--sentence select { width: auto; min-height: 0; padding: 0 1.3em 0 0; border: 0; border-bottom: 2px solid currentColor; border-radius: 0; background: transparent; color: var(--link, var(--brand)); font: inherit; }
.qs--sentence .qs-c > .i-chevron-down { right: 0; width: .8em; height: .8em; color: inherit; }
@media (max-width: 620px) {
  .qs-fields { grid-template-columns: 1fr 1fr; padding: 12px; gap: 10px; }
  .qs-go, .qs-f--q { grid-column: 1 / -1; }
}

/* ---------- sections ---------- */
.section { padding-block: calc(var(--sec) / 2); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head p { margin-top: 10px; max-width: 60ch; color: var(--ink-2); font-size: var(--fs-lede); }
.hero { position: relative; }
.hero-lede { max-width: 56ch; font-size: var(--fs-lede); }

/* ---------- listing cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: var(--gap); }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--card-bg); border: 1px solid var(--card-line); border-radius: var(--card-r); box-shadow: var(--card-sh); overflow: hidden; transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s; }
.card:hover { box-shadow: var(--card-sh-hover, var(--sh-2)); transform: translateY(var(--card-lift, -3px)); }
.card:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.card-media { position: relative; aspect-ratio: var(--card-ratio); background: var(--bg-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-noimg { display: grid; place-items: center; width: 100%; height: 100%; color: var(--ink-3); }
.card-noimg .i { width: 48px; height: 48px; stroke-width: 1.1; }
.card-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 68px); }
.card-count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--r-pill); background: var(--scrim); color: #fff; font-size: .78rem; font-variant-numeric: tabular-nums; }
.card-count .i { width: 1em; height: 1em; }
.save-btn { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgb(255 255 255 / .94); color: #22262b; box-shadow: 0 1px 3px rgb(0 0 0 / .18); transition: transform .2s var(--ease), color .2s; }
.save-btn:hover { transform: scale(1.08); }
.save-btn[aria-pressed='true'] { color: var(--save-on, #d7263d); }
.save-btn[aria-pressed='true'] .i, .btn[aria-pressed='true'] .i-heart { fill: currentColor; }
.btn[aria-pressed='true'] { color: var(--save-on, #d7263d); border-color: currentColor; }
.card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: var(--card-pad); }
.card-price, .listing-price { font-family: var(--font-num); font-variant-numeric: tabular-nums; line-height: 1.1; }
.card-price b { font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; }
.card-price .unit { font-size: 1rem; font-weight: 600; }
.card-ppm { margin-top: -4px; font-size: .82rem; color: var(--ink-3); }
.card-title { font-family: var(--card-title-font, var(--font-body)); font-size: 1.02rem; font-weight: var(--card-title-fw, 600); letter-spacing: 0; line-height: 1.35; text-transform: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card-title a:focus-visible { outline: none; }
.card-loc { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: .9rem; }
.card-loc .i { width: 1.05em; height: 1.05em; color: var(--ink-3); }
.card-loc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--card-line); font-size: .9rem; color: var(--ink-2); }
.card-facts li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.card-facts b { color: var(--ink); font-variant-numeric: tabular-nums; }
.card-facts .i { color: var(--ink-3); }
.card-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; font-size: .78rem; color: var(--ink-3); }
.vetted { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); font-weight: 600; }
.vetted .i { width: 1.15em; height: 1.15em; }
.card-code { margin-left: auto; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.card.is-done .card-media img { filter: grayscale(.7); opacity: .85; }

/* list view */
.cards[data-view='list'] { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .cards[data-view='list'] .card { flex-direction: row; }
  .cards[data-view='list'] .card-media { flex: 0 0 clamp(240px, 32%, 380px); aspect-ratio: auto; min-height: 220px; }
  .cards[data-view='list'] .save-btn { right: auto; left: calc(clamp(240px, 32%, 380px) - 50px); }
  .cards[data-view='list'] .card-body { padding: 20px 24px; }
  .cards[data-view='list'] .card-title { font-size: 1.2rem; }
}

/* ---------- areas ---------- */
.area-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.area { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); text-decoration: none; transition: border-color .2s, background-color .2s, transform .25s var(--ease); }
.area:hover { border-color: var(--ink); transform: translateY(-2px); }
.area-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: var(--fw-display); letter-spacing: var(--ls-display); text-transform: var(--tt-display); }
.area-count { grid-column: 1; font-size: .88rem; color: var(--ink-2); }
.area .i { grid-column: 2; grid-row: 1 / 3; color: var(--ink-3); transition: transform .25s var(--ease), color .2s; }
.area:hover .i { transform: translateX(4px); color: var(--brand); }

/* ---------- vetting ---------- */
.vetting { background: var(--vet-bg, var(--bg-2)); }
.vet-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.vet-steps--col { grid-template-columns: 1fr; align-content: start; }
@media (max-width: 1080px) { .vet-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vet-steps--col { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .vet-steps { grid-template-columns: 1fr; } }
.vet-step { display: grid; gap: 14px; align-content: start; }
.vet-steps--col .vet-step { grid-template-columns: auto 1fr; gap: 16px; }
.vet-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--vet-icon-r, 50%); background: var(--vet-icon-bg, var(--surface)); color: var(--vet-icon-ink, var(--brand)); border: 1px solid var(--vet-icon-line, transparent); }
.vet-icon .i { width: 26px; height: 26px; }
.vet-step h3 { margin-bottom: 6px; }
.vet-step p { color: var(--ink-2); font-size: .97rem; }

/* ---------- about ---------- */
.about-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(24px, 5vw, 80px); }
.about-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--about-r, var(--r-l)); }
.about-text { display: grid; gap: 16px; justify-items: start; }
.about-text > p { max-width: 58ch; font-size: var(--fs-lede); color: var(--ink-2); }
.about-text h3 { margin-top: 8px; }
.contact-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.contact-btns--stack { display: grid; grid-template-columns: 1fr 1fr; }
.contact-btns--stack .btn { padding-inline: 10px; }
@media (max-width: 760px) { .about-inner { grid-template-columns: 1fr; } .about-photo { max-width: 340px; } }

/* ---------- brief, owners, faq ---------- */
.brief-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.brief-text p { margin-top: 12px; color: var(--ink-2); font-size: var(--fs-lede); max-width: 44ch; }
.brief-form { grid-template-columns: 1fr 1fr; padding: clamp(18px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.brief-form > .seg, .brief-form > .field--wide, .brief-form > .btn, .brief-form > .form-note, .brief-form > .form-status, .brief-form > .form-done { grid-column: 1 / -1; }
.owners-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px; padding: clamp(24px, 4vw, 48px); border-radius: var(--owners-r, var(--r-l)); background: var(--owners-bg, var(--ink)); color: var(--owners-ink, var(--bg)); }
.owners-inner p { margin-top: 10px; max-width: 56ch; color: var(--owners-ink-2, color-mix(in srgb, currentColor 78%, transparent)); }
.faq-inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 80px); }
.faq-inner .section-head { margin: 0; align-items: start; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 1.05rem; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .i { color: var(--ink-3); transition: transform .3s var(--ease); }
.faq-item[open] summary .i { transform: rotate(45deg); }
.faq-item p { padding: 0 0 20px; max-width: 66ch; color: var(--ink-2); }
@media (max-width: 820px) { .brief-inner, .faq-inner { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .brief-form { grid-template-columns: 1fr; } }

/* ---------- results ---------- */
.results-top { padding-top: 20px; background: var(--results-top-bg, var(--bg-2)); border-bottom: 1px solid var(--line); }
.purpose-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.purpose-tabs::-webkit-scrollbar { display: none; }
.purpose-tabs a { flex: none; white-space: nowrap; padding: 10px clamp(12px, 3vw, 18px); border-radius: var(--r-m) var(--r-m) 0 0; font-weight: 600; text-decoration: none; color: var(--ink-2); }
.purpose-tabs a[aria-current] { background: var(--surface); color: var(--brand); box-shadow: inset 0 2px 0 var(--brand); }
.filters-bar { display: grid; grid-template-columns: minmax(180px, 2fr) repeat(3, minmax(120px, 1fr)) auto auto; align-items: end; gap: 12px; padding: 16px; background: var(--surface); border-radius: 0 var(--r-l) 0 0; }
.ff { display: grid; gap: 4px; min-width: 0; }
.filters-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-size: .72rem; }
.filters-panel { background: var(--surface); border-top: 1px solid var(--line); }
.filters-panel-head { display: none; }
.filters-panel-body { display: grid; gap: 22px; padding: 22px 16px; }
.filters-panel legend { margin-bottom: 10px; font-weight: 600; font-size: .92rem; }
.ff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.filters-panel-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); }
.results-body { padding-top: clamp(20px, 3vw, 36px); }
.results-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; margin-bottom: 18px; }
.results-head h1 { font-size: var(--fs-h2); }
.results-count { margin-top: 6px; color: var(--ink-2); }
.results-tools { display: flex; align-items: center; gap: 10px; }
.sort select { min-height: 44px; min-width: 190px; }
.view-toggle { display: flex; border: 1px solid var(--line-2); border-radius: var(--r-m); overflow: hidden; }
.view-toggle a { display: grid; place-items: center; width: 44px; height: 42px; color: var(--ink-2); }
.view-toggle a + a { border-left: 1px solid var(--line-2); }
.view-toggle a[aria-current] { background: var(--ink); color: var(--bg); }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.empty { display: grid; justify-items: start; gap: 12px; padding: clamp(28px, 5vw, 56px); border: 1px dashed var(--line-2); border-radius: var(--r-l); }
.empty p { max-width: 58ch; color: var(--ink-2); }
.empty-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 36px; }
.pager > :last-child { justify-self: end; }
.pager-n { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.results-body.is-map .results-main { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.results-body.is-map .cards { grid-template-columns: 1fr; max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; padding: 2px 6px 2px 2px; }
.results-map { position: sticky; top: calc(var(--header-h) + 16px); height: calc(100vh - var(--header-h) - 40px); min-height: 360px; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); }
.map { position: relative; width: 100%; height: 100%; min-height: 280px; background: var(--bg-2); z-index: 0; }
.map-status { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: var(--ink-2); }
.map-pin { padding: 3px 9px; border-radius: 999px; background: #16191d; color: #fff; border: 2px solid #fff; font: 600 12px/1.4 var(--font-body); white-space: nowrap; box-shadow: 0 2px 6px rgb(0 0 0 / .3); cursor: pointer; }
.map-pin:hover, .map-pin.is-on { background: var(--map-accent, var(--brand)); color: var(--map-accent-ink, var(--brand-ink)); z-index: 2; }
.map-dot { display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--map-accent, var(--brand)); border: 3px solid #fff; box-shadow: 0 2px 6px rgb(0 0 0 / .35); }
.maplibregl-map { font-family: var(--font-body); }
.maplibregl-popup-content { padding: 10px; border-radius: 10px; box-shadow: 0 8px 24px rgb(0 0 0 / .22); }
.map-pop { display: grid; grid-template-columns: 84px 1fr; gap: 10px; align-items: center; width: 250px; color: #181c20; text-decoration: none; font-family: var(--font-body); }
.map-pop img { width: 84px; height: 64px; object-fit: cover; border-radius: 6px; }
.map-pop b { display: block; font-size: 15px; }
.map-pop span { display: block; font-size: 12.5px; line-height: 1.35; color: #4c545e; }
@media (max-width: 900px) {
  .filters-bar { grid-template-columns: 1fr 1fr; }
  .filters-bar .ff--q, .filters-go { grid-column: 1 / -1; }
  .filters-bar .ff--min, .filters-bar .ff--max, .filters-bar .ff--beds { display: none; }
  .filters-more { grid-column: 1 / -1; }
  .results-body.is-map .results-main { grid-template-columns: 1fr; }
  .results-body.is-map .cards { order: 2; max-height: none; overflow: visible; }
  .results-map { position: relative; top: 0; height: 56vh; }
  .filters-panel:not([hidden]) { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
  .filters-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .filters-panel-head h2 { font-size: 1.2rem; }
  .filters-panel-body { overflow-y: auto; overscroll-behavior: contain; }
  .filters-panel-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .filters-panel-foot .btn { flex: 1; }
}
@media (max-width: 620px) {
  .results-tools { width: 100%; justify-content: space-between; }
  .sort select { min-width: 0; }
}

/* ---------- listing page ---------- */
.listing-wrap { padding-top: 16px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; font-size: .9rem; color: var(--ink-2); }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs > * + *::before { content: '/'; margin-right: 8px; color: var(--ink-3); }
.gallery { position: relative; }
.gallery-grid { display: grid; gap: 8px; height: clamp(280px, 44vw, 560px); border-radius: var(--gallery-r, var(--r-l)); overflow: hidden; }
.g-item { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--bg-2); cursor: zoom-in; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .3s; }
.g-item:hover img { transform: scale(1.03); }
.g-item:focus-visible { outline-offset: -3px; }
.g-n2 .gallery-grid { grid-template-columns: 1fr 1fr; }
.g-n3 .gallery-grid { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.g-n4 .gallery-grid, .g-n5 .gallery-grid { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.g-n3 .g-item:first-child, .g-n4 .g-item:first-child, .g-n5 .g-item:first-child { grid-row: 1 / 3; }
.g-n4 .g-item:nth-child(2) { grid-column: 2 / 4; }
.gallery-badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; }
.gallery-badges .badge { min-height: 30px; font-size: .82rem; box-shadow: var(--sh-1); }
.gallery-all { position: absolute; right: 14px; bottom: 14px; min-height: 42px; background: rgb(255 255 255 / .95); color: #181c20; box-shadow: var(--sh-1); }
.listing-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: clamp(24px, 4vw, 64px); align-items: start; margin-top: clamp(20px, 3vw, 36px); }
.listing-main { display: grid; gap: clamp(24px, 3vw, 32px); min-width: 0; }
.listing-main > .l-sec:not(.calc) { padding-top: clamp(24px, 3vw, 32px); border-top: 1px solid var(--line); }
.listing-aside { position: sticky; top: calc(var(--header-h) + 16px); }
.listing-head { display: grid; gap: 12px; }
.listing-head h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); }
.listing-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.listing-price b { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 700; letter-spacing: -.02em; }
.listing-price .unit { font-size: 1.25rem; font-weight: 600; }
.listing-ppm { color: var(--ink-2); }
.listing-loc { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 1.05rem; }
.keyfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 0; margin-top: 8px; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; background: var(--surface); }
.keyfacts li { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; padding: 12px 16px; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.keyfacts .i { grid-row: span 2; color: var(--keyfact-icon, var(--brand)); width: 24px; height: 24px; }
.keyfacts b { line-height: 1.2; }
.keyfacts b { font-family: var(--font-num); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.keyfacts span { font-size: .82rem; color: var(--ink-2); }
.listing-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.listing-actions .btn { min-height: 42px; padding: 0 14px; font-size: .9rem; }
.status-note { display: flex; gap: 10px; padding: 12px 16px; border-radius: var(--r-m); background: var(--warn-soft); color: var(--warn); font-size: .95rem; }
.status-note--sample { background: var(--bg-2); color: var(--ink-2); border: 1px dashed var(--line-2); }
.status-note .i { margin-top: 2px; }
.vetted-box { padding: clamp(18px, 3vw, 28px); border-radius: var(--r-l); background: var(--ok-soft); color: var(--ink); }
.vetted-box h2 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; color: var(--ok); }
.vetted-box h2 .i { width: 28px; height: 28px; }
.vetted-box ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 24px; margin-top: 16px; }
.vetted-box li, .feature-list li { display: flex; align-items: flex-start; gap: 10px; }
.vetted-box li .i, .feature-list li .i { margin-top: 3px; color: var(--ok); }
.vetted-date { margin-top: 14px; font-size: .88rem; color: var(--ink-2); }
.tam-note h2, .l-sec h2 { margin-bottom: 14px; font-size: 1.3rem; }
.tam-note-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tam-note-grid > div { padding: 20px 22px; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--surface); }
.tam-note-grid h3 { margin-bottom: 8px; font-size: 1rem; }
.note-good h3 { color: var(--ok); }
.note-watch h3 { color: var(--warn); }
.prose p { max-width: 68ch; color: var(--prose-ink, var(--ink)); font-size: 1.05rem; line-height: 1.7; }
.prose p + p { margin-top: 1em; }
.prose--page { padding-block: 8px; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.spec-grid > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec-grid dt { color: var(--ink-2); }
.spec-grid dd { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.video-frame { aspect-ratio: 16 / 9; border-radius: var(--r-l); overflow: hidden; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.map-addr { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--ink-2); }
.map-box .map { height: clamp(220px, 28vw, 320px); border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); }
.map-note { display: flex; gap: 8px; margin-top: 12px; font-size: .9rem; color: var(--ink-2); }
.map-box .more-link { margin-top: 12px; }

/* 3D tour */
.gallery-tour { position: absolute; left: 14px; bottom: 14px; min-height: 42px; background: rgb(255 255 255 / .95); color: #181c20; box-shadow: var(--sh-1); text-decoration: none; }
.tour-frame { aspect-ratio: 16 / 10; border-radius: var(--r-l); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.tour-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.tour-note { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 8px; margin-top: 12px; font-size: .9rem; color: var(--ink-2); }
.tour-note span { flex: 1 1 260px; }
.tour-note a { font-weight: 600; color: var(--brand); }
@media (max-width: 760px) { .tour-frame { aspect-ratio: 4 / 5; } .gallery-tour { left: 10px; bottom: 10px; } }

/* Tâm's take: vetting and notes in one block */
.tam-take { display: grid; gap: 20px; padding: clamp(18px, 3vw, 28px); border-radius: var(--r-l); }
.tam-take:not(.vetted-box) { background: var(--surface); border: 1px solid var(--line); }
.take-head { display: flex; align-items: center; gap: 14px; }
.take-head img { flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; background: var(--surface); }
.take-head h2 { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; line-height: 1.25; }
.take-head h2 .i { flex: none; width: 24px; height: 24px; }
.take-head .vetted-date { margin-top: 2px; }
.tam-take .tam-note-grid { gap: 16px clamp(24px, 4vw, 40px); }
.listing-main .tam-take .tam-note-grid > div { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.tam-take .tam-note-grid h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tam-take .tam-note-grid h3 .i { flex: none; width: 18px; height: 18px; }
.tam-take .tam-note-grid p { line-height: 1.6; }
.tam-take .take-checks { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--ok) 22%, transparent); }
.tam-take .take-checks li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--surface); font-size: .88rem; line-height: 1.3; }
.tam-take .take-checks li .i { margin: 0; width: 16px; height: 16px; }

@media (max-width: 560px) {
  .keyfacts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .keyfacts li { grid-template-columns: 1fr; padding: 12px; }
  .keyfacts .i { grid-row: auto; width: 20px; height: 20px; margin-bottom: 4px; }
  .take-head { align-items: flex-start; gap: 12px; }
  .take-head img { width: 44px; height: 44px; }
  .take-head h2 { font-size: 1.1rem; }
  .take-head h2 .i { width: 20px; height: 20px; }
}

/* details in two short groups */
.spec-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px clamp(24px, 4vw, 48px); }
.spec-group h3 { margin-bottom: 2px; font-size: 1rem; }
.spec-group .spec-grid { grid-template-columns: 1fr; }
.spec-group .spec-grid > div { padding: 10px 0; }

/* features as short tags */
.feature-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 24px; }
.features .feature-list { display: flex; flex-wrap: wrap; gap: 8px; }
.features .feature-list li { padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--bg-2); font-size: .95rem; line-height: 1.3; }
.features .feature-list li .i { margin-top: 1px; }
.calc { padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.calc-inputs { display: grid; gap: 14px; }
.calc-out { display: grid; gap: 10px; }
.calc-out > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.calc-out dt { color: var(--ink-2); }
.calc-out dd { font-family: var(--font-num); font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-out .calc-main { display: grid; gap: 2px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.calc-main dd { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); letter-spacing: -.01em; }
.calc-note { margin-top: 16px; font-size: .82rem; color: var(--ink-3); }
.enquiry-card { display: grid; gap: 16px; padding: clamp(18px, 2.4vw, 24px); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--enq-sh, var(--sh-1)); }
.agent { display: flex; align-items: center; gap: 14px; }
.agent img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.agent div { display: grid; line-height: 1.3; }
.agent b { font-size: 1.1rem; }
.agent span { font-size: .88rem; color: var(--ink-2); }
.agent--lg img { width: 96px; height: 96px; }
.enquiry { padding-top: 16px; border-top: 1px solid var(--line); }
.enquiry .chip { min-height: 34px; padding: 0 12px; font-size: .85rem; }
.similar { margin-top: calc(var(--sec) / 2); background: var(--bg-2); }
@media (max-width: 960px) {
  .listing-layout { grid-template-columns: 1fr; }
  .listing-aside { position: static; }
}
@media (max-width: 760px) {
  .gallery-grid { display: flex; height: auto; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); border-radius: 0; }
  .gallery-grid::-webkit-scrollbar { display: none; }
  .g-item { flex: 0 0 88%; aspect-ratio: 4 / 3; scroll-snap-align: center; border-radius: var(--r-m); }
  .g-n1 .g-item { flex-basis: 100%; }
  .gallery-all { right: 10px; bottom: 10px; }
  .calc-grid { grid-template-columns: 1fr; }
}

/* ---------- lightbox ---------- */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(10 12 14 / .96); color: #fff; }
.lightbox::backdrop { background: rgb(10 12 14 / .96); }
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.lightbox figure { grid-column: 2; display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: center; gap: 10px; height: 100dvh; padding: 56px 8px 18px; min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 120px); object-fit: contain; border-radius: 4px; }
.lightbox figcaption { font-size: .9rem; color: rgb(255 255 255 / .75); font-variant-numeric: tabular-nums; }
.lb-btn { display: grid; place-items: center; width: 48px; height: 48px; margin: 8px; border-radius: 50%; background: rgb(255 255 255 / .12); color: #fff; }
.lb-btn:hover { background: rgb(255 255 255 / .24); }
.lb-btn:focus-visible { outline-color: #fff; }
.lb-close { position: absolute; top: 6px; right: 6px; z-index: 2; }
@media (max-width: 620px) { .lb-prev, .lb-next { position: absolute; bottom: 12px; z-index: 2; } .lb-prev { left: 8px; } .lb-next { right: 8px; } .lightbox[open] { grid-template-columns: 1fr; } .lightbox figure { grid-column: 1; } }

/* ---------- simple pages ---------- */
.page-head { padding-block: clamp(36px, 6vw, 80px) clamp(20px, 3vw, 36px); background: var(--page-head-bg, transparent); }
.page-head p { margin-top: 14px; max-width: 60ch; font-size: var(--fs-lede); color: var(--ink-2); }
.owners-grid, .contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.owner-form, .contact-form { padding: clamp(18px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.contact-direct { display: grid; gap: 22px; }
.contact-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--ink-2); }
.contact-list dd { font-weight: 600; text-align: right; }
.notfound .wrap { display: grid; gap: 12px; justify-items: start; padding-block: clamp(40px, 8vw, 120px); }
.notfound p { color: var(--ink-2); font-size: var(--fs-lede); }
@media (max-width: 820px) { .owners-grid, .contact-grid { grid-template-columns: 1fr; } }

/* ---------- mobile bar, style bar, toast ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding-bottom: env(safe-area-inset-bottom); background: var(--mb-bg, var(--surface)); color: var(--mb-ink, var(--ink)); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgb(0 0 0 / .08); }
  .mb-item { display: grid; justify-items: center; gap: 2px; padding: 9px 4px 8px; font-size: .7rem; font-weight: 600; text-decoration: none; }
  .mb-item .i { width: 22px; height: 22px; }
  .mb-primary { background: var(--brand); color: var(--brand-ink); }
}
.style-bar { position: fixed; left: 50%; bottom: 16px; z-index: 70; display: flex; align-items: center; gap: 2px; padding: 5px; transform: translateX(-50%); border-radius: 999px; background: #14181c; color: #fff; font: 500 13px/1 system-ui, 'Segoe UI', sans-serif; box-shadow: 0 8px 28px rgb(0 0 0 / .35); white-space: nowrap; }
.style-bar a { display: inline-flex; align-items: center; gap: 6px; min-width: 36px; height: 36px; padding: 0 10px; justify-content: center; border-radius: 999px; color: #fff; text-decoration: none; }
.style-bar a:hover { background: rgb(255 255 255 / .16); }
.style-bar .i { width: 18px; height: 18px; stroke: #fff; }
.style-bar-name { padding: 0 8px; }
.style-bar-name b { margin-right: 6px; font-variant-numeric: tabular-nums; color: #ffd66b; font-weight: 600; }
.style-bar-all { margin-left: 2px; background: rgb(255 255 255 / .12); }
@media (max-width: 760px) { .style-bar { bottom: calc(70px + env(safe-area-inset-bottom)); } .style-bar-all span { display: none; } }
.toast { position: fixed; left: 50%; bottom: 84px; z-index: 80; transform: translateX(-50%); padding: 12px 18px; border-radius: var(--r-m); background: #14181c; color: #fff; font-size: .92rem; box-shadow: var(--sh-2); animation: toast-in .3s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------- embedded previews (style gallery) ---------- */
[data-embed] .site-header { position: relative; }
[data-embed] body { pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .site-header, .site-footer, .mobile-bar, .style-bar, .listing-aside, .similar, .gallery-all, .gallery-tour, .tour, .listing-actions, .save-btn { display: none !important; }
  body { background: #fff; color: #000; }
}

/* keep a licence number in one piece */
.nowrap { white-space: nowrap; }

/* ---------- landing page: Hà Nội on video, Tâm's seal stamps onto the page ---------- */
.page-landing { background: #323d2d; }
.landing { --lp-mint: #c9e0b9; position: relative; display: grid; grid-template-rows: auto 1fr auto; min-height: 100vh; min-height: 100svh; color: #fff; overflow: hidden; isolation: isolate; }
.landing-media { position: absolute; inset: 0; z-index: -2; background: #323d2d url("/assets/media/landing/hero-wide.jpg") center / cover no-repeat; }
.landing-video { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s var(--ease); }
.landing-video.is-playing { opacity: 1; }
/* the swallow's dive plays once on top, then hands over to the house loop underneath (same final frame) */
.landing-video--intro { position: absolute; inset: 0; opacity: 1; transition: none; }
.landing-video--intro.is-done { opacity: 0; transition: none; }
.landing-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgb(8 22 15 / .84) 0%, rgb(8 22 15 / .62) 34%, rgb(8 22 15 / .18) 64%, rgb(8 22 15 / 0) 82%),
  linear-gradient(0deg, rgb(8 22 15 / .72) 0%, rgb(8 22 15 / 0) 30%),
  linear-gradient(180deg, rgb(8 22 15 / .45) 0%, rgb(8 22 15 / 0) 18%); }

.landing-top { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding-block: 18px; }
.landing-link, .landing-zalo { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 14px; border-radius: 999px; color: #fff; font-size: .92rem; font-weight: 500; text-decoration: none; transition: background .2s, border-color .2s, color .2s; }
.landing-link:hover { background: rgb(255 255 255 / .1); }
.landing-zalo { border: 1px solid rgb(255 255 255 / .45); padding: 0 16px 0 13px; }
.landing-zalo:hover { background: #fff; border-color: #fff; color: var(--brand-2, #066338); }
.landing-link .i, .landing-zalo .i { width: 18px; height: 18px; }

.landing-body { align-self: center; padding-block: clamp(8px, 2vh, 32px); }
.landing-body > * { max-width: 700px; }
.landing-brand { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 22px); margin-bottom: clamp(18px, 3.4vh, 34px); }
.landing-stamp { position: relative; flex: none; width: clamp(68px, 6.6vw, 96px); transform: rotate(-4deg); }
.landing-stamp img { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 14px rgb(0 0 0 / .28)); }
.landing-stamp::after { content: ""; position: absolute; inset: 6%; border: 2px solid var(--lp-mint); border-radius: 12%; opacity: 0; pointer-events: none; }
.landing-word { display: block; filter: drop-shadow(0 2px 10px rgb(0 0 0 / .25)); height: clamp(54px, 5vw, 76px); width: auto; }
.landing h1 { font-size: clamp(2.1rem, 1.3rem + 2.9vw, 3.7rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.06; max-width: 17ch; text-wrap: balance; color: #fff; }
.landing-lede { margin-top: clamp(12px, 2vh, 18px); max-width: 46ch; font-size: clamp(1rem, .95rem + .3vw, 1.16rem); line-height: 1.55; color: rgb(255 255 255 / .86); }

/* the search card: Mua / Thuê tabs attached on top, like the rest of the site */
.landing-search { margin-top: clamp(20px, 3.6vh, 34px); color: var(--ink, #0f2219); }
.landing-body > .landing-search { max-width: 760px; }
.landing .qs { gap: 0; }
.landing .qs-tabs { position: relative; z-index: 1; gap: 4px; margin-bottom: -1px; }
.landing .qs-tabs span { position: relative; min-height: 44px; padding: 0 22px; border-radius: 16px 16px 0 0; background: rgb(255 255 255 / .16); color: #fff; font-weight: 500; font-size: .94rem; transition: background .2s, color .2s; }
.landing .qs-tabs label:hover input:not(:checked) + span { background: rgb(255 255 255 / .28); }
.landing .qs-tabs input:checked + span { background: #fff; color: var(--brand-2, #066338); font-weight: 600; }
.landing .qs-tabs input:checked + span::after { content: ""; position: absolute; right: -16px; bottom: 0; width: 16px; height: 16px; background: radial-gradient(circle at 100% 0, transparent 15.5px, #fff 16px); pointer-events: none; }
.landing .qs-tabs label:not(:first-of-type) input:checked + span::before { content: ""; position: absolute; left: -16px; bottom: 0; width: 16px; height: 16px; background: radial-gradient(circle at 0 0, transparent 15.5px, #fff 16px); pointer-events: none; }
.landing .qs-fields { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: center; gap: 0; padding: 10px 10px 10px 12px; border-radius: 0 24px 24px 24px; background: #fff; box-shadow: 0 18px 50px rgb(0 0 0 / .28); }
.landing .qs-f { gap: 0; padding: 4px 16px; border-right: 1px solid var(--line, #d9e6de); }
.landing .qs-f:has(+ .qs-go) { border-right: 0; }
.landing .qs-l { font-size: .72rem; font-weight: 400; color: var(--ink-3, #66776d); }
.landing .qs-f select { min-height: 30px; padding: 0 26px 0 0; border: 0; border-radius: 6px; background: transparent; font-weight: 500; }
.landing .qs-c > .i-chevron-down { right: 0; }
.landing .qs-go { min-height: 56px; padding: 0 28px; }

.landing-all { margin-top: 16px; }
.landing-all a { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 500; text-decoration: underline; text-decoration-color: rgb(255 255 255 / .4); text-underline-offset: 5px; }
.landing-all a:hover { text-decoration-color: #fff; }
.landing-all .i { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.landing-all a:hover .i { transform: translateX(3px); }

.landing-foot { display: flex; align-items: center; gap: 16px; padding-block: 18px 22px; border-top: 1px solid rgb(255 255 255 / .16); }
.landing-proof { display: flex; flex-wrap: wrap; gap: 8px clamp(18px, 3vw, 40px); margin: 0; padding: 0; list-style: none; font-size: .92rem; color: rgb(255 255 255 / .86); }
.landing-proof li { display: inline-flex; align-items: center; gap: 8px; }
.landing-proof .i { width: 18px; height: 18px; color: var(--lp-mint); }
.landing-pause { flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin-left: auto; border: 1px solid rgb(255 255 255 / .4); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.landing-pause[hidden] { display: none; }
.landing-pause:hover { background: rgb(255 255 255 / .12); }
.landing-pause .i { width: 16px; height: 16px; }
.landing-pause .i-play, .landing-pause[aria-pressed="true"] .i-pause { display: none; }
.landing-pause[aria-pressed="true"] .i-play { display: block; }
.landing :focus-visible { outline: 2px solid var(--lp-mint); outline-offset: 3px; }

/* one orchestrated entrance: the seal stamps down, its ink ring spreads, then the name and the rest settle in */
@media (prefers-reduced-motion: no-preference) {
  .landing-stamp { animation: lp-stamp .56s cubic-bezier(.2, .9, .25, 1) .12s both; }
  .landing-stamp::after { animation: lp-ring 1s cubic-bezier(.16, 1, .3, 1) .44s both; }
  .landing-word { animation: lp-wipe .6s cubic-bezier(.16, 1, .3, 1) .48s both; }
  .landing h1, .landing-lede, .landing-search, .landing-all, .landing-foot { animation: lp-rise .7s cubic-bezier(.16, 1, .3, 1) both; }
  .landing h1 { animation-delay: .58s; }
  .landing-lede { animation-delay: .66s; }
  .landing-search { animation-delay: .74s; }
  .landing-all { animation-delay: .82s; }
  .landing-foot { animation-delay: .9s; }
}
@keyframes lp-stamp {
  0% { opacity: 0; transform: scale(1.9) rotate(-14deg); }
  55% { opacity: 1; transform: scale(.93) rotate(-3deg); }
  72% { transform: scale(1.03) rotate(-4.6deg); }
  100% { opacity: 1; transform: scale(1) rotate(-4deg); }
}
@keyframes lp-ring { 0% { opacity: .8; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.7); } }
/* the house-number plate logo (15 Nov 2026): hangs straight, drops in and settles; its ring spreads from the plate */
.landing-stamp--plate { width: clamp(170px, 15vw, 230px); transform: none; }
.landing-stamp--plate::after { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .landing-stamp--plate { animation-name: lp-plate; }
}
@keyframes lp-plate {
  0% { opacity: 0; transform: translateY(-18px) scale(1.25); }
  55% { opacity: 1; transform: translateY(0) scale(.96); }
  75% { transform: scale(1.02); }
  100% { opacity: 1; transform: none; }
}
@media (max-width: 760px) { .landing-stamp--plate { width: 150px; } }
@keyframes lp-wipe { 0% { clip-path: inset(0 100% 0 0); opacity: .2; } 100% { clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes lp-rise { 0% { opacity: 0; transform: translateY(16px); } 100% { opacity: 1; transform: none; } }

@media (max-width: 760px), (orientation: portrait) {
  .landing-media { background-image: url("/assets/media/landing/hero-tall.jpg"); }
  .landing-shade { background: linear-gradient(0deg, rgb(8 22 15 / .92) 0%, rgb(8 22 15 / .8) 45%, rgb(8 22 15 / .58) 72%, rgb(8 22 15 / .5) 100%); }
}
@media (max-width: 760px) {
  .landing-top { gap: 2px; padding-block: 10px; }
  .landing-link:first-child { display: none; }
  .landing-body { align-self: end; padding-block: 0 8px; }
  .landing-brand { margin-bottom: 18px; }
  .landing .qs-tabs span { padding: 0 16px; }
  .landing .qs-fields { grid-template-columns: 1fr 1fr; gap: 4px 0; padding: 12px; border-radius: 0 22px 22px 22px; }
  .landing .qs-f { padding: 8px 12px; border: 0; }
  .landing .qs-f--area { grid-column: 1 / -1; border-bottom: 1px solid var(--line, #d9e6de); }
  .landing .qs-go { grid-column: 1 / -1; margin-top: 6px; }
  .landing-foot { align-items: flex-start; padding-block: 14px 18px; }
  .landing-proof { flex-direction: column; gap: 6px; font-size: .86rem; }
}

/* ---------------------------------------------------------------- local agents + property news (home page) */
.agent-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 168px), 1fr)); gap: clamp(20px, 3vw, 36px) clamp(12px, 2vw, 24px); }
.agent-card { display: grid; justify-items: center; gap: 4px; text-align: center; text-decoration: none; color: inherit; }
.agent-photo { display: block; width: clamp(92px, 11vw, 124px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line), 0 6px 16px rgb(16 24 40 / .08); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.agent-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.agent-initials { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--font-display); font-weight: var(--fw-display); font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); letter-spacing: .02em; color: var(--ink); }
.av-0 { background: #dfe9d3; } .av-1 { background: #efe6d0; } .av-2 { background: #d9e6e0; } .av-3 { background: #e8ddd2; }
.agent-name { margin-top: 10px; font-weight: 600; font-size: 1.02rem; line-height: 1.3; }
.agent-area { display: inline-flex; align-items: flex-start; justify-content: center; gap: 4px; max-width: 100%; color: var(--ink-2); font-size: .88rem; line-height: 1.35; }
.agent-area .i { width: 14px; height: 14px; margin-top: 2px; flex: none; color: var(--ink-3); }
.agent-tags { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 4px; }
.agent-tag { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--ink); font-size: .72rem; font-weight: 600; letter-spacing: .01em; }
.agent-tag--sample { background: var(--bg-2); color: var(--ink-3); font-weight: 500; }
a.agent-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 6px; border-radius: 14px; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: var(--gap); }
.news-card { min-width: 0; }
.news-link { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); text-decoration: none; color: inherit; transition: transform .3s var(--ease), border-color .2s; }
.news-media { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news-noimg { display: grid; place-items: center; width: 100%; height: 100%; color: var(--ink-3); }
.news-noimg .i { width: 36px; height: 36px; }
.news-body { display: grid; align-content: start; gap: 8px; padding: 16px 18px 20px; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; color: var(--ink-3); font-size: .8rem; }
.news-body h3 { margin: 0; font-size: 1.05rem; line-height: 1.35; font-weight: 600; }
.news-sum { margin: 0; color: var(--ink-2); font-size: .92rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-hero { margin: 0 0 24px; border-radius: var(--r-l); overflow: hidden; }
.news-hero img { width: 100%; height: auto; }
.page-head .news-meta { margin-bottom: 10px; font-size: .9rem; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  a.agent-card:hover .agent-photo { transform: translateY(-4px) scale(1.04); box-shadow: 0 0 0 2px var(--brand-2), 0 12px 24px rgb(16 24 40 / .14); }
  .news-link:hover { transform: translateY(-3px); border-color: var(--ink-3); }
  .news-link:hover .news-media img { transform: scale(1.05); }
  .news-link:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
}

.agent-initials--card { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; flex: none; font-size: 1.25rem; }
.enquiry-card .agent img { border-radius: 50%; object-fit: cover; }

/* ---------------------------------------------------------------- client accounts */
.acct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: var(--gap); align-items: start; }
.acct-card, .acct-block { padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.acct-stack { display: grid; gap: var(--gap); }
.acct-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: var(--gap); align-items: start; }
.acct-block h2, .acct-card h2 { margin-bottom: 12px; }
.acct-block .cards { margin-top: 12px; }
.acct-msg { max-width: 520px; display: grid; gap: 16px; }
.acct-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: var(--gap); padding: 14px 18px; border-radius: var(--r-m); background: var(--brand-soft); }
.acct-list { display: grid; gap: 10px; margin-top: 12px; }
.acct-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-m); }
.acct-list--plain li { display: block; }
.acct-list--plain p { margin: 6px 0 0; color: var(--ink-2); }
.acct-s-main { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.acct-danger h2 { color: #8c1d14; }
.link-btn { padding: 0; background: none; border: 0; color: var(--link, var(--brand-2)); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }
.field-hint { font-size: .8rem; color: var(--ink-3); }
.hint { color: var(--ink-2); }
.btn-sm { min-height: 38px; padding-inline: 14px; font-size: .88rem; }
.save-search { gap: 6px; }
.save-search .i { width: 18px; height: 18px; }
.hbtn.acct-link.is-in { position: relative; }
.hbtn.acct-link.is-in::after { content: ''; position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2, var(--brand)); box-shadow: 0 0 0 2px var(--header-bg, #fff); }
.acct-block h2, .acct-card h2 { font-size: 1.25rem; line-height: 1.3; }

.acct-google { display: grid; justify-items: center; gap: 10px; max-width: 420px; margin: 0 auto var(--gap); text-align: center; }
.acct-google-btn { min-height: 44px; }
.acct-or { display: flex; align-items: center; gap: 12px; width: 100%; color: var(--ink-3); font-size: .85rem; }
.acct-or::before, .acct-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------------------------------------------------------------- account page, second pass */
.acct-auth { max-width: 460px; margin: 0 auto; padding: clamp(18px, 3vw, 30px); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); display: grid; gap: 18px; }
.acct-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg-2); }
.acct-tabs button { flex: 1; min-height: 42px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s; }
.acct-tabs button[aria-selected='true'] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgb(16 24 40 / .12); }
.acct-auth .acct-google { margin: 0; max-width: none; }
.acct-center { text-align: center; margin: 0; }
.acct-note { font-size: .82rem; }
.acct-me { display: grid; gap: 20px; }
.acct-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.acct-avatar { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--brand-soft); color: var(--ink); font-weight: 700; font-size: 1.2rem; flex: none; }
.acct-who { display: grid; gap: 2px; flex: 1; min-width: 0; }
.acct-who b { font-size: 1.15rem; }
.acct-who span { color: var(--ink-2); font-size: .9rem; overflow-wrap: anywhere; }
.acct-ok { color: var(--ok, #0a6b43); font-weight: 600; }
.acct-tabs--page { overflow-x: auto; scrollbar-width: none; width: fit-content; max-width: 100%; }
.acct-tabs--page::-webkit-scrollbar { display: none; }
.acct-count { display: inline-block; min-width: 22px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--bg-2); font-size: .78rem; line-height: 22px; color: var(--ink-2); }
.acct-tabs button[aria-selected='true'] .acct-count { background: var(--brand-soft); color: var(--ink); }
.acct-panel > h2 { margin-bottom: 12px; font-size: 1.35rem; }
.acct.js-tabs .acct-panel:not(.is-active) { display: none; }
.acct-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--gap); align-items: start; }
.acct-settings > h2 { grid-column: 1 / -1; }
.acct-empty { display: grid; justify-items: center; gap: 14px; padding: clamp(24px, 5vw, 48px) 20px; border: 1px dashed var(--line-2); border-radius: var(--r-l); text-align: center; color: var(--ink-2); }
.acct-empty p { margin: 0; max-width: 42ch; }
.acct-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.acct-list li { align-items: center; }
@media (max-width: 560px) {
  .acct-head { padding: 14px 16px; }
  .acct-who b { font-size: 1.05rem; }
  .acct-head .btn { margin-left: auto; }
  .acct-list li { display: grid; gap: 10px; }
}

/* ---------------------------------------------------------------- Sign in button (header on every page, and the landing page) */
.hbtn.acct-login { padding: 0 16px 0 12px; border: 1px solid var(--line-2, #cfd4da); border-radius: 999px; font-weight: 600; font-size: .92rem; margin-inline: 6px 2px; }
.hbtn.acct-login .i { width: 20px; height: 20px; }
.hbtn.acct-login:hover { border-color: var(--ink-3, #6f7782); }
.hbtn.acct-login.is-in::after { top: 6px; right: 6px; }
@media (max-width: 760px) {
  .hbtn.acct-login { padding: 0 10px; border-color: transparent; margin-inline: 0; }
  .hbtn.acct-login .acct-text { display: none; }
}

.landing-login { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 20px 0 15px; border-radius: 999px; background: #fff; color: var(--brand-2, #066338); font-size: .92rem; font-weight: 700; text-decoration: none; box-shadow: 0 4px 16px rgb(0 0 0 / .22); transition: transform .2s var(--ease), box-shadow .2s; }
.landing-login .i { width: 18px; height: 18px; }
.landing-login:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgb(0 0 0 / .3); }
.landing-login.is-in { background: rgb(255 255 255 / .92); }
@media (max-width: 760px) { .landing-link:first-child { display: inline-flex; } }

/* ---------------------------------------------------------------- landing: Buy / Rent as one tidy pill above a fully rounded search bar */
.landing .qs-tabs { display: inline-flex; gap: 2px; padding: 4px; margin: 0 0 12px; border-radius: 999px; background: rgb(255 255 255 / .16); border: 1px solid rgb(255 255 255 / .24); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.landing .qs-tabs span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 26px; border-radius: 999px; background: transparent; color: #fff; font-weight: 600; font-size: .92rem; }
.landing .qs-tabs label:hover input:not(:checked) + span { background: rgb(255 255 255 / .18); }
.landing .qs-tabs input:checked + span { background: #fff; color: var(--brand-2, #066338); box-shadow: 0 2px 10px rgb(0 0 0 / .2); }
.landing .qs-tabs input:checked + span::after,
.landing .qs-tabs label:not(:first-of-type) input:checked + span::before { content: none; }
.landing .qs-fields { border-radius: 26px; }
@media (max-width: 760px) {
  .landing .qs-tabs span { padding: 0 22px; }
  .landing .qs-fields { border-radius: 22px; }
}

/* ---------------------------------------------------------------- landing: the line of promises + pause button, smaller and quieter */
.landing-foot { gap: 12px; padding-block: 14px 16px; border-top-color: rgb(255 255 255 / .1); }
.landing-proof { gap: 4px clamp(14px, 2vw, 28px); font-size: .78rem; color: rgb(255 255 255 / .58); }
.landing-proof li { gap: 6px; }
.landing-proof .i { width: 15px; height: 15px; color: rgb(201 224 185 / .6); }
.landing-pause { width: 30px; height: 30px; border-color: rgb(255 255 255 / .22); color: rgb(255 255 255 / .6); }
.landing-pause:hover, .landing-pause:focus-visible { border-color: rgb(255 255 255 / .5); color: #fff; background: rgb(255 255 255 / .1); }
.landing-pause .i { width: 13px; height: 13px; }
@media (max-width: 760px) { .landing-proof { font-size: .74rem; gap: 4px; } }
.landing .qs-tabs { width: fit-content; justify-self: start; align-self: start; flex: none; }
.landing-top { flex-wrap: nowrap; }
.landing-login, .landing-link, .landing-zalo { white-space: nowrap; }
@media (max-width: 760px) {
  .landing-top { gap: 6px; padding-block: 14px; }
  .landing-login { padding: 0 14px 0 11px; font-size: .86rem; }
  .landing-link, .landing-zalo { font-size: .86rem; padding-inline: 11px; }
  .landing-zalo { padding-left: 10px; }
}
.hbtn.acct-login { white-space: nowrap; flex: none; }
.header-inner .brand, .header-inner > a:first-child { flex: none; }
.header-actions { flex: none; }
@media (max-width: 1240px) { .nav + .header-actions { margin-left: auto; } }

/* landing: the pause button is a small, faint dot of a control */
.landing-pause { width: 24px; height: 24px; border-color: rgb(255 255 255 / .16); color: rgb(255 255 255 / .42); }
.landing-pause .i { width: 11px; height: 11px; }
.landing-pause:hover, .landing-pause:focus-visible { border-color: rgb(255 255 255 / .5); color: #fff; }

/* ---------------------------------------------------------------- the "type an area" box (prototype) */
.qs-f--combo { position: relative; }
.qs-combo { position: relative; display: flex; align-items: center; min-height: 30px; }
.qs-pin { position: absolute; left: 0; display: grid; place-items: center; color: var(--ink-3, #6f7782); pointer-events: none; }
.qs-pin .i { width: 18px; height: 18px; }
.qs-combo-input { width: 100%; min-height: 30px; padding: 0 28px 0 26px !important; border: 0 !important; border-radius: 6px; background: transparent !important; box-shadow: none !important; font: inherit; font-weight: 500; color: var(--ink, #181c20); }
.qs-combo-input::placeholder { color: transparent; }
.qs-combo-input:focus::placeholder { color: var(--ink-3, #6f7782); font-weight: 400; }
.qs-ghost { position: absolute; left: 26px; right: 28px; top: 50%; transform: translateY(-50%); overflow: hidden; white-space: nowrap; text-overflow: clip; color: var(--ink-3, #6f7782); font-weight: 400; pointer-events: none; }
.qs-ghost:not([hidden])::after { content: ''; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: currentColor; animation: qs-caret 1s steps(1) infinite; }
@keyframes qs-caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .qs-ghost:not([hidden])::after { animation: none; } }
.qs-clear { position: absolute; right: 0; display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3, #6f7782); cursor: pointer; }
.qs-clear:hover { background: var(--bg-2, #f1f3f4); color: var(--ink, #181c20); }
.qs-clear .i { width: 14px; height: 14px; }
.qs-list { position: absolute; left: -16px; right: -16px; top: calc(100% + 14px); z-index: 20; margin: 0; padding: 8px; list-style: none; max-height: 340px; overflow-y: auto; border-radius: 18px; background: #fff; color: var(--ink, #181c20); box-shadow: 0 16px 44px rgb(0 0 0 / .28), 0 0 0 1px rgb(0 0 0 / .05); }
.qs-list[hidden] { display: none; }
.qs-list li { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 14px; border-radius: 12px; cursor: pointer; }
.qs-list li[aria-selected='true'] { background: var(--brand-soft, #eef0e4); }
.qs-list .i { width: 18px; height: 18px; flex: none; color: var(--ink-3, #6f7782); }
.qs-list .qs-name { flex: 1; font-weight: 400; }
.qs-list .qs-name b { font-weight: 700; }
.qs-list .qs-n { color: var(--ink-3, #6f7782); font-size: .82rem; }
.qs-list .qs-head { min-height: 30px; padding: 6px 14px 2px; cursor: default; font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3, #6f7782); }
.qs-list .qs-none { display: block; min-height: 0; padding: 14px; cursor: default; color: var(--ink-2, #4c545e); font-size: .9rem; }
.qs-f--combo.is-busy::after, .qs-f--combo:has(.is-busy)::after { content: ''; }
.qs-f--combo.is-busy .qs-combo-input { opacity: .6; }
.qs--combo .qs-fields { grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)) auto; }
@media (max-width: 760px) {
  .landing .qs--combo .qs-fields { grid-template-columns: 1fr 1fr; }
  .qs-list { left: -12px; right: -12px; }
}
.proto-note { margin-top: 12px; max-width: 46ch; font-size: .8rem; color: rgb(255 255 255 / .62); }

.qs-combo-input:focus, .qs-combo-input:focus-visible { outline: none; }
.landing .qs-f--combo:focus-within { background: var(--bg-2, #f4f5f6); border-radius: 14px; }
.qs-list { right: auto; width: min(400px, calc(100vw - 32px)); }
.qs-f--combo.is-up .qs-list { top: auto; bottom: calc(100% + 14px); }
@media (max-width: 760px) { .qs-list { right: -12px; width: auto; } }

/* ---------------------------------------------------------------- landing: ONE slim search bar, with the Buy / Rent slider built into it */
.landing .qs--slim .qs-fields { display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 8px; min-height: 0; border-radius: 999px; box-shadow: 0 14px 40px rgb(0 0 0 / .26); }
/* the slider: a sliding thumb behind two words */
.landing .qs--slim .qs-tabs { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; flex: none; gap: 0; margin: 0; padding: 3px; border: 0; border-radius: 999px; background: var(--bg-2, #eef0e4); -webkit-backdrop-filter: none; backdrop-filter: none; }
.landing .qs--slim .qs-tabs::before { content: ''; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--brand-2, #4d6a3f); box-shadow: 0 2px 8px rgb(0 0 0 / .2); transition: transform .3s var(--ease, cubic-bezier(.2, .8, .2, 1)); }
.landing .qs--slim .qs-tabs:has(input[value='rent']:checked)::before { transform: translateX(100%); }
.landing .qs--slim .qs-tabs label { position: relative; z-index: 1; }
.landing .qs--slim .qs-tabs span { justify-content: center; min-height: 38px; min-width: 66px; padding: 0 16px; border-radius: 999px; background: transparent !important; box-shadow: none !important; color: var(--ink-2, #4c545e); font-weight: 600; font-size: .9rem; transition: color .25s; }
.landing .qs--slim .qs-tabs input:checked + span { color: #fff; }
.landing .qs--slim .qs-tabs label:hover input:not(:checked) + span { color: var(--ink, #181c20); }
/* single-line fields: the little captions stay for screen readers only */
.landing .qs--slim .qs-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.landing .qs--slim .qs-f { flex: 1 1 0; min-width: 0; padding: 0 16px; border-right: 1px solid var(--line, #d9e6de); }
.landing .qs--slim .qs-f--area { flex: 1.5 1 0; }
.landing .qs--slim .qs-f:has(+ .qs-go) { border-right: 0; }
.landing .qs--slim .qs-f select, .landing .qs--slim .qs-combo-input { min-height: 40px; font-size: .95rem; }
.landing .qs--slim .qs-f select { padding-right: 24px; }
.landing .qs--slim .qs-go { flex: none; min-height: 46px; padding: 0 24px; }
.landing .qs--slim .qs-f--combo:focus-within { background: var(--bg-2, #f4f5f6); border-radius: 999px; }
.landing .qs--slim .qs-list { left: -8px; top: calc(100% + 16px); }
@media (max-width: 760px) {
  .landing .qs--slim .qs-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 0; padding: 10px; border-radius: 22px; }
  .landing .qs--slim .qs-tabs { grid-column: 1 / -1; width: 100%; margin-bottom: 6px; }
  .landing .qs--slim .qs-tabs span { min-width: 0; width: 100%; }
  .landing .qs--slim .qs-f--area { grid-column: 1 / -1; flex: none; padding: 4px 12px; border-right: 0; border-bottom: 1px solid var(--line, #d9e6de); }
  .landing .qs--slim .qs-f { padding: 4px 12px; border-right: 0; }
  .landing .qs--slim .qs-go { grid-column: 1 / -1; margin-top: 4px; width: 100%; }
  .landing .qs--slim .qs-list { left: -4px; right: -4px; width: auto; }
}
/* the headline is shorter now, so it can be bigger */
.landing h1 { font-size: clamp(2.5rem, 1.4rem + 4vw, 4.6rem); max-width: 18ch; }
.landing-lede { max-width: 40ch; }
.landing-body > .landing-search { max-width: 900px; }
.landing .qs--slim .qs-f--area { flex: 1.3 1 0; }
.landing .qs--slim .qs-f:not(.qs-f--area) { flex: 1 1 0; min-width: 120px; }

/* ---------------------------------------------------------------- the typing box inside the listings-page search bar */
.ff--combo .qs-combo { min-height: var(--field-h, 48px); padding: 0 10px; border: 1px solid var(--field-line, var(--line-2, #cfd4da)); border-radius: var(--field-r, 10px); background: var(--field-bg, #fff); transition: border-color .2s, box-shadow .2s; }
.ff--combo .qs-combo:focus-within { border-color: var(--brand-2, #4d6a3f); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-2, #4d6a3f) 18%, transparent); }
.ff--combo .qs-pin { left: 12px; }
.ff--combo .qs-combo-input { min-height: 44px; padding-left: 30px !important; font-weight: 400; }
.ff--combo .qs-ghost { left: 40px; }
.ff--combo .qs-clear { right: 8px; }
.ff--combo .qs-list { left: 0; right: auto; top: calc(100% + 8px); width: min(420px, calc(100vw - 32px)); }
.ff--wide { grid-column: span 2; }
@media (max-width: 960px) { .ff--wide { grid-column: 1 / -1; } }
@media (max-width: 760px) { .ff--combo .qs-list { width: 100%; } }

/* the Google button must never be clipped: let it keep the full width it was drawn with */
.acct-google { width: 100%; overflow: visible; }
.acct-google-btn { display: flex; justify-content: center; width: 100%; min-height: 44px; overflow: visible; }
.acct-google-btn iframe, .acct-google-btn > div { max-width: none !important; }

/* ---------------------------------------------------------------- landing: the Buy | Rent slider sits in a white tab joined to the top of the bar */
.landing .qs--slim { display: grid; justify-items: start; }
.qs-dock { position: relative; z-index: 2; min-width: 0; margin: 0 0 -1px; padding: 8px 10px 9px 8px; border: 0; border-radius: 20px 20px 0 0; background: #fff; box-shadow: 0 -6px 22px rgb(0 0 0 / .1); }
.qs-dock::after { content: ''; position: absolute; right: -18px; bottom: 0; width: 18px; height: 18px; background: radial-gradient(circle at 100% 0, transparent 17.5px, #fff 18px); pointer-events: none; }
.qs-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 999px; background: var(--bg-2, #eef0e4); cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.qs-switch * { user-select: none; -webkit-user-select: none; }
.qs-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--brand-2, #4d6a3f); box-shadow: 0 2px 8px rgb(0 0 0 / .22); transition: transform .34s cubic-bezier(.3, 1.2, .4, 1); will-change: transform; }
.qs-switch:has(input[value='rent']:checked) .qs-thumb { transform: translateX(100%); }
.qs-switch.is-drag { cursor: grabbing; }
.qs-switch.is-drag .qs-thumb { transition: none; }
.qs-switch label { position: relative; z-index: 1; display: inline-flex; }
.qs-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.qs-switch label > span { display: inline-flex; align-items: center; justify-content: center; min-width: 76px; min-height: 38px; padding: 0 18px; font-weight: 600; font-size: .9rem; color: var(--ink-2, #4c545e); transition: color .25s; pointer-events: none; }
.qs-switch input:checked + span { color: #fff; }
.qs-switch label:hover input:not(:checked) + span { color: var(--ink, #181c20); }
.qs-switch:has(input:focus-visible) { outline: 2px solid var(--brand-2, #4d6a3f); outline-offset: 2px; }
.landing .qs--slim .qs-fields { border-radius: 0 30px 30px 30px; padding-left: 8px; }
@media (prefers-reduced-motion: reduce) { .qs-thumb { transition: none; } }
@media (max-width: 760px) {
  .landing .qs--slim { justify-items: stretch; }
  .qs-dock { padding: 10px 10px 8px; border-radius: 22px 22px 0 0; }
  .qs-dock::after { display: none; }
  .qs-switch { display: grid; width: 100%; }
  .qs-switch label > span { width: 100%; min-width: 0; }
  .landing .qs--slim .qs-fields { border-radius: 0 0 22px 22px; padding-top: 4px; }
}

/* the search bar keeps one fixed width: it no longer stretches with the typing example or the Buy / Rent choice */
.landing .qs--slim { width: min(100%, 840px); }
.landing .qs--slim .qs-fields { justify-self: stretch; width: 100%; box-sizing: border-box; }

/* ---------------------------------------------------------------- live news: text cards with the paper's name on top */
.news-grid--live .news-media:has(.news-noimg) { display: none; }
.news-grid--live .news-link { border-top: 0; }

.news-grid--live .news-body { padding-top: 14px; }
.news-grid--live .news-meta { gap: 2px 6px; }
.news-grid--live .news-src { color: var(--brand-2, #4d6a3f); font-weight: 700; }
.news-grid--live .news-sum { -webkit-line-clamp: 3; }
.news-credit { margin: 22px 0 0; color: var(--ink-3); font-size: .82rem; max-width: 70ch; }
.news-sub-h { margin: 40px 0 16px; font-size: 1.2rem; }


/* inline area prediction: the typed part is invisible, the rest of the likely area shows in grey right after it */
.qs-comp { z-index: 1; font-weight: 500; }
.qs-comp::after { display: none !important; }
.qs-comp-suffix { color: var(--ink-3, #8a919b); font-weight: 400; pointer-events: auto; cursor: pointer; }
.ff--combo .qs-comp { font-weight: 400; }
.landing .qs--slim .qs-comp { font-size: .95rem; }
.qs-list { display: none !important; }

/* ---------------------------------------------------------------- front page: livelier entrance and button feel */
.landing-login, .landing-lang { transition: transform .25s var(--ease, ease), box-shadow .25s, background-color .25s; }
.landing-login .i, .landing-lang .i { transition: transform .4s cubic-bezier(.3, 1.4, .4, 1); }
.landing-login:hover .i { transform: scale(1.18) rotate(-8deg); }
.landing-lang:hover .i { transform: rotate(60deg); }
.landing-login:active, .landing-lang:active { transform: scale(.95); }
.landing-lang:hover { transform: translateY(-1px); }

.landing .qs--slim .qs-f { transition: background-color .25s; border-radius: 999px; }
.landing .qs--slim .qs-f:hover { background: rgb(0 0 0 / .035); }
.landing .qs--slim .qs-go { position: relative; overflow: hidden; transition: transform .25s cubic-bezier(.3, 1.4, .4, 1), box-shadow .25s, background-color .25s; }
.landing .qs--slim .qs-go::before { content: ''; position: absolute; inset: 0 auto 0 -60%; width: 45%; background: linear-gradient(100deg, transparent, rgb(255 255 255 / .55), transparent); transform: skewX(-18deg); pointer-events: none; }
.landing .qs--slim .qs-go .i { transition: transform .35s cubic-bezier(.3, 1.4, .4, 1); }
.landing .qs--slim .qs-go:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 22px rgb(60 100 50 / .35); }
.landing .qs--slim .qs-go:hover .i { transform: scale(1.18) rotate(-12deg); }
.landing .qs--slim .qs-go:active { transform: scale(.96); box-shadow: none; }
.landing-all a { transition: letter-spacing .3s var(--ease, ease); }
.landing-all a:hover .i { transform: translateX(6px); }
.landing-proof li { transition: color .25s, transform .3s var(--ease, ease); }
.landing-proof li:hover { color: #fff; transform: translateY(-2px); }
.landing-proof li .i { transition: transform .4s cubic-bezier(.3, 1.4, .4, 1); }
.landing-proof li:hover .i { transform: scale(1.25) rotate(-8deg); }

@media (prefers-reduced-motion: no-preference) {
  /* the headline: each word slides up out of an invisible line, one after another */
  .landing h1 { animation: none; }
  .landing h1 .hw { display: inline-block; overflow: hidden; vertical-align: top; padding: .22em .04em .16em; margin: -.22em -.04em -.16em; }
  .landing h1 .hw > span { display: inline-block; animation: lp-word .8s cubic-bezier(.16, 1, .3, 1) calc(.6s + var(--i, 0) * .09s) both; }
  .landing-top > * { animation: lp-drop .6s cubic-bezier(.16, 1, .3, 1) backwards; }
  .landing-top > :nth-child(1) { animation-delay: 1s; }
  .landing-top > :nth-child(2) { animation-delay: 1.1s; }
  .landing .qs-dock { animation: lp-tab .7s cubic-bezier(.3, 1.4, .4, 1) 1.15s backwards; transform-origin: 20% 100%; }
  .landing .qs--slim .qs-fields { animation: lp-bar .8s cubic-bezier(.16, 1, .3, 1) .95s backwards; transform-origin: 0 50%; }
  .landing .qs--slim .qs-go { animation: lp-ring-pulse 1.6s ease-out 2.2s 2; }
  .landing .qs--slim .qs-go:hover::before { animation: lp-shine .7s ease; }
  .landing-all .i { animation: lp-nudge 2.8s ease-in-out 3s infinite; }
  .landing-all a:hover .i { animation: none; }
  .landing-proof li { animation: lp-rise .6s cubic-bezier(.16, 1, .3, 1) backwards; }
  .landing-proof li:nth-child(1) { animation-delay: 1.15s; }
  .landing-proof li:nth-child(2) { animation-delay: 1.27s; }
  .landing-proof li:nth-child(3) { animation-delay: 1.39s; }
}
@keyframes lp-word { 0% { transform: translateY(115%) rotate(4deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes lp-drop { 0% { opacity: 0; transform: translateY(-14px); } 100% { opacity: 1; transform: none; } }
@keyframes lp-tab { 0% { opacity: 0; transform: translateY(14px) scale(.92); } 100% { opacity: 1; transform: none; } }
@keyframes lp-bar { 0% { opacity: 0; clip-path: inset(0 100% 0 0 round 30px); } 100% { opacity: 1; clip-path: inset(0 0 0 0 round 30px); } }
@keyframes lp-ring-pulse { 0% { box-shadow: 0 0 0 0 rgb(201 224 185 / .8); } 100% { box-shadow: 0 0 0 16px rgb(201 224 185 / 0); } }
@keyframes lp-shine { 0% { left: -60%; } 100% { left: 130%; } }
@keyframes lp-nudge { 0%, 70%, 100% { transform: none; } 80% { transform: translateX(5px); } 90% { transform: translateX(1px); } }

/* the logo: it hovers very slightly, and every few seconds a warm gold glint travels across its lines */
@media (prefers-reduced-motion: no-preference) {
  .landing-stamp--plate { position: relative; animation: lp-plate .9s cubic-bezier(.2, .9, .25, 1) .12s both, lp-float 8s ease-in-out 2.2s infinite; }
  .landing-stamp--plate::after {
    display: block; content: ''; position: absolute; inset: 0; border: 0; border-radius: 0; opacity: 1; pointer-events: none;
    background: linear-gradient(105deg, transparent 38%, #f0cd8c 50%, transparent 62%) no-repeat; background-size: 260% 100%; background-position: 160% 0;
    -webkit-mask: url('/assets/img/brand/logo/plate.svg') center / contain no-repeat; mask: url('/assets/img/brand/logo/plate.svg') center / contain no-repeat;
    animation: lp-glint 9s ease-in-out 3.2s infinite;
  }
}
@keyframes lp-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@keyframes lp-glint { 0% { background-position: 160% 0; } 14%, 100% { background-position: -60% 0; } }

/* the logo draws itself (animation inside plate-anim.svg), so the box just fades in; float and glint are a little bolder */
@media (prefers-reduced-motion: no-preference) {
  .landing-stamp--plate { animation: lp-fade .35s ease-out both, lp-float 6s ease-in-out 2.8s infinite; }
  .landing-stamp--plate::after { animation: lp-glint 6s ease-in-out 3.4s infinite; }
}
@keyframes lp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lp-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
