/* fitnesi.ge design system
   Layout: dark photo hero → light directory (sticky filter toolbar, card grid + sticky map with price pins).
   Categories are colour-coded like competition bumper plates: 25 kg red, 20 kg blue, 15 kg yellow, 10 kg green. */
:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-2: #eef0f3;
  --surface-3: #e4e7ec;
  --ink: #0d1015;
  --ink-2: #2a303a;
  --muted: #5c6472;
  --line: #e0e3e8;
  --line-strong: #cbd1d9;
  --accent: #e2342b;
  --accent-hover: #c62a22;
  --accent-ink: #ffffff;
  --accent-soft: #fdecea;
  --ok: #0e8a5e;
  --ok-soft: #e2f4eb;
  --warn: #875700;
  --warn-soft: #fdf3da;
  --feat: #5a44df;
  --feat-soft: #eeebff;
  --plate-red: #d7262d;
  --plate-blue: #1f5fbf;
  --plate-yellow: #e3a600;
  --plate-green: #2c9a58;
  --plate-grey: #8b94a3;
  --hero-fg: #ffffff;
  --hero-muted: rgba(255, 255, 255, .74);
  --scrim: rgba(8, 10, 13, .55);
  --shadow-sm: 0 1px 2px rgba(13, 16, 21, .06), 0 1px 1px rgba(13, 16, 21, .04);
  --shadow-md: 0 1px 2px rgba(13, 16, 21, .05), 0 4px 12px -2px rgba(13, 16, 21, .08), 0 12px 32px -8px rgba(13, 16, 21, .10);
  --shadow-lg: 0 2px 4px rgba(13, 16, 21, .06), 0 16px 40px -8px rgba(13, 16, 21, .22);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --f-display: "Noto Sans Georgian", "Google Sans", "Segoe UI", system-ui, sans-serif;
  --f-body: "Google Sans", "Noto Sans Georgian", "Segoe UI", system-ui, -apple-system, sans-serif;
  --header-h: 64px;
  --toolbar-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0c0f; --surface: #121519; --surface-2: #191d23; --surface-3: #232831; --ink: #eef1f5; --ink-2: #c8cdd6;
    --muted: #949cab; --line: #232832; --line-strong: #323946; --accent: #ff4d43; --accent-hover: #ff6a61;
    --accent-soft: #2b1514; --ok: #3ccf95; --ok-soft: #0f241c; --warn: #f0b65a; --warn-soft: #2a2010;
    --feat: #a596ff; --feat-soft: #1e1a38; --plate-grey: #6f7886; --scrim: rgba(0, 0, 0, .6);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow-md: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -6px rgba(0, 0, 0, .5);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 18px 44px -8px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0c0f; --surface: #121519; --surface-2: #191d23; --surface-3: #232831; --ink: #eef1f5; --ink-2: #c8cdd6;
  --muted: #949cab; --line: #232832; --line-strong: #323946; --accent: #ff4d43; --accent-hover: #ff6a61;
  --accent-soft: #2b1514; --ok: #3ccf95; --ok-soft: #0f241c; --warn: #f0b65a; --warn-soft: #2a2010;
  --feat: #a596ff; --feat-soft: #1e1a38; --plate-grey: #6f7886; --scrim: rgba(0, 0, 0, .6);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow-md: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -6px rgba(0, 0, 0, .5);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 18px 44px -8px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body);
  font-size: 16px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-stretch: 87.5%; font-weight: 800; letter-spacing: 0; line-height: 1.3; text-wrap: balance; }
p { text-wrap: pretty; }
/* Mtavruli (Georgian capitals) for short display text: Chrome needs the font's case feature, other engines use text-transform. */
.caps, .eyebrow, .hero h1, .section-head h2, .band h2, .p-hero h1, .badge, .footer-grid h4, .step h3, .plan h3, .example-tag, .drawer .body h4, .owner h3 {
  text-transform: uppercase; font-feature-settings: "case" 1;
}
.caps em, .p-hero h1 em { text-transform: none; font-feature-settings: normal; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
body.no-scroll { overflow: hidden; }
.container {
  max-width: 1320px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow {
  font-family: var(--f-display); font-stretch: 87.5%; font-size: 12.5px; font-weight: 700; letter-spacing: .08em;
  color: var(--accent); line-height: 1.2;
}
.ico { width: 18px; height: 18px; flex: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- plates (category colour code) ---------- */
.plate {
  --c: var(--plate-grey);
  width: 14px; height: 14px; border-radius: 50%; flex: none; display: inline-block;
  background: radial-gradient(circle, var(--surface) 0 2px, var(--c) 2.5px 5px, color-mix(in srgb, var(--c) 70%, #000) 5.5px 6px, var(--c) 6.5px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, #000);
}
.plate.red { --c: var(--plate-red); }
.plate.blue { --c: var(--plate-blue); }
.plate.yellow { --c: var(--plate-yellow); }
.plate.green { --c: var(--plate-green); }

/* ---------- header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 1001; background: var(--surface); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 1000; height: var(--header-h);
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 24px; height: 100%; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--f-display); font-stretch: 85%; font-weight: 800; font-size: 22px; letter-spacing: -.03em; }
.logo-mark { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--accent) 70%, #000); }
.logo-mark::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 80%, #000); }
.logo .tld { color: var(--accent); }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 14px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a.active { color: var(--ink); }
.demo-ribbon {
  font-size: 12.5px; color: var(--warn); background: var(--warn-soft); border-bottom: 1px solid color-mix(in srgb, var(--warn) 18%, transparent);
  padding-block: 7px; text-align: center;
}

/* ---------- buttons, inputs, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer; text-decoration: none; white-space: nowrap;
  background: var(--accent-btn, var(--accent)); color: var(--accent-ink); font-weight: 600; font-size: 14px;
  transition: background .15s, border-color .15s, transform .08s, box-shadow .15s;
}
.btn:hover { background: var(--accent-btn-hover, var(--accent-hover)); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn .ico { width: 17px; height: 17px; }
.btn.lg { height: 50px; padding: 0 24px; font-size: 15px; }
.btn.sm { height: 34px; padding: 0 13px; font-size: 13px; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.outline { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn.outline:hover { border-color: var(--ink); background: var(--surface); }
.btn.dark { background: var(--ink); color: var(--bg); }
.btn.dark:hover { background: var(--ink-2); }
.btn.ok { background: var(--ok); color: #fff; }
.btn.block { width: 100%; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 13.5px; font-weight: 500;
  cursor: pointer; user-select: none; white-space: nowrap; transition: border-color .15s, background .15s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .count { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.chip[aria-pressed="true"] .count { color: inherit; opacity: .7; }
.chip .ico { width: 15px; height: 15px; }
.select, .input {
  height: 42px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 0 16px;
  font-size: 14px; outline: none; transition: border-color .15s, box-shadow .15s; min-width: 0;
}
.select { appearance: none; padding-right: 36px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 18px, calc(100% - 14px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
.select:focus, .input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 12%, transparent); }
.tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; line-height: 1.5;
  padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2);
}
.badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .06em; line-height: 1;
  padding: 6px 10px 6px 8px; border-radius: 999px; white-space: nowrap;
}
.badge .ico { width: 15px; height: 15px; }
.badge.verified { color: var(--ok); background: var(--ok-soft); }
.badge.featured { color: var(--feat); background: var(--feat-soft); }
.badge.unverified { color: var(--muted); background: var(--surface-2); font-weight: 500; }
.badge.on-photo { background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(6px); box-shadow: var(--shadow-sm); }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; color: var(--hero-fg); overflow: hidden; background: #0b0d10; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8, 10, 13, .92) 0%, rgba(8, 10, 13, .72) 45%, rgba(8, 10, 13, .35) 100%),
    linear-gradient(0deg, rgba(8, 10, 13, .85) 0%, transparent 40%);
}
.hero-inner { padding-block: 72px 36px; display: flex; flex-direction: column; gap: 18px; max-width: 1320px; }
.hero .eyebrow { color: #ff8a80; }
.hero h1 { font-size: clamp(40px, 7vw, 88px); line-height: 1; font-stretch: 75%; font-weight: 900; letter-spacing: .005em; max-width: 12ch; }
.hero h1 .dot { color: var(--accent); }
.hero .lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--hero-muted); max-width: 560px; }
.search {
  display: flex; align-items: center; gap: 0; background: var(--surface); color: var(--ink); border-radius: 999px;
  padding: 6px; box-shadow: var(--shadow-lg); max-width: 760px; margin-top: 8px;
}
.search .field { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 16px; min-width: 0; height: 52px; border-radius: 999px; transition: background .15s; }
.search .field:hover { background: var(--surface-2); }
.search .field .ico { color: var(--muted); }
.search .field > span:not(.ico) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.search label.lbl { font-size: 11.5px; font-weight: 700; letter-spacing: .02em; line-height: 1.1; }
.search input, .search select { border: 0; background: transparent; outline: none; padding: 2px 0 0; font-size: 14px; color: var(--muted); width: 100%; min-width: 0; appearance: none; cursor: pointer; }
.search input { cursor: text; color: var(--ink); }
.search input::placeholder { color: var(--muted); }
.search .sep { width: 1px; height: 30px; background: var(--line); flex: none; }
.search .btn { height: 52px; padding: 0 26px; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.quick .chip { background: rgba(255, 255, 255, .09); color: var(--hero-fg); border-color: rgba(255, 255, 255, .2); backdrop-filter: blur(6px); }
.quick .chip:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .45); }
.quick .chip .count { color: var(--hero-muted); }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .14); }
.hero-stats > div { padding-block: 18px 22px; padding-right: 16px; }
.hero-stats b { display: block; font-family: var(--f-display); font-stretch: 80%; font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.hero-stats span { font-size: 13px; color: var(--hero-muted); }
.photo-credit { position: absolute; right: max(12px, env(safe-area-inset-right, 0px)); bottom: 8px; font-size: 11px; color: rgba(255, 255, 255, .5); text-decoration: none; }

/* ---------- sections ---------- */
.section { padding-block: 64px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 42px); margin-top: 8px; font-stretch: 75%; font-weight: 900; line-height: 1.08; letter-spacing: .01em; }
.section-head p { color: var(--muted); max-width: 560px; margin-top: 8px; }

/* category tiles */
.cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.cat {
  position: relative; isolation: isolate; aspect-ratio: 3 / 4; max-width: 100%; border-radius: var(--r-lg); overflow: hidden; color: #fff;
  text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; border: 0; cursor: pointer; text-align: left; background: #111;
}
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.cat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .05) 60%); }
.cat:hover img { transform: scale(1.06); }
.cat .plate { position: absolute; top: 14px; left: 14px; width: 22px; height: 22px; --surface: #111; }
.cat b { font-family: var(--f-display); font-stretch: 82%; font-size: 20px; font-weight: 800; line-height: 1.15; }
.cat span { font-size: 13px; opacity: .8; }

/* ---------- directory ---------- */
.toolbar {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); z-index: 900;
  background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.toolbar .container { display: flex; gap: 8px; align-items: center; padding-block: 11px; overflow-x: auto; scrollbar-width: none; }
.toolbar .container::-webkit-scrollbar { display: none; }
.toolbar .input { width: 200px; padding-left: 40px; background: var(--surface) no-repeat 14px 50% / 17px; flex: none; }
.toolbar .search-wrap { position: relative; flex: none; }
.toolbar .search-wrap .ico { position: absolute; left: 14px; top: 12px; color: var(--muted); pointer-events: none; }
.toolbar .select { flex: none; }
.toolbar .spacer { flex: 1; }
/* laptop widths: the whole toolbar must fit; type and price stay available in the "ფილტრები" drawer */
#nearMe .lbl-s { display: none; }
#catSelect { max-width: 180px; } /* a long type name ("MMA და ორთაბრძოლები") must not widen the whole bar */
@media (min-width: 901px) and (max-width: 1199px) { #catSelect, #priceSelect { display: none; } }
@media (min-width: 1200px) and (max-width: 1365px) { #priceSelect { display: none; } }
@media (min-width: 901px) and (max-width: 1000px) { #nearMe .lbl { display: none; } #nearMe .lbl-s { display: inline; } }
.toolbar .btn .badge-count { background: var(--accent-btn, var(--accent)); color: #fff; font-size: 11px; border-radius: 999px; padding: 1px 7px; }
.dir { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 24px; padding-block: 22px 56px; align-items: start; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.results-head h2 { font-size: 22px; }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.active-filters .chip { height: 30px; font-size: 12.5px; padding: 0 10px 0 12px; background: var(--surface-2); border-color: transparent; }
.active-filters .chip .ico { width: 14px; height: 14px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.more-row { display: flex; justify-content: center; margin-top: 24px; }
.mapwrap {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + var(--toolbar-h) + 16px);
  height: calc(100vh - var(--header-h) - var(--toolbar-h) - 40px); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-2); box-shadow: var(--shadow-sm);
}
#map { width: 100%; height: 100%; }
.empty { grid-column: 1 / -1; text-align: center; padding: 48px 20px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty .ico { width: 30px; height: 30px; color: var(--muted); }

/* gym card */
.gcard { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; min-width: 0; border-radius: var(--r-lg); }
.gcard-media { position: relative; aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-3); }
.gcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.gcard:hover .gcard-media img, .gcard.hl .gcard-media img { transform: scale(1.04); }
.gcard-media .badge { position: absolute; top: 12px; left: 12px; }
.gcard.hl .gcard-media { box-shadow: 0 0 0 3px var(--accent); }
.gcard-body { display: flex; flex-direction: column; gap: 5px; padding: 0 2px; min-width: 0; }
.gcard-top { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.gcard-top .dist { margin-left: auto; font-variant-numeric: tabular-nums; }
.gcard h3 { font-family: var(--f-body); font-stretch: 100%; font-size: 17px; font-weight: 700; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcard .meta { display: flex; align-items: center; gap: 5px; font-size: 13.5px; color: var(--muted); min-width: 0; }
.gcard .meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcard .meta .ico { width: 15px; height: 15px; }

/* map pins */
.mpin {
  transform: translate(-50%, -100%); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  background: var(--surface); color: var(--ink); border-radius: 999px; padding: 5px 10px; font: 700 12.5px/1.2 var(--f-body);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25), 0 0 0 1px rgba(0, 0, 0, .06); transition: transform .15s, background .15s, color .15s;
  font-variant-numeric: tabular-nums; position: relative;
}
.mpin::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 0 0 2px 0; }
.mpin.dot { padding: 0; width: 16px; height: 16px; background: var(--ink); border: 3px solid var(--surface); }
.mpin.dot::after { display: none; }
.mpin.verified { background: var(--ok); color: #fff; }
.mpin.hl { background: var(--ink); color: var(--bg); transform: translate(-50%, -100%) scale(1.12); z-index: 10; }
.mpin.dot.hl { background: var(--accent); }

/* drawer */
.drawer-bg { position: fixed; inset: 0; z-index: 1300; background: var(--scrim); display: flex; justify-content: flex-end; }
.drawer {
  width: min(420px, 100%); height: 100%; background: var(--surface); box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); animation: slidein .22s cubic-bezier(.2, .7, .2, 1);
}
@keyframes slidein { from { transform: translateX(30px); opacity: .4; } }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer header h3 { font-size: 20px; }
.drawer .body { flex: 1; overflow: auto; padding: 22px; display: flex; flex-direction: column; gap: 26px; }
.drawer .body h4 { font-size: 15px; margin-bottom: 12px; font-stretch: 90%; }
.drawer .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.drawer footer { display: flex; justify-content: space-between; gap: 12px; padding: 16px 22px; border-top: 1px solid var(--line); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; font-size: 14.5px; }
.switch input { appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--surface-3); position: relative; cursor: pointer; transition: background .15s; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .18s; }
.switch input:checked { background: var(--ink); }
.switch input:checked::after { transform: translateX(18px); }
.range-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 6px; }
input[type="range"] { width: 100%; accent-color: var(--accent); }

/* ---------- price index ---------- */
.index-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kpi.wide { grid-column: 1 / -1; }
.kpi { background: var(--surface-2); border-radius: var(--r-md); padding: 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi .label { font-size: 13px; color: var(--muted); }
.kpi b { font-family: var(--f-display); font-stretch: 78%; font-size: 34px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi b small { font-size: 15px; color: var(--muted); font-weight: 600; }
.kpi a { font-size: 13px; text-decoration: none; color: var(--ink-2); white-space: normal; }
.kpi a:hover { color: var(--accent); }
.bars { display: flex; flex-direction: column; gap: 4px; }
.bar-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 118px; gap: 14px; align-items: center; cursor: pointer; border-radius: var(--r-sm); padding: 8px; margin: 0 -8px; border: 0; background: none; text-align: left; width: calc(100% + 16px); }
.bar-row:hover { background: var(--surface-2); }
.bar-row .label { font-weight: 600; font-size: 14px; }
.bar-track { position: relative; height: 10px; background: var(--surface-2); border-radius: 999px; }
.bar-row:hover .bar-track { background: var(--surface-3); }
.bar-range { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 999px; }
.bar-avg { position: absolute; top: -3px; width: 4px; height: 16px; margin-left: -2px; background: var(--accent); border-radius: 2px; }
.bar-row .val { text-align: right; font-weight: 700; font-family: var(--f-body); font-size: 14px; font-variant-numeric: tabular-nums; line-height: 1.25; }
.bar-row .val small { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); margin-top: 14px; flex-wrap: wrap; }
.legend i { display: inline-block; vertical-align: -1px; margin-right: 6px; }
.legend .l-range { width: 18px; height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 22%, transparent); }
.legend .l-avg { width: 4px; height: 12px; border-radius: 2px; background: var(--accent); }

/* districts */
.districts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.district {
  display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; cursor: pointer; text-align: left; transition: border-color .15s, transform .15s, box-shadow .15s; min-width: 0;
}
.district:hover { border-color: var(--ink); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.district b { font-family: var(--f-display); font-stretch: 84%; font-size: 18px; font-weight: 800; }
.district span { font-size: 13px; color: var(--muted); }
.district .go { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.district .go .ico { width: 16px; height: 16px; transition: transform .15s; }
.district:hover .go .ico { transform: translateX(3px); }
.district[disabled] { opacity: .55; cursor: default; }
.district[disabled]:hover { border-color: var(--line); box-shadow: none; transform: none; }

/* photo band CTA */
.band { position: relative; isolation: isolate; border-radius: var(--r-xl); overflow: hidden; color: var(--hero-fg); background: #0b0d10; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 10, 13, .9), rgba(8, 10, 13, .55)); }
.band-inner { padding: clamp(28px, 5vw, 56px); display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.band h2 { font-size: clamp(26px, 3.4vw, 42px); max-width: 18ch; font-stretch: 75%; font-weight: 900; line-height: 1.08; letter-spacing: .01em; }
.band p { color: var(--hero-muted); margin-top: 10px; max-width: 520px; }
.band .eyebrow { color: #ff8a80; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 40px; background: var(--surface); margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-grid h4 { font-size: 13px; font-stretch: 90%; color: var(--muted); font-weight: 700; margin-bottom: 12px; font-feature-settings: "case" 1; letter-spacing: .06em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-grid ul.cols { display: block; columns: 2; column-gap: 16px; }
.footer-grid ul.cols li { margin-bottom: 8px; break-inside: avoid; }
.footer-grid a { text-decoration: none; color: var(--ink-2); }
.footer-grid a:hover { color: var(--accent); }
.footer-grid p { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 320px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-bottom a { color: inherit; }

/* ---------- gym profile ---------- */
.crumbs { font-size: 13px; color: var(--muted); padding-block: 20px 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs .ico { width: 14px; height: 14px; }
.p-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.p-title h1 { font-size: clamp(30px, 4.4vw, 50px); font-stretch: 78%; line-height: 1.05; }
.p-title .sub { display: flex; gap: 8px 14px; align-items: center; flex-wrap: wrap; margin-top: 10px; color: var(--muted); font-size: 14px; }
.p-title .sub > span { display: inline-flex; align-items: center; gap: 6px; }
.p-title .sub .ico { width: 16px; height: 16px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 210px 210px; gap: 8px; border-radius: var(--r-lg); overflow: hidden; position: relative; }
.gallery figure { margin: 0; position: relative; overflow: hidden; background: var(--surface-3); min-width: 0; }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery.single { grid-template-columns: 1fr; grid-template-rows: 340px; }
.gallery.single figure:first-child { grid-row: auto; }
.gallery .note {
  position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500;
  background: rgba(10, 12, 15, .7); color: #fff; padding: 7px 12px; border-radius: 999px; backdrop-filter: blur(6px); max-width: calc(100% - 28px);
}
.gallery .note .ico { width: 15px; height: 15px; flex: none; }
.profile { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; padding-block: 32px 64px; }
.p-main { display: flex; flex-direction: column; min-width: 0; }
.p-section { padding-block: 28px; border-bottom: 1px solid var(--line); }
.p-section:first-child { padding-top: 0; }
.p-section:last-child { border-bottom: 0; }
.p-section h2 { font-size: 24px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.p-section > p { color: var(--ink-2); max-width: 68ch; }
.highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 4px; }
.highlight { display: flex; gap: 12px; align-items: flex-start; }
.highlight .ico { width: 22px; height: 22px; color: var(--ink-2); margin-top: 2px; }
.highlight b { display: block; font-size: 14.5px; }
.highlight span { font-size: 13px; color: var(--muted); }
.price-list { display: flex; flex-direction: column; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 14px; border-bottom: 1px dashed var(--line-strong); }
.price-row:last-child { border-bottom: 0; }
.price-row span { color: var(--ink-2); }
.price-row b { font-family: var(--f-body); font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-row b small { font-size: 13px; color: var(--muted); font-weight: 500; font-family: var(--f-body); font-stretch: 100%; margin-left: 4px; }
.notice { font-size: 13.5px; border-radius: var(--r-md); padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; line-height: 1.5; }
.notice .ico { width: 17px; height: 17px; margin-top: 1px; }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice a { font-weight: 600; }
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.service { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.service .ico { width: 21px; height: 21px; color: var(--ink-2); }
.offer { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.offer + .offer { margin-top: 10px; }
.offer .ico { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.offer b { display: block; }
.offer p { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.example-tag { font-size: 11px; font-weight: 700; letter-spacing: .05em; color: var(--warn); background: var(--warn-soft); padding: 4px 9px; border-radius: 999px; font-family: var(--f-body); font-feature-settings: "case" 1; }
.schedule { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.slot { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; background: var(--surface); }
.slot .when { font-size: 12.5px; color: var(--muted); }
.slot b { display: block; font-family: var(--f-display); font-stretch: 84%; font-size: 22px; margin: 2px 0; font-variant-numeric: tabular-nums; }
.slot span { font-size: 14px; }
.minimap { height: 300px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.loc-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; color: var(--ink-2); }
.aside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 20px); display: flex; flex-direction: column; gap: 16px; }
.book { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: 16px; }
.book .from { font-size: 13px; color: var(--muted); }
.book .big { font-family: var(--f-display); font-stretch: 78%; font-size: 38px; font-weight: 850; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.book .big small { font-size: 15px; color: var(--muted); font-weight: 500; font-family: var(--f-body); font-stretch: 100%; }
.kv { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.kv-row { display: flex; gap: 12px; font-size: 14px; align-items: flex-start; min-width: 0; }
.kv-row .ico { color: var(--muted); margin-top: 2px; }
.kv-row a { text-decoration: none; word-break: break-word; }
.kv-row a:hover { color: var(--accent); }
.owner { border-radius: var(--r-lg); padding: 20px; background: var(--ink); color: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.owner h3 { font-size: 19px; }
.owner p { font-size: 13.5px; opacity: .75; }
.owner a.link { font-size: 13px; color: inherit; opacity: .85; }
.nearby { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mobile-cta { display: none; }

/* demo switch */

/* modal */
.modal-bg { position: fixed; inset: 0; background: var(--scrim); z-index: 1300; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface); border-radius: var(--r-lg); padding: 28px; width: min(460px, 100%); box-shadow: var(--shadow-lg); max-height: calc(100vh - 32px); overflow: auto; }
.modal h2 { font-size: 24px; margin-bottom: 6px; }
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.form input, .form select, .form textarea {
  border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--r-md); padding: 11px 14px; font-weight: 400; font-size: 15px; width: 100%; outline: none;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 12%, transparent); }
.form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--muted); }
.form .check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- partner page ---------- */
.p-hero { position: relative; isolation: isolate; color: var(--hero-fg); background: #0b0d10; overflow: hidden; }
.p-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.p-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(8, 10, 13, .95) 0%, rgba(8, 10, 13, .8) 50%, rgba(8, 10, 13, .55) 100%); }
.p-hero .container { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding-block: 72px; }
.p-hero h1 { font-size: clamp(36px, 5.6vw, 72px); font-stretch: 75%; font-weight: 900; line-height: 1.02; letter-spacing: .005em; }
.p-hero h1 em { font-style: normal; color: var(--accent); }
.p-hero .lead { color: var(--hero-muted); font-size: 17px; margin: 18px 0 28px; max-width: 520px; }
.p-hero .eyebrow { color: #ff8a80; margin-bottom: 14px; }
.p-hero .proof { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.p-hero .proof b { display: block; font-family: var(--f-display); font-stretch: 80%; font-size: 30px; font-variant-numeric: tabular-nums; }
.p-hero .proof span { font-size: 13px; color: var(--hero-muted); }
.btn.on-dark { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn.on-dark:hover { background: rgba(255, 255, 255, .18); }
.mock { background: var(--surface); color: var(--ink); border-radius: var(--r-xl); padding: 18px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); display: flex; flex-direction: column; gap: 12px; }
.mock .mock-bar { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); }
.mrow { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.mrow img { width: 88px; height: 66px; object-fit: cover; border-radius: var(--r-sm); }
.mrow b { display: block; font-family: var(--f-display); font-stretch: 86%; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow span { font-size: 12.5px; color: var(--muted); }
.mrow .p { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mrow.top { border-color: var(--feat); box-shadow: 0 0 0 3px var(--feat-soft); }
.mrow.dim { opacity: .5; }
.mrow > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.step { padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.step .n { font-family: var(--f-display); font-stretch: 75%; font-size: 44px; font-weight: 850; color: var(--accent); line-height: 1; }
.step h3 { font-size: 20px; margin: 14px 0 8px; }
.step p { color: var(--muted); font-size: 14.5px; }
.founding { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 20px 24px; border-radius: var(--r-lg); background: var(--ok-soft); color: var(--ink); margin-bottom: 20px; border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent); }
.founding .l { display: flex; gap: 14px; align-items: flex-start; }
.founding .l .ico { width: 26px; height: 26px; color: var(--ok); }
.founding b { font-size: 16px; }
.founding p { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 18px; position: relative; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.plan.popular { border: 2px solid var(--ink); box-shadow: var(--shadow-lg); }
.plan .ribbon { position: absolute; top: -13px; left: 26px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 21px; display: flex; align-items: center; gap: 8px; }
.plan .amount { font-family: var(--f-display); font-stretch: 75%; font-size: 52px; font-weight: 850; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan .amount small { font-size: 15px; font-weight: 500; color: var(--muted); font-family: var(--f-body); font-stretch: 100%; letter-spacing: 0; }
.plan .desc { color: var(--muted); font-size: 14px; margin-top: -8px; }
.plan ul { list-style: none; padding: 18px 0 0; margin: 0; display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; flex: 1; border-top: 1px solid var(--line); }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .ico { width: 18px; height: 18px; color: var(--ok); margin-top: 2px; }
.report-card { display: flex; flex-direction: column; gap: 18px; }
.report { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.spark { height: 84px; width: 100%; }
.compare-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 460px; }
.compare th, .compare td { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; padding-left: 0; }
.compare th { font-size: 13px; color: var(--muted); font-weight: 600; }
.compare .ico { width: 18px; height: 18px; color: var(--ok); }
.compare .no { color: var(--muted); }
/* Phones: each feature label on its own line, the three plan values in columns below it. */
@media (max-width: 600px) {
  .compare { min-width: 0; }
  .compare thead th:first-child { display: none; }
  .compare tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .compare th, .compare td { padding: 8px 4px; }
  .compare td:first-child { grid-column: 1 / -1; border-bottom: 0; padding: 12px 0 0; font-weight: 600; }
  .compare th { font-size: 11px; padding-left: 2px; padding-right: 2px; letter-spacing: -0.01em; }
}
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform .2s; color: var(--muted); }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; font-size: 14.5px; max-width: 62ch; }
.preview-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat { aspect-ratio: 16 / 10; }
  .dir { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .profile { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
}
@media (max-width: 900px) {
  :root { --header-h: 58px; }
  .nav a:not(.btn) { display: none; }
  .hero-inner { padding-block: 44px 24px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search { flex-direction: column; border-radius: var(--r-lg); align-items: stretch; padding: 8px; }
  .search .sep { width: auto; height: 1px; margin: 0 12px; }
  .search .btn { margin-top: 6px; }
  .dir { grid-template-columns: minmax(0, 1fr); }
  .districts { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* 10 districts fill complete rows (5 columns above 900px) */
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mapwrap { display: none; position: relative; top: 0; height: 70vh; }
  .dir.show-map .mapwrap { display: block; }
  .dir.show-map .results-col { display: none; }
  .index-grid, .two-col { grid-template-columns: minmax(0, 1fr); }
  .profile { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 130px; }
  .gallery figure:first-child { grid-row: auto; grid-column: span 2; }
  .gallery figure:nth-child(n+4) { display: none; }
  .nearby { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-hero .container { grid-template-columns: minmax(0, 1fr); padding-block: 48px; gap: 36px; }
  .steps, .plans { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100; gap: 12px; align-items: center; justify-content: space-between;
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .2);
    padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  }
  .mobile-cta .big { font-family: var(--f-display); font-stretch: 80%; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
  .mobile-cta .big small { font-size: 13px; color: var(--muted); font-weight: 500; }
  .has-mobile-cta .site-footer { padding-bottom: 150px; }
}
@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .container { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat { aspect-ratio: 16 / 10; padding: 12px; } /* shorter tiles bring the list up on phones */
  .cat b { font-size: 17px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .districts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi b { font-size: 28px; }
  .bar-row { grid-template-columns: 88px minmax(0, 1fr) 84px; gap: 10px; }
  .bar-row .val small { display: none; }
  .highlights, .services, .schedule { grid-template-columns: minmax(0, 1fr); }
  .gallery.single { grid-template-rows: 240px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .section { padding-block: 44px; }
  .mrow { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; }
  .mrow img { width: 64px; height: 52px; }
  .nearby { grid-template-columns: minmax(0, 1fr); }
  .toolbar .input { width: 170px; }
}
#toggleMap { display: none; }
@media (max-width: 900px) { #toggleMap { display: inline-flex; } #nearMe .lbl { display: none; } }
.highlight .plate { width: 22px; height: 22px; margin-top: 2px; }
.p-title .sub .plate { width: 15px; height: 15px; }
.nav a.btn { color: var(--accent-ink); }
.nav a.btn:hover { background: var(--accent-btn-hover, var(--accent-hover)); color: var(--accent-ink); }
.nav a.btn.dark { color: var(--bg); }
.nav a.btn.dark:hover { background: var(--ink-2); color: var(--bg); }
.mock-bar .ico { width: 16px; height: 16px; }
@media (max-width: 600px) {
  .nav .full { display: none; }
  .logo { font-size: 20px; }
  .logo-mark { width: 28px; height: 28px; }
  .demo-ribbon { font-size: 11.5px; padding-block: 5px; }
}

/* ---------- MapLibre map ---------- */
.maplibregl-map { font-family: var(--f-body); }
.pin-wrap { cursor: pointer; }
.pin-wrap .mpin { transform: none; }
.pin-wrap .mpin.hl { transform: scale(1.12); }
.pin-wrap .mpin.dot.hl { transform: scale(1.3); }
.pin-wrap:hover { z-index: 5; }
.user-dot { width: 18px; height: 18px; border-radius: 50%; background: #2f6bff; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(47, 107, 255, .25), 0 2px 6px rgba(0, 0, 0, .3); }
.gym-popup .maplibregl-popup-content { padding: 0; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface); }
.gym-popup .maplibregl-popup-tip { border-top-color: var(--surface) !important; border-bottom-color: var(--surface) !important; }
.gym-popup .popup { display: block; color: var(--ink); text-decoration: none; width: 240px; }
.gym-popup .popup img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gym-popup .popup div { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.gym-popup .popup b { font-size: 14.5px; font-family: var(--f-body); }
.gym-popup .popup span { font-size: 12.5px; color: var(--muted); }
.gym-popup .popup .go { color: var(--accent); font-weight: 600; margin-top: 4px; }
.map-area {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-md); cursor: pointer; white-space: nowrap; user-select: none;
}
.map-area input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.maplibregl-ctrl-group { border-radius: 10px !important; box-shadow: var(--shadow-md) !important; }
.gallery .note a { color: inherit; text-decoration: underline; }

/* map v2: hover tooltip + legend */
.gym-tip .maplibregl-popup-content { padding: 7px 11px; border-radius: 10px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: 1px; font-family: var(--f-body); }
.gym-tip .maplibregl-popup-content b { font-size: 13px; font-weight: 700; white-space: nowrap; }
.gym-tip .maplibregl-popup-content span { font-size: 12px; opacity: .75; font-variant-numeric: tabular-nums; }
.gym-tip .maplibregl-popup-tip { border-top-color: var(--ink) !important; border-bottom-color: var(--ink) !important; }
.map-legend {
  position: absolute; left: 10px; bottom: 10px; z-index: 3; display: flex; flex-wrap: wrap; gap: 4px 12px; max-width: calc(100% - 140px);
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(6px); border-radius: 10px; padding: 7px 11px;
  font-size: 12px; color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.map-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.plate-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; border: 1.5px solid var(--surface); box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.plate-dot.red { background: var(--plate-red); } .plate-dot.yellow { background: var(--plate-yellow); }
.plate-dot.blue { background: var(--plate-blue); } .plate-dot.green { background: var(--plate-green); }

.mpin.dot.plate-red { background: var(--plate-red); } .mpin.dot.plate-yellow { background: var(--plate-yellow); }
.mpin.dot.plate-blue { background: var(--plate-blue); } .mpin.dot.plate-green { background: var(--plate-green); }
.map-legend { top: 10px; bottom: auto; left: 10px; flex-direction: column; gap: 3px; max-width: none; }
.map-area { top: auto; bottom: 12px; }
@media (max-width: 900px) { .map-legend { flex-direction: row; max-width: calc(100% - 70px); } }

.fab-map { display: none; }
@media (max-width: 900px) {
  .fab-map {
    display: inline-flex; align-items: center; gap: 8px; position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    transform: translate(-50%, 140%); z-index: 1100; border: 0; border-radius: 999px; padding: 12px 20px; cursor: pointer;
    background: var(--ink); color: var(--bg); font: 600 14px/1 var(--f-body); box-shadow: var(--shadow-lg); transition: transform .25s cubic-bezier(.2, .7, .2, 1);
  }
  .fab-map.on { transform: translate(-50%, 0); }
  .fab-map .ico { width: 17px; height: 17px; }
  #toggleMap { display: none; }
  .dir.show-map .mapwrap { height: calc(100vh - var(--header-h) - var(--toolbar-h) - 40px); border-radius: var(--r-md); }
}

/* ================= v3: audit fixes ================= */

/* tokens: readable accent text, AA-contrast success colour, dark-mode button text */
:root { --accent-text: #c62a22; --ok: #0b7a52; --ok-ink: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --accent-text: #ff8a80; --accent: #e3443a; --accent-hover: #ef5a50; --ok-ink: #06261a; } }
:root[data-theme="dark"] { --accent-text: #ff8a80; --accent: #e3443a; --accent-hover: #ef5a50; --ok-ink: #06261a; }
/* red buttons: a slightly deeper red behind white text meets WCAG AA (5.1:1, hover 6.4:1) in both themes;
   the brand red elsewhere (logo, dots, pins) is unchanged */
:root { --accent-btn: #d12d24; --accent-btn-hover: #b8241c; }
.empty-title { font-size: 20px; }
.eyebrow { color: var(--accent-text); }
.hero .eyebrow, .band .eyebrow, .p-hero .eyebrow { color: #ff8a80; }
.btn.ok, .mpin.verified { color: var(--ok-ink); }
.select:focus-visible, .input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#results { scroll-margin-top: calc(var(--header-h) + var(--toolbar-h) + 8px); }

/* ---------- result cards ---------- */
.gcard-media { aspect-ratio: 3 / 2; }
.gcard:focus-visible { outline: none; }
.gcard:focus-visible .gcard-media { box-shadow: 0 0 0 3px var(--accent); }
.photo-note {
  position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; max-width: calc(100% - 20px);
  font-size: 11px; line-height: 1.3; color: #fff; background: rgba(10, 12, 15, .55); backdrop-filter: blur(4px);
  padding: 4px 7px; border-radius: 999px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.photo-note .ico { width: 13px; height: 13px; }
.photo-note:not(.real) { padding: 5px; opacity: .8; }
.gcard-body { gap: 4px; }
.gcard .meta { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.gcard-foot { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; min-width: 0; }
.gcard-foot .price { font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gcard-foot .price small { font-weight: 500; font-size: 13px; color: var(--muted); margin-left: 2px; }
.gcard-foot .price.unknown { font-weight: 500; font-size: 13.5px; color: var(--muted); }
.gcard-foot .amen { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.gcard-foot .amen::before { content: "·"; margin-right: 8px; }
.chip.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.chip.ghost:hover { color: var(--ink); }

/* ---------- districts as links ---------- */
.district { color: inherit; }
.district[aria-disabled="true"] { opacity: .55; }
.district[aria-disabled="true"]:hover { border-color: var(--line); box-shadow: none; transform: none; }

/* ---------- footer headings ---------- */
.foot-h { font-family: var(--f-display); font-size: 13px; font-stretch: 87.5%; color: var(--muted); font-weight: 700; margin-bottom: 12px; letter-spacing: .06em; text-transform: uppercase; font-feature-settings: "case" 1; }

/* ---------- map overlays ---------- */
.mapwrap { isolation: isolate; }
.map-area {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); bottom: auto; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: var(--bg); font: 600 13px/1 var(--f-body); box-shadow: var(--shadow-md); white-space: nowrap;
}
.map-area .ico { width: 15px; height: 15px; }
.map-area:disabled { opacity: .75; cursor: default; }
/* stock photos in the map popup are labelled like on the cards */
.gym-popup .popup .pmedia { position: relative; display: block; padding: 0; }
.gym-popup .popup .pmedia .pnote { position: absolute; left: 8px; bottom: 8px; font-size: 11px; color: #fff; background: rgba(10, 12, 15, .6); padding: 3px 8px; border-radius: 999px; }
/* dark mode: the legend's blue matches the lighter blue of the map dots */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .map-legend .plate-dot.blue { background: #5b8def; } }
:root[data-theme="dark"] .map-legend .plate-dot.blue { background: #5b8def; }
/* keyboard focus on the hero search fields */
.search .field:focus-within { background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--ink); }
.map-legend { top: auto; bottom: 10px; left: 10px; flex-direction: row; max-width: calc(100% - 60px); }
.map-error { padding: 24px; color: var(--muted); text-align: center; }
.maplibregl-ctrl-attrib.maplibregl-compact { background: color-mix(in srgb, var(--surface) 85%, transparent); }
.gym-popup .maplibregl-popup-content { width: 280px; }
.gym-popup .popup { width: 280px; }
.gym-popup .popup img { aspect-ratio: 3 / 2; }
.gym-popup .popup .pcat { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.gym-popup .popup .pcat .plate { width: 12px; height: 12px; }
.gym-popup .popup b { font-size: 15px; margin-top: 2px; }
.gym-popup .popup .pprice { color: var(--ink); font-weight: 700; font-size: 14px; margin-top: 4px; }
.gym-popup .popup .pprice small { color: var(--muted); font-weight: 500; }
.gym-popup .maplibregl-popup-close-button { width: 28px; height: 28px; font-size: 20px; color: #fff; background: rgba(10, 12, 15, .5); border-radius: 50%; top: 8px; right: 8px; }
.pin-wrap:focus-visible { outline: none; }
.pin-wrap:focus-visible .mpin { box-shadow: 0 0 0 3px var(--accent); }

/* ---------- gym page ---------- */
.p-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 6px 12px; border-radius: 999px; font: 600 12.5px/1 var(--f-body); cursor: pointer; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.profile { padding-top: 8px; }
.p-main .gallery { grid-template-rows: 200px 200px; margin-bottom: 24px; }
.p-main .gallery.single { grid-template-rows: auto; }
.p-main .gallery.single figure { aspect-ratio: 16 / 9; max-height: 440px; width: 100%; }
.highlight > div { display: flex; flex-direction: column; }
.highlight b + b { margin-top: 1px; }
.book-actions { display: flex; flex-direction: column; gap: 8px; }
.minimap { position: relative; display: block; height: 280px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.minimap canvas { cursor: pointer; }
.minimap-hint {
  position: absolute; left: 12px; bottom: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-md);
}
.minimap-hint .ico { width: 15px; height: 15px; }
/* women-only tag: gym page title row and cards */
.wo-tag { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-text, var(--accent)); font-weight: 700; }
.p-title .sub > .wo-tag { color: var(--accent-text, var(--accent)); }
.gcard .wo-line { display: block; font-size: 12.5px; margin: 1px 0 2px; }
.mobile-cta .cta-label { line-height: 1.25; margin-bottom: 2px; }
.mini-pin {
  width: 36px; height: 36px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); display: grid; place-items: center;
  border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .3); background: var(--plate-red);
}
.mini-pin .ico { transform: rotate(45deg); width: 17px; height: 17px; color: #fff; }
.mini-pin.plate-blue { background: var(--plate-blue); } .mini-pin.plate-green { background: var(--plate-green); } .mini-pin.plate-yellow { background: var(--plate-yellow); }
.mini-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--plate-grey); border: 2px solid #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .owner { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-strong); } }
:root[data-theme="dark"] .owner { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-strong); }

/* ---------- floating map button (phones) ---------- */
.fab-map { display: none; }

@media (max-width: 900px) {
  /* toolbar: search, filters and near-me only; everything else lives in the drawer */
  #districtSelect2, #catSelect, #priceSelect, #sort, #toggleMap { display: none !important; }
  .toolbar .search-wrap { flex: 1; }
  .toolbar .input { width: 100%; }
  .quick { display: none; }
  .fab-map {
    display: inline-flex; align-items: center; gap: 8px; position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    transform: translate(-50%, 160%); z-index: 1100; border: 0; border-radius: 999px; padding: 12px 20px; cursor: pointer;
    background: var(--ink); color: var(--bg); font: 600 14px/1 var(--f-body); box-shadow: var(--shadow-lg); transition: transform .25s cubic-bezier(.2, .7, .2, 1);
  }
  .fab-map.on, .map-open .fab-map { transform: translate(-50%, 0); }
  .fab-map .ico { width: 17px; height: 17px; }
  /* full-screen map sheet under the header and toolbar */
  .dir.show-map .mapwrap {
    display: block; position: fixed; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + var(--toolbar-h));
    left: 0; right: 0; bottom: 0; height: auto; border-radius: 0; border: 0; z-index: 950;
  }
  .dir.show-map .results-col { display: block; }
  .map-open { overflow: hidden; }
  .map-legend { bottom: 76px; }
  /* gym page */

  .has-mobile-cta .book .book-price, .has-mobile-cta .book .book-actions > :first-child, .has-mobile-cta .book .book-actions.bar-only { display: none; }
  .has-mobile-cta .book .book-actions.bar-only + .kv { border-top: 0; padding-top: 0; }
  .has-mobile-cta .site-footer { padding-bottom: 110px; }
  .p-main .gallery { grid-template-rows: 220px 120px; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .search .sep, .search .field:nth-of-type(2) { display: none; }
  /* horizontal cards: more results per screen */
  .cards { gap: 14px; }
  .gcard { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 12px; align-items: start; }
  .gcard-media { aspect-ratio: 1 / 1; border-radius: var(--r-md); }
  .gcard-media .badge { top: 6px; left: 6px; padding: 4px 6px; font-size: 10px; }
  .gcard-media .badge .ico { width: 12px; height: 12px; }
  .photo-note { left: 6px; bottom: 6px; }
  .photo-note.real { display: none; }
  .gcard h3 { font-size: 16px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .gcard-top { font-size: 12px; }
  .gcard-foot { flex-wrap: wrap; row-gap: 2px; }
  .gcard-foot .amen { flex-basis: 100%; }
  .gcard-foot .amen::before { content: none; }
  .icon-btn span { display: none; }
  .icon-btn { width: 36px; padding: 0; }
  .p-title { align-items: flex-start; }
  .seg button { padding: 6px 10px; font-size: 12px; }
}
@media (max-width: 900px) {
  .toolbar .spacer { display: none; }
  .toolbar .search-wrap { flex: 1 1 150px; min-width: 0; }
  #nearMe .lbl { display: none; }
  #nearMe .lbl-s { display: inline; } /* short visible label instead of a bare icon */
  #nearMe { width: auto; padding: 0 12px; flex: none; }
}
@media (max-width: 480px) {
  /* narrow phones: the search box needs the room, so near-me is an icon again (it keeps its aria-label) */
  #nearMe .lbl-s { display: none; }
  #nearMe { width: 42px; padding: 0; }
}
