/* ==========================================================================
   FindAGym.org — site styles
   Self-contained: system fonts, no @import, no external requests.
   Palette + spacing live in custom properties at the top.
   ========================================================================== */

:root {
  /* palette */
  --navy-950: #070d19;
  --navy-900: #0f172a;
  --navy-800: #1b2436;
  --navy-700: #293449;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --ink: #0f172a;
  --body: #334155;
  --muted: #5b6b82;

  --accent-ink: #075985;
  --accent-700: #0369a1;
  --accent-600: #0284c7;
  --accent-500: #0ea5e9;
  --accent-400: #38bdf8;
  --accent-300: #7dd3fc;
  --accent-200: #bae6fd;
  --accent-100: #e0f2fe;
  --accent-050: #f0f9ff;

  /* surfaces + lines */
  --page: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e4e9f0;
  --border-strong: #d3dbe6;
  --focus: #047857;
  --ring: 0 0 0 4px rgba(2, 132, 199, 0.16);

  /* type */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --fs-xs: 0.78rem;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;

  /* spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;

  /* radii + shadows */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 24px -14px rgba(15, 23, 42, 0.26), 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 26px 60px -28px rgba(7, 13, 25, 0.45);

  --container: 1120px;
}

/* --- reset ---------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  vertical-align: middle;
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--accent-100);
  color: var(--accent-ink);
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

/* --- typography ----------------------------------------------------- */
h1,
h2,
h3,
h4 {
  margin: 0 0 0.6rem;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.35rem + 2.7vw, 3rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.033em;
  margin-bottom: 0.9rem;
}

h2 {
  font-size: clamp(1.35rem, 1.1rem + 0.85vw, 1.6rem);
  letter-spacing: -0.024em;
}

h3 {
  font-size: 1.075rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.012em;
}

h4 {
  font-size: 0.95rem;
}

p {
  margin: 0 0 1rem;
}

strong {
  color: var(--ink);
  font-weight: 700;
}

a {
  color: var(--accent-700);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

main ul {
  padding-left: 1.2rem;
}

main li {
  margin-bottom: 0.35rem;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 0.55rem + 2.4vw, 2rem);
}

main > .container {
  padding-block: 2rem 3.5rem;
}

/* --- skip link ------------------------------------------------------ */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 650;
  box-shadow: var(--shadow-md);
  transform: translateY(-160%);
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* --- header --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 66px;
  padding-block: 0.55rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand:hover {
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent-500), var(--accent-700));
  color: #04150f;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.35);
}

.brand em {
  font-style: normal;
  color: var(--accent-400);
}

.brand .muted {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.92em;
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-links a {
  position: relative;
  padding: 0.3rem 0;
  color: var(--slate-300);
  font-size: 0.92rem;
  font-weight: 550;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--accent-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.nav-links a:hover {
  color: #fff;
  text-decoration: none;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* nav search */
.nav-search {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
  padding: 0.2rem 0.2rem 0.2rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.nav-search:focus-within {
  border-color: var(--accent-400);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.22);
}

.nav-search-icon {
  display: grid;
  place-items: center;
  flex: none;
  color: var(--slate-400);
}

.nav-search-input {
  width: 168px;
  min-width: 0;
  padding: 0.42rem 0.45rem;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  outline: none;
}

.nav-search-input::placeholder {
  color: #94a3b8;
}

.nav-search-input:focus-visible {
  outline: none;
}

.nav-search-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(52, 211, 153, 0.16);
  color: var(--accent-300);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-search-btn:hover {
  background: var(--accent-500);
  color: #052e22;
}

/* --- hero ----------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-900);
  color: #cbd5e1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(58rem 28rem at 16% -12%, rgba(14, 165, 233, 0.2), transparent 62%),
    radial-gradient(46rem 26rem at 90% -2%, rgba(56, 189, 248, 0.1), transparent 64%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 80%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 80%);
}

.hero .container {
  position: relative;
  padding-block: clamp(3rem, 5.5vw, 4.6rem) clamp(2.75rem, 5vw, 4rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  padding: 0.35rem 0.72rem;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-pill);
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent-300);
  font-size: 0.735rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 18ch;
  margin-bottom: 1rem;
  color: #fff;
}

.hero > .container > p {
  max-width: 62ch;
  margin-bottom: 1.9rem;
  color: #b9c5d6;
  font-size: 1.09rem;
  line-height: 1.62;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 720px;
  padding: 0.4rem 0.4rem 0.4rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.hero-search:focus-within {
  border-color: var(--accent-300);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.22), var(--shadow-lg);
}

.hero-search-icon {
  display: grid;
  place-items: center;
  flex: none;
  color: var(--slate-400);
}

.hero-search-input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 0.5rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.02rem;
  outline: none;
}

.hero-search-input::placeholder {
  color: #7c8ba1;
}

.hero-search-input:focus-visible {
  outline: none;
}

.hero-search-btn {
  flex: none;
  padding: 0.82rem 1.5rem;
  border: 0;
  border-radius: 11px;
  background: var(--accent-700);
  color: #fff;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.hero-search-btn:hover {
  background: var(--accent-ink);
}

.hero-search-btn:active {
  transform: translateY(1px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 840px;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.hero-stats strong {
  color: #fff;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-stats span {
  color: var(--slate-400);
  font-size: 0.8rem;
  line-height: 1.35;
}

/* --- buttons -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--accent-700);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: var(--accent-ink);
  color: #fff;
  text-decoration: none;
}

.btn-ghost {
  border-color: var(--border-strong);
  background: var(--white);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--slate-300);
  background: var(--slate-50);
  color: var(--ink);
}

/* --- sections ------------------------------------------------------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.15rem;
}

.section-head h2 {
  margin: 0;
}

.section-head > a {
  color: var(--accent-700);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.section-head > a:hover {
  text-decoration: underline;
}

/* --- grids ---------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.9rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

/* Listing rows read as a list, not a tile wall. */
.grid:has(> .gym-card) {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 470px), 1fr));
  gap: 0.6rem;
}

/* --- cards ---------------------------------------------------------- */
.card {
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.card h2,
.card h3 {
  margin-top: 0;
}

.card p:last-child {
  margin-bottom: 0;
}

a.card {
  display: block;
  color: inherit;
  text-decoration: none;
}

a.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  color: inherit;
  text-decoration: none;
  transform: translateY(-2px);
}

a.card h3 {
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 1.03rem;
}

a.card:hover h3 {
  color: var(--accent-700);
}

/* --- badges + tags -------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.36rem 0.68rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-pill);
  background: var(--slate-50);
  color: var(--slate-600);
  font-size: 0.815rem;
  font-weight: 550;
  line-height: 1.25;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

a.badge:hover {
  border-color: var(--slate-300);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}

.badge-brand {
  border-color: var(--accent-200);
  background: var(--accent-050);
  color: var(--accent-700);
}

a.badge-brand:hover {
  border-color: var(--accent-300);
  background: var(--accent-100);
  color: var(--accent-ink);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* --- gym listing cards ---------------------------------------------- */
.gym-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.4rem 1rem;
  padding: 0.85rem 1.05rem;
  border-radius: var(--radius);
}

.gym-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.gym-card h3 {
  flex: 1 1 100%;
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.3;
}

.gym-card .gym-meta {
  flex: 1 1 100%;
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.gym-card > .badge-brand {
  margin: 0;
}

.gym-card .gym-links {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-left: auto;
}

.gym-card .gym-links .badge {
  padding: 0.3rem 0.55rem;
  border-color: var(--slate-200);
  background: var(--white);
  font-size: 0.775rem;
}

.gym-card .gym-links .badge:hover {
  border-color: var(--accent-200);
  background: var(--accent-050);
  color: var(--accent-ink);
}

/* --- breadcrumbs ---------------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.45rem;
  margin-bottom: 1.15rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.breadcrumb a {
  color: var(--slate-600);
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--accent-700);
}

.breadcrumb span {
  color: var(--ink);
  font-weight: 600;
}

/* --- tables --------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  border-radius: var(--radius-lg);
}

.table-wrap table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table-wrap th {
  padding: 0.8rem 1.15rem;
  border-bottom: 1px solid var(--slate-200);
  background: var(--slate-50);
  color: var(--slate-500);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.table-wrap td {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid #eef2f6;
  color: var(--body);
}

.table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.table-wrap tbody tr:hover {
  background: var(--slate-50);
}

.table-wrap th:last-child,
.table-wrap td:last-child {
  text-align: right;
  white-space: nowrap;
}

/* --- pagination ----------------------------------------------------- */
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.6rem 0 0;
}

.pager .badge {
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.6rem;
  font-size: 0.85rem;
}

/* --- search page ---------------------------------------------------- */
.search-page {
  padding-top: 1.9rem;
}

.search-intro h1 {
  margin-bottom: 0.6rem;
}

.search-intro p {
  max-width: 64ch;
  margin-bottom: 1.5rem;
}

.search-form {
  max-width: 760px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.35rem 0.35rem 0.9rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.search-field:focus-within {
  border-color: var(--accent-600);
  box-shadow: var(--ring), var(--shadow-sm);
}

.search-field-icon {
  display: grid;
  place-items: center;
  flex: none;
  color: var(--slate-400);
  transition: color 0.16s ease;
}

.search-field:focus-within .search-field-icon {
  color: var(--accent-700);
}

.search-field input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 0.4rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.08rem;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.search-field input::placeholder {
  color: #7d8ba0;
}

.search-field input:focus-visible {
  outline: none;
}

.search-submit {
  flex: none;
  padding: 0.78rem 1.4rem;
  border: 0;
  border-radius: 11px;
  background: var(--accent-700);
  color: #fff;
  font: inherit;
  font-size: 0.97rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.search-submit:hover {
  background: var(--accent-ink);
}

.search-submit:active {
  transform: translateY(1px);
}

.search-tip {
  margin: 0.65rem 0 0 0.15rem;
}

.search-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 1.9rem 0 0.85rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

.search-msg {
  margin: 0;
  color: var(--slate-600);
  font-size: 0.92rem;
}

.search-results {
  display: grid;
  gap: 0.55rem;
}

.search-result,
a.search-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 0.95rem;
  color: inherit;
  text-decoration: none;
}

a.search-result:hover {
  border-color: var(--accent-200);
  box-shadow: 0 12px 26px -18px rgba(15, 23, 42, 0.35);
  color: inherit;
  text-decoration: none;
  transform: translateY(-1px);
}

.search-result-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--slate-100);
  color: var(--slate-600);
}

.search-result-icon.is-chain {
  background: var(--accent-050);
  color: var(--accent-700);
}

.search-result-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.search-result-name {
  color: var(--ink);
  font-size: 1.01rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.search-result-name mark {
  padding: 0 0.08em;
  border-radius: 3px;
  background: var(--accent-100);
  color: var(--accent-ink);
}

.search-result-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.83rem;
}

.type-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.5rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-pill);
  background: var(--slate-100);
  color: var(--slate-600);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.type-chip-chain {
  border-color: var(--accent-200);
  background: var(--accent-050);
  color: var(--accent-700);
}

.search-result-go {
  display: grid;
  place-items: center;
  color: var(--slate-400);
  transition: transform 0.16s ease, color 0.16s ease;
}

a.search-result:hover .search-result-go {
  color: var(--accent-700);
  transform: translateX(2px);
}

.search-empty {
  display: flex;
  grid-column: 1 / -1;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1.25rem;
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius-xl);
  background: var(--slate-50);
  text-align: center;
}

.search-empty-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: var(--accent-050);
  color: var(--accent-700);
}

.search-empty h3 {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
}

.search-empty p {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.search-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.35rem;
}

.search-suggest {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--slate-50);
}

.search-suggest-title {
  margin: 0 0 0.75rem;
  color: var(--slate-500);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- footer --------------------------------------------------------- */
footer[role="contentinfo"] {
  margin-top: 4rem;
  padding: 3rem 0 2.25rem;
  background: var(--navy-900);
  color: var(--slate-400);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem 1.75rem;
}

.footer-grid h4 {
  margin: 0 0 0.85rem;
  color: #e2e8f0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.footer-grid ul {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid a {
  color: #a9b8cc;
  font-size: 0.9rem;
  line-height: 1.45;
}

.footer-grid a:hover {
  color: #fff;
  text-decoration: none;
}

.legal {
  margin-top: 2.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8b9cb3;
  font-size: 0.8rem;
  line-height: 1.65;
}

.legal p {
  max-width: 100ch;
  margin: 0 0 0.55rem;
}

.legal p:last-child {
  margin-bottom: 0;
}

/* --- utilities ------------------------------------------------------ */
.mt-0 {
  margin-top: 0 !important;
}

.small {
  font-size: 0.85rem;
  line-height: 1.5;
}

.muted {
  color: var(--muted);
}

.accent {
  color: var(--ink);
}

/* --- focus ---------------------------------------------------------- */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.site-header :where(a, button):focus-visible,
.hero :where(a, button):focus-visible,
footer :where(a, button):focus-visible {
  outline-color: var(--accent-300);
}

/* --- responsive ----------------------------------------------------- */
@media (max-width: 820px) {
  .site-header {
    position: static;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 0.65rem;
    padding-block: 0.7rem;
  }

  .site-nav {
    order: 3;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .nav-search {
    order: 1;
    width: 100%;
    max-width: none;
    padding: 0.28rem 0.28rem 0.28rem 0.85rem;
  }

  .nav-search-input {
    flex: 1;
    width: 100%;
    padding: 0.5rem 0.45rem;
    font-size: 0.95rem;
  }

  .nav-search-btn {
    width: 34px;
    height: 34px;
  }

  .nav-links {
    order: 2;
    gap: 1.35rem;
  }

  .nav-links a {
    font-size: 0.88rem;
  }
}

@media (max-width: 720px) {
  .container {
    padding-inline: 1rem;
  }

  main > .container {
    padding-block: 1.4rem 2.5rem;
  }

  .grid,
  .grid-3,
  .grid:has(> .gym-card) {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero .container {
    padding-block: 2.6rem 2.5rem;
  }

  .hero h1 {
    max-width: none;
  }

  .hero > .container > p {
    font-size: 1rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1rem;
    margin-top: 2.25rem;
    padding-top: 1.5rem;
  }

  .gym-card .gym-meta {
    flex-basis: 100%;
  }

  .gym-card .gym-links {
    flex: 1 1 100%;
    justify-content: flex-start;
    margin-top: 0.3rem;
    margin-left: 0;
    padding-top: 0.55rem;
    border-top: 1px solid var(--slate-100);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  footer[role="contentinfo"] {
    margin-top: 2.75rem;
    padding-top: 2.4rem;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(1.8rem, 1.3rem + 3.2vw, 2.3rem);
  }

  .hero-search {
    padding: 0.3rem 0.3rem 0.3rem 0.75rem;
  }

  .hero-search-input {
    padding: 0.78rem 0.35rem;
    font-size: 0.97rem;
  }

  .hero-search-btn {
    padding: 0.78rem 1.05rem;
    font-size: 0.92rem;
  }

  .search-field {
    padding: 0.3rem 0.3rem 0.3rem 0.75rem;
  }

  .search-field-icon {
    display: none;
  }

  .search-field input {
    padding: 0.8rem 0.45rem;
    font-size: 1rem;
  }

  .search-submit {
    padding: 0.76rem 1rem;
    font-size: 0.92rem;
  }

  .search-result {
    gap: 0.65rem;
  }

  .search-result-icon {
    display: none;
  }

  .search-empty {
    padding: 2.25rem 1rem;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
  }

  .legal {
    margin-top: 1.9rem;
  }
}

@media (max-width: 380px) {
  .brand {
    font-size: 1.1rem;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .nav-links {
    gap: 1rem;
  }

  .hero-search-btn,
  .search-submit {
    padding-inline: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ---------------------------------------------------------------
   Brand pass — palette sampled from the FindAGym mark
   (pin/dumbbell icon + "FindA" white / "Gym" gradient-blue wordmark)
   --------------------------------------------------------------- */
:root {
  --brand-300: #7dd3fc;
  --brand-400: #38bdf8;
  --brand-500: #0ea5e9;
  --brand-600: #0284c7;
  --brand-700: #0369a1;
  --brand-grad: linear-gradient(135deg, #24bffc 0%, #1290fb 100%);
  --brand-grad-deep: linear-gradient(135deg, #0e8fe0 0%, #0b63b8 100%);
}

.brand-logo {
  display: block;
  height: 38px;
  width: auto;
  max-width: 100%;
}


.site-header::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 2px;
  background: var(--brand-grad);
  opacity: 0.75;
  pointer-events: none;
}

.hero {
  background-image:
    radial-gradient(58% 70% at 12% 0%, rgba(36, 191, 252, 0.22) 0%, transparent 62%),
    radial-gradient(44% 60% at 88% 6%, rgba(18, 144, 251, 0.2) 0%, transparent 64%),
    linear-gradient(180deg, #0b1424 0%, #0f172a 62%, #101c30 100%);
}

.hero-search {
  border-color: transparent;
}

.hero-search:focus-within {
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.32), 0 18px 40px -20px rgba(2, 6, 23, 0.6);
}

.hero-search-btn,
.search-submit {
  background: var(--brand-grad-deep);
  border-color: transparent;
}

.hero-search-btn:hover,
.search-submit:hover {
  background: linear-gradient(135deg, #0f7fce 0%, #0a56a4 100%);
}

.eyebrow {
  color: #bae6fd;
}

.badge-brand {
  border-color: #bae6fd;
  background: #f0f9ff;
  color: #075985;
}

.badge-brand:hover {
  border-color: #7dd3fc;
  background: #e0f2fe;
  color: #0c4a6e;
}

mark {
  background: #dff2fe;
  color: #075985;
  border-radius: 3px;
  padding: 0 2px;
}

@media (max-width: 760px) {
  .brand-logo {
    height: 32px;
  }
}

/* --------------------------- review pass --------------------------- */
/* stats hairline should span the full container, not stop at 840px */
.hero-stats {
  max-width: none;
}

/* single, calm focus treatment on the big search field */
.search-field:focus-within {
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

/* header search placeholder was too dim on navy */
.nav-search-input::placeholder {
  color: #a8b6cb;
}

/* gym cards: fixed two-column rhythm so action chips never jump rows */
.gym-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 1.25rem;
  row-gap: 0.15rem;
  padding: 0.9rem 1.1rem;
}

.gym-card h3,
.gym-card .gym-meta,
.gym-card > .badge-brand {
  grid-column: 1;
}

.gym-card > .badge-brand {
  justify-self: start;
}

.gym-card .gym-links {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  justify-content: flex-end;
  margin-left: 0;
}

@media (max-width: 720px) {
  .gym-card {
    grid-template-columns: 1fr;
  }

  .gym-card .gym-links {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
    margin-top: 0.45rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--slate-100);
  }
}

/* tighter mobile header + 44px tap targets */
@media (max-width: 820px) {
  .header-inner {
    gap: 0.45rem;
    padding-block: 0.55rem;
  }

  .brand-logo {
    height: 30px;
  }

  .nav-links {
    gap: 0.25rem;
    justify-content: space-between;
  }

  .nav-links a {
    padding: 0.7rem 0.35rem;
    font-size: 0.86rem;
  }
}

@media (max-width: 560px) {
  .hero-search-input {
    font-size: 0.92rem;
  }

  .hero-search-btn {
    padding-inline: 0.85rem;
  }
}

/* gym detail page */
.gym-sub { margin: .3rem 0 0; color: var(--muted); font-size: 1.02rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .55rem 1.1rem; margin: 0 0 1.15rem; }
.facts dt { color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding-top: .12rem; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.nearby-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.nearby-list li { display: grid; gap: .1rem; padding-bottom: .65rem; border-bottom: 1px solid var(--slate-200); }
.nearby-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.nearby-list a { font-weight: 600; text-decoration: none; }
.nearby-list a:hover { text-decoration: underline; }
.cta-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }

.detail-main { display: grid; gap: 1rem; align-content: start; }
