:root {
  --teal-deep: #0f3a3e;
  --teal-mid: #1d6b6f;
  --teal-glow: #3fa39a;
  --amber: #c98a3b;
  --amber-bright: #e0a355;
  --slate: #6b7475;
  --ink: #1b2a2c;
  --bg: #f6f5f1;
  --card: #ffffff;
  --border: #e1ddd2;
  --deep-shadow: #06181a;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
}

* { box-sizing: border-box; }

.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;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--teal-deep);
  color: #fff;
}

header.site-header a { color: #fff; text-decoration: none; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
}

nav.site-nav a {
  margin-left: 18px;
  font-size: 0.95rem;
  opacity: 0.9;
}
nav.site-nav a:hover { opacity: 1; text-decoration: underline; }

main { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

#map {
  width: 100%;
  height: 72vh;
  min-height: 480px;
}

.map-page main { max-width: none; padding: 0; }

.map-filters {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
}
.map-filters-row {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.filter-group-end { margin-left: auto; gap: 14px; }
.filter-group-label {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--teal-deep);
  margin-right: 2px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: var(--ink);
  background: #f0eee7;
  border-radius: 999px;
  padding: 4px 10px 4px 8px;
  cursor: pointer;
  user-select: none;
}
.filter-chip input { accent-color: var(--teal-mid); cursor: pointer; }
#species-filter {
  font-size: 0.85rem;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  max-width: 180px;
}
.filter-count { font-size: 0.85rem; color: var(--slate); white-space: nowrap; }
.filter-clear {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-mid);
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.filter-clear:hover { background: #f0eee7; }
@media (max-width: 900px) {
  .map-filters-row { gap: 12px; }
  .filter-group-end { margin-left: 0; width: 100%; justify-content: space-between; }
}

.chart-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(circle at 78% 32%, var(--teal-mid) 0%, var(--teal-deep) 45%, var(--deep-shadow) 100%);
  border-radius: 18px;
  margin: 28px auto 40px;
  padding: 64px 40px 48px;
  color: #fff;
  max-width: 1200px;
}
.chart-hero-rings {
  position: absolute;
  top: 50%;
  right: -8%;
  transform: translateY(-50%);
  width: min(560px, 55%);
  height: auto;
  z-index: 0;
  opacity: 0.9;
  pointer-events: none;
}
.chart-depth-label { font-family: var(--font-mono); font-size: 11px; fill: #cfe6e2; }
@media (prefers-reduced-motion: no-preference) {
  .chart-ring-pulse { animation: chart-pulse 6s ease-in-out infinite; transform-origin: center; }
  .chart-ring-pulse:nth-of-type(2) { animation-delay: 1.4s; }
  .chart-ring-pulse:nth-of-type(3) { animation-delay: 2.8s; }
}
@keyframes chart-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
.chart-hero-content { position: relative; z-index: 1; max-width: 620px; }
.chart-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-bright);
  margin: 0 0 14px;
}
.chart-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.08;
  margin: 0 0 16px;
  color: #fff;
  letter-spacing: -0.01em;
}
.chart-sub { font-size: 1.08rem; color: #cfe6e2; max-width: 480px; margin: 0 0 28px; line-height: 1.55; }
.chart-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);
  color: #fff;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.98rem;
  box-shadow: 0 8px 20px rgba(201, 138, 59, 0.35);
}
.cta-primary:hover { background: var(--amber-bright); }
.cta-ghost {
  display: inline-flex;
  align-items: center;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.cta-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.chart-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.chart-stats div { display: flex; flex-direction: column; gap: 4px; }
.chart-stats dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: #9fc9c3; margin: 0; }
.chart-stats dd { margin: 0; font-family: var(--font-mono); font-size: 1.05rem; font-weight: 600; color: #fff; }
@media (max-width: 720px) {
  .chart-hero { padding: 44px 24px 36px; border-radius: 0; }
  .chart-hero-rings { display: none; }
}

.home-about {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.home-content { padding: 0 0 64px; }
.home-about h2 { font-family: var(--font-display); color: var(--teal-deep); margin-bottom: 16px; margin-top: 44px; }
.home-about h2:first-child { margin-top: 0; }

.explore-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1fr;
  gap: 18px;
  margin-bottom: 8px;
}
.explore-clusters { display: contents; }
.explore-feature {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  background: linear-gradient(160deg, var(--teal-deep), var(--teal-mid));
  color: #fff;
  border-radius: 14px;
  padding: 28px 24px;
  text-decoration: none;
  min-height: 260px;
}
.explore-feature img { width: 44px; height: 44px; filter: brightness(0) invert(1); opacity: 0.92; }
.explore-feature-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.explore-feature-desc { color: #d7ebe8; font-size: 0.92rem; max-width: 240px; }
.explore-feature-arrow { font-family: var(--font-mono); font-size: 0.85rem; color: var(--amber-bright); }
.explore-cluster {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.cluster-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 6px;
}
.cluster-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 0;
  text-decoration: none;
  color: var(--ink);
  border-top: 1px solid var(--border);
}
.cluster-link:first-of-type { border-top: 0; }
.cluster-link-title { font-weight: 600; font-size: 0.94rem; }
.cluster-link-title:hover { color: var(--teal-mid); }
.cluster-link-desc { font-size: 0.8rem; color: var(--slate); }
.identify-steps {
  list-style: none;
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.identify-steps li { display: flex; align-items: center; gap: 10px; font-size: 0.84rem; color: var(--slate); }
.identify-step-num {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e7f3ef;
  color: var(--teal-deep);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
}
@media (max-width: 980px) {
  .explore-grid { grid-template-columns: 1fr 1fr; }
  .explore-feature { grid-column: 1 / -1; min-height: 200px; }
}
@media (max-width: 640px) {
  .explore-grid { grid-template-columns: 1fr; }
}

.spot-log {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  margin-bottom: 8px;
}
.spot-log-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 12px 12px 18px;
  border-top: 1px solid var(--border);
}
.spot-log-row:first-child { border-top: 0; }
.spot-log-row:hover { background: #f0eee7; }
.spot-log-link {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}
.spot-log-name { font-weight: 700; color: var(--teal-deep); }
.spot-log-meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--slate); white-space: nowrap; }
.spot-log-species { font-size: 0.82rem; color: var(--slate); text-align: right; }
.map-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.05rem;
  opacity: 0.7;
}
.map-link:hover { opacity: 1; background: rgba(15, 58, 62, 0.08); }
h1 .map-link, h3 .map-link { vertical-align: middle; }
@media (max-width: 640px) {
  .spot-log-link { grid-template-columns: 1fr; }
  .spot-log-species { text-align: left; }
}

.home-quote { border-left: 3px solid var(--amber); padding: 4px 0 4px 24px; margin: 8px 0 20px; }
.home-quote p { margin: 0 0 14px; }
.home-quote p:first-of-type {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--teal-deep);
  line-height: 1.5;
}

.chip-icon { font-size: 0.95rem; line-height: 1; }
.spot-marker-icon { background: none !important; border: none !important; }
.spot-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}

.leaflet-popup-content-wrapper { border-radius: 8px; }
.spot-popup h3 { margin: 0 0 6px; font-size: 1rem; }
.spot-popup p { margin: 2px 0; font-size: 0.85rem; }
.spot-popup a { color: var(--teal-mid); font-weight: 600; }
.species-pill {
  display: inline-block;
  background: #e7f3ef;
  color: var(--teal-deep);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.75rem;
  margin: 2px 3px 0 0;
}

.spot-detail { padding: 32px 0 64px; }
.spot-detail h1 { color: var(--teal-deep); margin-bottom: 4px; }
.spot-title-link { color: inherit; text-decoration: none; }
.spot-title-link:hover { text-decoration: underline; }
.spot-meta { color: var(--slate); font-size: 0.95rem; margin-bottom: 20px; }
.spot-updated { color: var(--slate); font-size: 0.85rem; margin-top: 12px; }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 8px;
}
.badge-free { background: #e7f3ef; color: var(--teal-deep); }
.badge-day-ticket { background: #fbf0e3; color: var(--amber); }
.badge-club { background: #eceded; color: var(--slate); }

.species-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.species-table th, .species-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.species-table th { background: #f0eee7; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 8px;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.spot-photo { margin-bottom: 8px; }
.spot-photo img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 10px; display: block; }
.spot-photo-credit { margin-top: 6px; font-size: 0.8rem; }

.species-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}
.species-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 10px;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.15s, transform 0.15s;
}
.species-card:hover { box-shadow: 0 4px 14px rgba(15, 58, 62, 0.12); transform: translateY(-2px); }
.species-card-icon { font-size: 1.8rem; }
.species-card-name { font-weight: 700; color: var(--teal-deep); font-size: 0.92rem; }
.species-card-count { font-size: 0.78rem; color: var(--slate); }
.species-card-season {
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal-mid);
  background: #e7f3ef;
  border-radius: 999px;
  padding: 2px 8px;
}

.rod-licence-note {
  background: #fff8e8;
  border: 1px solid #e9d9a8;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.9rem;
  margin: 20px 0;
}
.rod-licence-note a { color: var(--teal-mid); }

footer.site-footer {
  padding: 24px;
  text-align: center;
  color: var(--slate);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
footer.site-footer a { color: var(--slate); }

.back-link { display: inline-block; margin: 16px 0; color: var(--teal-mid); font-weight: 600; text-decoration: none; }

.catch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin: 20px 0; }
.catch-tile { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); text-decoration: none; color: inherit; background: #fff; }
.catch-tile img { width: 100%; height: 180px; object-fit: cover; display: block; }
.catch-tile .catch-tile-body { padding: 10px 12px; }
.catch-tile h3 { margin: 0 0 4px; font-size: 1rem; }
.catch-photo { max-width: 100%; border-radius: 10px; margin: 12px 0; }

@media (max-width: 640px) {
  header.site-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  nav.site-nav a { margin-left: 0; margin-right: 14px; }
}
