/* Pickleball Court World — clean, neutral directory design. Hand-rolled
   CSS, system fonts only, no webfonts/CDN/external network dependency.
   Served as-is via /css/site.css; no build step required for the
   directory pages themselves. */

:root {
  --ink: #16211b;
  --ink-soft: #3a4a41;
  --text-muted: #5c6b62;
  --court: #2f6b4f;
  --court-deep: #234f3b;
  --line: #eaece8;
  --line-strong: #4a7a37;
  --paper: #fafaf8;
  --card: #ffffff;
  --accent: #d9a441;
  --good: #2f6b4f;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --max-width: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: var(--court-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--court); color: #fff; padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* --- Header --- */
.band-top {
  background: var(--court-deep);
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.wordmark { color: #fff; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.wordmark:hover { text-decoration: none; opacity: 0.9; }
.top-nav a { color: #d9e6de; margin-left: 1.25rem; font-size: 0.95rem; }
.top-nav a[aria-current="page"] { color: #fff; font-weight: 600; }

/* --- Breadcrumb --- */
.crumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.crumb a { color: var(--text-muted); }
.crumb span[aria-current] { color: var(--ink-soft); }

/* --- Hero / page header --- */
.hero {
  background: linear-gradient(180deg, var(--court) 0%, var(--court-deep) 100%);
  color: #fff;
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.hero h1 { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.hero p { max-width: 640px; margin: 0 auto; color: #dcefe4; font-size: 1.05rem; }

.page-header {
  background: var(--court-deep);
  color: #fff;
  padding: 2.5rem 1.5rem;
}
.page-header-inner { max-width: var(--max-width); margin: 0 auto; }
.page-header h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.page-header p.sub { color: #d9e6de; max-width: 640px; }

/* --- Content shell --- */
.content-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.section-title { font-size: 1.25rem; font-weight: 700; margin: 1.5rem 0 1rem; }

/* --- Tile list (state/city browse) --- */
.tile-list { list-style: none; display: grid; gap: 0.6rem; }
.tile-list.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .tile-list.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tile-list.cols-3 { grid-template-columns: 1fr; } }
.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tile a { font-weight: 600; }
.tile .count { color: var(--text-muted); font-size: 0.82rem; }

/* --- Listing cards --- */
.listings { display: grid; gap: 0.9rem; }
.listing-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--court);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
}
.listing-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.listing-card .loc { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 0.4rem; }
.listing-card .blurb { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0.5rem; }
.listing-card .meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.88rem; }
.listing-card .meta a { font-weight: 600; }

/* --- Detail page --- */
.detail-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.detail-panel .fact-row { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; font-size: 0.95rem; }
.detail-panel .fact-label { color: var(--text-muted); min-width: 90px; }
.btn-primary {
  display: inline-block;
  background: var(--court);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.92rem;
}
.btn-primary:hover { background: var(--court-deep); text-decoration: none; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--court-deep);
  color: #cfe0d6;
  padding: 2.5rem 1.5rem 1.5rem;
  margin-top: 3rem;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.footer-inner h5 { color: #fff; margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer-inner a { color: #cfe0d6; display: block; margin-bottom: 0.35rem; font-size: 0.9rem; }
.footer-legal { max-width: var(--max-width); margin: 1.5rem auto 0; font-size: 0.8rem; color: #9fbcae; border-top: 1px solid #2c5a45; padding-top: 1rem; }
