/* ============================================================
   ATHLO — Landing (server-rendered Twig) · Design tokens & layout
   Brand orange · RTL Persian · Vazirmatn (self-hosted, no CDN)
   Tokens kept in sync with athlo_nextjs/app/globals.css and the
   Claude Design kit (kit/base.css + web/web-base.css).
   ============================================================ */

@font-face {
  font-family: "Vazirmatn";
  src: url("/landing/fonts/Vazirmatn-Variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

:root {
  --brand-50:  #fff3ed;
  --brand-100: #ffe3d3;
  --brand-200: #ffc3a0;
  --brand-500: #fb6a2e;
  --brand-600: #ea580c;
  --brand-700: #c2410c;

  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --warning: #f59e0b;
  --surface: #fff8f4;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  --shadow-1: 0 1px 2px rgba(17,24,39,.06), 0 1px 3px rgba(17,24,39,.05);
  --shadow-2: 0 4px 12px rgba(17,24,39,.07), 0 2px 4px rgba(17,24,39,.04);
  --shadow-3: 0 14px 32px rgba(17,24,39,.12), 0 4px 10px rgba(17,24,39,.06);
  --shadow-brand: 0 10px 24px rgba(251,106,46,.34);

  --font: "Vazirmatn", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  direction: rtl;
  font-family: var(--font);
  background: #fff;
  color: var(--gray-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
.fa-num { font-feature-settings: "ss01"; font-variant-numeric: tabular-nums; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 clamp(20px,5vw,40px); }
.container--wide { max-width: 1200px; }

/* ---- Header ---- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-100);
}
.hdr__bar { display: flex; align-items: center; gap: 20px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo__mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: url("/brand/athlo-mark.png") center / cover no-repeat;
  box-shadow: var(--shadow-brand);
}
.logo__mark::before { content: none; }
.logo__word { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.logo__word span { color: var(--brand-500); }
.hdr__nav { display: flex; align-items: center; gap: 4px; margin-inline-start: 18px; }
.hdr__nav a {
  font-size: 14.5px; font-weight: 600; color: var(--gray-700);
  padding: 9px 14px; border-radius: var(--radius-sm); transition: all .15s;
}
.hdr__nav a:hover { background: var(--brand-50); color: var(--brand-700); }
.hdr__spacer { flex: 1; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 14.5px;
  border: none; cursor: pointer; border-radius: var(--radius-md);
  padding: 0 18px; height: 46px; transition: transform .15s, filter .15s, background .15s;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-1); }
.btn--primary:hover { background: var(--brand-700); }
.btn--secondary { background: var(--gray-100); color: var(--gray-800); }
.btn--secondary:hover { background: var(--gray-200); }
.btn--ghost { background: transparent; color: var(--gray-700); }
.btn--ghost:hover { background: var(--brand-50); color: var(--brand-700); }
.btn--sm { height: 38px; font-size: 13px; padding: 0 14px; }

/* ---- Store buttons ---- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 11px; height: 54px; padding: 0 18px;
  border-radius: var(--radius-md); background: var(--gray-900); color: #fff; transition: transform .15s;
}
.store:hover { transform: translateY(-2px); }
.store__sub { font-size: 10.5px; opacity: .7; }
.store__name { font-size: 15px; font-weight: 700; }
.stores--dark .store { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1100px 600px at 88% -8%, var(--brand-50) 0%, rgba(255,243,237,0) 55%), var(--surface);
}
.hero__grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
  padding: clamp(48px,7vw,88px) clamp(20px,5vw,40px) clamp(48px,7vw,88px);
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  color: var(--brand-700); background: #fff; border: 1px solid var(--brand-100);
  padding: 8px 15px; border-radius: var(--radius-full); box-shadow: var(--shadow-1); margin-bottom: 26px;
}
.hero h1 { font-size: clamp(36px,5.6vw,62px); font-weight: 800; line-height: 1.12; letter-spacing: -1.4px; margin: 0; }
.hero h1 .accent { color: var(--brand-600); }
.hero__lead { font-size: clamp(16px,1.8vw,19px); line-height: 1.85; color: var(--gray-600); margin: 22px 0 30px; max-width: 46ch; }
.hero__social { display: flex; align-items: center; gap: 18px; margin-top: 30px; flex-wrap: wrap; }
.avatars { display: flex; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700);
  display: grid; place-items: center; font-size: 13px; font-weight: 700; border: 2px solid #fff;
}
.avatar + .avatar { margin-inline-start: -12px; }
.hero__visual { display: flex; justify-content: center; align-items: flex-start; max-height: 640px; overflow: visible; }
/* Parent: static scale + fade-in entrance (opacity only — no transform conflict). */
.hero__phone-scale {
  transform: scale(.82);
  transform-origin: center top;
  margin-top: 40px;
  opacity: 0;
  animation: phoneFade .9s ease-out .15s forwards;
}
@keyframes phoneFade { to { opacity: 1; } }

/* Child phone: gentle continuous float (translateY only — parent owns scale). */
.hero__phone-scale .phone {
  animation: phoneFloat 5s ease-in-out 1s infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__phone-scale { opacity: 1; animation: none; }
  .hero__phone-scale .phone { animation: none; }
}

/* ---- Phone device frame (hero mockup, matches kit/base.css) ---- */
.phone {
  width: 375px; height: 760px; background: #fff; border-radius: 46px; padding: 12px;
  box-shadow: 0 0 0 12px #1b1d22, 0 0 0 13px #2c2f36, var(--shadow-3);
  position: relative; flex: none;
}
.phone__screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; position: relative; background: var(--gray-50); display: flex; flex-direction: column; }
.phone__notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 122px; height: 32px; background: #14161a; border-radius: 0 0 18px 18px; z-index: 60; }
.phone__home { position: absolute; bottom: 9px; left: 50%; transform: translateX(-50%); width: 134px; height: 5px; border-radius: 5px; background: var(--gray-900); opacity: .85; z-index: 60; }
.statusbar { height: 54px; padding: 0 26px 6px 22px; display: flex; align-items: flex-end; justify-content: space-between; flex: none; font-size: 14px; font-weight: 700; position: relative; z-index: 40; }
.statusbar__icons { display: flex; align-items: center; gap: 6px; }
.photo-ph { position: relative; overflow: hidden; background: repeating-linear-gradient(135deg, #e9ebee 0, #e9ebee 12px, #e3e6ea 12px, #e3e6ea 24px); display: grid; place-items: center; }

/* ---- Sections ---- */
.section { padding: clamp(64px,8vw,96px) 0; }
.section--surface { background: var(--surface); }
.section--white { background: #fff; }
.sec-head { max-width: none; }
.sec-head--center { text-align: center; max-width: 60ch; margin: 0 auto; }
.kicker {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700;
  color: var(--brand-600); background: var(--brand-50); padding: 6px 13px; border-radius: var(--radius-full); margin-bottom: 16px;
}
.kicker__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-500); }
.sec-head h2 { font-size: clamp(26px,3.4vw,38px); font-weight: 800; letter-spacing: -.6px; margin: 0; line-height: 1.2; }
.sec-head p { font-size: 16px; line-height: 1.8; color: var(--gray-500); margin: 14px 0 0; max-width: 54ch; }
.sec-head--center p { margin-inline: auto; }

/* ---- Grids ---- */
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; }

/* ---- Feature card ---- */
.feature {
  background: var(--surface); border-radius: var(--radius-xl); border: 1px solid var(--gray-100);
  padding: 26px; transition: transform .18s, box-shadow .18s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }
.feature__icon {
  width: 54px; height: 54px; border-radius: var(--radius-lg); background: var(--brand-50);
  display: grid; place-items: center; margin-bottom: 18px; color: var(--brand-600);
}
.feature--lead .feature__icon { background: linear-gradient(160deg, var(--brand-500), var(--brand-600)); color: #fff; box-shadow: var(--shadow-brand); }
.feature h3 { font-size: 18px; font-weight: 800; margin: 0; }
.feature p { font-size: 14px; line-height: 1.8; color: var(--gray-500); margin: 10px 0 0; }

/* ---- Stat ---- */
.stat { text-align: center; }
.stat__icon { width: 52px; height: 52px; border-radius: var(--radius-lg); background: var(--brand-50); display: grid; place-items: center; margin: 0 auto 14px; color: var(--brand-600); }
.stat__num { font-size: clamp(30px,4vw,42px); font-weight: 800; letter-spacing: -1px; }
.stat__lbl { font-size: 14.5px; color: var(--gray-500); margin-top: 4px; }

/* ---- Specialist card ---- */
.spec-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 40px; }
.spec {
  background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-2); border: 1px solid var(--gray-100);
  padding: 18px; height: 100%; transition: transform .18s, box-shadow .18s;
}
.spec:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }
.spec__top { display: flex; gap: 14px; }
.spec__photo { width: 72px; height: 72px; border-radius: var(--radius-lg); background: var(--gray-100); flex: none; display: grid; place-items: center; color: var(--gray-400); overflow: hidden; }
.spec__photo img { width: 100%; height: 100%; object-fit: cover; }
.spec__name { font-size: 16px; font-weight: 800; }
.spec__role { font-size: 13px; color: var(--brand-600); font-weight: 600; margin-top: 4px; }
.spec__meta { display: flex; align-items: center; gap: 5px; margin-top: 8px; color: var(--gray-400); font-size: 12.5px; }
.spec__rating { display: flex; align-items: center; gap: 7px; margin-top: 14px; }
.spec__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--gray-100); }
.price { display: flex; align-items: baseline; gap: 5px; }
.price__num { font-size: 16px; font-weight: 800; }
.price__cur, .price__from { font-size: 11.5px; color: var(--gray-400); }
.stars { display: inline-flex; gap: 1px; color: var(--warning); }

/* ---- Steps ---- */
.step { position: relative; background: #fff; border-radius: var(--radius-xl); border: 1px solid var(--gray-100); box-shadow: var(--shadow-1); padding: 30px 26px; }
.step__n { position: absolute; top: 22px; inset-inline-end: 24px; font-size: 54px; font-weight: 800; color: var(--brand-50); line-height: 1; }
.step__icon { width: 56px; height: 56px; border-radius: var(--radius-lg); background: var(--gray-900); display: grid; place-items: center; margin-bottom: 20px; color: #fff; }
.step h3 { font-size: 19px; font-weight: 800; margin: 0; }
.step p { font-size: 14.5px; line-height: 1.8; color: var(--gray-500); margin: 10px 0 0; }

/* ---- CTA ---- */
.cta { position: relative; overflow: hidden; border-radius: calc(var(--radius-xl) + 8px); background: linear-gradient(150deg, var(--brand-600), var(--brand-500)); box-shadow: var(--shadow-brand); padding: clamp(40px,5vw,64px); }
.cta__blob1 { position: absolute; inset-inline-end: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.1); }
.cta__blob2 { position: absolute; inset-inline-start: -60px; bottom: -120px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,.08); }
.cta__inner { position: relative; max-width: 56ch; }
.cta h2 { font-size: clamp(28px,4vw,44px); font-weight: 800; color: #fff; letter-spacing: -.8px; margin: 0; line-height: 1.2; }
.cta p { font-size: clamp(15px,1.7vw,18px); line-height: 1.85; color: rgba(255,255,255,.92); margin: 16px 0 28px; }

/* ---- Footer ---- */
.ftr { background: var(--gray-900); color: #fff; }
.ftr__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0 0; }
.ftr__about { font-size: 14.5px; line-height: 1.9; color: var(--gray-400); margin: 18px 0 20px; max-width: 34ch; }
.ftr__social { display: flex; gap: 10px; }
.ftr__social span { width: 42px; height: 42px; border-radius: var(--radius-md); background: rgba(255,255,255,.07); display: grid; place-items: center; color: #fff; }
.ftr__col-title { font-size: 14px; font-weight: 700; margin-bottom: 18px; }
.ftr__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.ftr__col a { font-size: 14px; color: var(--gray-400); transition: color .15s; }
.ftr__col a:hover { color: #fff; }
.ftr__grid--contact { grid-template-columns: 1.6fr 1.2fr auto; align-items: start; }
.ftr__contact { margin-top: 0; }
.ftr__contact-addr { font-size: 14px; line-height: 1.9; color: var(--gray-400); margin: 0 0 12px; max-width: 40ch; }
.ftr__contact-link { display: block; font-size: 14px; color: var(--gray-400); transition: color .15s; margin-bottom: 8px; }
.ftr__contact-link:hover { color: #fff; }
.ftr__enamad { min-height: 96px; }
.ftr__grid--contact .ftr__enamad { margin-top: 0; justify-self: start; }
.ftr__enamad img { border-radius: var(--radius-md); background: #fff; }
.ftr__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding: 24px 0 32px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.ftr__copy { font-size: 13px; color: var(--gray-500); }
.ftr__brand { font-size: 12.5px; color: var(--gray-600); direction: ltr; letter-spacing: 1px; }

/* ---- Mobile download bar ---- */
.dlbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 60; display: none; background: #fff; border-top: 1px solid var(--gray-100); box-shadow: 0 -6px 20px rgba(17,24,39,.07); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }

/* ---- Burger (mobile) ---- */
.burger { display: none; width: 44px; height: 44px; border-radius: var(--radius-md); border: none; background: var(--gray-100); cursor: pointer; place-items: center; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) { .grid-4, .spec-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 900px)  { .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 940px)  {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
}
@media (max-width: 880px)  {
  .hdr__nav, .hdr__cta { display: none; }
  .burger { display: grid; }
}
@media (max-width: 860px)  { .ftr__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 720px)  { .grid-4, .grid-3, .spec-grid { grid-template-columns: 1fr; } .dlbar { display: block; } }
@media (max-width: 520px)  { .ftr__grid { grid-template-columns: 1fr; } }

/* ============================================================
   Directory pages (/specialists, /gyms)
   ============================================================ */
.hdr__nav a.is-active { background: var(--brand-50); color: var(--brand-700); }
.dir { background: var(--surface); min-height: 70vh; padding-bottom: 80px; }
.dir__title { font-size: clamp(26px,3.4vw,38px); font-weight: 800; letter-spacing: -.6px; color: var(--gray-900); margin: 0; }
.dir__count { font-size: 15px; color: var(--gray-500); margin: 10px 0 0; }
.dir__lead { font-size: 15px; line-height: 1.7; color: var(--gray-500); margin: 10px 0 0; max-width: 56ch; }

.breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--gray-500); }
.breadcrumb a { color: var(--gray-500); font-weight: 600; }
.breadcrumb a:hover { color: var(--brand-600); }
.breadcrumb__cur { color: var(--gray-800); font-weight: 700; }

/* Filter bar */
.filterbar { background: #fff; border-radius: var(--radius-xl); border: 1px solid var(--gray-100); box-shadow: var(--shadow-2); padding: 20px 22px; }
.filterbar__chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.filterbar__row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }

.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 15px;
  border-radius: var(--radius-full); font-size: 13.5px; font-weight: 600;
  background: #fff; border: 1.6px solid var(--gray-200); color: var(--gray-600); transition: all .15s;
}
.chip:hover { border-color: var(--brand-200); color: var(--brand-700); }
.chip--active { background: var(--brand-50); border-color: var(--brand-500); color: var(--brand-700); }

.field { display: flex; flex-direction: column; gap: 7px; }
.field__lbl { font-size: 12.5px; font-weight: 600; color: var(--gray-500); }
.select {
  height: 48px; min-width: 190px; padding: 0 14px; border-radius: var(--radius-md);
  background: #fff; border: 1.6px solid var(--gray-200); color: var(--gray-900);
  font-family: var(--font); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 12px center;
}
.select:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px var(--brand-100); }
.select:disabled { opacity: .5; cursor: not-allowed; }
/* searchable text input + datalist — swap the chevron for a magnifier, allow typing */
.select--search {
  cursor: text; font-weight: 500;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
}
.select--search::-webkit-calendar-picker-indicator { opacity: 0; cursor: pointer; }
.select--search::placeholder { color: var(--gray-400); font-weight: 400; }

/* ---- Searchable custom dropdown (combobox) — matches kit Dropdown ---- */
.combo { position: relative; }
.combo--disabled { opacity: .5; pointer-events: none; }
.combo__btn {
  width: 100%; min-width: 190px; display: flex; align-items: center; gap: 9px;
  height: 48px; padding: 0 14px; border-radius: var(--radius-md);
  background: #fff; border: 1.6px solid var(--gray-200); cursor: pointer;
  font-family: var(--font); transition: all .15s;
}
.combo__btn:hover { border-color: var(--brand-200); }
.combo.is-open .combo__btn { border-color: var(--brand-500); box-shadow: 0 0 0 4px var(--brand-100); }
.combo__icon { display: inline-flex; color: var(--gray-400); flex: none; }
.combo.is-open .combo__icon { color: var(--brand-500); }
.combo__val { flex: 1; text-align: start; font-size: 14px; font-weight: 600; color: var(--gray-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.combo__val.is-placeholder { font-weight: 400; color: var(--gray-400); }
.combo__chev { display: inline-flex; flex: none; transition: transform .15s; }
.combo.is-open .combo__chev { transform: rotate(180deg); }

.combo__panel {
  position: absolute; top: calc(100% + 6px); inset-inline: 0; z-index: 30;
  background: #fff; border-radius: var(--radius-md); border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-3); padding: 6px;
}
.combo__panel[hidden] { display: none; }
.combo__search { display: flex; align-items: center; gap: 8px; padding: 6px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--gray-100); }
.combo__search-input { flex: 1; border: none; outline: none; background: transparent; font-family: var(--font); font-size: 14px; color: var(--gray-900); }
.combo__search-input::placeholder { color: var(--gray-400); }
.combo__list { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow-y: auto; }
.combo__opt {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 14px; font-weight: 500; color: var(--gray-700);
}
.combo__opt > span { flex: 1; }
.combo__opt svg { opacity: 0; flex: none; }
.combo__opt:hover { background: var(--gray-50); }
.combo__opt.is-selected { background: var(--brand-50); color: var(--brand-700); font-weight: 700; }
.combo__opt.is-selected svg { opacity: 1; }
.combo__opt.is-hidden { display: none; }
.combo__empty { padding: 14px 12px; text-align: center; font-size: 13px; color: var(--gray-400); }

.toggle {
  display: inline-flex; align-items: center; gap: 9px; height: 48px; padding: 0 16px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600; background: #fff; border: 1.6px solid var(--gray-200); color: var(--gray-600); transition: all .15s;
}
.toggle--on { background: var(--brand-50); border-color: var(--brand-500); color: var(--brand-700); }
.toggle__track { width: 34px; height: 20px; border-radius: 99px; background: var(--gray-300); padding: 2px; display: flex; justify-content: flex-end; margin-inline-start: 2px; }
.toggle--on .toggle__track { background: var(--brand-500); justify-content: flex-start; }
.toggle__knob { width: 16px; height: 16px; border-radius: 50%; background: #fff; }

.spec-grid--3 { grid-template-columns: repeat(3,1fr); margin-top: 28px; }

/* Gym cards */
.gym-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.gym { background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-2); border: 1px solid var(--gray-100); overflow: hidden; height: 100%; transition: transform .18s, box-shadow .18s; }
.gym:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }
.gym__cover { height: 150px; position: relative; }
.gym__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(17,24,39,.78) 0%, rgba(17,24,39,.15) 55%, rgba(17,24,39,0) 100%); }
.gym__title { position: absolute; inset-inline: 14px; bottom: 12px; color: #fff; }
.gym__body { padding: 16px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.gym__tagline { font-size: 13px; color: var(--gray-500); line-height: 1.7; }

/* Empty state */
.empty { background: #fff; border-radius: var(--radius-xl); border: 1px solid var(--gray-100); margin-top: 28px; padding: 56px 24px; text-align: center; }
.empty__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--gray-50); display: grid; place-items: center; margin: 0 auto 18px; }
.empty h3 { font-size: 19px; font-weight: 800; color: var(--gray-900); margin: 0 0 8px; }
.empty p { font-size: 14.5px; color: var(--gray-500); margin: 0 auto 22px; max-width: 42ch; line-height: 1.8; }

@media (max-width: 1080px) { .spec-grid--3, .gym-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 720px)  { .spec-grid--3, .gym-grid { grid-template-columns: 1fr; } .filterbar__row .select { min-width: 0; width: 100%; } .field { flex: 1; } }

/* ============================================================
   Profile pages (/coach/:slug, /gym/:slug, …)
   ============================================================ */
.prof { background: var(--surface); padding-bottom: 80px; }
.profile-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; margin-top: 24px; align-items: start; }
.profile-main { display: flex; flex-direction: column; gap: 20px; }
.profile-aside { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 20px; }

.panel { background: #fff; border-radius: var(--radius-xl); border: 1px solid var(--gray-100); box-shadow: var(--shadow-1); padding: 26px 28px; }
.panel__title { font-size: 20px; font-weight: 800; color: var(--gray-900); margin: 0 0 18px; }

/* services */
.svc { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius-lg); border: 1px solid var(--gray-100); background: var(--gray-50); }
.svc__icon { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--brand-50); display: grid; place-items: center; flex: none; }

/* CTA sidebar card */
.cta-card { background: linear-gradient(155deg, var(--gray-900), #1f2937); border-radius: var(--radius-xl); box-shadow: var(--shadow-3); padding: 26px; color: #fff; }
.cta-card__badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; background: rgba(251,106,46,.18); color: var(--brand-200); padding: 6px 12px; border-radius: var(--radius-full); }

/* badge */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: var(--radius-full); }
.badge--success { background: var(--brand-50); color: var(--brand-700); }

/* gym cover */
.gymcover { height: 300px; position: relative; }

/* amenities */
.amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 12px; }
.amenity { display: flex; align-items: center; gap: 11px; padding: 13px 15px; border-radius: var(--radius-md); border: 1px solid var(--gray-100); background: var(--gray-50); font-size: 14px; font-weight: 600; color: var(--gray-700); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }

/* coaches in gym */
.coach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 14px; }
.coach { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius-lg); border: 1px solid var(--gray-100); background: var(--gray-50); transition: all .15s; }
.coach:hover { border-color: var(--brand-200); background: var(--brand-50); }
.coach__ava { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--gray-100); display: grid; place-items: center; flex: none; }

/* info rows */
.info-row { display: flex; gap: 12px; align-items: flex-start; }
.info-row__icon { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--brand-50); display: grid; place-items: center; flex: none; }
.info-row__t { font-size: 12.5px; color: var(--gray-400); font-weight: 600; }
.info-row__s { font-size: 14px; color: var(--gray-800); font-weight: 600; margin-top: 2px; }

@media (max-width: 940px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-aside { position: static; }
}

/* ---- Mobile menu (CSS-only via :target) ---- */
.mobile-menu { display: none; border-top: 1px solid var(--gray-100); background: #fff; padding: 10px 0 18px; }
.mobile-menu a { display: block; font-size: 16px; font-weight: 600; color: var(--gray-800); padding: 13px 8px; border-bottom: 1px solid var(--gray-100); }
.mobile-menu:target { display: block; }
