/* Gym Finder 2.0 — polish, feature components and responsive refinements. */

:root {
  --focus: rgba(249, 115, 22, .38);
  --surface-glass: rgba(17, 23, 32, .82);
  --success-soft: rgba(34, 197, 94, .12);
  --danger: #ef4444;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-height: 76px;
}

html { scroll-padding-top: 104px; }
body {
  background-image:
    radial-gradient(circle at 82% -12%, rgba(255, 107, 0, .075), transparent 28rem),
    radial-gradient(circle at 6% 36%, rgba(25, 209, 122, .04), transparent 26rem);
}
body.sheet-open { overflow: hidden; }
button, a, input, select, textarea { touch-action: manipulation; }
button { min-height: 44px; }
.primary-button.compact { min-height: 44px; }
.ai-input button, .filter-panel button, .filter-close { min-width: 44px; }
input, textarea { font: inherit; }
button:disabled { cursor: not-allowed; opacity: .55; }
.primary-button, .outline-button, .light-button, .icon-button,
.favorite-button, .map-expand, .socials a, .article-overlay button,
.password-button, .time-slot, .gym-tabs a { min-height: 44px; }
.icon-button { min-width: 44px; }
.favorite-button, .map-expand, .socials a, .article-overlay button, .password-button { min-width: 44px; }
.primary-button:active, .outline-button:active, .category-card:active { transform: scale(.98); }

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  padding-inline: max(24px, calc((100% - var(--max)) / 2));
  border-bottom-color: rgba(214, 222, 234, .09);
  background: rgba(11, 15, 20, .82);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}
.main-nav a.active::after { bottom: -26px; }
.brand-mark { box-shadow: 0 9px 25px rgba(255, 107, 0, .2); }
.status-chip, .chip { gap: 5px; }
.status-chip svg, .chip svg { width: 14px; }

.surface-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card-raised);
  font-size: 11px;
}
.surface-note svg { flex: none; color: var(--green); }

/* Homepage expansion */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: 44px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}
.trust-item {
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px;
  background: var(--surface);
}
.trust-item > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--lime);
  border-radius: 12px;
  background: rgba(214, 255, 105, .08);
}
.trust-item div { display: grid; gap: 1px; }
.trust-item b { font-size: 12px; }
.trust-item small { color: var(--muted); font-size: 10px; line-height: 1.7; }

.journey-section { padding-block: 92px 76px; }
.journey-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.journey-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(150deg, var(--surface), var(--card));
}
.journey-card::after {
  content: attr(data-step);
  position: absolute;
  left: -6px;
  bottom: -30px;
  color: rgba(255, 255, 255, .025);
  font: 900 126px/1 Barlow, sans-serif;
}
.journey-card .journey-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--orange);
  border-radius: 15px;
  background: var(--orange-soft);
}
.journey-card:nth-child(2) .journey-icon { color: var(--lime); background: rgba(214, 255, 105, .08); }
.journey-card:nth-child(3) .journey-icon { color: var(--green); background: var(--success-soft); }
.journey-card h3 { margin: 20px 0 8px; font-size: 18px; }
.journey-card p { max-width: 29rem; margin: 0; color: var(--muted); font-size: 12px; line-height: 2; }
.journey-card a { position: relative; z-index: 1; margin-top: 18px; }

.live-map {
  position: absolute;
  inset: 0 0 78px;
  width: 100%;
  height: calc(100% - 78px);
  border: 0;
  filter: grayscale(.8) invert(.9) hue-rotate(175deg) saturate(.65) contrast(1.05);
  background-color: #17212a;
  background-image:
    linear-gradient(115deg, transparent 48%, rgba(120, 142, 157, .28) 49%, rgba(120, 142, 157, .28) 51%, transparent 52%),
    linear-gradient(32deg, transparent 48%, rgba(120, 142, 157, .18) 49%, rgba(120, 142, 157, .18) 51%, transparent 52%),
    radial-gradient(circle at 65% 42%, rgba(255, 107, 0, .18), transparent 8%);
}
.map-panel::after {
  content: '';
  position: absolute;
  inset: 0 0 78px;
  pointer-events: none;
  box-shadow: inset 0 0 50px rgba(5, 8, 11, .38);
}
.map-panel .map-top, .map-panel .map-bottom { z-index: 3; }

/* Search results and compare */
.filter-trigger { display: none; }
.filter-close { display: none; }
.result-image { position: relative; min-height: 220px; overflow: hidden; }
.result-image > img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.result-image::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(5, 8, 11, .5), transparent 55%); }
.result-image .favorite-button { z-index: 2; }
.compare-button {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  background: rgba(7, 10, 14, .66);
  backdrop-filter: blur(8px);
  font-size: 10px;
}
.compare-button.selected { color: var(--ink); border-color: var(--lime); background: var(--lime); }
.empty-results {
  display: none;
  padding: 36px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.empty-results.show { display: block; }
.empty-results span { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 12px; color: var(--orange); border-radius: 14px; background: var(--orange-soft); }
.empty-results h3 { margin: 0 0 5px; }
.empty-results p { margin: 0; color: var(--muted); font-size: 11px; }

.compare-bar {
  position: fixed;
  z-index: 42;
  right: 50%;
  bottom: 22px;
  width: min(calc(100% - 32px), 720px);
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 120%);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 17px;
  background: rgba(17, 23, 32, .94);
  box-shadow: 0 25px 70px rgba(0, 0, 0, .4);
  backdrop-filter: blur(18px);
  transition: opacity .24s, transform .32s var(--ease-out);
}
.compare-bar.show { opacity: 1; pointer-events: auto; transform: translate(50%, 0); }
.compare-copy { min-width: 0; display: grid; flex: 1; }
.compare-copy b { font-size: 12px; }
.compare-copy small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.compare-clear { min-width: 44px; min-height: 44px; display: grid; place-items: center; color: var(--muted); border: 0; border-radius: 11px; background: transparent; }
.compare-clear:hover { color: var(--danger); background: rgba(239, 68, 68, .09); }

.comparison-section { margin-top: 44px; padding: 24px; }
.comparison-scroll { overflow-x: auto; margin-top: 18px; }
.comparison-table { width: 100%; min-width: 690px; border-collapse: collapse; }
.comparison-table th, .comparison-table td { padding: 13px; text-align: right; border-bottom: 1px solid var(--line); font-size: 11px; }
.comparison-table th { color: var(--muted); font-weight: 500; }
.comparison-table td:not(:first-child) { font-weight: 700; }
.comparison-table svg { width: 15px; color: var(--green); vertical-align: middle; }

/* Gym profile */
.gym-gallery {
  display: grid;
  grid-template-columns: 1.55fr .75fr;
  grid-template-rows: repeat(2, 180px);
  gap: 10px;
  margin-bottom: 18px;
}
.gallery-tile {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
}
.gallery-tile:first-child { grid-row: 1 / 3; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease-out); }
.gallery-tile:hover img { transform: scale(1.035); }
.gallery-tile span { position: absolute; left: 11px; bottom: 11px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; color: #fff; border-radius: 9px; background: rgba(7, 10, 14, .72); font-size: 10px; backdrop-filter: blur(8px); }
.gallery-tile span svg { width: 14px; }

.gym-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.gym-fact { display: grid; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-raised); }
.gym-fact b { font-size: 11px; }
.gym-fact span { color: var(--muted); font-size: 9px; }
.equipment-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.equipment-grid .equipment-row { height: 100%; }

.trainer-mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.trainer-mini {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card-raised);
}
.trainer-mini img { width: 76px; height: 100%; min-height: 108px; object-fit: cover; }
.trainer-mini div { align-self: center; padding: 10px 0 10px 10px; }
.trainer-mini b { display: block; font-size: 11px; }
.trainer-mini small { color: var(--muted); font-size: 9px; }
.trainer-mini .rating { margin-top: 8px; }

.review-summary { display: grid; grid-template-columns: 130px 1fr; gap: 22px; align-items: center; }
.review-score { text-align: center; padding: 20px; border-radius: 16px; background: var(--card-raised); }
.review-score strong { display: block; font: 800 42px/1 Barlow, Estedad, sans-serif; }
.review-score span { display: inline-flex; gap: 2px; color: #f9cb57; margin: 8px 0 2px; }
.review-score small { display: block; color: var(--muted); font-size: 9px; }
.review-list { margin-top: 18px; }
.review-person { display: flex; align-items: center; gap: 9px; }
.review-avatar { width: 34px; height: 34px; display: grid; place-items: center; color: var(--orange); border-radius: 10px; background: var(--orange-soft); font-weight: 800; }

.location-card { overflow: hidden; }
.location-map {
  width: 100%;
  height: 290px;
  border: 0;
  filter: grayscale(.76) invert(.9) hue-rotate(175deg) saturate(.65);
  background-color: #17212a;
  background-image:
    linear-gradient(125deg, transparent 47%, rgba(120, 142, 157, .28) 48%, rgba(120, 142, 157, .28) 51%, transparent 52%),
    linear-gradient(35deg, transparent 47%, rgba(120, 142, 157, .18) 48%, rgba(120, 142, 157, .18) 51%, transparent 52%),
    radial-gradient(circle at 54% 48%, rgba(255, 107, 0, .24), transparent 9%);
}
.location-map iframe, [data-neshan-map] iframe { width: 100%; height: 100%; border: 0; }
[data-neshan-map] { position: relative; overflow: hidden; background: #17212a; }
[data-neshan-map] .mapboxgl-canvas { outline: none; }
[data-neshan-map] .mapboxgl-ctrl-attrib { font-size: 10px; direction: ltr; }
.location-details { display: grid; gap: 10px; padding: 18px; }
.location-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.location-actions a { width: 100%; }
.open-now { display: inline-flex; align-items: center; gap: 6px; color: #8ee9b5; font-size: 10px; }
.open-now::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(25, 209, 122, .1); }

.sticky-mobile-cta { display: none; }

/* Trainer profile expansion */
.trainer-cover .cover-actions { display: flex; gap: 8px; margin-top: 18px; }
.trainer-cover .cover-actions .outline-button { color: #fff; border-color: rgba(255, 255, 255, .22); background: rgba(7, 10, 14, .22); }
.credential-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 16px; }
.credential {
  min-height: 102px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  padding: 12px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card-raised);
}
.credential svg { color: var(--lime); }
.credential b { font-size: 10px; }
.credential small { color: var(--muted); font-size: 8px; }

.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.program-card { position: relative; overflow: hidden; min-height: 188px; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: var(--card-raised); }
.program-card.featured { border-color: rgba(214, 255, 105, .3); background: linear-gradient(145deg, rgba(214, 255, 105, .1), var(--card-raised)); }
.program-card > span { color: var(--orange); font-size: 9px; font-weight: 700; }
.program-card h3 { margin: 7px 0 5px; font-size: 14px; }
.program-card p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.8; }
.program-card strong { display: block; margin-top: 14px; font-size: 12px; }
.program-card .round-icon { position: absolute; left: 13px; top: 13px; }

.transformation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 14px; }
.transformation-card { padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--card-raised); }
.transformation-card b { display: block; color: var(--lime); font: 800 20px/1.2 Barlow, Estedad, sans-serif; }
.transformation-card span { color: var(--muted); font-size: 9px; }

/* Dialogs and accordions */
dialog {
  width: min(calc(100% - 28px), 520px);
  max-height: min(88dvh, 760px);
  overflow: auto;
  padding: 0;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--surface);
  box-shadow: 0 32px 90px rgba(0, 0, 0, .55);
}
dialog::backdrop { background: rgba(3, 6, 9, .72); backdrop-filter: blur(7px); }
.dialog-content { padding: 22px; }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.dialog-head h2 { margin: 0; font-size: 19px; }
.dialog-head p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.dialog-close { width: 44px; height: 44px; display: grid; place-items: center; flex: none; color: var(--muted); border: 1px solid var(--line); border-radius: 12px; background: var(--card-raised); }
#gallery-dialog { width: min(calc(100% - 28px), 1040px); background: #080b0f; }
#gallery-dialog img { max-height: 82dvh; width: 100%; object-fit: contain; }
#gallery-dialog .dialog-close { position: absolute; z-index: 2; top: 12px; left: 12px; color: #fff; background: rgba(7, 10, 14, .72); }

.accordion-list { display: grid; gap: 8px; margin-top: 14px; }
.accordion-item { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--card-raised); }
.accordion-trigger { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; color: var(--text); text-align: right; border: 0; background: transparent; font-weight: 700; font-size: 10px; }
.accordion-trigger svg { transition: transform .2s; }
.accordion-item.open .accordion-trigger svg { transform: rotate(180deg); }
.accordion-panel { margin: 0; padding: 0 13px 13px; color: var(--muted); font-size: 10px; line-height: 2; }

.is-loading { position: relative; color: transparent !important; }
.is-loading::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

.reveal-ready { opacity: 1; transform: none; }
.reveal-ready.revealed { opacity: 1; transform: none; }

.mobile-dock { display: none; }

.trainer-card > img { height: 230px; aspect-ratio: auto; object-position: center 20%; }

/* Light mode */
body.light-mode .site-header { background: rgba(246, 247, 249, .86); }
body.light-mode .finder-card { background: rgba(255, 255, 255, .97); box-shadow: 0 24px 55px rgba(27, 42, 58, .14); }
body.light-mode .finder-card select, body.light-mode .finder-card label { color: var(--text); }
body.light-mode .finder-card option { color: var(--text); background: #fff; }
body.light-mode .journey-card::after { color: rgba(15, 23, 42, .035); }
body.light-mode .live-map, body.light-mode .location-map { filter: grayscale(.25) saturate(.75); }
body.light-mode .map-panel::after { box-shadow: inset 0 0 34px rgba(255, 255, 255, .18); }
body.light-mode .compare-bar { color: #fff; background: rgba(17, 23, 32, .96); }
body.light-mode dialog { color: var(--text); }

.location-inline { width: 44px; min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0; color: var(--green); border: 0; border-radius: 10px; background: transparent; }
.location-inline:hover { background: rgba(25, 209, 122, .1); }
.location-inline svg { width: 17px; }

.auth-api-message { margin: 12px 0; padding: 10px 12px; color: #ffb4b4; border: 1px solid rgba(239,68,68,.25); border-radius: 10px; background: rgba(239,68,68,.08); font-size: 10px; }
.owner-managed-chip { color: #fff !important; border-color: rgba(22,137,255,.4) !important; background: #1689ff !important; box-shadow: 0 0 0 5px rgba(22,137,255,.12); }
.demo-accounts { margin: 10px 0 0; color: var(--muted); direction: ltr; text-align: center; font: 500 9px Manrope, Estedad, sans-serif; }
body.light-mode .auth-api-message { color: #a52323; background: #fff2f2; }

@media (max-width: 1024px) {
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .journey-grid { grid-template-columns: 1fr; }
  .journey-card { min-height: 210px; }
  .program-grid { grid-template-columns: 1fr; }
  .gym-gallery { grid-template-rows: repeat(2, 150px); }
}

@media (max-width: 920px) {
  .dashboard-page { width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr); overflow-x: clip; }
  .dashboard-side, .dashboard-content { width: 100%; min-width: 0; }
  .dashboard-side { overflow: hidden; }
  .dashboard-nav { width: 100%; max-width: 100%; overscroll-behavior-inline: contain; }
  .site-header { padding-inline: 20px; }
  .filter-trigger { display: inline-flex; }
  .filter-panel {
    position: fixed !important;
    z-index: 80;
    right: 0;
    left: 0;
    bottom: 0;
    max-height: 82dvh;
    display: block !important;
    overflow: auto;
    margin: 0;
    padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(105%);
    box-shadow: 0 -25px 70px rgba(0, 0, 0, .45);
    transition: opacity .2s, transform .32s var(--ease-out);
  }
  .filter-panel.mobile-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .filter-panel::before { content: ''; display: block; width: 45px; height: 4px; margin: -8px auto 14px; border-radius: 5px; background: var(--line); }
  .filter-close { display: grid; place-items: center; width: 44px; height: 44px; color: var(--muted) !important; border: 1px solid var(--line) !important; border-radius: 10px; background: var(--card-raised) !important; }
  body.sheet-open::after { content: ''; position: fixed; z-index: 70; inset: 0; background: rgba(3, 6, 9, .64); backdrop-filter: blur(5px); }
  .trainer-mini-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --header-height: 66px; }
  html { scroll-padding-top: 82px; }
  body { font-size: 16px; padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .site-header { padding-inline: 12px; }
  .brand { font-size: 13px; }
  .header-actions { gap: 5px; }
  .page-header .primary-button.compact { display: none; }
  .mobile-dock {
    position: fixed;
    z-index: 45;
    right: 10px;
    bottom: max(9px, env(safe-area-inset-bottom));
    left: 10px;
    min-height: 62px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 19px;
    background: rgba(14, 19, 26, .94);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .42);
    backdrop-filter: blur(18px) saturate(135%);
  }
  .mobile-dock a { min-width: 0; min-height: 50px; display: grid; place-items: center; align-content: center; gap: 1px; color: #8f9bad; border-radius: 13px; font-size: 9px; }
  .mobile-dock a svg { width: 19px; height: 19px; }
  .mobile-dock a.active { color: var(--lime); background: rgba(214, 255, 105, .09); }
  body.light-mode .mobile-dock { background: rgba(255, 255, 255, .95); border-color: rgba(15, 23, 42, .1); }
  body.light-mode .mobile-dock a { color: #667085; }
  body.light-mode .mobile-dock a.active { color: #c64e00; background: rgba(249, 115, 22, .1); }

  .trust-strip { grid-template-columns: 1fr; margin-top: 24px; }
  .trust-item { min-height: 96px; }
  .journey-section { padding-block: 66px 55px; }
  .journey-card { min-height: 230px; padding: 20px; }
  .journey-card p { font-size: 13px; }
  .live-map { bottom: 88px; height: calc(100% - 88px); }
  .map-panel::after { bottom: 88px; }

  .results-toolbar { align-items: stretch; flex-wrap: wrap; }
  .results-toolbar p { width: 100%; }
  .sort-select { flex: 1; min-height: 44px; }
  .filter-trigger { flex: 1; justify-content: center; }
  .result-image { min-height: 190px; }
  .result-image > img { min-height: 190px; max-height: 220px; }
  .result-details { grid-template-columns: repeat(2, 1fr); }
  .result-details span:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .result-actions { align-items: stretch; flex-direction: column; }
  .result-actions .outline-button { width: 100%; }
  .compare-bar { bottom: calc(82px + env(safe-area-inset-bottom)); }
  .compare-copy small { display: none; }
  .compare-bar .primary-button { padding-inline: 12px; }

  .gym-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 230px 112px; }
  .gallery-tile:first-child { grid-column: 1 / -1; grid-row: auto; }
  .gym-facts, .credential-row, .transformation-grid { grid-template-columns: 1fr; }
  .equipment-grid { grid-template-columns: 1fr; }
  .review-summary { grid-template-columns: 1fr; }
  .location-actions { grid-template-columns: 1fr; }
  .trainer-cover .cover-actions { align-items: stretch; flex-direction: column; }
  .trainer-cover { grid-template-columns: 1fr; padding: 0; }
  .trainer-cover > img { display: block; width: 100%; height: 330px; border-radius: 0; object-position: center 20%; }
  .trainer-cover-content { padding: 20px; }
  .trainer-card > img { height: 285px; object-position: center 18%; }
  .trainer-cover .cover-actions a, .trainer-cover .cover-actions button { width: 100%; }
  .sticky-mobile-cta {
    position: fixed;
    z-index: 44;
    right: 10px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    left: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    background: rgba(14, 19, 26, .94);
    box-shadow: 0 16px 45px rgba(0, 0, 0, .38);
    backdrop-filter: blur(16px);
  }
  .sticky-mobile-cta > div { min-width: 0; display: grid; flex: 1; }
  .sticky-mobile-cta b { font-size: 11px; }
  .sticky-mobile-cta small { overflow: hidden; color: #9da8b7; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
  .sticky-mobile-cta .primary-button { flex: none; }
  body:has(.sticky-mobile-cta) .mobile-dock { display: none; }
  body:has(.sticky-mobile-cta) { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}

@media (max-width: 440px) {
  .header-actions .theme-toggle { display: none; }
  .trust-item { padding: 14px; }
  .gym-gallery { grid-template-rows: 205px 100px; }
  .gallery-tile span { font-size: 9px; }
  .gym-hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); }
  .gym-hero-metrics > div { padding: 9px; }
  .compare-clear { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal-ready { opacity: 1; transform: none; }
}
