/* ═══ Villa Monasterios — landing pages (all locales) ═══
   Light theme: warm white + stone, graphite text, pool-teal accent.
   After every edit run: python3 scripts/version-assets.py */

:root {
  --bg: #fbf9f5;          /* warm white */
  --bg-alt: #f3eee6;      /* light stone */
  --surface: #ffffff;
  --ink: #1f2328;         /* headings */
  --text: #3a3f45;        /* body copy */
  --muted: #5f6368;       /* secondary copy, AA on --bg-alt */
  --line: rgba(31,35,40,0.10);
  --line-strong: rgba(31,35,40,0.18);
  --accent: #1e6e7e;      /* pool teal */
  --accent-dark: #15545f;
  --accent-soft: #e3eff0;
  --sand: #b08a4e;        /* small decorative details only */
  --radius: 10px;
  --radius-lg: 16px;
  --field-border: #868b91;  /* 3:1 on white for form fields */
  --wa: #15803d;           /* WhatsApp green, AA with white text */
  --wa-dark: #116b33;
  --shadow: 0 1px 2px rgba(31,35,40,0.04), 0 8px 24px rgba(31,35,40,0.06);
  --display: 'Playfair Display', Georgia, serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; scroll-padding-top: 80px; }
body {
  font-family: var(--body); background: var(--bg); color: var(--text);
  font-size: 17px; line-height: 1.7; font-weight: 400; overflow-x: hidden;
}
:lang(zh) body, body:lang(zh) { line-height: 1.85; }
img { max-width: 100%; }
h1, h2, h3, .faq-item summary { text-wrap: balance; }
p { text-wrap: pretty; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.ico { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ico-wa { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* focus */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.hero-cta:focus-visible, .nav-cta:focus-visible, .contact-form button:focus-visible,
.modal-btn:focus-visible, .m-bar-cta:focus-visible, .g-more:focus-visible { outline-color: var(--ink); }
.lightbox :focus-visible { outline-color: #fff; }
.wa-float:focus-visible, .wa-btn:focus-visible, .m-bar-wa:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ─── REVEAL ANIMATIONS ─────────────────────── */
/* Hidden only when JS runs (html.js), so no-JS visitors see everything. */
.js .reveal, .js .reveal-left, .js .reveal-right, .js .reveal-scale {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.js .reveal-scale { transform: scale(0.98); }
.js .reveal.visible, .js .reveal-left.visible, .js .reveal-right.visible, .js .reveal-scale.visible { opacity: 1; transform: none; }
@media (max-width: 768px) {
  .js .reveal, .js .reveal-left, .js .reveal-right, .js .reveal-scale { opacity: 1; transform: none; transition: none; }
}
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.40s; }
.stagger-6 { transition-delay: 0.48s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lightbox img, .modal-box { animation: none; }
  .g-item img, .cg-item img, .amenity, .hero-cta, .wa-btn, .contact-form button { transition: none !important; transform: none !important; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1 !important; transform: none !important; transition: none !important; }
  .wa-float::before { display: none; }
  .m-bar { transition: none; }
}
@media print {
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .hero-content { opacity: 1 !important; transform: none !important; animation: none !important; }
  .m-bar, .wa-float, .nav, .lightbox { display: none !important; }
}

/* ─── NAVIGATION ─────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 48px; padding-top: max(18px, env(safe-area-inset-top));
  background: rgba(251,249,245,0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: padding 0.4s var(--ease-out-expo), border-color 0.4s, box-shadow 0.4s;
}
.nav.scrolled {
  padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: 12px;
  border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(31,35,40,0.05);
}
.nav-brand {
  font-family: var(--display); font-size: 20px; letter-spacing: 0.5px;
  color: var(--ink); font-weight: 500;
}
.nav-center { display: flex; align-items: center; gap: 28px; }
.nav-center a {
  color: var(--text); text-decoration: none; font-size: 15px;
  font-weight: 500; transition: color 0.3s; position: relative;
}
.nav-center a::after {
  content: ''; position: absolute; bottom: -6px; left: 0; width: 0;
  height: 2px; background: var(--accent); transition: width 0.4s var(--ease-out-expo);
}
.nav-center a:hover { color: var(--accent); }
.nav-center a:hover::after { width: 100%; }
.nav-center a.nav-cta { background: var(--accent); color: #fff; padding: 9px 18px; border-radius: 999px; font-weight: 600; transition: background 0.3s; }
.nav-center a.nav-cta::after { display: none; }
.nav-center a.nav-cta:hover { background: var(--accent-dark); color: #fff; }
.nav-right { position: relative; }
.lang-toggle {
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink);
  padding: 8px 14px; font-size: 13px; font-family: var(--body); font-weight: 600;
  letter-spacing: 1px; cursor: pointer; border-radius: 999px; transition: border-color 0.3s, color 0.3s;
  display: flex; align-items: center; gap: 6px;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }
.lang-toggle svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform 0.3s; }
.nav-right.open .lang-toggle svg { transform: rotate(180deg); }
.lang-drop {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); min-width: 160px; z-index: 100; overflow: hidden;
}
.nav-right.open .lang-drop { display: block; }
.lang-drop a {
  display: flex; align-items: center; min-height: 44px; padding: 0 18px; font-size: 15px;
  color: var(--text); text-decoration: none; font-family: var(--body);
  transition: background 0.2s, color 0.2s;
}
.lang-drop a:hover { color: var(--accent); background: var(--accent-soft); }
.lang-drop a.active { color: var(--accent); font-weight: 600; }
.nav-burger {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; position: relative; margin-left: -9px; margin-right: 8px;
}
.nav-burger span {
  display: block; width: 26px; height: 2px; background: var(--ink); border-radius: 2px;
  position: absolute; left: 9px; transition: all 0.3s;
}
.nav-burger span:nth-child(1) { top: 13px; }
.nav-burger span:nth-child(2) { top: 21px; }
.nav-burger span:nth-child(3) { top: 29px; }
.nav-burger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.mobile-menu {
  display: none; position: fixed; inset: 0;
  z-index: 999; background: var(--bg); overflow-y: auto;
  flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px;
  padding: 72px 16px 24px;
}
/* centred when it fits, scrolls from the top when it doesn't (landscape phones) */
.mobile-menu > :first-child { margin-top: auto; }
.mobile-menu > :last-child { margin-bottom: auto; }
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--display); font-size: 28px; font-weight: 400;
  color: var(--ink); text-decoration: none; transition: color 0.3s;
  padding: 8px 16px; min-height: 44px; display: inline-flex; align-items: center;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu a.mm-cta {
  margin-top: 18px; font-family: var(--body); font-size: 17px; font-weight: 600;
  background: var(--accent); color: #fff; border-radius: 999px; padding: 14px 32px;
}
.mobile-menu a.mm-cta:hover { background: var(--accent-dark); color: #fff; }
.mobile-menu a.mm-wa {
  font-family: var(--body); font-size: 16px; font-weight: 600; color: var(--wa); gap: 8px;
}
.mobile-lang { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.mobile-lang a {
  font-family: var(--body) !important; font-size: 14px !important; font-weight: 600 !important;
  letter-spacing: 1px !important; color: var(--text) !important;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 16px;
}
.mobile-lang a.active, .mobile-lang a:hover { color: var(--accent) !important; border-color: var(--accent) !important; }
@media (max-width: 1100px) {
  .nav-burger { display: block; }
  .nav-center { display: none; }
  /* perf: backdrop blur is costly on phones/tablets; the card is near-opaque anyway */
  .hero-content { background: rgba(251,249,245,0.97); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* tablet: keep the Schedule Viewing pill in the header (burger holds the rest) */
@media (min-width: 769px) and (max-width: 1100px) {
  .nav-center { display: flex; margin-left: auto; margin-right: 14px; }
  .nav-center a:not(.nav-cta) { display: none; }
}

/* ─── HERO ────────────────────────────────────── */
.hero {
  position: relative; height: auto;
  min-height: max(600px, min(88vh, 860px)); min-height: max(600px, min(88svh, 860px));
  display: flex; align-items: flex-end; justify-content: flex-start;
  /* top padding clears the fixed nav, so long titles (de/fr/pl) grow the hero downward instead of hiding under it */
  overflow: hidden; padding: calc(81px + 32px) 48px 88px;
}
.hero-bg { position: absolute; inset: 0; display: block; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,30,35,0) 55%, rgba(20,30,35,0.28) 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: left;
  max-width: 640px; padding: 40px 44px 40px;
  background: rgba(251,249,245,0.93);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 14px; box-shadow: 0 20px 60px rgba(20,30,35,0.18);
}
.hero-eyebrow {
  font-size: 15px; letter-spacing: 0.01em;
  color: var(--accent); font-weight: 600; margin-bottom: 14px; text-wrap: balance;
}
.hero-title {
  font-family: var(--display); font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 500; color: var(--ink); line-height: 1.1;
  margin-bottom: 18px; letter-spacing: -0.01em;
}
.hero-title em { font-style: italic; font-weight: 500; color: var(--accent); }
/* German title runs to 5-6 lines at the base size: keep the hero card within the first screen */
@media (min-width: 769px) { :lang(de) .hero-title { font-size: clamp(32px, 3.6vw, 46px); } }
.hero-divider { width: 48px; height: 2px; background: var(--sand); margin: 0 0 18px; }
.hero-specs {
  font-size: 16px; color: var(--text); line-height: 1.7; margin-bottom: 26px;
}
.hero-specs .spec-row { display: block; }
.hero-specs .spec + .spec::before { content: "\00B7"; margin: 0 0.45em; color: var(--muted); }
/* intro paragraph under h1 (also carries .hero-specs; the double class beats the mobile flex rule) */
.hero-specs.hero-lead { display: block; font-size: 17px; line-height: 1.6; margin-bottom: 18px; color: var(--text); }
.hero-price-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.hero-price-label {
  width: 100%; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.hero-price {
  display: inline-block; font-family: var(--display); font-size: clamp(32px, 3vw, 40px);
  font-weight: 600; color: var(--ink); letter-spacing: 0.5px;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px;
  background: var(--accent); color: #fff;
  text-decoration: none; font-size: 15px; font-weight: 600;
  transition: background 0.3s, transform 0.3s;
}
.hero-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }
.hero-cta--ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); padding: 12.5px 22px; }
.hero-cta--ghost:hover { background: var(--accent-soft); color: var(--accent-dark); }
.guide-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 24px; padding-bottom: 3px;
  color: var(--accent); text-decoration: none;
  font-size: 16px; font-weight: 600;
  border-bottom: 2px solid rgba(30,110,126,0.6);
  transition: color 0.3s, border-color 0.3s;
}
.guide-link:hover { color: var(--accent-dark); border-color: var(--accent-dark); }
.guide-link span { transition: transform 0.3s var(--ease-out-expo); }
.guide-link:hover span { transform: translateX(4px); }

/* ─── STATS RIBBON ───────────────────────────── */
.stats-ribbon {
  display: grid; grid-template-columns: repeat(8, 1fr);
  max-width: 1240px; margin: -44px auto 0; position: relative; z-index: 3;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden;
}
.stat { padding: 26px 12px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat:nth-child(4) { border-right-color: var(--line-strong); } /* property | location */
.stat-num {
  font-family: var(--display); font-size: 34px; font-weight: 500;
  color: var(--ink); line-height: 1;
}
.stat-label { font-size: 14px; line-height: 1.35; color: var(--muted); margin-top: 10px; font-weight: 500; }
@media (max-width: 1280px) { .stats-ribbon { margin: -44px 24px 0; } }
@media (max-width: 1100px) {
  .stats-ribbon { grid-template-columns: repeat(4, 1fr); }
  .stat:nth-child(4n) { border-right: none; }
  .stat:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
}

/* ─── SECTION COMMON ─────────────────────────── */
.section { padding: 112px max(80px, calc((100% - 1240px) / 2)); position: relative; }
.section-dark { background: var(--bg); }
.section-darker { background: var(--bg-alt); }
.section-surface { background: var(--surface); }
.section-eyebrow {
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
}
.section-eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--sand); }
.section-heading {
  font-family: var(--display); font-size: clamp(28px, 3vw, 42px);
  font-weight: 500; color: var(--ink); line-height: 1.18;
  margin-bottom: 20px; letter-spacing: -0.01em; max-width: 920px;
}
.section-heading em { font-style: italic; color: inherit; }
#contact .section-heading em { color: var(--accent); }
:lang(zh) .section-eyebrow, :lang(zh) .hero-eyebrow, :lang(zh) .school-badge, :lang(zh) .hero-price-label { letter-spacing: 0; text-transform: none; }
.section-subtext {
  font-size: 18px; color: var(--text); max-width: 66ch;
  line-height: 1.7; margin-bottom: 48px;
}

/* ─── GALLERY ────────────────────────────────── */
.gallery-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 160px; grid-auto-flow: dense; gap: 10px; margin-top: 40px;
}
.g-item {
  position: relative; overflow: hidden; cursor: pointer; border-radius: 8px;
  grid-column: span 3; grid-row: span 2; background: var(--bg-alt);
}
button.g-item { border: 0; padding: 0; font: inherit; display: block; width: 100%; text-align: left; color: inherit; }
.js .gallery-grid.is-collapsed .g-item:nth-child(n+10) { display: none; }
.g-item.g-hero { grid-column: span 6; grid-row: span 3; }
.g-item.g-wide { grid-column: span 6; grid-row: span 2; }
.g-item.g-tall { grid-column: span 3; grid-row: span 3; }
.g-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1s var(--ease-out-expo);
}
.g-item:hover img { transform: scale(1.04); }
.g-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(20,30,35,0.7) 100%);
  opacity: 0; transition: opacity 0.4s;
}
.g-item:hover::after { opacity: 1; }
.g-item .g-label {
  position: absolute; bottom: 14px; left: 16px; z-index: 2;
  font-size: 15px; color: #fff; font-weight: 600;
  opacity: 0; transform: translateY(6px); transition: all 0.4s var(--ease-out-expo);
}
.g-item:hover .g-label { opacity: 1; transform: translateY(0); }
.g-item:focus-visible .g-label, .g-item:focus-visible::after { opacity: 1; transform: none; }
@media (hover: none) { .g-item .g-label, .g-item::after { opacity: 1; transform: none; } }
.g-more-wrap { display: none; text-align: center; margin-top: 28px; }
.js .g-more-wrap { display: block; }
.g-more-wrap[hidden] { display: none !important; }
.g-more {
  background: transparent; border: 1.5px solid var(--accent); color: var(--accent);
  font: 600 16px var(--body); padding: 14px 28px; border-radius: 999px; min-height: 48px; cursor: pointer;
  transition: background 0.3s;
}
.g-more:hover { background: var(--accent-soft); }

/* ─── LIGHTBOX (stays dark: photos read best on dark) ─── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(15,18,20,0.95); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { touch-action: pan-y pinch-zoom; max-width: 90vw; max-height: 84vh; object-fit: contain; border-radius: 4px; animation: lbFade 0.4s var(--ease-out-expo); }
@keyframes lbFade { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }
.lb-close {
  position: absolute; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right));
  font-size: 30px; color: #fff; cursor: pointer; background: none;
  border: none; font-family: var(--body); opacity: 0.75; transition: opacity 0.3s;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
}
.lb-close:hover { opacity: 1; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 40px; color: #fff; cursor: pointer; background: none;
  border: none; opacity: 0.7; transition: opacity 0.3s; padding: 24px;
}
.lb-nav:hover { opacity: 1; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.8); font-size: 14px; letter-spacing: 1px; font-weight: 500;
}

/* ─── VIRTUAL TOUR ───────────────────────────── */
.tour-frame {
  width: 100%; height: 640px; border-radius: var(--radius);
  overflow: hidden; position: relative; box-shadow: var(--shadow); background: #dfe6e8;
}
.tour-frame .pnlm-container { background: #dfe6e8 !important; }
.tour-frame .pnlm-hot-spot-debug-indicator { display: none; }

/* ─── RESIDENCE ──────────────────────────────── */
.residence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.residence-card {
  padding: 40px 40px 42px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); position: relative;
}
.residence-card h3 {
  font-family: var(--display); font-size: 26px; font-weight: 500;
  color: var(--ink); margin-bottom: 14px; padding-right: 0;
}
.residence-card .floor-num {
  display: block; font-family: var(--display); font-size: 15px; letter-spacing: 2px;
  color: var(--sand); font-weight: 600; margin-bottom: 10px; line-height: 1;
}
.residence-card p { color: var(--text); font-size: 17px; line-height: 1.62; max-width: 66ch; }

/* ─── AMENITIES ──────────────────────────────── */
.amenities-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 40px; list-style: none; padding: 0; }
.amenity {
  padding: 30px 18px; text-align: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s;
}
.amenity:hover { border-color: rgba(30,110,126,0.4); }
.amenity-icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin: 0 auto 14px;
}
.amenity-name { font-size: 16px; color: var(--ink); font-weight: 500; }

/* ─── COMMUNITY ──────────────────────────────── */
.community-hero { position: relative; min-height: 560px; overflow: hidden; display: flex; align-items: center; }
.community-hero { background: var(--bg-alt); }
.community-hero-bg { position: absolute; inset: 0; display: block; }
.community-hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.community-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(243,238,230,0.97) 0%, rgba(243,238,230,0.95) 50%, rgba(243,238,230,0) 68%);
}
.community-hero-content { position: relative; z-index: 2; padding: 80px 0 80px max(80px, calc((100% - 1240px) / 2)); max-width: calc(680px + max(80px, calc((100% - 1240px) / 2))); }
.community-hero-content h2 {
  font-family: var(--display); font-size: clamp(28px, 3vw, 40px);
  font-weight: 500; color: var(--ink); line-height: 1.18; margin-bottom: 18px;
}
.community-hero-content h2 em { font-style: italic; color: inherit; }
.community-hero-content p { color: var(--text); font-size: 17px; line-height: 1.75; max-width: 66ch; }
.community-features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  background: var(--bg-alt); padding: 64px max(80px, calc((100% - 1240px) / 2));
}
.comm-feat {
  padding: 32px 28px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.comm-feat-icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 14px;
}
.comm-feat h3 { font-family: var(--display); font-size: 22px; font-weight: 500; color: var(--ink); margin-bottom: 10px; }
.comm-feat p { font-size: 16px; color: var(--text); line-height: 1.62; }
.community-schools {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  background: var(--bg-alt); padding: 0 max(80px, calc((100% - 1240px) / 2)) 80px;
}
.school-card {
  padding: 40px 40px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.school-badge {
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 12px;
}
.school-card h3 { font-family: var(--display); font-size: 26px; font-weight: 500; color: var(--ink); margin-bottom: 12px; }
.school-card p { font-size: 17px; color: var(--text); line-height: 1.62; margin-bottom: 8px; max-width: 66ch; }
.school-tag {
  display: inline-block; font-size: 14px; color: var(--accent-dark); font-weight: 500;
  background: var(--accent-soft); border-radius: 999px; padding: 5px 14px;
  margin-top: 10px; margin-right: 6px;
}
.community-gallery {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
  background: var(--bg-alt); padding: 32px max(80px, calc((100% - 1240px) / 2)) 0;
}
.community-gallery .cg-item { position: relative; overflow: hidden; height: 240px; border-radius: 12px; }
.community-gallery .cg-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1s var(--ease-out-expo);
}
.community-gallery .cg-item:hover img { transform: scale(1.04); }
.community-gallery .cg-item .cg-caption {
  position: absolute; bottom: 12px; left: 14px; z-index: 2;
  font-size: 14px; color: #fff; font-weight: 600;
  background: rgba(20,30,35,0.72); padding: 4px 10px; border-radius: 999px;
}

/* ─── SUPPORT (ru) ───────────────────────────── */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.support-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; }
.support-num { font-family: var(--display); font-size: 15px; letter-spacing: 2px; color: var(--accent); margin-bottom: 14px; font-weight: 600; }
.support-item h4 { font-family: var(--display); font-weight: 500; font-size: 22px; color: var(--ink); margin-bottom: 10px; }
.support-item p { font-size: 16px; line-height: 1.7; color: var(--text); margin: 0; }
.support-note {
  margin-top: 36px; padding: 24px 28px; background: var(--accent-soft);
  border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 17px; line-height: 1.7; color: var(--ink);
}

/* ─── LOCATION ───────────────────────────────── */
.loc-split { display: grid; grid-template-columns: 5fr 7fr; min-height: 520px; }
.loc-text-wrap {
  padding: 80px 64px; display: flex; flex-direction: column; justify-content: center;
  background: var(--bg);
}
.loc-text-wrap p { color: var(--text); font-size: 17px; line-height: 1.75; max-width: 66ch; }
.loc-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.loc-hl {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border-radius: var(--radius); padding: 14px 16px; border: 1px solid var(--line);
}
.loc-hl-num { font-family: var(--display); font-size: 30px; color: var(--accent); font-weight: 500; min-width: 48px; }
.loc-hl-label { font-size: 15px; color: var(--text); line-height: 1.35; }
.loc-map-wrap { position: relative; overflow: hidden; }
.loc-map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }
/* map facade: no Google Maps JS until the visitor asks for the map */
.map-facade {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: 320px; padding: 32px 24px; text-align: center;
  background-color: var(--bg-alt);
  background-image:
    radial-gradient(circle at 50% 46%, rgba(30,110,126,0.10) 0 90px, transparent 91px),
    linear-gradient(rgba(31,35,40,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,35,40,0.05) 1px, transparent 1px),
    linear-gradient(32deg, transparent 48%, rgba(255,255,255,0.9) 48% 52%, transparent 52%),
    linear-gradient(-58deg, transparent 47%, rgba(255,255,255,0.8) 47% 50%, transparent 50%);
  background-size: auto, 40px 40px, 40px 40px, auto, auto;
}
.map-facade-ico { width: 44px; height: 44px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.map-facade-cap { font-family: var(--display); font-size: 20px; color: var(--ink); line-height: 1.3; max-width: 34ch; }
.map-facade-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; align-items: center; }
.map-facade-show {
  display: none; align-items: center; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; font: 600 15px/1 var(--body); cursor: pointer;
}
.js .map-facade-show { display: inline-flex; }
.map-facade-show:hover { background: var(--accent-dark); }
.map-facade-link { color: var(--accent-dark); font-weight: 600; font-size: 15px; text-underline-offset: 3px; }

/* ─── CTA STRIP (after #location; hidden on mobile, m-bar does the job) ─── */
.cta-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 36px max(80px, calc((100% - 1240px) / 2)); background: var(--accent-soft);
}
.cta-strip-num { font-family: var(--display); font-size: 32px; font-weight: 600; color: var(--ink); display: block; line-height: 1.2; }
.cta-strip-note { font-size: 15px; color: var(--muted); font-weight: 600; }
.cta-strip-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ─── CONTACT ────────────────────────────────── */
.contact-split { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; margin-top: 32px; }
.contact-left { position: sticky; top: 100px; align-self: start; }
.contact-photo { display: block; }
.contact-photo img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; margin-top: 32px; display: block; }
.contact-left h3 { font-family: var(--display); font-size: 30px; font-weight: 500; color: var(--ink); margin-bottom: 16px; }
.contact-left p { color: var(--text); font-size: 17px; line-height: 1.62; margin-bottom: 8px; }
.contact-left p a, .faq-item a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.contact-left a { color: var(--accent); }
.contact-phone { font-family: var(--display); font-size: 28px; color: var(--ink) !important; display: block; margin: 20px 0; }
a.wa-btn, a.wa-btn:hover {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--wa); color: #fff !important; padding: 15px 30px; border-radius: 999px; min-height: 52px;
  text-decoration: none; font-size: 16px; font-weight: 600; margin-top: 12px;
  transition: background 0.3s, transform 0.3s;
}
a.wa-btn:hover { background: var(--wa-dark); transform: translateY(-1px); }
.contact-form {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); padding: 32px; border-radius: 14px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.contact-form input, .contact-form textarea {
  background: var(--bg); border: 1px solid var(--field-border); border-radius: 10px; min-height: 52px;
  padding: 14px 16px; color: var(--ink); font-family: var(--body);
  font-size: 16px; outline: none; transition: border-color 0.3s, box-shadow 0.3s;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #7a7e83; }
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30,110,126,0.15); outline: none;
}
.contact-form input:focus-visible, .contact-form textarea:focus-visible {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30,110,126,0.35);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button {
  align-self: flex-start; margin-top: 6px;
  background: var(--accent); border: none; color: #fff; border-radius: 999px;
  padding: 15px 40px; font-family: var(--body); font-size: 16px; font-weight: 600;
  cursor: pointer; transition: background 0.3s, transform 0.3s;
}
.contact-form button:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* ─── SUCCESS MODAL ──────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 3000;
  background: rgba(20,30,35,0.45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--surface); border-radius: 14px; box-shadow: 0 24px 60px rgba(20,30,35,0.2);
  padding: 48px 40px; max-width: 440px; width: 90%; text-align: center;
  animation: lbFade 0.4s var(--ease-out-expo);
}
.modal-icon {
  width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.modal-title { font-family: var(--display); font-size: 26px; font-weight: 500; color: var(--ink); margin-bottom: 10px; }
.modal-text { font-size: 16px; color: var(--text); line-height: 1.7; margin-bottom: 28px; }
.modal-btn {
  background: var(--accent); border: none; color: #fff; border-radius: 999px;
  padding: 13px 40px; font-family: var(--body); font-size: 16px; font-weight: 600;
  cursor: pointer; transition: background 0.3s;
}
.modal-btn:hover { background: var(--accent-dark); }

/* ─── FAQ ─────────────────────────────────── */
.faq-list { max-width: 880px; margin-top: 40px; border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative;
  font-family: var(--display); font-size: clamp(19px, 2vw, 22px); font-weight: 500; color: var(--ink);
  line-height: 1.4; transition: color 0.3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-family: var(--body); font-weight: 400; font-size: 28px; color: var(--accent); transition: transform 0.3s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-item p { padding: 0 0 26px; font-size: 17px; line-height: 1.62; color: var(--text); max-width: 66ch; }

/* ─── FOOTER ─────────────────────────────────── */
.footer {
  padding: 48px 80px; text-align: center; background: var(--bg-alt);
  border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); line-height: 1.8;
}
.footer a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; transition: color 0.3s; }
.footer a:hover { color: var(--accent); }

.g-item picture, .cg-item picture { display: contents; }

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1100px) {
  .community-features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .section { padding: 88px 40px; }
  .community-features { padding: 48px 40px; }
  .amenities-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 140px; }
  .cta-strip { padding: 32px 40px; }
  .g-item { grid-column: span 3; grid-row: span 2; }
  .g-item.g-hero { grid-column: span 6; grid-row: span 2; }
  .g-item.g-wide { grid-column: span 3; }
  .g-item.g-tall { grid-column: span 3; grid-row: span 2; }
  .community-gallery { grid-template-columns: repeat(5, 1fr); padding: 32px 40px 0; }
  .community-gallery .cg-item { height: 180px; }
  .community-schools { padding: 0 40px 64px; }
  .support-grid { grid-template-columns: repeat(2, 1fr); }
  .loc-text-wrap { padding: 64px 40px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .amenities-grid { grid-template-columns: repeat(5, 1fr); gap: 10px; }
  .amenity { padding: 24px 10px; }
  .gallery-grid { grid-auto-rows: 110px; }
  /* 28 tiles leave one half-row at the end: let the last one span the row */
  .gallery-grid:not(.is-collapsed) .g-item:last-child { grid-column: span 6; }
}
@media (min-width: 769px) and (max-width: 1100px) {
  .loc-highlights { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  body { font-size: 17px; }
  .section { padding: 48px 16px; }
  .nav { padding: 6px 16px; padding-top: max(6px, env(safe-area-inset-top)); }
  /* perf: no backdrop blur on the fixed header on phones (repaints on every scroll frame) */
  .nav { background: rgba(251,249,245,0.98); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav.scrolled { padding: 6px 16px; padding-top: max(6px, env(safe-area-inset-top)); }
  .nav-brand { font-size: 19px; }
  .lang-toggle { min-height: 44px; padding: 10px 14px; font-size: 14px; }

  /* hero: photo, then a white card overlapping it */
  .hero {
    height: auto; min-height: 0; max-height: none; padding: 58px 0 0;
    display: block; background: var(--bg);
  }
  /* photo kept shorter so the card (with the intro paragraph), price and buttons fit a 375×812 screen */
  .hero-bg { position: relative; inset: auto; height: 26vh; height: 26svh; min-height: 180px; max-height: 300px; }
  .hero-bg img { object-position: center 45%; }
  .hero-overlay { display: none; }
  .hero-content {
    max-width: none; margin: -28px 16px 0; padding: 18px 18px 20px; border-radius: 14px;
    background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none;
    box-shadow: 0 10px 30px rgba(20,30,35,0.12);
  }
  .hero-eyebrow { font-size: 13px; margin-bottom: 8px; line-height: 1.4; }
  .hero-title { font-size: 28px; line-height: 1.14; margin-bottom: 10px; }
  .hero-divider { display: none; }
  .hero-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; font-size: 14px; line-height: 1.4; }
  .hero-specs .spec { background: var(--bg-alt); border-radius: 999px; padding: 4px 10px; color: var(--ink); }
  .hero-specs .spec::before { display: none !important; }
  .hero-specs .spec-row { display: contents; }
  .hero-specs .spec-row--am { display: none; }
  .hero-specs.hero-lead { display: block; font-size: 15px; line-height: 1.5; margin-bottom: 12px; color: var(--text); }
  .hero-price-wrap { gap: 4px 16px; }
  .hero-price-label { font-size: 13px; }
  .hero-price { font-size: 30px; line-height: 1.2; }
  .hero-actions { width: 100%; flex-wrap: nowrap; margin-top: 8px; }
  .hero-actions .hero-cta { flex: 1; justify-content: center; min-height: 50px; padding: 0 20px; }
  .hero-actions .hero-cta--ghost { flex: 0 0 50px; width: 50px; padding: 0; border-radius: 50%; }
  .hero-cta--ghost .wa-txt, .cta-strip .wa-txt {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }

  /* key facts 4×2 */
  .stats-ribbon { margin: 16px 16px 0; grid-template-columns: repeat(4, 1fr); border-radius: 12px; }
  .stat { padding: 14px 4px; border-bottom: none; }
  .stat:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .stat:nth-child(4n) { border-right: none; }
  .stat-num { font-size: 24px; }
  .stat-label { font-size: 13px; margin-top: 4px; }

  .section-heading { font-size: 27px; margin-bottom: 14px; }
  .section-subtext { font-size: 17px; margin-bottom: 28px; }

  /* gallery: 6 tiles collapsed */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 8px; margin-top: 24px; }
  .g-item { grid-column: span 1 !important; grid-row: span 1 !important; }
  .g-item.g-hero { grid-column: span 2 !important; grid-row: span 2 !important; }
  .g-item.g-wide { grid-column: span 2 !important; }
  .js .gallery-grid.is-collapsed .g-item:nth-child(n+7) { display: none; }
  .g-more-wrap { margin-top: 12px; }
  .g-more { width: 100%; }
  .lb-nav { display: none; }

  .tour-frame { height: 62vw; max-height: 300px; }
  .residence-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .residence-card { padding: 22px 20px; }
  .residence-card h3 { font-size: 21px; }
  .residence-card p { font-size: 16px; line-height: 1.65; }

  .amenities-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
  .amenity { min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; }
  .amenity-icon { width: 40px; height: 40px; margin: 0; flex: none; }
  .amenity-icon .ico { width: 22px; height: 22px; }
  .amenity-name { font-size: 15px; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; hyphens: auto; }

  .loc-split { grid-template-columns: 1fr; min-height: 0; }
  .loc-text-wrap { padding: 48px 16px 24px; }
  .loc-text-wrap > div { padding-right: 0 !important; }
  .loc-map-wrap { min-height: 260px; height: 260px; margin: 0 16px 32px; border-radius: 12px; }
  .map-facade { min-height: 0; padding: 20px 16px; gap: 10px; }
  .map-facade-cap { font-size: 18px; }
  .loc-highlights { gap: 10px; }
  .loc-hl { padding: 12px; gap: 10px; }
  .loc-hl-num { font-size: 26px; min-width: 0; }
  .loc-hl-label { font-size: 14px; }
  .cta-strip { display: none; }

  /* community: horizontal scroll-snap rows, nothing hidden */
  .community-hero { min-height: 0; display: block; }
  .community-hero-bg { position: relative; height: 200px; }
  .community-hero-overlay { display: none; }
  .community-hero-content { padding: 32px 16px 8px; max-width: none; background: var(--bg-alt); }
  .community-hero-content h2 { font-size: 27px; }
  .community-gallery, .community-features, .community-schools {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 82%;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    gap: 12px; padding: 20px 16px; scroll-padding: 0 16px; overscroll-behavior-x: contain;
  }
  .community-gallery { grid-auto-columns: 78%; }
  .community-gallery .cg-item { height: 180px; }
  .community-gallery .cg-item:nth-child(n+3) { display: block; }
  .community-gallery > *, .community-features > *, .community-schools > * { scroll-snap-align: start; }
  .community-schools { padding-bottom: 40px; }
  .comm-feat { padding: 22px 20px; }
  .school-card { padding: 24px 20px; }
  .school-card h3 { font-size: 23px; }

  .support-grid { grid-template-columns: 1fr; gap: 12px; }
  .support-item { padding: 26px 22px; }

  .contact-split { display: flex; flex-direction: column; align-items: stretch; gap: 20px; margin-top: 24px; }
  .contact-left { position: static; align-self: stretch; }
  .contact-left h3 { font-size: 21px; margin-bottom: 12px; }
  .contact-photo { display: none; }
  a.wa-btn { width: 100%; justify-content: center; }
  .contact-form { padding: 22px 18px; }
  .contact-form input, .contact-form textarea { min-height: 48px; }
  .contact-form button { width: 100%; align-self: stretch; min-height: 50px; }
  .faq-item summary { padding: 20px 40px 20px 0; }
  .faq-item p { font-size: 16px; }
  .footer { padding: 36px 16px calc(96px + env(safe-area-inset-bottom)); font-size: 14px; }
  .footer a { display: inline-block; padding: 12px 6px; }
  .guide-link { padding: 10px 0; }
  .modal-box { padding: 36px 24px; }
}
@media (max-width: 400px) {
  .hero-title { font-size: 26px; }
  .gallery-grid { grid-auto-rows: 120px; }
  .stat { padding: 12px 2px; }
  .stat-label { font-size: 13px; hyphens: auto; -webkit-hyphens: auto; }
}

/* ─── FLOATING WHATSAPP (desktop only; m-bar replaces it on mobile) ─── */
.wa-float {
  position: fixed; right: calc(24px + env(safe-area-inset-right)); bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 950; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(20,30,35,0.18); transition: transform 0.3s, background 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.wa-float .ico-wa { width: 30px; height: 30px; }
.wa-float:hover { background: var(--wa-dark); transform: scale(1.08); }
.wa-float::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--wa); z-index: -1;
  animation: wa-pulse 2.4s ease-out 3;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: 0.55; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
body.lb-open .wa-float, body.menu-open .wa-float { display: none; }
/* the CTA strip has its own WhatsApp button: don't double it */
body.strip-in-view .wa-float { opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; }
@media (max-width: 768px) { .wa-float { display: none; } }

/* ─── STICKY MOBILE BAR ─── */
.m-bar { display: none; }
@media (max-width: 768px) {
  .m-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    align-items: center; gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(251,249,245,0.98); -webkit-backdrop-filter: none; backdrop-filter: none;
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform 0.25s ease;
  }
  .m-bar.show { transform: none; }
  body.lb-open .m-bar, body.menu-open .m-bar { display: none; }
  .m-bar-price { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--ink); margin-right: auto; white-space: nowrap; }
  .m-bar-cta {
    background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px;
    padding: 0 18px; min-height: 48px; display: inline-flex; align-items: center; border-radius: 999px; white-space: nowrap;
    min-width: 0; overflow: hidden; text-overflow: ellipsis; /* never push the WhatsApp button off-screen */
  }
  .m-bar-wa { width: 48px; height: 48px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; flex: none; }
  .m-bar-wa .ico-wa { width: 24px; height: 24px; }
}
@media (max-width: 374px) {
  .m-bar { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .m-bar-price { font-size: 17px; }
  .m-bar-cta { font-size: 14px; padding: 0 14px; }
}

/* CJK: don't break inside words/place names in headings and stat labels */
:lang(zh) .hero-title, :lang(zh) .section-heading, :lang(zh) .community-hero-content h2, :lang(zh) .stat-label { word-break: keep-all; overflow-wrap: anywhere; }

/* lining figures for prices and numbers (Playfair defaults to old-style) */
body, h1, h2, h3, h4 { font-variant-numeric: lining-nums; }
