/* System fonts only (no Google Fonts): loads fast in China and Singapore. */
:root {
  --ink: #1d2a33;
  --muted: #5d6a74;
  --line: #e2e6ea;
  --bg: #fbfaf7;
  --card: #ffffff;
  --brand: #0e6b5c;
  --brand-dark: #0a5247;
  --brand-soft: #e5f2ee;
  --accent: #e2673b;
  --accent-soft: #fdeee6;
  --gold-soft: #fdf5dc;
  --warn: #b42318;
  --warn-soft: #fdecea;
  --ok: #157f3d;
  --ok-soft: #e7f6ec;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 20px rgba(16, 24, 40, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.35rem, 3.6vw, 1.85rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }

/* Demo bar */
.demo-bar { background: var(--gold-soft); color: #7a5b00; text-align: center; font-size: .85rem; padding: 6px 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251, 250, 247, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 62px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.05rem; }
.brand small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.brand span { line-height: 1.2; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; padding: 8px 11px; border-radius: 9px; font-size: .95rem; }
.nav a:not(.btn):hover { background: var(--brand-soft); }
.nav a[aria-current] { color: var(--brand); font-weight: 700; background: var(--brand-soft); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px; }
  .nav .btn { margin-top: 8px; text-align: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--brand); color: #fff; text-decoration: none; border: 0; border-radius: 11px; padding: 12px 20px; font-size: 1rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: background .15s; }
.btn:hover { background: var(--brand-dark); }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: #c9532a; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Sections */
section { padding: 48px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 26px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--accent); letter-spacing: .08em; margin-bottom: 6px; }

/* Hero */
.hero { padding: 56px 0 44px; background: linear-gradient(160deg, #e5f2ee 0%, #fbfaf7 55%, #fdeee6 100%); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; align-items: center; }
.hero p.lead { font-size: 1.1rem; color: #33434e; max-width: 34em; }
.hero-card { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 22px; }
.hero-card h3 { margin-bottom: 12px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: .8rem; font-weight: 700; display: grid; place-items: center; margin-top: 3px; }
.cross-list li::before { content: "!"; background: var(--warn-soft); color: var(--warn); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 36px; } }

/* Cards + grids */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card-link { text-decoration: none; color: inherit; display: block; transition: transform .15s, box-shadow .15s; }
.card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.path-card { border-width: 2px; }
.path-card.cn { border-color: #f3c3ad; background: linear-gradient(180deg, #fff, #fff8f4); }
.path-card.sg { border-color: #a9d6cb; background: linear-gradient(180deg, #fff, #f3faf8); }
.path-card .tag { font-size: .8rem; font-weight: 700; }
.icon-dot { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; background: var(--brand-soft); margin-bottom: 12px; }

/* Room cards */
.room-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.room-card .ph { aspect-ratio: 4 / 3; position: relative; }
.room-card .ph svg { width: 100%; height: 100%; display: block; }
.room-card .ph .badge-video { position: absolute; left: 10px; bottom: 10px; }
.room-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.room-title { font-weight: 700; font-size: 1.02rem; }
.room-price { font-size: 1.25rem; font-weight: 800; color: var(--brand); }
.room-price small { font-size: .8rem; font-weight: 500; color: var(--muted); }
.room-meta { font-size: .88rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .76rem; padding: 2px 9px; border-radius: 99px; background: #f1f3f5; color: #3d4a54; white-space: nowrap; }
.chip-fee-free { background: var(--ok-soft); color: var(--ok); font-weight: 700; }
.chip-fee-paid { background: var(--accent-soft); color: #a8431d; font-weight: 700; }
.chip-student { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.chip-dark { background: rgba(0, 0, 0, .62); color: #fff; }
.room-actions { margin-top: auto; padding-top: 8px; display: flex; gap: 8px; }
.room-actions .btn { flex: 1; padding: 9px 10px; font-size: .9rem; }

/* Filters */
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
@media (max-width: 860px) { .filters { grid-template-columns: repeat(2, 1fr); } }
.filters label, .form label { display: block; font-size: .85rem; font-weight: 600; color: #3d4a54; margin-bottom: 4px; }
select, input[type=text], input[type=number], input[type=date], textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #cfd6dc; border-radius: 10px; background: #fff; color: var(--ink);
}
select:focus, input:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.check-inline { display: flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 500 !important; margin-top: 8px; }
.check-inline input { width: 18px; height: 18px; accent-color: var(--brand); }
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.empty { text-align: center; padding: 40px 16px; background: #fff; border: 1px dashed #cfd6dc; border-radius: var(--radius); }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(15, 23, 30, .55); display: none; align-items: flex-end; justify-content: center; z-index: 50; padding: 0; }
.modal.open { display: flex; }
.modal-box { background: #fff; width: 100%; max-width: 640px; max-height: 92vh; overflow: auto; border-radius: 18px 18px 0 0; }
@media (min-width: 700px) { .modal { align-items: center; padding: 20px; } .modal-box { border-radius: 18px; } }
.modal-box .ph svg { width: 100%; height: auto; display: block; }
.modal-content { padding: 18px 20px 22px; }
.modal-close { position: sticky; top: 10px; display: block; margin: 10px 10px -46px auto; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 1.2rem; cursor: pointer; z-index: 2; }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 14px 0; font-size: .93rem; }
.spec div span { color: var(--muted); display: block; font-size: .8rem; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f6f8f9; font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num { white-space: nowrap; font-weight: 700; color: var(--brand); }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 14px 62px; }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps li h3 { margin-bottom: 4px; font-size: 1.05rem; }
.steps li p { margin: 0; color: #3d4a54; font-size: .95rem; }

/* Callouts */
.callout { border-radius: var(--radius); padding: 16px 18px; margin: 16px 0; border: 1px solid; }
.callout-warn { background: var(--warn-soft); border-color: #f5c2bd; }
.callout-ok { background: var(--ok-soft); border-color: #b7e2c5; }
.callout-info { background: var(--brand-soft); border-color: #b9ddd3; }
.callout-gold { background: var(--gold-soft); border-color: #f0dc9a; }
.callout p:last-child { margin-bottom: 0; }

/* Tabs (areas) */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tab { border: 1.5px solid var(--line); background: #fff; padding: 8px 16px; border-radius: 99px; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink); }
.tab[aria-selected=true] { background: var(--brand); border-color: var(--brand); color: #fff; }
.tab-panel[hidden] { display: none; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } }
.calc-out { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 20px; }
.calc-out .row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .2); font-size: .95rem; }
.calc-out .total { font-size: 1.6rem; font-weight: 800; margin-top: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 9px 14px; border: 1.5px solid #cfd6dc; border-radius: 10px; font-weight: 500; cursor: pointer; background: #fff; }
.seg input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.seg input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 1px; }
.msg-preview { white-space: pre-wrap; background: #f6f8f9; border: 1px solid var(--line); border-radius: 10px; padding: 14px; font-size: .92rem; margin: 12px 0; }

/* Reviews */
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.review .who { font-size: .85rem; color: var(--muted); margin-top: 8px; }

/* Trust strip */
.trust { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.trust b { color: var(--brand); }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 2px; top: 11px; font-size: 1.3rem; color: var(--brand); }
details[open] summary::after { content: "–"; }
details > div { padding-bottom: 14px; color: #33434e; }

/* Footer */
.site-footer { background: #13262b; color: #c9d3d6; padding: 40px 0 24px; margin-top: 40px; }
.site-footer a { color: #8fd6c4; }
.site-footer h4 { color: #fff; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 26px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.brand-footer { color: #fff; margin-bottom: 10px; }
.brand-footer small { color: #9fb0b5; }
.site-footer .muted { color: #9fb0b5; }
.footer-note { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 20px; padding-top: 16px; font-size: .82rem; }
.cea-line { font-size: .92rem; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #13262b; color: #fff; padding: 10px 18px; border-radius: 99px; font-size: .92rem; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 60; }
.toast.show { opacity: 1; }

/* ---------- v2: photos, gallery, whole units ---------- */
.room-card .ph { display: block; width: 100%; padding: 0; border: 0; cursor: pointer; background: #e9edf0; aspect-ratio: 3 / 2; overflow: hidden; }
.room-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.room-card .ph:hover img { transform: scale(1.03); }
.ph-tags { position: absolute; left: 10px; top: 10px; }
.room-card .ph .badge-video { position: absolute; left: 10px; bottom: 10px; }
.badge-count { position: absolute; right: 10px; bottom: 10px; }
.chip-kind { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.chip-kind.whole { background: var(--accent); color: #fff; }
.room-title { font-size: 1.05rem; }
.room-sub { font-size: .88rem; color: #3d4a54; }
.pp { font-size: .9rem; color: var(--ink); margin-top: -2px; }
.pp b { color: var(--accent); }

.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: #111; }
.gallery::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 3 / 2; display: grid; place-items: center; }
.slide img, .slide video { width: 100%; height: 100%; object-fit: cover; display: block; background: #111; }
.thumbs { display: flex; gap: 6px; padding: 8px 12px; overflow-x: auto; background: #f6f8f9; border-bottom: 1px solid var(--line); }
.thumb { flex: 0 0 auto; width: 72px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; position: relative; background: #ddd; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover, .thumb:focus-visible { border-color: var(--brand); }
.thumb-video span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.35); font-size: 1rem; }

.kind-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 14px; }
.filters .dim { opacity: .45; }
.group-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; }
@media (max-width: 760px) { .group-hero { grid-template-columns: 1fr; } }
.group-photo { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 2; }
.group-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 2; margin-bottom: 14px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.stat-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.stat b { display: block; font-size: 1.2rem; color: var(--brand); }
.stat span { font-size: .8rem; color: var(--muted); }

.room-schools { font-size: .8rem; color: var(--muted); }
.school-table td:first-child { white-space: nowrap; }

.school-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.school-chip { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.school-chip:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.school-chip b { font-size: 1.05rem; color: var(--brand); }
.school-chip span { font-size: .82rem; }
.school-chip em { font-style: normal; font-size: .75rem; color: var(--muted); }
.tabs { scroll-margin-top: 80px; }

/* ---------- v5: list + map (OneMap via Leaflet) ---------- */
.wrap-wide { max-width: 1440px; }
.results-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.results-list .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.results-map { position: sticky; top: 76px; z-index: 0; height: calc(100vh - 92px); min-height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #e9edf0; }
#map { width: 100%; height: 100%; }
.map-legend { position: absolute; right: 10px; top: 10px; z-index: 500; background: rgba(255,255,255,.95); border-radius: 10px; padding: 6px 10px; font-size: .78rem; box-shadow: 0 1px 4px rgba(0,0,0,.15); display: flex; align-items: center; gap: 6px; }
.view-toggle { display: none; border: 1.5px solid var(--brand); border-radius: 10px; overflow: hidden; }
.view-toggle button { border: 0; background: #fff; color: var(--brand); font: inherit; font-weight: 700; padding: 7px 12px; cursor: pointer; }
.view-toggle button[aria-pressed=true] { background: var(--brand); color: #fff; }
.room-card.hl { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.link-btn { font-size: .8rem; text-decoration: none; white-space: nowrap; }
@media (max-width: 1180px) { .results-list .grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .results-layout { grid-template-columns: 1fr; }
  .results-list .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results-map { display: none; position: relative; top: 0; height: 72vh; }
  .results-layout.show-map .results-map { display: block; }
  .results-layout.show-map .results-list { display: none; }
  .view-toggle { display: inline-flex; }
}
@media (max-width: 560px) { .results-list .grid { grid-template-columns: 1fr; } }

/* markers */
.price-icon, .school-icon { background: none; border: 0; }
.pin { position: relative; display: inline-block; transform: translate(-50%, calc(-100% - 6px)); background: var(--brand); color: #fff; font-weight: 800; font-size: 12px; line-height: 1; padding: 6px 9px; border-radius: 99px; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.35); cursor: pointer; transition: background .12s, transform .12s; }
.pin::after { content: ""; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--brand); border-bottom: 0; }
.price-icon:hover .pin, .price-icon.hl .pin { background: var(--accent); transform: translate(-50%, calc(-100% - 6px)) scale(1.12); }
.price-icon:hover .pin::after, .price-icon.hl .pin::after { border-top-color: var(--accent); }
.pin-school { display: inline-block; transform: translate(-50%, -50%); background: #fff; color: #1d2a33; border: 2px solid #1d2a33; font-size: 11px; font-weight: 800; line-height: 1; padding: 4px 7px; border-radius: 7px; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.school-icon.on .pin-school { background: #1d2a33; color: #fff; }
.pin-static { transform: none; }
.pin.pin-static { padding: 4px 7px; font-size: 11px; }
.pin.pin-static::after { display: none; }
.pin-popup .leaflet-popup-content { margin: 0; width: 220px !important; }
.pin-popup .leaflet-popup-content-wrapper { padding: 0; border-radius: 12px; overflow: hidden; }
.pp-card img { width: 100%; height: 120px; object-fit: cover; display: block; }
.pp-body { padding: 10px 12px 12px; line-height: 1.5; }
.leaflet-container { font-family: inherit; }

#map.z-low .pin { font-size: 0; padding: 0; width: 14px; height: 14px; border: 2px solid #fff; transform: translate(-50%, -50%); }
#map.z-low .pin::after { display: none; }
#map.z-low .price-icon:hover .pin, #map.z-low .price-icon.hl .pin { transform: translate(-50%, -50%) scale(1.4); }
#map.z-low .pin-school { padding: 3px 4px; }
#map.z-low .pin-school .lbl { display: none; }
#map.z-low .school-icon.on .pin-school .lbl { display: inline; }

/* ---------- v6: language switch ---------- */
.header-row { flex-wrap: nowrap; }
.nav { order: 2; margin-left: auto; }
.header-right { order: 3; display: flex; align-items: center; gap: 6px; }
.lang-switch { font-weight: 700; font-size: .85rem; text-decoration: none; color: var(--brand); border: 1.5px solid var(--brand); border-radius: 8px; padding: 4px 9px; white-space: nowrap; }
.lang-switch:hover { background: var(--brand-soft); }
@media (max-width: 860px) { .header-right { margin-left: auto; } }

/* ---------- renting process: 6 stages ---------- */
.stage-bar { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.stage-bar li { position: relative; background: var(--brand); color: #fff; font-weight: 700; border-radius: 10px; padding: 10px 8px; text-align: center; font-size: .95rem; display: flex; align-items: center; justify-content: center; gap: 6px; }
.stage-bar li:not(:last-child)::after { content: ""; position: absolute; right: -9px; top: 50%; transform: translateY(-50%); border: 6px solid transparent; border-left-color: var(--brand); z-index: 1; }
.stage-bar .pn { background: rgba(255,255,255,.2); width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .8rem; }
.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stage { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 12px; }
.stage header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.stage header .pn { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; }
.stage h3 { margin: 0; font-size: 1.08rem; }
.stage header small { color: var(--muted); }
.stage h4 { font-size: .8rem; letter-spacing: .04em; color: var(--muted); margin: 10px 0 4px; }
.stage ul { margin: 0; padding-left: 18px; font-size: .92rem; }
.stage ul li { margin-bottom: 3px; }
.stage ul.cost li { color: #7a4a12; }
.stage li.hot { color: var(--warn); font-weight: 700; }
@media (max-width: 960px) { .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stage-bar { grid-template-columns: repeat(3, 1fr); } .stage-bar li:nth-child(3)::after { display: none; } }
@media (max-width: 600px) { .stages { grid-template-columns: 1fr; } .stage-bar { display: none; } }

/* ---------- WeChat / WhatsApp QR pop-up ---------- */
.btn-wa { background: #1f9d55; color: #fff; }
.btn-wa:hover { background: #17834a; }
.btn-wx { background: #07a35a; color: #fff; }
.btn-wx:hover { background: #058a4b; }
.qr-box { max-width: 380px; }
.qr-box .modal-content { padding: 22px 22px 20px; }
.qr-box .modal-close { background: rgba(0,0,0,.12); color: var(--ink); }
.qr-svg, .qr-img { width: 210px; height: 210px; display: block; margin: 8px auto 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.qr-id { margin-top: 12px; display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.qr-box .btn-wa { width: 100%; }
.qr-msg { margin: 14px 0 8px; text-align: left; }
.qr-msg .msg-preview { margin: 0 0 10px; max-height: 180px; overflow: auto; }
