/* =====================================================
   Tennis Court Map — Global Styles
   ===================================================== */

:root {
  --green-dark: #0f4c27;
  --green-mid: #1a7a42;
  --green-brand: #16a34a;
  --green-light: #bbf7d0;
  --green-pale: #f0fdf4;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.10), 0 4px 6px rgba(0,0,0,.05);
  --radius: 10px;
  --radius-lg: 16px;

  /* Category colours */
  --c-club: #2563eb;
  --c-public: #16a34a;
  --c-academy: #d97706;
  --c-private: #7c3aed;
  --c-gear: #dc2626;
  --c-stringing: #0891b2;
}

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

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
  height: 100%;
}

a { color: inherit; text-decoration: none; }

/* =====================================================
   HOME PAGE
   ===================================================== */

/* Hero */
.hero {
  background: var(--green-dark);
  position: relative;
  overflow: hidden;
  padding: 64px 24px 80px;
  text-align: center;
}

/* Tennis court line texture overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 48px;
  background: var(--gray-50);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  padding: 4px 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero h1 span { color: var(--green-light); }

/* ─── Bouncing tennis ball ─── */
.ball-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ball-wrap {
  position: absolute;
  top: 0; left: 0;
  width: 72px; height: 72px;
  will-change: transform;
}

.ball-spinner {
  width: 72px; height: 72px;
  transform-origin: center center;
  will-change: transform;
}

.ball-inner {
  width: 72px; height: 72px;
  position: relative;
  transform-origin: center center;
  will-change: transform;
}

.ball-img {
  width: 100%;
  height: 100%;
  display: block;
  /* Remove white PNG background against the green hero */
  mix-blend-mode: multiply;
  /* Keep crisp at all squish scales */
  image-rendering: auto;
}

.ball-shadow {
  display: none;
}

.ball-impact {
  position: absolute;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.55);
  transform-origin: center;
  opacity: 0;
  pointer-events: none;
}
.ball-impact.pop {
  animation: impactPop 0.38s cubic-bezier(0, 0, 0.25, 1) forwards;
}
@keyframes impactPop {
  0%   { transform: scale(0.5);  opacity: 0.75; }
  100% { transform: scale(3.2);  opacity: 0;    }
}

/* Cycling word in hero */
.hero-cycle {
  display: inline-block;
  color: var(--green-light);
  position: relative;
}

@keyframes cycleExit {
  from { opacity: 1; transform: translateY(0);     }
  to   { opacity: 0; transform: translateY(-20px); }
}
@keyframes cycleEnter {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.hero-cycle.is-exit  { animation: cycleExit  0.28s cubic-bezier(0.4, 0, 1,   1) forwards; }
.hero-cycle.is-enter { animation: cycleEnter 0.32s cubic-bezier(0,   0, 0.2, 1) forwards; }

.hero p {
  color: rgba(255,255,255,.75);
  font-size: 17px;
  margin-bottom: 36px;
}

/* Search box */
.search-box {
  display: flex;
  gap: 8px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 6px 6px 6px 16px;
  box-shadow: var(--shadow-lg);
  align-items: center;
  max-width: 600px;
  margin: 0 auto 16px;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: var(--gray-900);
  background: transparent;
  min-width: 0;
}

.search-box input::placeholder { color: var(--gray-400); }

.btn-search {
  background: var(--green-brand);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.btn-search:hover { background: var(--green-mid); }

.btn-locate {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.4);
  cursor: pointer;
  margin: 0 auto;
  padding: 11px 22px;
  border-radius: 100px;
  transition: background .18s, border-color .18s, transform .15s;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.btn-locate:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.65);
  transform: translateY(-1px);
}
.btn-locate svg {
  flex-shrink: 0;
  animation: pin-pulse 2.2s ease-in-out infinite;
}
@keyframes pin-pulse {
  0%, 100% { transform: translateY(0);   opacity: 1;    }
  45%       { transform: translateY(-3px); opacity: 1;    }
  55%       { transform: translateY(-3px); opacity: 0.75; }
}

/* Stats strip */
.stats-strip {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 28px 24px;
  border-bottom: 1px solid var(--gray-200);
  background: #fff;
  flex-wrap: wrap;
}

.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--green-brand);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 4px;
}

/* Cities section */
.section {
  max-width: 960px;
  margin: 48px auto;
  padding: 0 24px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 24px;
}

/* Region grouping */
.city-region {
  margin-bottom: 32px;
}
.city-region:last-child { margin-bottom: 0; }

.city-region-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--green-brand);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-200);
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}

.city-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}
.city-chip:hover {
  border-color: var(--green-brand);
  box-shadow: 0 0 0 3px rgba(22,163,74,.10);
}
.city-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.city-chip-text {
  min-width: 0;
}
.city-sub {
  display: block;
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 400;
  margin-top: 1px;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 32px 24px;
  font-size: 13px;
  color: var(--gray-400);
  border-top: 1px solid var(--gray-200);
  margin-top: 24px;
}

/* =====================================================
   RESULTS PAGE
   ===================================================== */

.results-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Left panel */
.panel {
  width: 38%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid var(--gray-200);
  overflow: hidden;
}

.panel-header {
  padding: 14px 16px 0;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-brand);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
}
.back-link:hover { color: var(--green-mid); }

.panel-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2px;
}
.panel-subtitle {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 12px;
}

/* Filter tabs */
.filter-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }

/* === Unified chip system === */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s ease;
  text-transform: none;
  line-height: 1;
}
.chip--lg {
  font-size: 12px;
  padding: 6px 14px;
  border: 1.5px solid #d1d5db;
  background: #f9fafb;
  color: #4b5563;
  cursor: pointer;
}
.chip--md {
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #4b5563;
  cursor: pointer;
}
.chip--sm {
  font-size: 10px;
  padding: 2px 7px;
  border: 1px solid;
  cursor: default;
}
.chip--lg:hover { border-color: var(--green-brand); color: var(--green-brand); background: #fff; }
.chip--md:hover { border-color: var(--green-brand); color: var(--green-brand); background: #fff; }
.tab-icon { margin-right: 2px; font-style: normal; }

/* Category tab active states */
.chip--lg[data-cat="all"].active         { background: var(--green-brand); color: #fff; border-color: var(--green-brand); }
.chip--lg[data-cat="tennis club"].active { background: #2563eb; color: #fff; border-color: #2563eb; }
.chip--lg[data-cat="public"].active      { background: #16a34a; color: #fff; border-color: #16a34a; }
.chip--lg[data-cat="academy"].active     { background: #d97706; color: #fff; border-color: #d97706; }
.chip--lg[data-cat="private"].active     { background: #7c3aed; color: #fff; border-color: #7c3aed; }
.chip--lg[data-cat="tennis gear shop"].active  { background: #dc2626; color: #fff; border-color: #dc2626; }
.chip--lg[data-cat="stringing service"].active { background: #0891b2; color: #fff; border-color: #0891b2; }

/* Sub-filter active state */
.chip--md.active { background: var(--green-brand); border-color: var(--green-brand); color: #fff; }

/* Card list */
.card-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-content: start;
}

/* Loading overlay spans full grid */
.loading-overlay {
  grid-column: 1 / -1;
}

.court-card {
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  position: relative;
}
.court-card:hover {
  border-color: var(--green-brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.court-card.selected {
  border-color: var(--green-brand);
  box-shadow: 0 0 0 3px rgba(22,163,74,.15);
}

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
  flex: 1;
}
.card-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
}
.card-dist {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
  white-space: nowrap;
}
.card-weather {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  white-space: nowrap;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 2px 8px;
}
.card-wind {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  white-space: nowrap;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 2px 8px;
}
.card-precip {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  white-space: nowrap;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 2px 8px;
}
/* ── Playability advice (inline in card-bottom) ── */
.card-advice {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: 0.01em;
  border-left: 3px solid currentColor;
  box-shadow: 0 1px 3px rgba(0,0,0,0.10);
}
.advice-loading { display: none; }
.advice-0 { background: #fff1f1; color: #b91c1c; border-color: #ef4444; }
.advice-1 { background: #fffbeb; color: #b45309; border-color: #f59e0b; }
.advice-2 { background: #f0f9ff; color: #0369a1; border-color: #38bdf8; }
.advice-3 { background: #f0fdf4; color: #15803d; border-color: #4ade80; }
.advice-4 { background: #ecfdf5; color: #065f46; border-color: #10b981; }

.card-weather.weather-loading {
  width: 62px;
  height: 22px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: 6px;
  display: inline-block;
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}
.card-address {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 10px;
  line-height: 1.4;
}
.card-bottom {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.card-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: var(--gray-600);
}
.card-rating .star { color: #f59e0b; }
.card-links {
  display: flex;
  gap: 8px;
}
.card-links-right {
  margin-left: auto;
  align-items: center;
}
.card-link {
  font-size: 12px;
  color: var(--green-brand);
  font-weight: 500;
}
.card-link:hover { text-decoration: underline; }

/* Category badge colors */
.badge-club    { background: #dbeafe; color: #2563eb; border-color: rgba(37,99,235,0.3); }
.badge-public  { background: #dcfce7; color: #16a34a; border-color: rgba(22,163,74,0.3); }
.badge-academy { background: #fef3c7; color: #92400e; border-color: rgba(146,64,14,0.3); }
.badge-private { background: #ede9fe; color: #7c3aed; border-color: rgba(124,58,237,0.3); }
.badge-gear    { background: #fee2e2; color: #dc2626; border-color: rgba(220,38,38,0.3); }
.badge-stringing { background: #cffafe; color: #0891b2; border-color: rgba(8,145,178,0.3); }

/* Indoor/outdoor badge colors */
.badge-indoor  { background: #dbeafe; color: #1d4ed8; border-color: rgba(29,78,216,0.3); }
.badge-outdoor { background: #fef9c3; color: #854d0e; border-color: rgba(133,77,14,0.3); }
.badge-both    { background: #f3e8ff; color: #7e22ce; border-color: rgba(126,34,206,0.3); }

/* Surface badge colors */
.badge-surface-hard   { background: #f1f5f9; color: #475569; border-color: rgba(71,85,105,0.3); }
.badge-surface-clay   { background: #fef3c7; color: #92400e; border-color: rgba(146,64,14,0.3); }
.badge-surface-grass  { background: #dcfce7; color: #166534; border-color: rgba(22,101,52,0.3); }
.badge-surface-carpet { background: #fdf4ff; color: #86198f; border-color: rgba(134,25,143,0.3); }

/* Highlight badges */
.badge-popular   { background: #fef3c7; color: #b45309; border-color: rgba(180,83,9,0.3); }
.badge-top-rated { background: #fefce8; color: #a16207; border-color: rgba(161,98,7,0.3); }

/* card-tags row */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

/* Sub-filter strip */
.sub-filters {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 0 10px;
}
.sub-filter-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.filter-label {
  font-size: 10px;
  font-weight: 500;
  color: #6b7280;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-right: 4px;
  flex-shrink: 0;
}

/* Map */
.map-container {
  flex: 1;
  position: relative;
}
#map {
  width: 100%;
  height: 100%;
}

/* Map legend */
.map-legend {
  position: absolute;
  bottom: 24px;
  left: 12px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1;
  font-size: 11px;
  font-weight: 600;
  color: #374151;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-item svg {
  flex-shrink: 0;
}

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: var(--gray-400);
}
.empty-state p { font-size: 14px; margin-top: 8px; }

/* Loading */
.loading-overlay {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
  z-index: 10;
}
.spinner {
  width: 36px; height: 36px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--green-brand);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Google Maps InfoWindow override ── */

/* Strip the default container padding & border-radius */
.gm-style-iw-c {
  padding: 0 !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.22), 0 2px 8px rgba(0,0,0,.14) !important;
  overflow: hidden !important;
}

/* Remove extra overflow wrapper padding */
.gm-style-iw-d {
  overflow: hidden !important;
  padding: 0 !important;
}

/* Hide the default close button — we supply our own */
.gm-style-iw-chr {
  display: none !important;
}

/* Tail arrow — match the white card body */
.gm-style-iw-t::after {
  background: #ffffff !important;
  box-shadow: none !important;
}

/* ── Custom search dropdown ── */
.search-dropdown {
  position: absolute;
  z-index: 9999;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  box-shadow: 0 8px 30px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.08);
  overflow: hidden;
  display: none;
  min-width: 200px;
}
.search-dropdown.is-open { display: block; }

.sd-header {
  padding: 7px 14px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.sd-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 4px 0;
}

.sd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  transition: background 120ms;
}
.sd-item:hover,
.sd-item.is-active { background: var(--green-pale); }

.sd-icon {
  font-size: 16px;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}

.sd-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.sd-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sd-sub {
  font-size: 12px;
  color: var(--gray-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sd-mark {
  background: none;
  color: var(--green-brand);
  font-weight: 700;
}

/* Local court items get a subtle left accent */
.sd-item--local { border-left: 3px solid transparent; }
.sd-item--local:hover,
.sd-item--local.is-active { border-left-color: var(--green-brand); background: var(--green-pale); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
  .results-layout {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }
  .panel {
    width: 100%;
    height: auto;
    max-height: 55vh;
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
  }
  .card-list {
    grid-template-columns: 1fr;
  }
  .map-container {
    height: 45vh;
    min-height: 280px;
  }
}

/* =====================================================
   CARD — "View details" link
   ===================================================== */

.card-details-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--green-brand);
  white-space: nowrap;
}
.card-details-link:hover { text-decoration: underline; }

/* =====================================================
   CLUB DETAIL PAGE
   ===================================================== */

/* ─── Sticky nav ─── */
.club-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
}
.club-nav .back-link {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-brand);
  font-weight: 600;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
}
.club-nav .back-link:hover { color: var(--green-mid); }

.club-nav-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--gray-700);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  align-self: center;
}

.club-nav-website {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-brand);
  white-space: nowrap;
  flex-shrink: 0;
}
.club-nav-website:hover { color: var(--green-mid); }

/* ─── 7-day Forecast ─── */
.forecast-section {
  background: var(--green-pale);
  border-bottom: 1px solid rgba(22,163,74,.15);
  padding: 22px 24px 26px;
}
.forecast-inner {
  max-width: 900px;
  margin: 0 auto;
}
.forecast-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--green-brand);
  margin-bottom: 14px;
}
.fc-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.fc-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 14px 6px 12px;
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: 14px;
  text-align: center;
}
.fc-today {
  border-color: var(--green-brand);
  box-shadow: 0 0 0 3px rgba(22,163,74,.1);
}
.fc-dow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--gray-500);
}
.fc-today .fc-dow { color: var(--green-brand); }
.fc-icon { font-size: 26px; line-height: 1; margin: 3px 0; }
.fc-hi {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
}
.fc-lo {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: -3px;
}
.fc-wind {
  font-size: 10px;
  color: var(--gray-500);
  margin-top: 3px;
}
.fc-precip {
  font-size: 10px;
  color: #2563eb;
  font-weight: 600;
  margin-top: 1px;
}
.fc-advice {
  font-size: 9px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 7px;
  margin-top: 3px;
  text-align: center;
  white-space: nowrap;
}
.fc-advice-0 { background: #fff1f1; color: #b91c1c; }
.fc-advice-1 { background: #fffbeb; color: #b45309; }
.fc-advice-2 { background: #f0f9ff; color: #0369a1; }
.fc-advice-3 { background: #f0fdf4; color: #15803d; }
.fc-advice-4 { background: #ecfdf5; color: #065f46; }

/* Skeleton shimmer for forecast loading */
.fc-skel {
  background: linear-gradient(90deg, #dcfce7 25%, #bbf7d0 50%, #dcfce7 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: 6px;
  flex-shrink: 0;
}
.fc-skel-dow  { width: 30px; height: 10px; }
.fc-skel-icon { width: 28px; height: 28px; border-radius: 50%; margin: 3px 0; }
.fc-skel-hi   { width: 34px; height: 16px; }
.fc-skel-lo   { width: 26px; height: 11px; margin-top: -3px; }
.fc-skel-wind   { width: 42px; height: 9px;  margin-top: 3px; }
.fc-skel-precip { width: 36px; height: 9px;  margin-top: 1px; }

@media (max-width: 600px) {
  .fc-grid { grid-template-columns: repeat(7, minmax(44px, 1fr)); overflow-x: auto; }
  .forecast-section { padding: 18px 16px 20px; }
}

/* ─── Hero ─── */
.club-hero {
  background: var(--green-dark);
  position: relative;
  overflow: hidden;
  padding: 52px 24px 56px;
}
.club-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.club-hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 48px;
  background: var(--gray-50);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.club-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.club-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,.85);
  font-size: 14px;
}
.hero-stars { color: #fbbf24; letter-spacing: 1px; }
.hero-reviews { color: rgba(255,255,255,.55); font-size: 12px; }

.club-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 10px;
}

.club-hero-addr {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: rgba(255,255,255,.7);
  font-size: 14px;
  margin-bottom: 14px;
}

.hero-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hero-pill {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85);
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
}

.club-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
}
.btn-hero-primary {
  background: var(--green-brand);
  color: #fff;
}
.btn-hero-primary:hover { background: var(--green-mid); }
.btn-hero-outline {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.25);
}
.btn-hero-outline:hover { background: rgba(255,255,255,.18); }

/* ─── Content grid ─── */
.club-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  display: grid;
  grid-template-columns: 1fr 300px;
  grid-template-rows: auto 1fr;
  gap: 20px;
  align-items: start;
}

/* Quick facts spans both columns */
.quick-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.fact-card {
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: default;
  transition: box-shadow .15s;
}
.fact-card:hover { box-shadow: var(--shadow-md); }

.fact-icon {
  color: var(--green-brand);
  margin-bottom: 4px;
}
.fact-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-400);
}
.fact-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
}

/* ─── Main / Sidebar ─── */
.club-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.club-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 60px;
}

/* ─── Section cards ─── */
.section-card {
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}

.section-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: .01em;
}

.section-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-brand);
  flex-shrink: 0;
}

.section-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-400);
  background: var(--gray-100);
  padding: 2px 8px;
  border-radius: 999px;
}

/* ─── Program items ─── */
.program-item {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--gray-100);
}
.program-item:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.program-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.program-icon { color: var(--gray-400); flex-shrink: 0; }
.program-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  flex: 1;
}
.program-desc {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.65;
  padding-left: 24px;
}

/* ─── Pill badges ─── */
.pill {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 2px 7px;
  border-radius: 999px;
  flex-shrink: 0;
}
.pill-yes { background: var(--green-pale); color: var(--green-brand); }

/* ─── Coaches ─── */
.coaches-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.coach-card {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}
.coach-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: .5px;
}
.coach-info { min-width: 0; }
.coach-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.coach-role {
  font-size: 12px;
  color: var(--gray-600);
  margin-top: 1px;
}
.coach-bio {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 3px;
  font-style: italic;
}

/* ─── Membership ─── */
.price-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}
.price-row:last-of-type { border-bottom: none; }
.price-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500, #6b7280);
}
.price-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.price-line {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.price-line-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green-brand, #16a34a);
}
.price-line-body {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-900);
  line-height: 1.55;
}
.booking-note {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 10px 12px;
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  font-size: 12px;
  color: #78350f;
  line-height: 1.5;
}
.no-data {
  font-size: 13px;
  color: var(--gray-400);
  font-style: italic;
}

/* ─── Amenities ─── */
.amenities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.amenity-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.amenity-mark {
  font-size: 11px;
  font-weight: 700;
  margin-right: 1px;
}
.amenity-yes     { background: var(--green-pale); color: var(--green-brand); border: 1px solid var(--green-light); }
.amenity-no      { background: var(--gray-100);   color: var(--gray-400);   border: 1px solid var(--gray-200); text-decoration: line-through; }
.amenity-unknown { background: var(--gray-50);    color: var(--gray-400);   border: 1px solid var(--gray-200); }

/* ─── Links card ─── */
.club-links-card { padding: 6px 0; }

.club-link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius);
  transition: background .12s;
}
.club-link-row:hover { background: var(--gray-50); color: var(--green-brand); }
.club-link-icon { color: var(--green-brand); flex-shrink: 0; }
.club-link-arrow { margin-left: auto; opacity: .4; flex-shrink: 0; }

/* ─── Loading ─── */
.club-loading-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0;
}

/* ─── Club page responsive ─── */
@media (max-width: 860px) {
  .club-content {
    grid-template-columns: 1fr;
  }
  .club-sidebar {
    position: static;
  }
  .quick-facts {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .quick-facts { grid-template-columns: repeat(2, 1fr); }
  .coaches-grid { grid-template-columns: 1fr; }
  .club-hero { padding: 36px 16px 48px; }
  .club-content { padding: 20px 16px 48px; }
}
