/* SFSC forecast — picker nav, breadcrumb, directory page (Oct 20, 2026).
   Loaded alongside styles.css on beach pages and the directory page. */

/* breadcrumb */
.crumb { margin: 14px 0 6px; font-size: 13.5px; }
.crumb a { color: var(--accent); text-decoration: none; font-weight: 600; }
.crumb a:hover { text-decoration: underline; }

/* county/beach picker */
.picker { margin: 6px 0 14px; display: flex; flex-direction: column; gap: 8px; }

/* current conditions strip (water temp + buoy surf) */
.current-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.cur-chip {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-size: 13.5px; color: var(--ink);
}
.cur-chip b { font-weight: 800; }
.cur-asof { font-size: 12px; color: var(--muted); }
.picker-county {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 14px;
}
.picker-county summary {
  cursor: pointer; font-weight: 700; font-size: 15px; color: var(--ink);
  list-style: none; display: flex; align-items: center; gap: 8px;
}
.picker-county summary::-webkit-details-marker { display: none; }
.picker-county summary::after { content: '▾'; margin-left: auto; color: var(--muted); }
.picker-county[open ] summary::after { content: '▴'; }
.picker-soon {
  font-size: 11px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px;
}
.picker-beaches { display: flex; flex-direction: column; margin-top: 6px; }
.pk-head {
  display: grid; grid-template-columns: 1fr 78px 96px; gap: 8px;
  padding: 6px 8px 2px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
}
.pk-head .pk-col { text-align: right; }
.picker-beaches a.pk-beach {
  display: grid; grid-template-columns: 1fr 78px 96px; align-items: center; gap: 8px;
  width: 100%; box-sizing: border-box;
  font-size: 14.5px; color: var(--ink); text-decoration: none;
  padding: 9px 8px; border-bottom: 1px solid var(--line); border-radius: 6px;
}
.picker-beaches a.pk-beach:last-child { border-bottom: none; }
.picker-beaches a.pk-beach:hover { background: #e6f5fa; }
.picker-beaches a.pk-beach .pk-name { font-weight: 600; }
.picker-beaches a.pk-beach .pk-surf { font-weight: 800; font-size: 13.5px; white-space: nowrap; text-align: right; }
.picker-beaches a.pk-beach .pk-rating { font-weight: 800; font-size: 13.5px; white-space: nowrap; text-align: right; }
.picker-beaches a.picker-current { background: #e6f5fa; }
.picker-beaches a.picker-current .pk-name { color: var(--accent-dark); font-weight: 800; }

/* directory page */
.dir-section { margin: 22px 0 8px; }
.dir-section h2 { font-size: 20px; margin: 0 0 4px; letter-spacing: -0.01em; }
.dir-section .dir-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 12px; }
.best-list { display: flex; flex-direction: column; gap: 8px; }
.best-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 14px; text-decoration: none; color: var(--ink);
}
.best-row:hover { border-color: var(--accent); }
.best-rank { font-weight: 800; color: var(--muted); width: 18px; text-align: right; }
.best-name { font-weight: 700; font-size: 15px; }
.best-county { color: var(--muted); font-size: 12px; display: block; }
.best-wins { margin-left: auto; display: flex; gap: 12px; font-size: 13px; color: #334155; white-space: nowrap; }
.best-wins b { font-weight: 800; }
.best-badge {
  color: #fff; font-weight: 800; font-size: 17px; border-radius: 10px;
  padding: 5px 11px; line-height: 1; min-width: 52px; text-align: center;
}
.bestday-card {
  background: linear-gradient(135deg, #0b3d51 0%, #0b7d9e 100%);
  color: #fff; border-radius: 16px; padding: 18px; text-decoration: none; display: block;
}
.bestday-card .bd-when { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: #bfe9f5; }
.bestday-card .bd-main { font-size: 22px; font-weight: 800; margin: 4px 0 2px; letter-spacing: -0.01em; }
.bestday-card .bd-sub { color: #cfeaf3; font-size: 14px; }
.bestday-card .bd-score {
  float: right; background: #fff; color: #0b3d51; font-weight: 800; font-size: 24px;
  border-radius: 12px; padding: 8px 14px; line-height: 1;
}
.week-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.week-row {
  display: flex; align-items: center; gap: 10px; font-size: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px;
  text-decoration: none; color: var(--ink);
}
.week-row:hover { border-color: var(--accent); }
.week-day { font-weight: 700; min-width: 96px; }
.week-beach { color: var(--accent-dark); }
.week-score { margin-left: auto; font-weight: 800; }

/* forecast map page */
.forecast-map {
  height: min(72vh, 640px); min-height: 420px; border-radius: 16px;
  border: 1px solid var(--line); z-index: 0; background: #dbeafe;
}
.map-legend {
  display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted);
  margin: 10px 2px 4px; align-items: center;
}
.map-legend .dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  margin-right: 5px; vertical-align: -1px;
}
.map-legend .diamond {
  display: inline-block; width: 9px; height: 9px; margin-right: 5px;
  background: #0f172a; transform: rotate(45deg); vertical-align: 0;
}
.sfsc-pin-wrap { background: none; border: none; }
.sfsc-pin {
  background: #fff; border: 2.5px solid var(--accent); border-radius: 999px;
  font-size: 12px; font-weight: 800; color: var(--ink); text-align: center;
  line-height: 23px; height: 28px; box-shadow: 0 1px 4px rgba(15,23,42,.3);
  white-space: nowrap;
}
.sfsc-cluster-wrap { background: none; border: none; }
.sfsc-cluster {
  background: #fff; border: 3px solid var(--accent); border-radius: 50%;
  width: 40px; height: 40px; line-height: 35px; text-align: center;
  font-weight: 800; font-size: 15px; color: var(--ink);
  box-shadow: 0 1px 5px rgba(15,23,42,.3);
}
.sfsc-buoy-wrap { background: none; border: none; }
.sfsc-buoy {
  width: 13px; height: 13px; background: #0f172a; transform: rotate(45deg);
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(15,23,42,.45); margin: 1.5px;
}
.map-pop { min-width: 170px; }
.map-pop-name { font-weight: 800; font-size: 15px; color: var(--ink); }
.map-pop-sub { color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.map-pop-line { font-size: 13px; color: #334155; }
.map-pop-asof { color: var(--muted); font-size: 11.5px; }
.map-cta {
  display: inline-block; margin-top: 8px; background: var(--accent); color: #fff !important;
  font-weight: 700; font-size: 13px; text-decoration: none;
  border-radius: 999px; padding: 6px 13px;
}
.map-link {
  display: inline-block; background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 14px;
  color: var(--accent-dark); text-decoration: none; margin: 2px 0 6px;
}
.map-link:hover { border-color: var(--accent); background: #e6f5fa; }

/* header hamburger menu */
.site-header .wrap { position: relative; }
.nav-toggle {
  position: absolute; top: 0; right: 16px; z-index: 1101;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4);
  color: #fff; font-size: 19px; line-height: 1; border-radius: 10px;
  padding: 8px 13px; cursor: pointer;
}
.nav-toggle:hover { background: rgba(255,255,255,.25); }
.nav-menu {
  position: absolute; top: 48px; right: 16px; z-index: 1100; display: none;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15,23,42,.28); min-width: 240px; padding: 6px;
}
.nav-menu.open { display: block; }
.nav-menu a {
  display: block; padding: 11px 12px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px;
}
.nav-menu a:hover { background: #e6f5fa; }
.nav-menu a.nav-current { color: var(--accent-dark); background: #eef7fa; }
/* homepage clickable map preview */
.map-preview {
  display: block; position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); margin: 4px 0 16px; text-decoration: none;
  box-shadow: 0 1px 3px rgba(15,23,42,.08);
}
#miniMap { height: 250px; background: #dbeafe; pointer-events: none; }
.map-preview-cta {
  position: absolute; right: 10px; bottom: 10px; z-index: 500;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 13.5px;
  border-radius: 999px; padding: 7px 14px; box-shadow: 0 2px 6px rgba(15,23,42,.3);
}
.map-preview:active .map-preview-cta { background: var(--accent-dark); }

/* brand logo in the header (replaces the emoji, Oct 20) */
.brand-logo { height: 30px; width: auto; vertical-align: -9px; margin-right: 7px; }

/* season check card (Oct 21) */
.season-card {
  background: #fffdf6; border: 1px solid #eadfc3; border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 13px 15px; margin: 4px 0 14px;
}
.season-kicker {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent-dark); font-weight: 800; margin-bottom: 3px;
}
.season-report { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.season-card p { font-size: 14.5px; color: var(--ink); margin: 0 0 8px; line-height: 1.5; }
.season-link { font-weight: 700; color: var(--accent-dark); font-size: 14px; text-decoration: none; }
.season-link:hover { text-decoration: underline; }
.season-all { font-size: 13px; color: var(--muted); }
.season-all a { color: var(--accent-dark); text-decoration: none; font-weight: 600; }
.season-all a:hover { text-decoration: underline; }
/* gear funnel link under the technique pills (Oct 21) */
.gear-link {
  margin-top: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.5;
  background: #f0f9ff; border: 1px solid #dbeafe; border-radius: 10px;
  padding: 9px 12px;
}
.gear-link a { font-weight: 700; color: var(--accent-dark); text-decoration: none; }
.gear-link a:hover { text-decoration: underline; }
/* take links inherit the take's voice — subtle, not ad-like */
.day-take a { color: var(--accent-dark); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; }
.season-note {
  font-size: 12.5px; color: var(--muted); margin-top: 10px; padding-top: 8px;
  border-top: 1px dashed var(--line); line-height: 1.45;
}

/* landing scroll target breathing room */
#currentStrip { scroll-margin-top: 10px; }
#dayList { scroll-margin-top: 10px; }

/* Picker Today/Forecast toggle + 7-day cells (Nick, Oct 22) */
.pk-toggle { display: flex; align-items: center; gap: 8px; margin: 12px 2px 4px; }
.pk-toggle > span { font-size: 13px; font-weight: 700; color: var(--muted); }
.pk-toggle .pill { padding: 6px 16px; font-size: 13px; }
.picker-beaches.pk-week .pk-head,
.picker-beaches.pk-week a.pk-beach { display: grid; grid-template-columns: minmax(62px, 1.05fr) repeat(7, 1fr); gap: 4px; }
.pk-dh { text-align: center; font-size: 10px; white-space: nowrap; }
.pk-day { display: flex; flex-direction: column; align-items: center; line-height: 1.3; min-width: 0; }
.pk-day b { font-size: 13px; font-weight: 800; }
.pk-day i { font-style: normal; font-size: 10px; font-weight: 700; color: var(--muted); }
.picker-beaches.pk-week a.pk-beach .pk-name { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.pk-legend { font-size: 12px; color: var(--muted); margin: 2px 2px 6px; }
.pk-legend b { color: var(--ink); }
/* Week-mode mobile fix (Nick 10/22): stacked day headers + allow grid cells
   to shrink below content width so the 7-day strip never overflows. */
.picker-beaches.pk-week .pk-head > *,
.picker-beaches.pk-week a.pk-beach > * { min-width: 0; }
.pk-dh { display: flex; flex-direction: column; align-items: center; line-height: 1.25; }
.pk-dh b { font-size: 10px; font-weight: 700; }
.pk-dh i { font-style: normal; font-size: 9px; color: var(--muted); }
/* Season check as collapsible <details> (Nick 10/22) */
details.season-card summary.season-kicker {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px;
  user-select: none; -webkit-tap-highlight-color: transparent;
}
details.season-card summary.season-kicker::-webkit-details-marker { display: none; }
details.season-card summary.season-kicker::after {
  content: '▾'; font-size: 13px; color: var(--muted); transition: transform .15s;
}
details.season-card[open] summary.season-kicker::after { transform: rotate(180deg); }
/* Map preview shorter on mobile (Nick 10/22: ~2/3 height) */
/* Technique columns: pill on top, sub-label below (Nick 10/22) */
.tech-col { display: flex; flex-direction: column; align-items: stretch; }
.tech-sub { font-size: 11px; color: var(--muted); text-align: center; margin-top: 4px; line-height: 1.3; }
@media (max-width: 640px) {
  #miniMap { height: 165px; }
  /* Technique pills: 3-across on mobile, no wrapping (Nick 10/22) */
  .technique-pills { flex-wrap: nowrap; gap: 6px; }
  .tech-col { flex: 1 1 0; min-width: 0; }
  .tech-col .pill { width: 100%; padding: 8px 4px; font-size: 12.5px; }
  .tech-sub { font-size: 10px; }
}



/* Floating corner buttons (beach pages only) — Home bottom-left, Map bottom-right */
.bn-fab {
  position: fixed;
  bottom: max(6px, env(safe-area-inset-bottom));
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 56px;
  height: 64px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  color: var(--muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  transition: color 0.15s, transform 0.15s;
}
.bn-fab svg {
  width: 24px;
  height: 24px;
}
.bn-fab:hover, .bn-fab:active {
  color: var(--ink);
  transform: scale(1.05);
}
.bn-home { left: max(6px, env(safe-area-inset-left)); }
.bn-map { right: max(6px, env(safe-area-inset-right)); }
/* Add bottom padding so content isn't hidden behind the nav */
body { padding-bottom: 80px; }


/* Moon phase row — Nick 10/23: below sun times on day cards */
.moon-row {
  padding: 8px 12px;
  margin-top: 8px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.moon-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.moon-icon {
  color: #475569;
  flex-shrink: 0;
}
.moon-illum {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}
.moon-name {
  margin-top: 4px;
  font-size: 14px;
  color: #1e293b;
}

/* Tide times list — Nick 10/24: below the tide chart */
.tide-times {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 6px 0 2px 0;
  font-size: 13px;
}
.tide-ev {
  white-space: nowrap;
}
.tide-ev.tide-hi {
  color: #0e7490;
  font-weight: 600;
}
.tide-ev.tide-lo {
  color: #475569;
}
