/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:     #2563eb;
  --brand-dk:  #1d4ed8;
  --green:     #16a34a;
  --amber:     #d97706;
  --red:       #dc2626;
  --gray-50:   #f9fafb;
  --gray-100:  #f3f4f6;
  --gray-200:  #e5e7eb;
  --gray-400:  #9ca3af;
  --gray-600:  #4b5563;
  --gray-800:  #1f2937;
  --white:     #ffffff;
  --text:      #111827;
  --radius:    8px;
  --shadow:    0 1px 3px rgba(0,0,0,.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,.1);
  --max-w:     1100px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* === Layout === */
.nav-inner, .hero-inner, .footer-inner, .section { max-width: var(--max-w); margin: 0 auto; padding: 0 1rem; }
.section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.main { min-height: 60vh; }

/* === Nav === */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { color: var(--gray-600); font-size: .9rem; }
.nav-links a:hover { color: var(--brand); text-decoration: none; }

/* === Hero === */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: var(--white);
  padding: 4rem 1rem;
  text-align: center;
}
.hero-inner h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: .75rem; }
.hero-sub { font-size: 1.1rem; opacity: .9; max-width: 600px; margin: 0 auto 1.5rem; }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-stats { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; }
.hstat { font-size: .85rem; opacity: .8; }
.hstat span { font-weight: 700; font-size: 1.2rem; display: block; color: #fff; }

.page-hero {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 2.5rem 1rem;
}
.page-hero .hero-inner h1 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--text); margin-bottom: .5rem; }
.page-hero .hero-inner p { color: var(--gray-600); }

.breadcrumb { font-size: .85rem; color: var(--gray-400); margin-bottom: .75rem; }
.breadcrumb a { color: var(--gray-600); }

/* === Buttons === */
.btn {
  display: inline-block; padding: .6rem 1.25rem; border-radius: var(--radius);
  font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dk); text-decoration: none; }
.btn-secondary { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-secondary:hover { background: rgba(255,255,255,.25); text-decoration: none; }
.btn-outline { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; text-decoration: none; }
.btn-sm { padding: .4rem .9rem; font-size: .82rem; }

/* === Badges === */
.badge-green { background: #dcfce7; color: var(--green); font-size: .78rem; padding: .15rem .5rem; border-radius: 20px; font-weight: 600; }
.badge-amber { background: #fef3c7; color: var(--amber); font-size: .78rem; padding: .15rem .5rem; border-radius: 20px; font-weight: 600; }

/* === Stats grid === */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 1rem; }
.stat-box { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.25rem; text-align: center; }
.stat-val { display: block; font-size: 1.6rem; font-weight: 800; color: var(--brand); }
.stat-label { font-size: .82rem; color: var(--gray-600); }

/* === Affiliate banner === */
.affiliate-banner {
  background: linear-gradient(90deg, #eff6ff, #dbeafe);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
  max-width: var(--max-w); margin: 0 auto 0; padding-left: 1rem; padding-right: 1rem;
}
.affiliate-banner span { font-size: .9rem; color: var(--gray-600); }

/* === Verdict box === */
.verdict-box {
  background: var(--gray-50); border-left: 4px solid var(--brand);
  padding: 1.25rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0;
}
.verdict-box p + p { margin-top: .6rem; }

/* === Pros/Cons === */
.pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.pros-box, .cons-box { padding: 1.25rem; border-radius: var(--radius); }
.pros-box { background: #f0fdf4; border: 1px solid #bbf7d0; }
.cons-box { background: #fef2f2; border: 1px solid #fecaca; }
.pros-box h3 { color: var(--green); margin-bottom: .75rem; }
.cons-box h3 { color: var(--red); margin-bottom: .75rem; }
.pros-box ul, .cons-box ul { list-style: none; }
.pros-box li, .cons-box li { padding: .3rem 0; font-size: .92rem; }

/* === Pricing table === */
.pricing-table { border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.price-row { display: flex; justify-content: space-between; padding: .75rem 1rem; font-size: .92rem; }
.price-row:nth-child(odd) { background: var(--gray-50); }
.price-row em { font-size: .82rem; color: var(--gray-400); }
.price-note { margin-top: .75rem; font-size: .82rem; color: var(--gray-600); }

/* === Tier cards === */
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1rem; }
.tier-card { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.tier-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.tier-price { font-size: 2rem; font-weight: 800; color: var(--brand); }
.tier-price span { font-size: 1rem; font-weight: 400; color: var(--gray-600); }
.tier-card p { font-size: .85rem; color: var(--gray-600); margin-top: .5rem; }

/* === Features grid === */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: .5rem; margin-bottom: 1rem; }
.feature-row { display: flex; gap: .75rem; align-items: center; padding: .6rem .75rem; border-radius: var(--radius); font-size: .9rem; }
.feat-yes { background: #f0fdf4; color: #166534; }
.feat-no { background: var(--gray-50); color: var(--gray-400); }
.feat-yes span:first-child { font-weight: 700; }

/* === Location tags === */
.location-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.location-tag { background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: 20px; padding: .25rem .75rem; font-size: .85rem; }

/* === Gym badges === */
.gym-badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.feat { background: rgba(255,255,255,.15); color: #fff; font-size: .8rem; padding: .2rem .6rem; border-radius: 20px; }
.feat-green { background: #16a34a; color: #fff; }

/* === Compare table === */
.table-wrap { overflow-x: auto; border: 1px solid var(--gray-200); border-radius: var(--radius); }
.compare-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.compare-table th { background: var(--gray-800); color: #fff; padding: .75rem 1rem; text-align: left; white-space: nowrap; font-weight: 600; }
.compare-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: var(--gray-50); }
.affiliate-row { background: #fffbeb !important; }
.affiliate-row:hover { background: #fef3c7 !important; }
.gym-name-cell { min-width: 160px; }
.gym-name-cell a { font-weight: 600; display: block; }
.price-cell { font-weight: 700; color: var(--brand); white-space: nowrap; }
.icon-cell { text-align: center; }
.best-for-cell { font-size: .82rem; color: var(--gray-600); max-width: 180px; }
.small-cell { font-size: .82rem; max-width: 140px; }
.table-note { margin-top: .75rem; font-size: .8rem; color: var(--gray-400); }

/* === Gym type badges === */
.gym-type { font-size: .72rem; padding: .15rem .5rem; border-radius: 20px; font-weight: 600; white-space: nowrap; }
.type-budget { background: #dcfce7; color: var(--green); }
.type-mid-range { background: #dbeafe; color: #1d4ed8; }
.type-premium { background: #f3e8ff; color: #7c3aed; }
.type-boutique { background: #fef3c7; color: var(--amber); }
.type-community { background: #e0f2fe; color: #0369a1; }
.type-platform { background: #fce7f3; color: #be185d; }

/* === City grid === */
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 1rem; }
.city-card {
  display: block; background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 1.25rem; text-align: center;
  transition: all .15s;
}
.city-card:hover { border-color: var(--brand); background: #eff6ff; text-decoration: none; }
.city-name { display: block; font-weight: 700; color: var(--text); }
.city-count { display: block; font-size: .82rem; color: var(--gray-400); margin-top: .25rem; }

/* === Gym grid / cards === */
.gym-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.5rem; }
.gym-card { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.gym-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.gym-card-header h3 { font-size: 1.1rem; }
.gym-card-header h3 a { color: var(--text); }
.gym-tagline { font-size: .85rem; color: var(--gray-600); margin-top: .2rem; }
.gym-price-row { display: flex; align-items: baseline; gap: .75rem; }
.price-big { font-size: 1.75rem; font-weight: 800; color: var(--brand); }
.per-week { font-size: .9rem; font-weight: 400; color: var(--gray-600); }
.price-note { font-size: .82rem; color: var(--gray-400); }
.gym-features { display: flex; flex-wrap: wrap; gap: .4rem; }
.gym-features .feat { background: var(--gray-100); color: var(--gray-800); font-size: .78rem; padding: .2rem .6rem; border-radius: 20px; }
.gym-verdict { font-size: .88rem; color: var(--gray-600); flex: 1; }
.gym-card-footer { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-top: auto; }

/* === Spotlight === */
.spotlight { background: var(--gray-50); border-radius: var(--radius); }
.spotlight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.25rem; }
.spotlight-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.5rem; }
.spotlight-card h3 { margin-bottom: .5rem; }
.spotlight-card p { font-size: .9rem; color: var(--gray-600); margin-bottom: 1rem; }

/* === FAQ === */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius); }
.faq-item summary { padding: 1rem 1.25rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--brand); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 1.25rem 1rem; font-size: .92rem; color: var(--gray-600); line-height: 1.7; }

/* === City quick picks === */
.quick-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 1rem; }
.pick-card { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1rem 1.25rem; }
.pick-label { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); margin-bottom: .25rem; }
.pick-card a { font-weight: 700; color: var(--text); font-size: 1.05rem; display: block; }
.pick-price { font-size: .85rem; color: var(--gray-600); }

/* === City stats === */
.city-stats { display: flex; gap: 1.5rem; margin-top: .75rem; font-size: .85rem; color: var(--gray-400); }

/* === Need grid === */
.need-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1.25rem; }
.need-card { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.25rem; }
.need-card h3 { font-size: 1rem; margin-bottom: .4rem; }
.need-card p { font-size: .88rem; color: var(--gray-600); margin-bottom: .75rem; }

/* === Guide === */
.guide-meta { margin-top: .5rem; font-size: .85rem; color: var(--gray-400); display: flex; gap: 1rem; }
.guide-body { line-height: 1.8; }
.guide-body p + p { margin-top: 1rem; }
.guide-list { padding-left: 1.25rem; }
.guide-list li { margin-bottom: .4rem; font-size: .92rem; }
.guide-cta { margin-top: 1.25rem; }
.section-intro { color: var(--gray-600); margin-bottom: 1.25rem; font-size: .95rem; }

/* === CTA section === */
.cta-section { background: var(--gray-50); border-radius: var(--radius); text-align: center; }
.cta-section h2 { margin-bottom: .5rem; }
.cta-section p { color: var(--gray-600); margin-bottom: 1.25rem; }

/* === Footer === */
.footer { background: var(--gray-800); color: #d1d5db; margin-top: 3rem; padding: 3rem 1rem 1.5rem; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer strong { color: #fff; display: block; margin-bottom: .6rem; }
.footer p { font-size: .85rem; line-height: 1.6; }
.footer ul { list-style: none; }
.footer li { margin-bottom: .35rem; }
.footer a { color: #9ca3af; font-size: .85rem; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #374151; padding-top: 1.25rem; font-size: .82rem; color: var(--gray-400); text-align: center; }

/* === Responsive === */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .pros-cons-grid { grid-template-columns: 1fr; }
  .spotlight-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .compare-table-full { font-size: .8rem; }
  .compare-table-full td, .compare-table-full th { padding: .5rem .6rem; }
  .affiliate-banner { flex-direction: column; }
}

@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
  .gym-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* === Sections headings === */
.section h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; color: var(--text); }
.section h3 { font-size: 1.05rem; font-weight: 600; }
