/* ═══════════════════════════════════════════════════════
   InshoreIQ — Nautical Chart Theme
   Colors: Deep Navy #050e1c | Teal #00b4cc | Coral #e07840
   ═══════════════════════════════════════════════════════ */

:root {
  --navy: #050e1c;
  --navy-mid: #091825;
  --navy-light: #102535;
  --gold: #00b4cc;
  --gold-light: #33ccdd;
  --coral: #e07840;
  --offwhite: #dff0f5;
  --text: #9ec8d8;
  --text-dim: #4e7a8a;
  --card-bg: #081520;
  --card-border: #163040;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Source Sans 3', system-ui, sans-serif;
  --radius: 8px;
}

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

html { font-size: 16px; }

body {
  background: var(--navy);
  color: var(--text);
  font-family: var(--font-sans);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ── NAUTICAL CHART BACKGROUND ── */
.chart-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: url('/static/hero_bg.jpg') center/cover no-repeat;
  opacity: 0.45;
}
.chart-grid svg { display: none; }

body > body > *:not(.leaflet-pane):not(.leaflet-container):not(.leaflet-map-pane) { }

/* ── LOGO WATERMARK ── */
body::after {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  background: url('/static/badge.png') center/contain no-repeat;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

/* ── LAYOUT ── */
.container { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }

/* ── HEADER ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--card-border);
  background: rgba(5, 14, 28, 0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 0.5rem;
  flex-wrap: nowrap;
  overflow: hidden;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-compass { font-size: 1.4rem; }
.logo-img {
  height: 44px;
  width: auto;
  display: block;
}
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.logo-text.small { font-size: 1.1rem; }

.site-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
}
.site-nav a:hover { color: var(--gold); }

.header-search { display: flex; gap: 0.5rem; align-items: center; }

/* ── INPUTS ── */
.location-input {
  background: var(--navy-mid);
  border: 1px solid var(--card-border);
  color: var(--offwhite);
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.location-input.small { font-size: 0.9rem; padding: 0.5rem 0.75rem; width: 220px; }
.location-input:focus { border-color: var(--gold); }
.location-input::placeholder { color: var(--text-dim); }

/* ── BUTTONS ── */
.btn-forecast {
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-forecast:hover { background: var(--gold-light); }

.btn-sm {
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}
.btn-sm:hover { background: var(--gold-light); }
.btn-sm.outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}
.btn-sm.outline:hover { background: rgba(0, 180, 204, 0.1); }

/* ── DATE INPUT ── */
.date-input {
  background: var(--navy-mid);
  border: 1px solid var(--card-border);
  color: var(--offwhite);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.75rem 0.75rem;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s;
  cursor: pointer;
  white-space: nowrap;
}
.date-input.small { font-size: 0.85rem; padding: 0.5rem 0.6rem; }
.date-input:focus { border-color: var(--gold); }
.date-input::-webkit-calendar-picker-indicator { filter: invert(0.7); cursor: pointer; }

/* ── MULTI-DAY FORECAST STRIP ── */
.multiday-strip {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}
.multiday-strip::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--coral), var(--gold), transparent);
  opacity: 0.6;
}
.multiday-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.multiday-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  font-size: 0.75rem;
}
.md-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px;
  border-radius: 8px;
  text-decoration: none;
  background: rgba(255,255,255,0.03);
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
  cursor: pointer;
}
.md-day:hover { background: rgba(0,180,204,0.08); border-color: rgba(0,180,204,0.2); }
.md-active { background: rgba(0,180,204,0.12) !important; border-color: var(--gold) !important; }
.md-label { font-size: 0.68rem; color: var(--text-dim); font-weight: 600; }
.md-active .md-label { color: var(--gold); }
.md-icon { font-size: 1.1rem; line-height: 1; }
.md-temps { font-size: 0.65rem; color: var(--offwhite); white-space: nowrap; }
.md-wind { font-size: 0.6rem; color: var(--text-dim); }
@media (max-width: 400px) {
  .multiday-days { grid-template-columns: repeat(7, 1fr); gap: 2px; }
  .md-label { font-size: 0.6rem; }
  .md-temps { font-size: 0.58rem; }
  .md-wind { display: none; }
}

/* ── GPS BUTTON ── */
.gps-row { margin-bottom: 0.6rem; }
.btn-gps {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-gps:hover { border-color: var(--gold); color: var(--gold); }
.btn-gps:disabled { opacity: 0.5; cursor: wait; }
.btn-gps-sm { padding: 0.5rem 0.6rem; font-size: 0.9rem; }

/* ── TIDE CHART LEGEND ── */
.tide-legend {
  display: flex;
  gap: 1rem;
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
}
.tl-major { color: #e07840; }
.tl-minor { color: #00b4cc; }

/* ── AUTOCOMPLETE DROPDOWN ── */
.ac-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #0d2035;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  list-style: none;
  margin: 0;
  padding: 0.3rem 0;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  max-height: 260px;
  overflow-y: auto;
}
.ac-dropdown li {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: background 0.1s, border-color 0.1s;
}
.ac-dropdown li:hover,
.ac-dropdown li.ac-active {
  background: rgba(0,180,204,0.08);
  border-left-color: var(--gold);
  color: var(--offwhite);
}

/* ── TIDE CHART ── */
.tide-chart-svg {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1.1rem;
  overflow: visible;
  touch-action: none;
}
.tide-crosshair-v {
  stroke: rgba(255,255,255,0.25);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}
.tide-crosshair-dot {
  fill: var(--coral, #e07840);
  stroke: #fff;
  stroke-width: 1.5;
}
.tide-tooltip rect {
  fill: rgba(8,21,32,0.92);
  stroke: var(--gold, #00b4cc);
  stroke-width: 1;
}
.tide-tooltip text {
  fill: #dff0f5;
  font-weight: 600;
  x: 5px;
}

/* ═══════════════════════════
   LANDING PAGE
   ═══════════════════════════ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5rem 1.25rem 3rem;
  text-align: center;
  min-height: 80vh;
  justify-content: center;
}

.hero-badge {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--coral);
  border: 1px solid var(--coral);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  color: var(--offwhite);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

.forecast-form { width: 100%; max-width: 560px; margin: 0 auto; }

.input-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.input-group-bottom { margin-bottom: 0.75rem; }
.date-input-landing { flex-shrink: 0; width: auto; }

.input-hints {
  font-size: 0.85rem;
  color: var(--text-dim);
}
.hint {
  color: var(--gold);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hint:hover { color: var(--gold-light); }

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2.5rem;
}
.pill {
  background: var(--navy-mid);
  border: 1px solid var(--card-border);
  color: var(--text);
  font-size: 0.82rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
}

.hero-chart-art {
  /* container hidden — depth-lines positioned independently */
  position: absolute;
  width: 0;
  height: 0;
  overflow: visible;
  pointer-events: none;
}
/* Depth labels pinned to bottom-right corner, above the wave */
.depth-lines {
  position: fixed;
  bottom: 82px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  text-align: center;
}
.dl {
  font-family: monospace;
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-align: right;
  white-space: nowrap;
}

/* signup-field: same look as location-input but no autocomplete JS attached */
.signup-field {
  background: var(--navy-mid);
  border: 1px solid var(--card-border);
  color: var(--offwhite);
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.signup-field:focus { border-color: var(--gold); }
.signup-field::placeholder { color: var(--text-dim); }

/* ── EMAIL SIGNUP ── */
.email-signup-section {
  padding: 2.5rem 1.25rem;
  border-top: 1px solid var(--card-border);
}
.email-signup-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}
.email-signup-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--coral), var(--gold), transparent);
  opacity: 0.7;
}
.email-eyebrow { font-size: 0.68rem; letter-spacing: 0.15em; color: var(--coral); text-transform: uppercase; margin-bottom: 0.5rem; }
.email-title { font-family: var(--font-serif); font-size: 1.35rem; color: var(--offwhite); margin-bottom: 0.6rem; line-height: 1.3; }
.email-sub { font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; }
.email-form { display: flex; flex-direction: column; gap: 0.6rem; }
.freq-choice { display: flex; gap: 1rem; flex-wrap: wrap; }
.freq-option { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; font-size: 0.85rem; color: var(--text); }
.freq-option input[type=radio] { accent-color: var(--gold); width: 14px; height: 14px; cursor: pointer; }
.freq-option input[type=radio]:checked + span { color: var(--offwhite); }
.freq-desc { font-size: 0.75rem; color: var(--text-dim); }
@media (max-width: 640px) {
  .email-signup-card { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* HOW IT WORKS */
.how-it-works {
  padding: 3rem 1.25rem;
  border-top: 1px solid var(--card-border);
}
.section-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--offwhite);
  text-align: center;
  margin-bottom: 2rem;
}
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.step {
  text-align: center;
  max-width: 180px;
}
.step-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--coral);
  opacity: 0.8;
  margin-bottom: 0.5rem;
}
.step-text { font-size: 0.9rem; color: var(--text-dim); line-height: 1.5; }
.step-arrow { font-size: 1.5rem; color: var(--card-border); }

/* ═══════════════════════════
   FORECAST PAGE
   ═══════════════════════════ */
.forecast-main { padding: 2rem 1.25rem 4rem; }

.forecast-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.forecast-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--offwhite);
}
.forecast-date {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}
.forecast-meta { display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-end; }
.meta-tag {
  background: var(--navy-mid);
  border: 1px solid var(--card-border);
  color: var(--text);
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
}

/* ── CARDS ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--coral), var(--gold), transparent);
  opacity: 0.6;
}
.card-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 1.1rem;
  text-transform: uppercase;
}

/* BITE SCORE */
.bite-card {
  margin-bottom: 1.5rem;
  text-align: center;
}
.bite-score-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.bite-score-num {
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 1;
  font-weight: 700;
}
.bite-score-label {
  font-size: 1.6rem;
  font-weight: 600;
}
.bite-meter-track {
  height: 6px;
  background: var(--navy-light);
  border-radius: 3px;
  margin: 0 auto 1.25rem;
  max-width: 480px;
  overflow: hidden;
}
.bite-meter-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease;
}
.bite-reasons {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.bite-reasons li {
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 0.3rem 0.85rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* CARD GRID */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* TIDES */
.tide-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.tide-table th {
  text-align: left;
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--card-border);
}
.tide-table td { padding: 0.6rem 0.25rem; border-bottom: 1px solid rgba(30,58,95,0.5); }
.tide-h td:last-child { color: var(--coral); }
.tide-l td:last-child { color: var(--gold); }

/* WEATHER */
.weather-hero {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}
.weather-icon { font-size: 2.5rem; }
.weather-temp { font-family: var(--font-serif); font-size: 2.8rem; color: var(--offwhite); }
.weather-condition { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 1.25rem; }
.wind-wrap { display: flex; align-items: center; gap: 1rem; }
.wind-compass {
  width: 48px; height: 48px;
  border: 1px solid var(--card-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1.2rem;
  position: relative;
}
.compass-arrow { display: inline-block; }
.wind-speed { font-size: 1.2rem; color: var(--offwhite); font-weight: 600; }
.wind-dir { font-size: 0.85rem; color: var(--text-dim); }

/* SOLUNAR */
.moon-phase-badge {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.solunar-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.solunar-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--card-border);
}
.solunar-major { border-left-color: var(--coral) !important; }
.solunar-minor { border-left-color: var(--gold) !important; }
.sol-label { font-size: 0.8rem; color: var(--gold); font-weight: 600; }
.sol-time { font-size: 0.95rem; color: var(--offwhite); }
.sol-center { font-size: 0.78rem; color: var(--text-dim); }

/* TIPS */
.tips-list { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }
.tips-list li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  padding-left: 0.5rem;
  border-left: 2px solid rgba(0,180,204,0.3);
}

.no-data { color: var(--text-dim); font-size: 0.9rem; font-style: italic; }

/* ── LURE RECOMMENDATIONS ── */
.lure-list { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.lure-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border-left: 2px solid rgba(0,180,204,0.3);
}
.lure-info { flex: 1; min-width: 0; }
.lure-name { font-size: 0.88rem; color: var(--offwhite); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lure-desc { font-size: 0.78rem; color: var(--text-dim); margin-top: 2px; }
.lure-btn {
  flex-shrink: 0;
  background: var(--coral);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.lure-btn:hover { opacity: 0.85; }
.lure-disclosure {
  margin-top: 0.75rem;
  font-size: 0.68rem;
  color: var(--text-dim);
  text-align: center;
  opacity: 0.6;
}

/* ── HOURLY WEATHER TABLE ── */
.hourly-table { margin-top: 0.85rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hourly-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  white-space: nowrap;
}
.hourly-table thead th {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0 4px 6px;
  border-bottom: 1px solid var(--card-border);
}
.hourly-table thead th.row-icon { width: 24px; }
.hourly-table tbody td {
  text-align: center;
  padding: 5px 4px;
  color: var(--text);
  border-bottom: 1px solid rgba(22,48,64,0.4);
}
.hourly-table tbody td.row-icon { font-size: 0.9rem; }
.hourly-table tbody tr:last-child td { border-bottom: none; }
.hourly-table .row-temp td { color: var(--offwhite); font-weight: 600; }
.hourly-table .row-rain td { color: var(--text-dim); }
.hourly-table .row-rain td.hi { color: var(--coral); font-weight: 700; }
.hourly-table .row-wind td { color: var(--gold); }
.hourly-legend {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 6px;
  text-align: center;
  letter-spacing: 0.04em;
}

/* ── FISHING REGULATIONS ── */
.regs-grid { display: flex; flex-direction: column; gap: 0; }
.reg-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(22,48,64,0.6);
  align-items: flex-start;
}
.reg-row:last-child { border-bottom: none; }
.reg-species { font-size: 0.88rem; color: var(--offwhite); font-weight: 600; grid-column: 1; }
.reg-details { display: flex; flex-direction: column; gap: 2px; grid-column: 1; }
.reg-slot { font-size: 0.85rem; color: var(--text); }
.reg-bag { font-size: 0.78rem; color: var(--text-dim); }
.reg-season { font-size: 0.75rem; color: #e07840; }
.reg-note { font-size: 0.72rem; color: var(--text-dim); font-style: italic; margin-top: 2px; }
.reg-status-badge { font-size: 1rem; grid-column: 2; grid-row: 1 / 3; align-self: center; }
.regs-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 1rem; padding-top: 0.75rem;
  border-top: 1px solid var(--card-border);
  font-size: 0.75rem; color: var(--text-dim);
}
.regs-link { color: var(--gold); text-decoration: none; font-weight: 600; }
.regs-link:hover { color: var(--gold-light); }
.regs-disclaimer { font-size: 0.7rem; color: var(--text-dim); margin-top: 0.5rem; font-style: italic; }

/* ── ABOUT PAGE ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.about-card p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 0.85rem;
}
.about-card p:last-child { margin-bottom: 0; }
.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
}
.about-list li {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--text);
  padding-left: 0.75rem;
  border-left: 2px solid rgba(0,180,204,0.3);
}
.about-list li strong { color: var(--offwhite); }
.about-cta {
  text-align: center;
  padding: 3rem 1rem;
  border-top: 1px solid var(--card-border);
}
.about-cta h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--offwhite);
  margin-bottom: 0.5rem;
}
.about-cta p {
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
@media (max-width: 680px) {
  .about-grid { grid-template-columns: 1fr; }
}

.forecast-footer {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
}
.forecast-footer p { font-size: 0.78rem; color: var(--text-dim); }

/* ERROR */
.error-card {
  background: var(--card-bg);
  border: 1px solid #e63946;
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  max-width: 500px;
  margin: 4rem auto;
}
.error-card h2 { font-family: var(--font-serif); color: var(--offwhite); margin-bottom: 1rem; }
.error-card p { color: var(--text-dim); margin-bottom: 1.5rem; }

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
}
.site-footer p { margin-top: 0.3rem; }

/* ═══════════════════════════
   RESPONSIVE
   ═══════════════════════════ */
@media (max-width: 680px) {
  .input-group { flex-direction: column; }
  .input-group-bottom { flex-direction: row; }
  .date-input-landing { flex: 1; }
  .btn-forecast { flex: 2; }

  .forecast-header { flex-direction: column; }
  .forecast-meta { align-items: flex-start; }

  .card-grid { grid-template-columns: 1fr; }

  .bite-score-num { font-size: 3.5rem; }
  .bite-score-label { font-size: 1.2rem; }

  .steps { flex-direction: column; gap: 0.75rem; }
  .step-arrow { transform: rotate(90deg); }

  .location-input.small { width: 120px; }

  /* Compact forecast header on mobile */
  .header-search { flex-wrap: wrap; gap: 0.4rem; max-width: calc(100vw - 130px); }
  .date-input.small { display: none; }
  .btn-gps-sm { display: none; }

  .hero { padding: 3rem 1.25rem 2rem; }
}

/* -- HERO TIDE WAVE ANIMATION -- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero-wave {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}
/* Each track is 200% wide (two SVG copies) and scrolls left endlessly */
.wave-track {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 70px;
  display: flex;
}
.wave-track svg {
  flex: 0 0 50%;
  height: 70px;
}
.wave-track-1 { animation: waveScroll1 9s linear infinite; }
.wave-track-2 { animation: waveScroll2 14s linear infinite; }
@keyframes waveScroll1 {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes waveScroll2 {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.wave-base {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 18px;
  display: block;
}

/* ── BEST DAY BADGE IN MULTIDAY STRIP ── */
.md-best {
  background: rgba(224,120,64,0.14) !important;
  border-color: var(--coral) !important;
}
.md-best .md-label { color: var(--coral) !important; }
.md-best-badge {
  font-size: 0.48rem;
  background: var(--coral);
  color: #fff;
  border-radius: 3px;
  padding: 1px 3px;
  letter-spacing: 0.06em;
  font-weight: 700;
  white-space: nowrap;
  margin-top: 1px;
}

/* ── HAMBURGER MENU ── */
.hamburger-btn {
  background: none;
  border: 1px solid rgba(0,180,204,0.3);
  border-radius: 6px;
  padding: 7px 9px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-left: 8px;
  flex-shrink: 0;
  vertical-align: middle;
}
.hamburger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-dim);
  border-radius: 2px;
  transition: all 0.22s;
}
.hamburger-btn:hover span { background: var(--gold); }
.hamburger-btn.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Slide-out panel — HIDDEN by default */
.hamburger-menu {
  position: fixed !important;
  top: 0 !important;
  left: -300px !important;
  width: 260px !important;
  height: 100vh !important;
  background: rgba(9,24,37,0.99) !important;
  backdrop-filter: blur(16px) !important;
  border-right: 1px solid var(--card-border) !important;
  z-index: 9999 !important;
  transition: left 0.26s ease !important;
  padding: 80px 0 2rem !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 4px 0 24px rgba(0,0,0,0.6) !important;
}
.hamburger-menu.open { left: 0 !important; }
.hamburger-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
}
.hamburger-overlay.open { display: block; }

.hm-item {
  display: block;
  padding: 0.9rem 1.5rem;
  color: #c8d8e8 !important;
  text-decoration: none !important;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  border-left: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  background: none !important;
}
.hm-item:hover {
  color: var(--gold) !important;
  border-left-color: var(--gold);
  background: rgba(0,180,204,0.07) !important;
  text-decoration: none !important;
}
.hm-sub {
  font-size: 0.8rem !important;
  padding: 0.55rem 1.5rem 0.55rem 2rem !important;
  color: #7a9ab0 !important;
}
.hm-sub:hover { color: var(--gold) !important; }
.hm-divider {
  height: 1px;
  background: var(--card-border);
  margin: 0.5rem 1.5rem;
  flex-shrink: 0;
}

/* Completely kill default nav on landing page */
body.landing .site-nav { display: none !important; }

/* ── SPECIES SECTION (homepage) ── */
.species-section {
  position: relative;
  z-index: 2;
  background: #091825;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: 4rem 1.25rem;
}
.species-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.species-header {
  margin-bottom: 2.5rem;
}
.species-eyebrow-label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--coral);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.species-sub {
  font-size: 0.9rem;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0.5rem auto 0;
  line-height: 1.65;
}
.species-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: left;
}
.species-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.species-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(0,180,204,0.12);
  text-decoration: none !important;
}
.species-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  background: rgba(0,0,0,0);
  padding: 0.5rem;
}
.species-card-body {
  padding: 0.6rem 0.85rem 0.85rem;
  border-top: 1px solid var(--card-border);
}
.species-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: var(--offwhite);
  margin-bottom: 2px;
}
.species-card-sub {
  font-size: 0.68rem;
  color: var(--text-dim);
}
@media (max-width: 680px) {
  .species-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}

/* ── Map page -- kill all background imagery ── */
body.map-page {
  background: #050e1c !important;
  background-image: none !important;
}
body.map-page::before,
body.map-page::after {
  display: none !important;
  content: none !important;
}
body.map-page .chart-grid,
body.map-page .nautical-bg,
body.map-page .wave-container,
body.map-page .hero-wave {
  display: none !important;
}

/* Wordmark display fix -- source image has black border, scale to show logo only */
img[src*="wordmark.png"] {
  height: 52px !important;
  width: auto !important;
  /* Scale up so the logo fills the display area */
}


/* ── Global nautical chart background (all pages except map) ── */
body:not(.map-page) {
  background-image: url('/static/hero_bg.jpg') !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  background-position: center !important;
}
body:not(.map-page)::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(5, 14, 28, 0.88);
  z-index: 0;
  pointer-events: none;
}
body:not(.map-page) > * {
  position: relative;
  z-index: 1;
}

/* ── Wordmark image replaces text in header ── */
.wordmark {
  display: inline-flex;
  align-items: center;
}
.wordmark-text { display: none; }
.wordmark-img {
  height: 40px;
  width: auto;
  vertical-align: middle;
}
