/* =======================================
   MatPulse Gym Directory SEO Pages
   /gyms + /gyms/:slug
   ======================================= */

/* ---- Filter chips ---- */
.gym-filter-section {
  padding: 60px 0 40px;
}

.gym-filter-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.gym-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.gym-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--fg-muted);
  text-decoration: none;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.gym-chip:hover {
  background: rgba(0,229,196,0.1);
  border-color: rgba(0,229,196,0.3);
  color: var(--accent);
}

.gym-chip-active {
  background: rgba(0,229,196,0.15);
  border-color: rgba(0,229,196,0.4);
  color: var(--accent);
  font-weight: 600;
}

/* ---- Search ---- */
.gym-search-wrap {
  margin-bottom: 32px;
}

.gym-search-input {
  width: 100%;
  max-width: 420px;
  padding: 12px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: var(--fg);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.gym-search-input::placeholder {
  color: var(--fg-muted);
}

.gym-search-input:focus {
  border-color: rgba(0,229,196,0.4);
}

/* ---- Gym grid ---- */
.gym-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.gym-card {
  display: block;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.gym-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 100% at 50% 0%, rgba(0,229,196,0.04) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.2s;
}

.gym-card:hover {
  border-color: rgba(0,229,196,0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.gym-card:hover::before {
  opacity: 1;
}

.gym-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.gym-card-region {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gym-card-levels {
  font-size: 11px;
  color: var(--fg-muted);
  font-family: 'DM Sans', sans-serif;
}

.gym-card-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 6px;
  line-height: 1.3;
}

.gym-card-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 10px;
  font-family: 'DM Sans', sans-serif;
}

.gym-card-accolade {
  font-size: 12px;
  color: #f5c842;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 12px;
  line-height: 1.4;
}

.gym-card-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
}

.gym-empty {
  padding: 48px 0;
  text-align: center;
  color: var(--fg-muted);
  font-family: 'DM Sans', sans-serif;
}

.gym-empty a {
  color: var(--accent);
  text-decoration: none;
}

/* ---- Region color coding ---- */
.gym-region-southeast,
.gym-card-region.gym-region-southeast { background: rgba(0,229,196,0.12); color: #00e5c4; }

.gym-region-south-central,
.gym-card-region.gym-region-south-central { background: rgba(255,183,77,0.12); color: #ffb74d; }

.gym-region-midwest,
.gym-card-region.gym-region-midwest { background: rgba(100,181,246,0.12); color: #64b5f6; }

.gym-region-northeast,
.gym-card-region.gym-region-northeast { background: rgba(186,104,200,0.12); color: #ba68c8; }

.gym-region-west,
.gym-card-region.gym-region-west { background: rgba(255,112,67,0.12); color: #ff7043; }

/* ---- Claim CTA section ---- */
.gym-claim-section {
  padding: 60px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.gym-claim-section-alt {
  background: rgba(0,229,196,0.04);
  border-top: 1px solid rgba(0,229,196,0.1);
  border-bottom: 1px solid rgba(0,229,196,0.1);
}

.gym-claim-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.gym-claim-text h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 10px;
}

.gym-claim-text p {
  font-size: 15px;
  color: var(--fg-muted);
  margin: 0;
  max-width: 480px;
  line-height: 1.6;
  font-family: 'DM Sans', sans-serif;
}

.gym-claim-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.gym-claim-btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 13px 24px;
  background: var(--accent);
  color: #0a0f0e;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}

.gym-claim-btn-primary:hover {
  background: #00c9ac;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,229,196,0.3);
}

.gym-claim-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--fg-muted);
  font-size: 13px;
  font-weight: 500;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
}

.gym-claim-btn-secondary:hover {
  border-color: rgba(255,255,255,0.25);
  color: var(--fg);
}

/* ---- Hero badge ---- */
.gym-region-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gym-hero-accolades {
  margin-top: 16px;
  font-size: 15px;
  color: #f5c842;
  font-family: 'DM Sans', sans-serif;
}

/* ---- Teams section ---- */
.gym-teams-section {
  padding: 60px 0 40px;
}

.gym-teams-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}

.gym-teams-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.gym-team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  gap: 16px;
}

.gym-team-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
}

.gym-team-status {
  font-size: 12px;
  color: var(--fg-muted);
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}

.gym-teams-claim-hint {
  font-size: 13px;
  color: var(--fg-muted);
  font-family: 'DM Sans', sans-serif;
}

.gym-claim-inline-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.gym-claim-inline-link:hover {
  text-decoration: underline;
}

/* ---- Results empty state ---- */
.gym-results-section {
  padding: 40px 0 60px;
}

.gym-results-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}

.gym-results-empty {
  text-align: center;
  padding: 48px 32px;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 16px;
}

.gym-results-empty-icon {
  font-size: 36px;
  margin-bottom: 14px;
}

.gym-results-empty h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 10px;
}

.gym-results-empty p {
  font-size: 14px;
  color: var(--fg-muted);
  max-width: 440px;
  margin: 0 auto 20px;
  line-height: 1.6;
  font-family: 'DM Sans', sans-serif;
}

.gym-results-claim-btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  background: rgba(0,229,196,0.12);
  border: 1px solid rgba(0,229,196,0.3);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
}

.gym-results-claim-btn:hover {
  background: rgba(0,229,196,0.2);
  transform: translateY(-1px);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .gym-filter-inner,
  .gym-teams-inner,
  .gym-results-inner {
    padding: 0 20px;
  }

  .gym-claim-inner {
    flex-direction: column;
    padding: 0 20px;
    align-items: flex-start;
  }

  .gym-claim-actions {
    width: 100%;
  }

  .gym-claim-btn-primary,
  .gym-claim-btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .gym-grid {
    grid-template-columns: 1fr;
  }

  .gym-team-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .gym-search-input {
    max-width: 100%;
  }
}
