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

:root {
  --green-dark: #1a4731;
  --green-mid: #235e40;
  --accent: #b5e853;
  --accent-dark: #8fc23a;
  --white: #ffffff;
  --gray-light: #f5f7f4;
  --gray-mid: #e0e5dc;
  --gray-text: #4a5568;
  --black: #0f1a14;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.18);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.15rem; font-weight: 700; }

/* ===== HEADER / NAV ===== */
header {
  background: var(--green-dark);
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  white-space: nowrap;
}

.logo span { color: var(--accent); }

nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

nav a {
  color: rgba(255,255,255,0.85);
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  min-height: 44px;
  display: flex;
  align-items: center;
}

nav a:hover, nav a.active {
  background: rgba(181,232,83,0.18);
  color: var(--accent);
  text-decoration: none;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 60%, #1e5c38 100%);
  color: var(--white);
  padding: 4rem 1rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1571019614242-c5c5dee9f50b?w=1400&q=60') center/cover no-repeat;
  opacity: 0.12;
  pointer-events: none;
}

.hero-content { position: relative; max-width: 800px; margin: 0 auto; }

.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero h1 span { color: var(--accent); }

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== SEARCH / FILTER ===== */
.search-bar {
  display: flex;
  gap: 0.5rem;
  max-width: 560px;
  margin: 0 auto 1rem;
  flex-wrap: wrap;
}

.search-bar input, .search-bar select {
  flex: 1;
  min-width: 160px;
  padding: 0.85rem 1.1rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 1rem;
  backdrop-filter: blur(8px);
  outline: none;
  min-height: 44px;
  transition: border-color 0.2s;
}

.search-bar input::placeholder { color: rgba(255,255,255,0.6); }

.search-bar input:focus, .search-bar select:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.18);
}

.search-bar select option { background: var(--green-dark); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  min-height: 44px;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  text-decoration: none;
}

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

.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(181,232,83,0.4);
  text-decoration: none;
  color: var(--black);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  text-decoration: none;
  color: var(--white);
}

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

.btn-green:hover {
  background: var(--green-mid);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--white);
}

/* ===== STATS STRIP ===== */
.stats-strip {
  background: var(--accent);
  padding: 0.75rem 1rem;
  text-align: center;
}

.stats-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stat-item { font-weight: 700; font-size: 0.9rem; color: var(--black); }
.stat-item strong { font-size: 1.1rem; }

/* ===== SECTION ===== */
.section {
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  margin-bottom: 0.5rem;
  color: var(--green-dark);
}

.section-subtitle {
  color: var(--gray-text);
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* ===== SPORT GRID (homepage) ===== */
.sports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.sport-card {
  background: var(--white);
  border: 2px solid var(--gray-mid);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  cursor: pointer;
  text-decoration: none;
  color: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.sport-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  text-decoration: none;
  color: var(--black);
}

.sport-card .icon { font-size: 2.5rem; line-height: 1; }
.sport-card h3 { font-size: 1rem; font-weight: 700; color: var(--green-dark); }
.sport-card .count { font-size: 0.8rem; color: var(--gray-text); }

/* ===== VENUE CARDS ===== */
.venues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.venue-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.15s;
  display: flex;
  flex-direction: column;
}

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

.venue-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.venue-card-body {
  padding: 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.venue-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.venue-address {
  font-size: 0.85rem;
  color: var(--gray-text);
  display: flex;
  align-items: flex-start;
  gap: 0.3rem;
}

.venue-price {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(181,232,83,0.2);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(181,232,83,0.5);
  width: fit-content;
  margin-top: 0.2rem;
}

.venue-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.8rem;
}

.venue-card-actions .btn {
  flex: 1;
  font-size: 0.85rem;
  padding: 0.6rem 0.8rem;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 0.75rem 1rem;
  background: var(--gray-light);
  border-bottom: 1px solid var(--gray-mid);
  font-size: 0.85rem;
  color: var(--gray-text);
}

.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--green-dark); }
.breadcrumb span { color: var(--gray-text); }

/* ===== SPORT PAGE HERO ===== */
.sport-hero {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: var(--white);
  padding: 2.5rem 1rem 2rem;
  position: relative;
  overflow: hidden;
}

.sport-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.13;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.sport-hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.sport-hero .badge {
  display: inline-block;
  background: rgba(181,232,83,0.2);
  color: var(--accent);
  border: 1px solid rgba(181,232,83,0.4);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.sport-hero h1 { color: var(--white); margin-bottom: 0.5rem; }
.sport-hero h1 .icon { font-size: 2rem; margin-right: 0.4rem; }
.sport-hero p { color: rgba(255,255,255,0.85); max-width: 600px; margin-bottom: 1rem; }

.sport-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.sport-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
}

.sport-meta-item strong { color: var(--accent); }

/* ===== FILTER BAR ===== */
.filter-bar {
  background: var(--gray-light);
  border-bottom: 1px solid var(--gray-mid);
  padding: 0.75rem 1rem;
  position: sticky;
  top: 60px;
  z-index: 90;
}

.filter-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.filter-bar input, .filter-bar select {
  padding: 0.55rem 0.9rem;
  border: 1.5px solid var(--gray-mid);
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  min-height: 44px;
  background: var(--white);
  color: var(--black);
  transition: border-color 0.15s;
}

.filter-bar input:focus, .filter-bar select:focus {
  border-color: var(--green-dark);
}

.filter-label { font-size: 0.85rem; color: var(--gray-text); font-weight: 500; }

/* ===== INFO BOX ===== */
.info-box {
  background: rgba(26,71,49,0.06);
  border: 1px solid rgba(26,71,49,0.15);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.info-box h2 { color: var(--green-dark); margin-bottom: 0.5rem; font-size: 1.2rem; }
.info-box p { color: var(--gray-text); font-size: 0.95rem; }

/* ===== CROSS-LINKS ===== */
.cross-links {
  background: var(--gray-light);
  padding: 2rem 1rem;
  border-top: 1px solid var(--gray-mid);
}

.cross-links-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.cross-links h2 { color: var(--green-dark); margin-bottom: 1rem; font-size: 1.2rem; }

.cross-links-grid {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cross-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--gray-mid);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-dark);
  transition: border-color 0.15s, box-shadow 0.15s;
  min-height: 44px;
}

.cross-link-chip:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(181,232,83,0.3);
  text-decoration: none;
  color: var(--green-dark);
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: var(--white);
  padding: 3rem 1rem;
  text-align: center;
}

.cta-section h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-section p { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }

.cta-btn-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 1rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  padding: 0.2rem 0;
  min-height: 0;
}

.footer-col a:hover { color: var(--accent); text-decoration: none; }

.footer-logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-logo span { color: var(--accent); }

.footer-desc { font-size: 0.85rem; max-width: 240px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
}

/* ===== HIDDEN (js filter) ===== */
.venue-card.hidden { display: none; }

/* ===== NO RESULTS ===== */
.no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray-text);
  display: none;
}

.no-results.visible { display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-inner { height: auto; padding: 0.5rem 0; flex-direction: column; align-items: flex-start; }
  nav { width: 100%; justify-content: flex-start; }
  nav a { font-size: 0.8rem; padding: 0.35rem 0.5rem; }
  .logo { padding: 0.3rem 0; }
  .hero { padding: 2.5rem 1rem 2rem; }
  .sports-grid { grid-template-columns: repeat(3, 1fr); }
  .venues-grid { grid-template-columns: 1fr; }
  .sport-meta { gap: 1rem; }
  .filter-bar { top: 0; position: static; }
  .stats-strip-inner { gap: 1.25rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .sports-grid { grid-template-columns: repeat(2, 1fr); }
  .search-bar { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; }
}
