/* Alberta Bite — mobile-first styles. Phone screens first, desktop second. */
:root {
  --ink: #10222e;
  --muted: #3c5568;
  --water: #0b3d5c;
  --water2: #0e5a7d;
  --accent: #f2a81d;
  --bg: #f4f8fa;
  --card: #ffffff;
  --line: #d7e3ea;
  --open: #177245;
  --closed: #b3261e;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 19px;
}
a { color: var(--water2); }
img, svg { max-width: 100%; }

/* Header / nav — big tap targets */
.site-header {
  background: var(--water);
  color: #fff;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}
.brand {
  color: #fff; text-decoration: none; font-weight: 800; font-size: 1.35rem; letter-spacing: .2px;
}
.brand span { color: var(--accent); }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: #fff; text-decoration: none; padding: 12px 12px; min-height: 48px;
  display: inline-flex; align-items: center; border-radius: 8px; font-weight: 600;
}
.site-nav a:active, .site-nav a:hover { background: rgba(255,255,255,.14); }

main { max-width: 1080px; margin: 0 auto; padding: 16px; }
.hero { padding: 10px 0 4px; }
.hero h1 { font-size: 1.9rem; line-height: 1.2; margin: 8px 0; }
.hero p { color: var(--muted); margin: 0 0 6px; max-width: 60ch; }
h1 { font-size: 1.9rem; line-height: 1.25; margin: 10px 0 4px; }
h2 { font-size: 1.45rem; margin: 26px 0 10px; }
h4 { margin: 14px 0 6px; font-size: 1rem; }
section { margin-bottom: 8px; }
.near { color: var(--muted); margin: 2px 0 10px; }

/* Badges & status */
.badge {
  display: inline-block; padding: 7px 16px; border-radius: 999px; color: #fff; font-size: 1.05rem;
  font-weight: 700; font-size: .9rem; vertical-align: middle;
}
.badge.open { background: var(--open); }
.badge.closed { background: var(--closed); }
.status-detail { color: var(--muted); margin-left: 8px; font-size: .95rem; }
.status-line { font-size: 1.05rem; margin: 8px 0; }

/* Search & filters */
.search-row { margin: 14px 0 8px; }
#lake-search {
  width: 100%; padding: 14px 16px; font-size: 1.05rem; border: 2px solid var(--line);
  border-radius: 12px; min-height: 52px; background: #fff;
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.filters button {
  padding: 12px 16px; min-height: 48px; border-radius: 999px; border: 2px solid var(--water);
  background: #fff; color: var(--water); font-size: 1rem; font-weight: 600; cursor: pointer;
}
.filters button.active { background: var(--water); color: #fff; }

/* Cards & best bets */
.grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px;
}
.card h3 { margin: 0 0 4px; font-size: 1.2rem; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card-near { color: var(--muted); margin: 0 0 8px; font-size: .95rem; }
.card-status { margin: 0 0 6px; }
.card-bite { margin: 0 0 10px; }
.card-link { font-weight: 700; display: inline-block; padding: 8px 0; min-height: 40px; }
.bets { list-style: none; counter-reset: bet; margin: 10px 0; padding: 0; }
.bets li { counter-increment: bet; margin: 0 0 10px; }
.bets a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; min-height: 56px; text-decoration: none; color: var(--ink); font-weight: 600;
}
.bets a::before {
  content: counter(bet); background: var(--accent); color: #201600; font-weight: 800;
  border-radius: 50%; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.bets-name { flex: 1; }
.bets-score { color: var(--water2); font-weight: 800; white-space: nowrap; }

/* Lake page blocks */
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin: 16px 0;
}
table.rules { width: 100%; border-collapse: collapse; font-size: 1.05rem; table-layout: fixed; }
table.rules th:first-child, table.rules td:first-child { width: 38%; }
table.rules .limit { white-space: normal; font-size: 1.3rem; }
table.rules td:first-child { font-weight: 600; }
table.rules .fineprint { font-size: .95rem; font-weight: 400; }
table.rules th, table.rules td { text-align: left; padding: 13px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.rules th { background: #eef4f7; }
.limit { font-weight: 800; }
.stretch { color: var(--muted); margin: 2px 0 8px; }
.fish-thumb {
  display: inline-block; padding: 0; margin: 0 8px 4px 0; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; cursor: pointer; vertical-align: middle; line-height: 0;
}
.fish-thumb img { width: 64px; height: 44px; object-fit: cover; border-radius: 7px; }
.lightbox {
  position: fixed; inset: 0; z-index: 60; background: rgba(6, 24, 34, .92);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 860px; width: 100%; text-align: center; }
.lightbox figure img { max-width: 100%; max-height: 76vh; border-radius: 12px; background: #fff; }
.lightbox figcaption { color: #eaf3f7; margin-top: 12px; font-size: 1rem; }
.lightbox figcaption .lb-credit { display: block; color: #9fb8c4; font-size: .8rem; margin-top: 4px; }
.lightbox-close {
  position: absolute; top: 10px; right: 14px; width: 48px; height: 48px; border: none;
  border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 1.7rem; cursor: pointer;
}
.bite-head { display: flex; align-items: baseline; gap: 12px; }
.bite-score { font-size: 3rem; font-weight: 800; color: var(--water); line-height: 1; }
.bite-rating { font-size: 1.25rem; font-weight: 700; }
.bite-meta { color: var(--muted); margin: 6px 0 0; }
.windows, .reasons { margin: 6px 0; padding-left: 20px; }
.windows li, .reasons li { margin: 4px 0; }
.disclaimer {
  background: #fff7e0; border: 1px solid #ecd27a; border-radius: 10px; padding: 12px 14px; font-weight: 600;
}
.fineprint { color: var(--muted); font-size: .88rem; }
ul.notes { padding-left: 20px; }

/* Map page (Leaflet) */
#lake-map {
  height: 68vh; min-height: 340px; max-height: 640px;
  border: 1px solid var(--line); border-radius: 14px; margin: 12px 0 8px;
  background: #dcebf3; z-index: 0;
}
.leaflet-popup-content { font-size: 1rem; line-height: 1.45; }
.leaflet-popup-content .status-detail { display: block; margin: 2px 0 0; }
.map-popup-link { display: inline-block; padding: 10px 0 4px; min-height: 40px; font-weight: 700; }
.map-lake-list { padding-left: 20px; }
.map-lake-list li { margin: 6px 0; }
.map-lake-list a { font-weight: 600; }

/* Checker */
form.checker label { display: block; font-weight: 700; margin: 16px 0 6px; }
form.checker select, form.checker input[type="number"] {
  width: 100%; padding: 14px; font-size: 1.05rem; border: 2px solid var(--line);
  border-radius: 10px; min-height: 52px; background: #fff;
}
.checkline { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-weight: 600; }
.checkline input { width: 26px; height: 26px; margin-top: 2px; flex: 0 0 auto; }
button.cta {
  width: 100%; margin-top: 20px; padding: 16px; min-height: 56px; font-size: 1.1rem; font-weight: 800;
  background: var(--water); color: #fff; border: 0; border-radius: 12px; cursor: pointer;
}
button.cta:active { background: var(--water2); }
.verdict { border-radius: 12px; padding: 16px; font-size: 1.15rem; font-weight: 700; margin: 18px 0 6px; }
.verdict.yes { background: #e2f3e7; border: 1px solid var(--open); }
.verdict.no { background: #fbe7e5; border: 1px solid var(--closed); }
.verdict.warn { background: #fff7e0; border: 1px solid #c9a227; }
.funline { background: #eef4fb; border: 1px solid var(--accent); border-radius: 12px; padding: 12px 16px; font-size: 1.1rem; margin: 10px 0 6px; }

.site-footer {
  border-top: 1px solid var(--line); margin-top: 28px; padding: 12px 16px 22px;
  color: var(--muted); font-size: .78rem; line-height: 1.45; max-width: 1080px; margin-left: auto; margin-right: auto;
}
.site-footer p { margin: 4px 0; }

/* Desktop: two/three-column card grid, roomier type */
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.4rem; }
  h1 { font-size: 2rem; }
  button.cta { width: auto; padding: 16px 34px; }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
