:root {
  --primary: #1a1a2e;
  --accent: #e94560;
  --accent-hover: #d63a54;
  --dark: #0f0f23;
  --light: #f8f9fa;
  --card-bg: #ffffff;
  --white: #ffffff;
  --bg: #f8f9fa;
  --border: #e0e0e0;
  --text: #333333;
  --text-dark: #1a1a2e;
  --text-light: #666666;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 50px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.3;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

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

section {
  padding: 5rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Nav */
nav {
  position: sticky;
  top: 0;
  background: var(--primary);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-logo {
  font-weight: 700;
  color: white;
  font-size: 1.5rem;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  color: white;
  position: relative;
  transition: var(--transition);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: white;
  transition: var(--transition);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--accent);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

input[type=checkbox]#nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
}

.nav-toggle-label span {
  display: block;
  width: 100%;
  height: 3px;
  background: white;
  position: absolute;
  transition: var(--transition);
}

.nav-toggle-label span:nth-child(1) {
  top: 0;
}

.nav-toggle-label span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle-label span:nth-child(3) {
  bottom: 0;
}

input[type=checkbox]#nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

input[type=checkbox]#nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
  opacity: 0;
}

input[type=checkbox]#nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

input[type=checkbox]#nav-toggle:checked ~ .nav-menu {
  display: flex;
}

/* Hero */
.hero {
  position: relative;
  min-height: 80vh;
  background:
    url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1920&q=80')
    center center / cover no-repeat;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 15, 35, 0.92) 0%,
    rgba(26, 26, 46, 0.8) 40%,
    rgba(233, 69, 96, 0.3) 100%
  );
  z-index: 1;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.07;
  background-image:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 700px;
  padding: 2rem 1rem;
}

.hero-badge {
  display: inline-block;
  background: rgba(233, 69, 96, 0.25);
  border: 1px solid rgba(233, 69, 96, 0.5);
  color: #ff8a9e;
  padding: 0.4rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1rem;
  font-size: 3.5rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-search {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-search input,
.hero-search select {
  flex: 1;
  min-width: 180px;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.95);
}

.hero-search button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.85rem 2.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-search button:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
}

/* Home Page Specific */
.stats-bar {
  background: var(--light);
  padding: 5rem 0;
}

.stats-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 2rem;
  color: var(--accent);
  font-weight: 700;
}

.stat span {
  color: var(--text-light);
}

.featured-gyms {
  padding: 3rem 0 5rem;
}

.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  color: white;
  padding: 5rem 0;
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  margin-bottom: 1rem;
}

.cta-content p {
  margin-bottom: 2rem;
  font-size: 1.25rem;
}

.gym-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.gym-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.gym-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.gym-image {
  height: 180px;
  background: var(--light) center center / cover no-repeat;
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gym-image__icon {
  font-size: 3rem;
  opacity: 0.3;
  color: white;
}

.gym-image--crossfit {
  background: linear-gradient(135deg, #e94560 0%, #c62828 100%);
}

.gym-image--powerlifting {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.gym-image--globo {
  background: linear-gradient(135deg, #0f3460 0%, #533483 100%);
}

.gym-image--bodybuilding {
  background: linear-gradient(135deg, #e65100 0%, #ff8f00 100%);
}

.gym-image--hybrid {
  background: linear-gradient(135deg, #00695c 0%, #00897b 100%);
}

.gym-image--olympic_weightlifting {
  background: linear-gradient(135deg, #283593 0%, #1565c0 100%);
}

.gym-location {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.gym-description {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.gym-distance {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(229, 62, 62, 0.08);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

.badge-type {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}

.btn-secondary {
  background: var(--light);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
}

.btn-secondary:hover {
  background: var(--accent);
  color: white;
}

.gym-card-content {
  padding: 1.5rem;
}

.gym-card h3,
.gym-card p,
.gym-card > a {
  padding: 0 1.25rem;
}

.gym-card h3 {
  margin-bottom: 0.25rem;
  margin-top: 0.75rem;
  font-size: 1.15rem;
}

.gym-card .gym-location {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.gym-card .gym-description {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gym-card > a {
  display: inline-block;
  margin-bottom: 1.25rem;
  margin-top: auto;
}

/* Gym Map */
.gym-map {
  height: 350px;
  width: 100%;
  border-radius: var(--radius);
  margin-top: 1.5rem;
  box-shadow: var(--shadow);
  z-index: 1;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-primary {
  background: var(--accent);
  color: white;
}

.badge-light {
  background: var(--light);
  color: var(--text);
}

/* Buttons */
button,
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-accent {
  background: var(--accent);
  color: white;
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.btn-light {
  background: var(--light);
  color: var(--text);
}

.btn-light:hover {
  background: #e9ecef;
}

/* Breadcrumbs */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.25rem;
  font-size: 0.875rem;
}

.breadcrumb li::after {
  content: '\203A';
  margin-left: 0.5rem;
  color: var(--text-light);
}

.breadcrumb li:last-child::after {
  content: '';
}

.breadcrumb li:last-child {
  color: var(--text-light);
}

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

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
}

.pagination a {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.pagination a:hover {
  background: var(--accent-hover);
  color: white;
}

.pagination__info {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Forms */
.form-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.form-section {
  margin-bottom: 2rem;
}

.form-section h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.form-card form,
.submit-form {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.filter-sidebar form {
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.filter-group label {
  display: inline;
  font-weight: 400;
  margin-bottom: 0;
  vertical-align: middle;
}

input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-size: 1rem;
  transition: var(--transition);
}

input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
  vertical-align: middle;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
}

/* Detail Page */
.detail-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.detail-main {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.detail-sidebar {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.breadcrumb {
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.detail-hero {
  text-align: center;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.detail-hero__image {
  width: 160px;
  height: 160px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.detail-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero__info {
  flex: 1;
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
}

.map-placeholder {
  height: 300px;
  background: var(--light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  margin-top: 1rem;
}

.amenities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}


/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination a,
.pagination span {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--light);
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
}

.pagination a:hover {
  background: var(--accent);
  color: white;
}

.pagination .active {
  background: var(--accent);
  color: white;
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-column h4 {
  margin-bottom: 0.5rem;
  color: white;
}

.footer-column a {
  color: var(--text-light);
}

.footer-column a:hover {
  color: white;
}

.footer-logo {
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--text-light);
}

/* Admin Page */
.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.admin-section {
  margin-bottom: 3rem;
}

.admin-section h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.admin-table thead {
  background: var(--primary);
  color: white;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.9rem;
}

.admin-table tbody tr {
  border-bottom: 1px solid #eee;
  transition: var(--transition);
}

.admin-table tbody tr:hover {
  background: var(--light);
}

.admin-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-edit {
  background: #0d6efd;
  color: white;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  display: inline-block;
}

.btn-edit:hover {
  background: #0b5ed7;
}

.btn-approve {
  background: #28a745;
  color: white;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  border-radius: var(--radius-pill);
}

.btn-approve:hover {
  background: #218838;
}

.btn-delete {
  background: #dc3545;
  color: white;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  border-radius: var(--radius-pill);
}

.btn-delete:hover {
  background: #c82333;
}

.badge-approved {
  background: #28a745;
  color: white;
}

.badge-pending {
  background: #ffc107;
  color: #333;
}

.admin-empty {
  color: var(--text-light);
  font-style: italic;
}

/* Browse Page */
.browse-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.filter-sidebar {
  background: var(--light);
  border-radius: var(--radius);
  padding: 1.5rem;
  align-self: start;
}

.filter-sidebar label[for="q"],
.filter-sidebar label[for="state"] {
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.filter-sidebar select,
.filter-sidebar input[type="text"] {
  margin-bottom: 0.5rem;
}

.filter-group {
  margin-bottom: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e0e0e0;
}

.filter-group h4 {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
}


.page-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem 0;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-light);
  font-size: 1.25rem;
}

/* ─── Responsive ───────────────────────────────────────────── */

/* Tablet+ */
@media (min-width: 768px) {
  .gym-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-container {
    grid-template-columns: 7fr 3fr;
  }

  .footer-container {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-search {
    flex-direction: row;
  }

  .detail-hero {
    flex-direction: row;
    text-align: left;
  }

  .detail-hero__info {
    text-align: left;
  }

  .browse-filter-toggle {
    display: none;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .gym-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ─── Mobile ──────────────────────────────────────────────── */
@media (max-width: 767px) {
  /* Typography */
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  section {
    padding: 2rem 0;
  }

  /* Nav — hamburger menu */
  .nav-container {
    position: relative;
    flex-wrap: wrap;
  }

  .nav-toggle-label {
    display: block;
    order: 3;
  }

  .nav-menu,
  .nav-cta {
    display: none;
  }

  input[type=checkbox]#nav-toggle:checked ~ .nav-menu,
  input[type=checkbox]#nav-toggle:checked ~ .nav-cta {
    display: flex;
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
    order: 4;
    background: var(--primary);
    padding: 1rem 0;
    gap: 0;
  }

  .nav-menu a {
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-cta {
    width: 100%;
    order: 5;
    padding: 0.75rem 1rem;
    text-align: center;
  }

  .nav-cta .btn {
    width: 100%;
    display: block;
  }

  /* Hero */
  .hero {
    min-height: 60vh;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.3rem 1rem;
  }

  .hero-search {
    flex-direction: column;
    padding: 0.75rem;
  }

  .hero-search input,
  .hero-search select {
    min-width: 100%;
  }

  .hero-search button {
    width: 100%;
    padding: 0.85rem 1rem;
  }

  /* Stats */
  .stats-bar {
    padding: 2.5rem 0;
  }

  .stats-container {
    gap: 1.5rem;
  }

  .stat strong {
    font-size: 1.5rem;
  }

  /* Featured gyms */
  .featured-gyms {
    padding: 2.5rem 0;
  }

  .featured-gyms h2 {
    text-align: center;
    padding: 0 1rem;
  }

  /* Gym cards */
  .gym-card h3 {
    font-size: 1.05rem;
  }

  /* Browse page */
  .browse-container {
    grid-template-columns: 1fr;
  }

  .browse-filter-toggle {
    display: block;
    width: 100%;
    background: var(--light);
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: left;
    margin-bottom: 1rem;
  }

  .browse-filter-toggle::after {
    content: ' ▼';
    font-size: 0.75rem;
  }

  .filter-sidebar {
    display: none;
  }

  .filter-sidebar.filter-open {
    display: block;
  }

  /* Detail page */
  .detail-hero__image {
    width: 120px;
    height: 120px;
  }

  .detail-main,
  .detail-sidebar {
    padding: 1.25rem;
  }

  .gym-map {
    height: 250px;
  }

  /* Forms */
  .form-card {
    padding: 1.25rem;
    margin: 0 0.5rem;
  }

  .form-card form,
  .submit-form {
    padding: 1rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
    text-align: center;
  }

  /* CTA banner */
  .cta-banner {
    padding: 3rem 0;
  }

  .cta-content {
    padding: 0 1rem;
  }

  .cta-content p {
    font-size: 1rem;
  }

  /* Pagination */
  .pagination {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .pagination a,
  .pagination span {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  /* Page headers */
  .page-header {
    padding: 1.5rem 1rem;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .page-header p {
    font-size: 1rem;
  }

  /* Admin */
  .admin-actions {
    flex-wrap: wrap;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.5rem 0.65rem;
    font-size: 0.8rem;
  }

  .admin-logout {
    float: none;
    display: block;
    margin-top: 0.5rem;
  }

  /* Footer */
  footer {
    padding: 2rem 0 1rem;
  }

  .footer-container {
    gap: 1.5rem;
  }

  /* Login */
  .login-form-container {
    padding: 1.5rem;
  }

  .login-form-container h1 {
    font-size: 1.25rem;
  }

  /* Breadcrumbs */
  .breadcrumb {
    padding: 0.75rem 1rem;
  }

  .breadcrumb ol {
    font-size: 0.8rem;
  }
}

/* Login */
.login-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
  padding: 2rem;
}

.login-form-container {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 400px;
}

.login-form-container h1 {
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.5rem;
}

.login-error {
  background: #f8d7da;
  color: #842029;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.admin-logout {
  float: right;
  font-size: 0.9rem;
}

/* ── Daily WOD (Homepage) ── */
.daily-wod {
  padding: 0 0 1rem;
}

.daily-wod-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border-left: 5px solid var(--accent);
}

.daily-wod-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: var(--white);
}

.daily-wod-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.daily-wod-icon {
  font-size: 1.3rem;
}

.daily-wod-date {
  font-size: 0.85rem;
  opacity: 0.8;
}

.daily-wod-body {
  padding: 1.5rem 2rem;
}

.daily-wod-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.daily-wod-name {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.daily-wod-levels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.daily-wod-level {
  display: flex;
  flex-direction: column;
}

.daily-wod-level-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius) var(--radius) 0 0;
  text-align: center;
}

.daily-wod-level-tag--basic {
  background: #e2e8f0;
  color: #475569;
}

.daily-wod-level-tag--mens {
  background: #dbeafe;
  color: #1e40af;
}

.daily-wod-level-tag--womens {
  background: #fce7f3;
  color: #9d174d;
}

.daily-wod-level-tag--comp {
  background: #f8d7da;
  color: #842029;
}

.daily-wod-description {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  white-space: pre-wrap;
  background: var(--bg);
  padding: 1.25rem;
  border-radius: 0 0 var(--radius) var(--radius);
  color: var(--text-dark);
  border: none;
  margin: 0;
  flex: 1;
}

.daily-wod-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  .daily-wod-header {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 1rem 1.25rem;
  }

  .daily-wod-body {
    padding: 1.25rem;
  }

  .daily-wod-name {
    font-size: 1.3rem;
  }

  .daily-wod-levels {
    grid-template-columns: repeat(2, 1fr);
  }

  .daily-wod-description {
    font-size: 0.9rem;
    padding: 1rem;
  }

  .daily-wod-footer {
    justify-content: center;
    padding: 1rem 1.25rem;
  }
}

/* ── WOD Generator ── */
.wod-generator {
  padding: 2rem 0 4rem;
}

.wod-controls {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-end;
}

.wod-control-group {
  flex: 1;
  min-width: 180px;
}

.wod-control-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.wod-level-buttons,
.wod-type-buttons {
  display: flex;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
}

.wod-level-btn,
.wod-type-btn {
  flex: 1;
  padding: 0.6rem 1rem;
  border: none;
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-dark);
}

.wod-level-btn:not(:last-child),
.wod-type-btn:not(:last-child) {
  border-right: 1px solid var(--border);
}

.wod-level-btn.active,
.wod-type-btn.active {
  background: var(--accent);
  color: var(--white);
}

.wod-level-btn:hover:not(.active),
.wod-type-btn:hover:not(.active) {
  background: var(--bg);
}

.wod-select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-family: inherit;
  background: var(--white);
  cursor: pointer;
}

.wod-select:focus {
  outline: none;
  border-color: var(--accent);
}

.wod-generate-btn {
  min-width: 180px;
  padding: 0.7rem 2rem;
  font-size: 1rem;
  align-self: flex-end;
}

.wod-result {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 2.5rem;
  border-left: 5px solid var(--accent);
  animation: wodFadeIn 0.4s ease;
}

@keyframes wodFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.wod-result-header {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.wod-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--text-dark);
}

.wod-badge--level-1 {
  background: #d4edda;
  color: #155724;
}

.wod-badge--level-2 {
  background: #fff3cd;
  color: #856404;
}

.wod-badge--level-3 {
  background: #f8d7da;
  color: #842029;
}

.wod-name {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

.wod-time-info {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.wod-description {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.8;
  white-space: pre-wrap;
  background: var(--bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  border: none;
}

.wod-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-dark);
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.wod-benchmarks {
  margin-top: 2rem;
}

.wod-benchmarks h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.wod-benchmarks-intro {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.wod-benchmark-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.wod-benchmark-category h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--border);
}

.wod-benchmark-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.wod-chip {
  display: inline-block;
  padding: 0.45rem 1rem;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-dark);
}

.wod-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(229, 62, 62, 0.04);
}

@media (max-width: 768px) {
  .wod-controls {
    flex-direction: column;
  }

  .wod-control-group {
    min-width: 100%;
  }

  .wod-generate-btn {
    width: 100%;
  }

  .wod-name {
    font-size: 1.3rem;
  }

  .wod-description {
    font-size: 0.95rem;
    padding: 1rem;
  }
}
