/*
 * Newcastle & Lake Macquarie Fishing Guide
 * Mobile-first responsive CSS
 */

/* CSS Custom Properties */
:root {
  /* Ocean-inspired colors */
  --color-ocean-deep: #0c4a6e;
  --color-ocean: #0369a1;
  --color-ocean-light: #38bdf8;
  --color-sand: #fef3c7;
  --color-sand-dark: #f59e0b;

  /* Neutral palette */
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-border: #e2e8f0;
  --color-text: #1e293b;
  --color-text-muted: #64748b;

  /* Status colors */
  --color-peak: #22c55e;
  --color-good: #eab308;
  --color-slow: #94a3b8;

  /* Spacing scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;

  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0f172a;
    --color-surface: #1e293b;
    --color-border: #334155;
    --color-text: #f1f5f9;
    --color-text-muted: #94a3b8;
  }
}

/* Utility: Screen reader only (visually hidden, SEO/a11y visible) */
.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;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  padding-top: 60px; /* For fixed nav */
  /* iOS safe area support */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  overflow-x: hidden; /* Prevent horizontal scroll */
  padding-bottom: env(safe-area-inset-bottom);
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight on iOS */
}

/* Ensure minimum touch target size (44px per Apple HIG) */
button, [role="button"], .clickable {
  min-height: 44px;
  min-width: 44px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-ocean);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-ocean-light);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text);
}

.logo-icon {
  font-size: var(--text-2xl);
}

.logo-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-tagline {
  display: none;
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-muted);
  opacity: 0.8;
}

@media (min-width: 640px) {
  .logo-tagline {
    display: block;
  }
}

.nav-links {
  display: none;
  gap: var(--space-lg);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: var(--space-sm) var(--space-md);
  min-height: 44px; /* Touch target */
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-ocean);
  border-bottom-color: var(--color-ocean);
}

.nav-toggle {
  display: none; /* Hidden for now - bottom nav handles mobile navigation */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: var(--space-sm);
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

/* Mobile Navigation */
.mobile-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  min-height: 64px;
  height: calc(64px + env(safe-area-inset-bottom));
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-nav-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 64px; /* Full nav height for touch */
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
  padding: var(--space-sm) 0;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}

.mobile-nav-link .nav-icon {
  width: 24px;
  height: 24px;
}

.mobile-nav-link.active {
  color: var(--color-ocean);
}

.mobile-nav-link:active {
  transform: scale(0.95);
}

/* Desktop nav visibility */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .nav-toggle,
  .mobile-nav {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

/* Sections */
.section {
  padding: var(--space-xl) 0;
  scroll-margin-top: 60px; /* Account for fixed nav */
}

/* Only last section needs extra padding for mobile nav */
.section:last-of-type {
  padding-bottom: 100px;
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-2xl) 0;
  }

  .section:last-of-type {
    padding-bottom: var(--space-2xl);
  }
}

.section-alt {
  background: var(--color-surface);
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.section-subtitle {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.section-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.section-legend-left {
  justify-content: flex-start;
  margin-bottom: var(--space-md);
}

.legend-label {
  font-weight: 500;
  margin-right: var(--space-xs);
}

.legend-badge {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.legend-badge.legend-prime {
  background: var(--color-peak);
  color: white;
}

.legend-badge.legend-solid {
  background: #eab308;
  color: white;
}

.legend-badge.legend-peak {
  background: var(--color-peak);
  color: white;
}

.legend-badge.legend-active {
  background: rgba(3, 105, 161, 0.1);
  color: var(--color-ocean);
}

.legend-desc {
  opacity: 0.7;
}

.legend-sep {
  opacity: 0.4;
}

@media (min-width: 768px) {
  .section-title {
    font-size: var(--text-3xl);
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--color-ocean-deep) 0%, var(--color-ocean) 100%);
  color: white;
  min-height: auto;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

/* Area Selector */
.area-selector {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.area-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  min-height: 48px; /* Touch target */
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-sm);
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.area-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.area-btn.active {
  background: white;
  border-color: white;
  color: var(--color-ocean-deep);
}

.hero-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.time-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.15);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  margin-bottom: var(--space-md);
}

.time-icon {
  font-size: var(--text-lg);
}

.hero-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.hero-title .highlight {
  color: var(--color-sand);
}

.hero-subtitle {
  opacity: 0.9;
  font-size: var(--text-lg);
}

/* Live Conditions Bar */
.conditions-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}

@media (min-width: 640px) {
  .conditions-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

.condition-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

.condition-icon {
  font-size: var(--text-xl);
}

.condition-label {
  font-size: var(--text-xs);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.condition-value {
  font-size: var(--text-sm);
  font-weight: 600;
}

/* Activity Rating Meter */
.activity-rating {
  grid-column: span 2;
}

@media (min-width: 640px) {
  .activity-rating {
    grid-column: span 1;
  }
}

.activity-meter {
  width: 100%;
  max-width: 120px;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 4px;
}

.activity-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef4444 0%, #eab308 50%, #22c55e 100%);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
  width: 60%;
}

/* Live indicator */
/* Wind Advisory Banner */
.wind-advisory {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(234, 179, 8, 0.15);
  border-left: 4px solid #eab308;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  font-size: var(--text-sm);
}

.wind-advisory.hidden {
  display: none;
}

.wind-advisory-icon {
  font-size: var(--text-lg);
}

.wind-advisory-text {
  color: var(--color-text);
  line-height: 1.4;
}

/* Creek Mouth Alert (after rain) - inline within hero box */
.creek-mouth-alert {
  margin-top: var(--space-xs);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
}

.creek-mouth-alert.hidden {
  display: none;
}

/* Consolidated Hero Insight — single line replacing 3 separate alert banners */
.hero-insight {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(20, 184, 166, 0.12);
  border-left: 3px solid rgba(20, 184, 166, 0.5);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.hero-insight.hidden {
  display: none;
}

.hero-insight-icon {
  flex-shrink: 0;
  font-size: var(--text-base);
}

.hero-insight-text {
  line-height: 1.4;
}

/* Wind exposure badge on spots - EXPOSED (warning) */
.condition-badge.condition-wind-exposed {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Wind exposure badge on spots - SHELTERED (good) */
.condition-badge.condition-wind-sheltered {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Legacy wind class (backwards compat) */
.condition-badge.condition-wind {
  background: rgba(249, 115, 22, 0.15);
  color: #ea580c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

/* Activity meter animation on load */
@keyframes fill-meter {
  from { width: 0%; }
}

.activity-fill {
  animation: fill-meter 0.8s ease-out;
}

/* Fishing Windows */
.fishing-windows {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}


/* BEST BET Card - The hero recommendation — THE answer */
.best-bet-card {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.97) 0%, rgba(251, 191, 36, 0.92) 100%);
  border: none;
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  margin-bottom: var(--space-lg);
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.best-bet-label {
  display: inline-block;
  background: var(--color-ocean-deep);
  color: white;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.best-bet-species {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-ocean-deep);
  margin-bottom: var(--space-xs);
}

.best-bet-location {
  font-size: var(--text-xl);
  color: var(--color-ocean-deep);
  margin-bottom: var(--space-sm);
}

.best-bet-why {
  font-size: var(--text-sm);
  color: #92400e; /* Amber-800: high contrast on gold background */
  font-weight: 600;
  margin-bottom: var(--space-xs);
  letter-spacing: 0.02em;
}

.best-bet-technique {
  font-size: var(--text-sm);
  color: var(--color-ocean-deep);
  font-style: italic;
  margin-bottom: var(--space-md);
}

.best-bet-conditions {
  font-size: var(--text-sm);
  color: var(--color-ocean-deep);
  margin-bottom: var(--space-lg);
}

.best-bet-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* Primary: Navigate button - ONE TAP to Google Maps */
.best-bet-navigate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: var(--color-ocean-deep);
  color: white;
  font-size: var(--text-base);
  font-weight: 600;
  padding: var(--space-md) var(--space-xl);
  min-height: 52px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.best-bet-navigate:hover,
.best-bet-navigate:active {
  background: var(--color-ocean);
  color: white;
  transform: scale(1.02);
}

.best-bet-navigate:active {
  transform: scale(0.98);
}

/* Secondary: More info */
.best-bet-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-ocean-deep);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-sm) var(--space-lg);
  min-height: 44px;
  border: 2px solid var(--color-ocean-deep);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.best-bet-details:hover,
.best-bet-details:active {
  background: var(--color-ocean-deep);
  color: white;
}

/* Clickable species/location names */
.best-bet-species-link,
.best-bet-location-link {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  padding: 0;
  transition: opacity var(--transition-fast);
}

.best-bet-species-link {
  color: var(--color-ocean-deep);
  font-size: var(--text-2xl);
  font-weight: 700;
}

.best-bet-location-link {
  color: var(--color-ocean-deep);
  font-weight: 600;
}

.best-bet-species-link:hover,
.best-bet-location-link:hover {
  opacity: 0.8;
  text-decoration-style: solid;
}

/* Primary action - How to catch */
.best-bet-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: var(--color-ocean-deep);
  color: white;
  font-size: var(--text-base);
  font-weight: 600;
  padding: var(--space-md) var(--space-lg);
  min-height: 48px;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.best-bet-primary:hover,
.best-bet-primary:active {
  background: var(--color-ocean);
  transform: scale(1.02);
}

.best-bet-primary:active {
  transform: scale(0.98);
}

/* Secondary action - About the spot */
.best-bet-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: transparent;
  color: var(--color-ocean-deep);
  font-size: var(--text-base);
  font-weight: 500;
  padding: var(--space-md) var(--space-lg);
  min-height: 48px;
  border: 2px solid var(--color-ocean-deep);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.best-bet-secondary:hover,
.best-bet-secondary:active {
  background: var(--color-ocean-deep);
  color: white;
}

/* Small navigate link at bottom */
.best-bet-navigate-small {
  display: inline-block;
  margin-top: var(--space-md);
  color: var(--color-ocean-deep);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.best-bet-navigate-small:hover {
  color: var(--color-ocean);
  text-decoration: underline;
}

/* Fish Shop Fallback - Plan B when conditions are slow */
.fish-shop-fallback {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px dashed var(--color-ocean-deep);
  text-align: center;
}

.fish-shop-header {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-ocean-deep);
  margin-bottom: var(--space-xs);
}

.fish-shop-intro {
  font-size: var(--text-sm);
  color: #92400e;
  margin-bottom: var(--space-md);
}

/* Fish shop list - single column for selected area */
.fish-shop-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
  text-align: left;
}

/* Legacy: keep for backwards compat */
.fish-shop-regions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
  text-align: left;
}

@media (max-width: 480px) {
  .fish-shop-regions {
    grid-template-columns: 1fr;
  }
}

.fish-shop-region {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.fish-shop-region-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-ocean-deep);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.fish-shop-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  background: rgba(12, 74, 110, 0.1);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--transition-fast);
}

.fish-shop-item:hover {
  background: rgba(12, 74, 110, 0.2);
}

.fish-shop-item.closed {
  opacity: 0.5;
}

.fish-shop-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ocean-deep);
}

.fish-shop-area {
  font-size: var(--text-xs);
  color: #92400e;
}

.fish-shop-disclaimer {
  font-size: var(--text-xs);
  color: var(--color-ocean-deep);
  font-style: italic;
  margin-top: var(--space-sm);
}

/* Fish Activity - At-a-glance fishing conditions */
.fish-activity {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
  text-align: center;
}

/* Live indicator - inline subtle badge */
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.4);
  padding: 3px 8px;
  border-radius: 12px;
}

.live-dot {
  width: 5px;
  height: 5px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulse-live 1.5s ease-in-out infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.activity-separator {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

.activity-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.activity-badge {
  font-size: 1.75rem;
  line-height: 1;
}

.activity-label {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Color variants for activity rating */
.fish-activity.excellent .activity-label { color: #22c55e; }
.fish-activity.good .activity-label { color: #a3e635; }
.fish-activity.fair .activity-label { color: #fbbf24; }
.fish-activity.slow .activity-label { color: #94a3b8; }

/* Context text after rating (e.g., "– great time to go") */
.activity-context {
  font-size: var(--text-sm);
  font-weight: 400;
  opacity: 0.85;
}

/* New here link - simple, centered, mobile-friendly tap target */
.new-here-link {
  display: block;
  text-align: center;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-lg);
  min-height: 44px;
  line-height: 1.5;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.new-here-link:hover,
.new-here-link:active {
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

/* Pressure alert hides the action line below it — only one of the two shows */
.pressure-alert:not(.hidden) ~ .activity-next {
  display: none;
}

.pressure-alert {
  background: rgba(20, 184, 166, 0.15);
  border-left: 3px solid rgba(20, 184, 166, 0.55);
  padding: 6px 10px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-sm);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.pressure-alert.hidden {
  display: none;
}

.hero-meta-line {
  font-size: var(--text-xs);
  opacity: 0.75;
  margin-bottom: var(--space-xs);
}

.hero-meta-line:empty {
  display: none;
}


/* Legacy: activity-rank (replaced by activity-context) */
.activity-rank {
  font-size: var(--text-sm);
  font-weight: 400;
  opacity: 0.9;
}

.activity-factors {
  font-size: var(--text-sm);
  opacity: 0.92;
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.activity-next {
  font-size: var(--text-xs);
  opacity: 0.9;
  margin-bottom: var(--space-sm);
}

.activity-next:empty {
  display: none;
}

.activity-time {
  font-size: var(--text-xs);
  opacity: 0.6;
}


@media (min-width: 768px) {
  .hero-title {
    font-size: var(--text-4xl);
  }
}

/* Filter Bar */
.filter-bar {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
  -webkit-overflow-scrolling: touch;
}

.filter-btn {
  flex-shrink: 0;
  padding: var(--space-sm) var(--space-md);
  min-height: 44px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.filter-btn:hover {
  border-color: var(--color-ocean);
  color: var(--color-ocean);
}

.filter-btn.active {
  background: var(--color-ocean);
  border-color: var(--color-ocean);
  color: white;
}

/* Spots Section - starts "reference" group */
#spots {
  background: var(--color-bg);
  padding-top: var(--space-xl);
}

@media (min-width: 768px) {
  #spots {
    padding-top: var(--space-2xl);
  }
}

/* Forecast Card Wrapper - light glass effect, not heavy */
.planner-dual-entry {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  text-align: center;
  overflow: hidden; /* Prevent any child overflow */
  width: 100%;
  box-sizing: border-box;
}

.forecast-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

.forecast-subtitle {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-lg);
}

.forecast-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

/* Mobile: tighter layout */
@media (max-width: 480px) {
  .planner-dual-entry {
    padding: var(--space-md);
  }

  .forecast-grid {
    gap: var(--space-xs);
  }
}

.forecast-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  border: 1px solid rgba(255, 255, 255, 0.5);
  flex: 1 1 0;
  min-width: 70px;
  max-width: 160px;
  overflow: hidden;
}

@media (max-width: 480px) {
  .forecast-card {
    padding: var(--space-xs);
    min-width: 60px;
  }

  .forecast-day,
  .forecast-label,
  .forecast-stars {
    font-size: 0.65rem;
  }
}

/* Very small screens - even tighter */
@media (max-width: 360px) {
  .planner-dual-entry {
    padding: var(--space-sm);
  }

  .forecast-card {
    padding: 4px;
    min-width: 50px;
  }

  .forecast-day,
  .forecast-label,
  .forecast-stars {
    font-size: 0.6rem;
  }

  .forecast-row-prime {
    margin: 2px -2px;
    padding: 2px;
  }

  .forecast-row {
    gap: 2px;
  }
}

@media (prefers-color-scheme: dark) {
  .planner-dual-entry {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.12);
  }

  .forecast-card {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
  }

  .forecast-day {
    color: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.15);
  }

  .forecast-label {
    color: rgba(255, 255, 255, 0.8);
  }

  .forecast-stars {
    color: #fbbf24;
  }

  .forecast-row-prime {
    background: rgba(34, 197, 94, 0.25);
  }

  .forecast-row-prime .forecast-label {
    color: #4ade80;
    font-weight: 600;
  }

  .forecast-row-prime .forecast-stars {
    color: #4ade80;
  }

  .forecast-row-muted {
    opacity: 0.55;
  }

  .forecast-row-muted .forecast-label {
    color: rgba(255, 255, 255, 0.6);
  }

  .forecast-passed {
    opacity: 0.4;
  }
}

/* === Dual-entry planner === */
.planner-entry-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  justify-content: center;
}

.planner-entry-option {
  flex: 1;
  max-width: 180px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}
.planner-entry-option:hover,
.planner-entry-option:active {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}
.planner-entry-option.active {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
}

.entry-icon { display: block; font-size: 1.5rem; margin-bottom: var(--space-xs); }
.entry-title { display: block; color: white; font-weight: 700; font-size: var(--text-base); }
.entry-desc { display: block; color: rgba(255, 255, 255, 0.7); font-size: var(--text-xs); margin-top: 2px; }
.entry-divider { color: rgba(255, 255, 255, 0.5); font-style: italic; font-size: var(--text-sm); flex-shrink: 0; }

.forecast-day {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-ocean-deep);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  padding-bottom: var(--space-xs);
  margin-bottom: var(--space-xs);
  border-bottom: 1px solid rgba(14, 116, 144, 0.15);
}

/* Time period rows (Morning/Arvo/Evening) */
.forecast-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

.forecast-label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-ocean);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.forecast-stars {
  font-size: var(--text-xs);
  color: var(--color-good);
  letter-spacing: 0;
}

/* Prime rows - STAND OUT */
.forecast-row-prime {
  background: rgba(34, 197, 94, 0.15);
  margin: 2px -4px;
  padding: 4px 4px;
  border-radius: var(--radius-sm);
}

@media (min-width: 481px) {
  .forecast-row-prime {
    margin: 2px -8px;
    padding: 4px 8px;
  }
}

.forecast-row-prime .forecast-label {
  color: var(--color-peak);
  font-weight: 600;
}

.forecast-row-prime .forecast-stars {
  color: var(--color-peak);
}

/* Muted rows - de-emphasized */
.forecast-row-muted {
  opacity: 0.45;
}

.forecast-row-muted .forecast-stars {
  color: var(--color-text-muted);
}

/* Passed windows */
.forecast-passed {
  opacity: 0.3;
}

.forecast-passed .forecast-label {
  text-decoration: line-through;
}

.forecast-passed .forecast-stars {
  color: var(--color-text-muted);
}

/* Species Grid */
.species-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.species-section-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-peak);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.species-grid-inner {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .species-grid-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .species-grid-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Species Section Intro */
.species-intro {
  margin-bottom: var(--space-lg);
}

.species-intro-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 var(--space-xs) 0;
}

.species-intro-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-md) 0;
}

.species-intro-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.species-intro-legend .legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.species-intro-legend .legend-badge {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.species-intro-legend .legend-peak {
  background: var(--color-peak);
  color: white;
}

.species-intro-legend .legend-active {
  background: rgba(3, 105, 161, 0.1);
  color: var(--color-ocean);
}

/* Legacy */
.species-section-subtitle {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  opacity: 0.75;
  margin: 0 0 var(--space-sm) 0;
  font-style: italic;
}

/* Species Grid Expander */
.species-grid-expander {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-md);
  margin-top: var(--space-md);
  min-height: 48px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.species-grid-expander:hover,
.species-grid-expander:active {
  background: var(--color-surface);
  border-color: var(--color-ocean);
  color: var(--color-ocean);
}

.species-grid-expander.expanded {
  margin-bottom: var(--space-md);
}

.species-grid-collapsed {
  display: none;
}

.species-grid-collapsed.expanded {
  display: block;
  animation: slideDown 0.2s ease;
}

.species-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  -webkit-tap-highlight-color: transparent;
}

.species-card:hover {
  border-color: var(--color-ocean);
  box-shadow: var(--shadow-md);
}

/* Touch feedback for mobile */
.species-card:active {
  transform: scale(0.98);
  box-shadow: var(--shadow-sm);
}

.species-card.peak .species-status {
  background: var(--color-peak);
}

.species-card.good .species-status {
  background: var(--color-good);
}

.species-card.slow .species-status {
  background: var(--color-slow);
}

.species-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.species-icon {
  font-size: var(--text-3xl);
}

.species-name {
  font-weight: 600;
  font-size: var(--text-lg);
}

.species-status {
  font-size: var(--text-xs);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  color: white;
  margin-left: auto;
}

.species-why-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: var(--space-xs);
  opacity: 0.85;
}

.species-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.species-time {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.time-tag {
  font-size: var(--text-xs);
  padding: 2px 8px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
}

.time-tag-active {
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 500;
  border: 1px solid var(--color-border);
}

/* Murky water expanded time tag */
.time-tag-murky {
  background: rgba(234, 179, 8, 0.15);
  color: #ca8a04;
  font-weight: 500;
  border: 1px dashed rgba(234, 179, 8, 0.4);
}

/* Species card actions */
.species-actions {
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
}

.species-details-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xs) var(--space-md);
  min-height: 36px;
  background: var(--color-ocean);
  color: white;
  font-size: var(--text-sm);
  font-weight: 500;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.species-details-btn:hover,
.species-details-btn:active {
  background: var(--color-ocean-deep);
}

/* Active species indicator */
.species-active {
  border-color: var(--color-ocean);
  box-shadow: 0 0 0 2px rgba(3, 105, 161, 0.15);
}

.species-active-badge {
  display: inline-block;
  font-size: var(--text-xs);
  padding: 2px 8px;
  background: rgba(3, 105, 161, 0.1);
  color: var(--color-ocean);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
  margin-right: var(--space-xs);
  font-weight: 500;
}

.species-starter-badge {
  display: inline-block;
  font-size: var(--text-xs);
  padding: 2px 8px;
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

/* Legend starter badge */
.legend-starter {
  background: #a855f7;
  color: white;
}

/* Species clarity suitability badges */
.species-clarity-badge {
  display: inline-block;
  font-size: var(--text-xs);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
  margin-left: var(--space-xs);
  font-weight: 500;
}

.species-clarity-badge.clarity-boost {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}

.species-clarity-badge.clarity-penalty {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

/* Species meta info */
.species-meta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.species-spots {
  color: var(--color-ocean);
  font-weight: 500;
}

.species-regs {
  opacity: 0.8;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.modal.active {
  display: flex;
}

/* Map zoom controls - hide on mobile (pinch-to-zoom works) */
@media (max-width: 767px) {
  .leaflet-control-zoom {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .leaflet-control-zoom {
    z-index: 800 !important;
  }
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: scroll; /* Force scrollbar for iOS */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-size: var(--text-2xl);
  color: var(--color-text-muted);
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  z-index: 1;
  -webkit-tap-highlight-color: transparent;
  background: var(--color-bg);
}

.modal-close:hover,
.modal-close:active {
  background: var(--color-border);
  color: var(--color-text);
}

.modal-close:active {
  transform: scale(0.95);
}

.modal-body {
  padding: var(--space-xl);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

/* Species clarity suitability info in modal */
.species-clarity-info {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  margin-bottom: var(--space-md);
}

.species-clarity-info.clarity-good {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.species-clarity-info.clarity-warning {
  background: rgba(234, 179, 8, 0.1);
  color: #ca8a04;
  border: 1px solid rgba(234, 179, 8, 0.2);
}

.species-clarity-info .clarity-icon {
  font-weight: 700;
}

.modal-icon {
  font-size: 3rem;
}

.modal-title {
  font-size: var(--text-2xl);
  font-weight: 700;
}

.modal-section {
  margin-bottom: var(--space-lg);
}

.modal-section h4 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.modal-section p,
.modal-section ul {
  color: var(--color-text);
}

.modal-section ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.modal-section li {
  background: var(--color-bg);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}

.regulation-box {
  background: var(--color-bg);
  border-left: 3px solid var(--color-ocean);
  padding: var(--space-md);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.regulation-box span {
  display: block;
  font-size: var(--text-sm);
}

/* Modal Description */
.modal-desc {
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  font-size: var(--text-base);
  line-height: 1.6;
}

/* Modal CTA (Navigate button) */
.modal-cta {
  margin-bottom: var(--space-lg);
}

.modal-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-ocean);
  color: white;
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.modal-nav-btn:hover {
  background: var(--color-ocean-deep);
  color: white;
  transform: scale(1.02);
}

/* Modal Grid (quick info cards) */
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

@media (min-width: 480px) {
  .modal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.modal-info-card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.modal-info-card h4 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.info-value {
  font-size: var(--text-sm);
  color: var(--color-text);
  margin: 0;
}

/* Info Chips (tackle, times) */
.info-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.info-chip {
  display: inline-block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--color-text);
}

/* Technique text */
.technique-text {
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
}

/* Modal Tips */
.modal-tips {
  background: var(--color-sand);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.modal-tips h4 {
  color: var(--color-ocean-deep);
}

.modal-tips p {
  font-size: var(--text-sm);
  color: var(--color-ocean-deep);
  margin: 0;
}

/* Enhanced Modal - Tackle Sections */
.tackle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.tackle-item {
  font-size: var(--text-sm);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--color-border);
}

.tackle-item strong {
  color: var(--color-ocean);
}

.tackle-tip {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: var(--space-sm);
  padding: var(--space-sm);
  background: var(--color-sand);
  border-radius: var(--radius-sm);
}

.lure-list, .bait-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.lure-item, .bait-item {
  font-size: var(--text-sm);
  padding: var(--space-sm);
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-ocean);
}

.lure-item strong, .bait-item strong {
  color: var(--color-text);
}

.lure-note, .bait-note {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

.rigging-steps {
  padding-left: var(--space-lg);
  margin: 0;
}

.rigging-steps li {
  font-size: var(--text-sm);
  padding: var(--space-xs) 0;
  color: var(--color-text);
}

.pro-tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pro-tips-list li {
  font-size: var(--text-sm);
  padding: var(--space-sm);
  padding-left: var(--space-lg);
  position: relative;
  border-bottom: 1px solid var(--color-border);
}

.pro-tips-list li:last-child {
  border-bottom: none;
}

.pro-tips-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-peak);
  font-weight: bold;
}

.modal-notes {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.modal-notes p {
  font-size: var(--text-sm);
  margin: 0;
}

/* Quick Setup - Always visible at top of modal */
.quick-setup {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.quick-grid-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.quick-item-compact {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quick-item-compact .quick-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quick-item-compact .quick-value {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.quick-technique-compact {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  margin: 0;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
}

/* Modal Spot CTA - Navigate button */
.modal-spot-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-sand);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  gap: var(--space-md);
}

.modal-spot-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.modal-spot-label {
  font-size: var(--text-xs);
  color: var(--color-ocean-deep);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

.modal-spot-name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-ocean-deep);
  cursor: pointer;
}

.modal-spot-name:hover {
  text-decoration: underline;
}

.modal-spot-navigate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  min-height: 44px;
  background: var(--color-ocean-deep);
  color: white;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.modal-spot-navigate:hover,
.modal-spot-navigate:active {
  background: var(--color-ocean);
  color: white;
}

/* Compact regulations */
.modal-regs-compact {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-sm) var(--space-md);
  background: rgba(234, 179, 8, 0.1);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

/* Collapsible Sections */
.collapsible-section {
  margin-bottom: var(--space-sm);
}

.collapsible-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  padding: var(--space-md);
  min-height: 48px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.collapsible-toggle:hover,
.collapsible-toggle:active {
  background: var(--color-surface);
  border-color: var(--color-ocean);
  color: var(--color-ocean);
}

.collapsible-toggle.expanded {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-bottom: none;
  background: var(--color-surface);
  color: var(--color-ocean);
}

.collapsible-content {
  display: none;
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: var(--space-md);
  background: var(--color-surface);
}

.collapsible-content.expanded {
  display: block;
  animation: slideDown 0.2s ease;
}

/* Compact modal notes */
.modal-notes-compact {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-top: var(--space-md);
}

.modal-notes-compact p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

/* Modal Tabs - LEGACY (keeping for backwards compat) */
.modal-tabs {
  display: flex;
  gap: var(--space-xs);
  margin: var(--space-md) 0;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: var(--space-xs);
}

.modal-tab {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  min-height: 44px; /* Touch target */
  background: transparent;
  border: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.modal-tab:hover,
.modal-tab:active {
  color: var(--color-ocean);
  background: var(--color-sand);
}

.modal-tab:active {
  transform: scale(0.98);
}

.modal-tab.active {
  color: var(--color-ocean);
  background: var(--color-sand);
}

.modal-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-ocean);
}

/* Tab Content */
.modal-tab-content {
  min-height: 200px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Quick Start Tab Styles */
.quick-section {
  margin-bottom: var(--space-lg);
}

.quick-section h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ocean);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.quick-item {
  background: var(--color-bg);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quick-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quick-value {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.quick-recommendation {
  background: var(--color-sand);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-ocean);
}

.quick-pick {
  font-size: var(--text-base);
  margin-bottom: var(--space-xs);
}

.quick-pick:last-child {
  margin-bottom: 0;
}

.pick-label {
  font-weight: 600;
  color: var(--color-ocean);
}

/* Clarity tackle adjustment tip */
.clarity-tackle-tip {
  margin-top: var(--space-sm);
  padding: var(--space-sm);
  background: rgba(234, 179, 8, 0.1);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  border-left: 3px solid #ca8a04;
}

.clarity-tackle-tip .clarity-label {
  font-weight: 600;
  color: #ca8a04;
  display: block;
  margin-bottom: 2px;
}

.clarity-tackle-tip .clarity-advice {
  display: block;
  color: var(--color-text);
  margin-bottom: 4px;
}

.clarity-tackle-tip .clarity-colors {
  display: block;
  font-style: italic;
  color: var(--color-text-muted);
}

.quick-spot {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-sm) 0;
}

.quick-spot-none {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  margin: 0;
}

/* Google Maps text link (species modal) */
.quick-maps-link {
  display: inline-block;
  color: var(--color-ocean);
  font-size: var(--text-sm);
  text-decoration: none;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

.quick-maps-link:hover {
  color: var(--color-ocean-deep);
  text-decoration: underline;
}

.quick-technique {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  margin: 0;
  padding: var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius-md);
}

.quick-regs {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-md);
  background: rgba(234, 179, 8, 0.1);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

/* Location Modal Styles */
.modal-content-location {
  max-width: 500px;
}

.location-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-md);
  padding-right: var(--space-xl);
}

.location-modal-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.location-modal-area {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--color-bg);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.location-modal-section {
  margin-bottom: var(--space-lg);
}

.location-section-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 var(--space-sm) 0;
}

.location-description {
  font-size: var(--text-base);
  color: var(--color-text);
  margin: 0;
  line-height: 1.5;
}

.location-species-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.location-species-card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  min-height: 52px; /* Good tap target */
  background: var(--color-bg);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  -webkit-tap-highlight-color: transparent;
}

.location-species-card:hover,
.location-species-card:active {
  background: var(--color-sand);
  border-color: var(--color-ocean-light);
}

.location-species-card:active {
  transform: scale(0.98);
}

.location-species-card .species-icon {
  font-size: var(--text-lg);
}

.location-species-card .species-name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.location-technique-section {
  background: var(--color-sand);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-ocean);
}

.location-technique-section .location-section-title {
  color: var(--color-ocean-deep);
  margin-bottom: var(--space-xs);
}

.location-technique-tip {
  font-size: var(--text-sm);
  color: var(--color-text);
  margin: 0;
  line-height: 1.5;
}

.location-conditions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.location-condition-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-sm);
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  text-align: center;
}

.location-condition-item .condition-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.location-condition-item .condition-value {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.location-wind-warning {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  margin-bottom: var(--space-md);
  border-left: 3px solid #dc2626;
}

.location-wind-good {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  margin-bottom: var(--space-md);
  border-left: 3px solid #16a34a;
}

.location-signal-neutral {
  background: rgba(234, 179, 8, 0.1);
  color: #ca8a04;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  margin-bottom: var(--space-md);
  border-left: 3px solid #ca8a04;
}

.location-creek-alert {
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-primary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  margin-bottom: var(--space-md);
  border-left: 3px solid var(--color-primary);
}

.location-modal-actions {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* Primary action: Show on map */
.location-show-map-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: var(--space-md);
  min-height: 52px; /* Good touch target */
  background: var(--color-ocean);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.location-show-map-btn:hover,
.location-show-map-btn:active {
  background: var(--color-ocean-deep);
}

.location-show-map-btn:active {
  transform: scale(0.98);
}

/* Secondary: Navigate with Google Maps */
.location-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  text-decoration: none;
  padding: var(--space-md);
  min-height: 44px; /* Touch target */
  transition: color var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.location-nav-link:hover {
  color: var(--color-ocean);
  text-decoration: underline;
}

.location-modal-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  margin: var(--space-md) 0 0 0;
}

/* Conditions Breakdown in Location Modal */
.conditions-breakdown {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.conditions-breakdown-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-sm);
}

.conditions-breakdown-label {
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
}

.conditions-breakdown-hint {
  font-size: var(--text-sm);
  color: var(--color-ocean);
  font-weight: 500;
}

.conditions-breakdown-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-sm) 0;
}

.conditions-breakdown-list li {
  font-size: var(--text-sm);
  color: var(--color-text);
  padding: 3px 0;
  padding-left: var(--space-md);
  position: relative;
  line-height: 1.5;
}

.conditions-breakdown-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-ocean);
}

.conditions-breakdown-badges {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

/* Location modal feature sections */
.location-feature-text {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.6;
  margin: 0 0 var(--space-sm) 0;
}

.location-depth {
  font-size: var(--text-sm);
  color: var(--color-ocean);
  margin: var(--space-sm) 0 0 0;
}

.location-hotspots,
.location-tips {
  list-style: none;
  padding: 0;
  margin: 0;
}

.location-hotspots li,
.location-tips li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--color-text);
}

.location-hotspots li::before {
  content: '📍';
  position: absolute;
  left: 0;
  font-size: var(--text-sm);
}

.location-tips li::before {
  content: '💡';
  position: absolute;
  left: 0;
  font-size: var(--text-sm);
}

.location-tips-section {
  background: var(--color-sand);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-left: calc(-1 * var(--space-md));
  margin-right: calc(-1 * var(--space-md));
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.location-tips-section .location-section-title {
  color: var(--color-ocean-deep);
}

.location-hazards {
  background: rgba(239, 68, 68, 0.08);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border-left: 3px solid #dc2626;
  margin-left: calc(-1 * var(--space-md));
  margin-right: calc(-1 * var(--space-md));
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.location-hazards .location-section-title {
  color: #dc2626;
}

.location-hazards-text {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.5;
  margin: 0;
}

/* Mobile adjustments for location modal */
@media (max-width: 480px) {
  .location-conditions {
    grid-template-columns: 1fr;
  }

  .location-modal-header {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .location-modal-area {
    align-self: flex-start;
  }
}

/* Spots list mini */
.spots-list-mini {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.spot-chip {
  display: inline-flex;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  min-height: 44px; /* Apple HIG touch target */
  background: var(--color-bg);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.spot-chip-clickable {
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.spot-chip-clickable:hover,
.spot-chip-clickable:active {
  background: var(--color-ocean-light);
  color: var(--color-ocean-deep);
}

/* Active state for touch feedback */
.spot-chip-clickable:active {
  transform: scale(0.97);
}

.spot-chip-origin {
  background: var(--color-ocean-light);
  color: var(--color-ocean-deep);
  font-weight: 600;
}

/* Quick spot clickable */
.quick-spot-clickable {
  cursor: pointer;
  color: var(--color-ocean);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.quick-spot-clickable:hover {
  color: var(--color-ocean-deep);
  text-decoration-style: solid;
}

/* Modal spots list - show ALL spots for this species */
.quick-spots-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  max-height: 200px;
  overflow-y: auto;
}

.quick-spot-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.quick-spot-item.best-spot {
  background: rgba(255, 193, 7, 0.1);
  border-color: var(--color-sand);
}

.quick-spot-item.origin-spot {
  background: rgba(46, 125, 50, 0.1);
  border-color: #2e7d32;
}

.quick-spot-name {
  flex: 1;
  background: none;
  border: none;
  text-align: left;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ocean);
  cursor: pointer;
  padding: 0;
}

.quick-spot-name:hover {
  text-decoration: underline;
}

.quick-spot-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-ocean-deep);
  color: white;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: var(--text-base);
}

.quick-spot-nav:hover {
  background: var(--color-ocean);
}

/* BCF affiliate links */
.bcf-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  min-height: 32px; /* Slightly smaller but still tappable */
  min-width: 60px;
  background: #e63946;
  color: white;
  font-size: var(--text-xs);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  vertical-align: middle;
  -webkit-tap-highlight-color: transparent;
}

.bcf-link:hover,
.bcf-link:active {
  background: #c1121f;
  color: white;
}

.bcf-link:active {
  transform: scale(0.95);
}

/* Origin badge in quick tab */
.origin-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--color-ocean-light);
  color: var(--color-ocean-deep);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-sm);
  margin-left: var(--space-sm);
  vertical-align: middle;
}

/* Mobile adjustments for tabs */
@media (max-width: 480px) {
  .modal-tabs {
    gap: 4px;
  }

  .modal-tab {
    padding: var(--space-sm) var(--space-sm);
    min-height: 44px; /* Touch target */
    font-size: var(--text-sm);
    flex: 1; /* Equal width tabs */
  }

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

  .quick-regs {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* Map Section */
.map-filters {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
}

.map-filter {
  flex-shrink: 0;
  padding: var(--space-sm) var(--space-md);
  min-height: 44px; /* Touch target */
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base); /* Larger for readability on mobile */
  color: var(--color-text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  /* Custom dropdown arrow */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.map-filter:focus {
  outline: none;
  border-color: var(--color-ocean);
  box-shadow: 0 0 0 2px rgba(3, 105, 161, 0.2);
}

/* Map Legend */
.map-legend {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Unified Map Legend (below map) */
.map-legend-unified {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  font-size: var(--text-sm);
}

.map-legend-context {
  width: 100%;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-xs) 0;
  font-style: italic;
}

.legend-markers {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-muted);
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.legend-dot.green { background: #22c55e; }
.legend-dot.blue { background: #0369a1; }

.legend-diamond {
  width: 10px;
  height: 10px;
  background: #ef4444;
  transform: rotate(45deg);
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.legend-rock-status {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 500;
}

.legend-rock-status.safe { color: #22c55e; }
.legend-rock-status.caution { color: #eab308; }
.legend-rock-status.warning { color: #f97316; }
.legend-rock-status.danger { color: #ef4444; }

.legend-rock-status .swell-value {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

.legend-clarity-status {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 500;
}

.legend-clarity-status .clarity-value {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

@media (max-width: 480px) {
  .map-legend-unified {
    flex-direction: column;
    align-items: flex-start;
  }
}

.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-lg);
  border: 1px solid var(--color-border);
  /* Ensure map interactions work */
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

@media (min-width: 768px) {
  .map-container {
    height: 500px;
  }
}

.map {
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  /* Leaflet needs these for proper interaction */
  position: relative;
  z-index: 1;
}

/* Leaflet interaction fixes */
.leaflet-container {
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.leaflet-grab {
  cursor: grab;
}

.leaflet-dragging .leaflet-grab {
  cursor: grabbing;
}

.map-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-ocean);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto var(--space-sm);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Spots List */
.spots-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Spots Section Intro */
.spots-intro {
  margin-bottom: var(--space-lg);
}

.spots-intro-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 var(--space-xs) 0;
}

.spots-intro-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-md) 0;
}

.spots-intro-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.spots-intro-legend .legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.spots-intro-legend .legend-badge {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.spots-intro-legend .legend-prime {
  background: var(--color-peak);
  color: white;
}

.spots-intro-legend .legend-solid {
  background: var(--color-good);
  color: white;
}


.spots-grid {
  display: grid;
  gap: var(--space-md);
  grid-auto-rows: 1fr;
}

.spots-grid.top-spots {
  margin-bottom: var(--space-md);
}

/* Empty state for filters */
.spots-empty-state {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  color: var(--color-text-muted);
}

.spots-empty-state p {
  margin: 0;
  font-size: var(--text-base);
}

.spots-empty-state .spots-empty-hint {
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
}

/* Spots Expander */
.spots-expander-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-md);
  min-height: 48px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.spots-expander-toggle:hover,
.spots-expander-toggle:active {
  background: var(--color-surface);
  border-color: var(--color-ocean);
  color: var(--color-ocean);
}

.spots-expander-toggle.expanded {
  margin-bottom: var(--space-md);
}

.spots-expander-content {
  display: none;
}

.spots-expander-content.expanded {
  display: block;
  animation: slideDown 0.2s ease;
}

/* Spot Details Button - Primary (keeps user on site) */
.spot-details-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  min-height: 40px;
  background: var(--color-ocean);
  color: white;
  font-size: var(--text-sm);
  font-weight: 500;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.spot-details-btn:hover,
.spot-details-btn:active {
  background: var(--color-ocean-deep);
  color: white;
}

/* Spot Navigate Button - Secondary (exits to Google Maps) */
.spot-navigate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  min-height: 40px;
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.spot-navigate-btn:hover,
.spot-navigate-btn:active {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-ocean);
}

/* Legacy - keep for any remaining uses */
.spot-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  min-height: 40px;
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.spot-info-btn:hover,
.spot-info-btn:active {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-ocean);
}

@media (min-width: 768px) {
  .spots-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .spots-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.spot-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
  -webkit-tap-highlight-color: transparent;
  box-shadow: var(--shadow-sm);
}

/* Touch feedback for mobile */
.spot-card:active {
  transform: scale(0.98);
  background: var(--color-bg);
}

.spot-card:hover {
  border-color: var(--color-ocean);
  box-shadow: var(--shadow-sm);
}

.spot-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.spot-name {
  font-weight: 600;
  font-size: var(--text-base);
}

.spot-area {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  background: var(--color-bg);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.spot-why-hint {
  font-size: var(--text-sm);
  color: var(--color-ocean);
  font-weight: 500;
  margin-bottom: var(--space-sm);
  padding: 3px 8px;
  background: rgba(3, 105, 161, 0.08);
  border-radius: var(--radius-sm);
  display: inline-block;
}

.spot-species {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-bottom: var(--space-sm);
}

.spot-species-tag {
  font-size: var(--text-lg);
  position: relative;
  cursor: default;
}

/* Desktop tooltip for species icons */
@media (min-width: 768px) {
  .spot-species-tag::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background: var(--color-text);
    color: var(--color-bg);
    font-size: var(--text-xs);
    font-weight: 500;
    white-space: nowrap;
    border-radius: var(--radius-sm);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
    pointer-events: none;
    z-index: 10;
    margin-bottom: 4px;
  }

  .spot-species-tag:hover::after {
    opacity: 1;
    visibility: visible;
  }
}

.spot-meta {
  display: flex;
  gap: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  flex-grow: 1;
}

.spot-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
}

/* Google Maps text link (spot cards) */
.spot-maps-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ocean);
  font-size: var(--text-sm);
  text-decoration: none;
  padding: var(--space-xs);
  transition: color var(--transition-fast);
}

.spot-maps-link:hover {
  color: var(--color-ocean-deep);
  text-decoration: underline;
}

/* Calendar Grid */
.calendar-grid {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

@media (min-width: 640px) {
  .calendar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .calendar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .calendar-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.calendar-month {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: all var(--transition-base);
}

.calendar-month.current {
  border-color: var(--color-ocean);
  box-shadow: 0 0 0 2px rgba(3, 105, 161, 0.2);
}

.month-name {
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.month-species {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-xs);
}

.month-species-icon {
  font-size: var(--text-lg);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.month-species-icon:hover {
  transform: scale(1.2);
}

.peak-species .month-species-icon {
  filter: drop-shadow(0 0 2px var(--color-peak));
}

.calendar-legend {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Tackle Section */
.tackle-grid {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

@media (min-width: 640px) {
  .tackle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tackle-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tackle-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.tackle-title {
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.tackle-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.tackle-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.affiliate-link {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ocean);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition-fast);
}

.affiliate-link:hover {
  background: var(--color-ocean);
  color: white;
}

/* Ad Placeholders */
.ad-placeholder {
  background: var(--color-bg);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  margin-top: var(--space-xl);
}

.ad-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* FAQ Section - Snippet optimized */
.faq-section {
  background: var(--color-bg);
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  scroll-margin-top: 80px; /* Account for fixed nav (60px) + breathing room */
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: block;
  padding: var(--space-md) 0;
  font-weight: 600;
  font-size: var(--text-base);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: var(--text-xl);
  color: var(--color-ocean);
  font-weight: 400;
  transition: transform var(--transition-fast);
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0 0 var(--space-md) 0;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Spacing between paragraphs in multi-paragraph answers */
.faq-answer p {
  margin-bottom: var(--space-sm);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer strong {
  color: var(--color-text);
  font-weight: 600;
}

.faq-answer a {
  color: var(--color-ocean);
  text-decoration: none;
  font-weight: 500;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* FAQ table for regulations */
.faq-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-md);
  font-size: var(--text-sm);
}

.faq-table th,
.faq-table td {
  padding: var(--space-xs) var(--space-sm);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.faq-table th {
  color: var(--color-text);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.faq-table td {
  color: var(--color-text-muted);
}

.faq-table a {
  color: var(--color-ocean);
  font-weight: 500;
}

/* FAQ rating list for "New here?" section */
.faq-rating-list {
  margin: var(--space-sm) 0 var(--space-md) var(--space-md);
  padding: 0;
  list-style: none;
}

.faq-rating-list li {
  margin-bottom: var(--space-xs);
  color: var(--color-text-muted);
}

.faq-rating-list .rating-prime { color: #22c55e; }
.faq-rating-list .rating-solid { color: #84cc16; }
.faq-rating-list .rating-fair { color: #eab308; }
.faq-rating-list .rating-slow { color: #94a3b8; }

/* Back to top link in FAQ - mobile-friendly */
.back-to-top {
  display: block;
  margin-top: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  min-height: 48px; /* Mobile tap target */
  font-size: var(--text-base);
  font-weight: 600;
  text-align: center;
  color: var(--color-ocean);
  background: rgba(14, 116, 144, 0.1);
  border: 2px solid var(--color-ocean);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.back-to-top:hover,
.back-to-top:active {
  background: var(--color-ocean);
  color: white;
  text-decoration: none;
}

/* Footer */
.footer {
  background: var(--color-ocean-deep);
  color: white;
  padding: var(--space-2xl) 0;
  margin-bottom: 64px; /* Mobile nav */
}

@media (min-width: 768px) {
  .footer {
    margin-bottom: 0;
  }
}

.footer-content {
  display: grid;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand .logo-icon,
.footer-brand .logo-text {
  color: white;
}

.footer-tagline {
  font-size: var(--text-sm);
  opacity: 0.8;
  margin-top: var(--space-sm);
}

.footer-links h4,
.footer-legal h4 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
  opacity: 0.7;
}

.footer-links a,
.footer-legal a {
  display: block;
  color: white;
  opacity: 0.9;
  padding: var(--space-xs) 0;
}

.footer-links a:hover,
.footer-legal a:hover {
  opacity: 1;
}

.footer-legal p {
  font-size: var(--text-sm);
  opacity: 0.7;
  margin-bottom: var(--space-sm);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--space-lg);
  text-align: center;
  font-size: var(--text-sm);
  opacity: 0.7;
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-bottom a:hover {
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

/* FAQ table mobile */
@media (max-width: 767px) {
  .faq-table {
    font-size: var(--text-xs);
  }

  .faq-table th,
  .faq-table td {
    padding: var(--space-xs);
  }
}

/* Utility: Hide on mobile */
@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}

/* Utility: Hide on desktop */
@media (min-width: 768px) {
  .hide-desktop {
    display: none !important;
  }
}

/* Mobile touch improvements */
@media (max-width: 767px) {
  /* Modal improvements for mobile */
  .modal {
    padding: var(--space-sm);
  }

  .modal-content {
    max-height: 85vh;
    border-radius: var(--radius-lg);
  }

  .modal-body {
    padding: var(--space-md);
  }

  /* Larger close button on mobile for easier touch */
  .modal-close {
    width: 44px;
    height: 44px;
    font-size: var(--text-2xl);
    top: var(--space-sm);
    right: var(--space-sm);
    background: var(--color-bg);
  }

  /* Prevent modal content from extending beyond viewport */
  .modal-content-location {
    max-width: calc(100vw - var(--space-md));
  }

  /* Larger touch targets on mobile */
  .biting-card,
  .species-card,
  .spot-card {
    min-height: 80px;
  }

  .filter-btn {
    min-height: 44px;
    min-width: 44px;
  }

  .area-btn {
    min-height: 44px;
    padding: var(--space-sm) var(--space-md);
  }

  .best-spot-btn-primary,
  .best-spot-btn-secondary,
  .modal-nav-btn {
    min-height: 48px;
  }

  /* Prevent text selection on interactive elements */
  .biting-card,
  .species-card,
  .spot-card,
  .filter-btn,
  .area-btn {
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  /* Active states for touch feedback */
  .biting-card:active,
  .species-card:active,
  .spot-card:active {
    transform: scale(0.98);
  }

  .filter-btn:active,
  .area-btn:active {
    transform: scale(0.95);
  }

  /* Smoother scrolling on mobile */
  .filter-bar,
  .map-filters {
    scroll-snap-type: x mandatory;
    scroll-padding: var(--space-sm);
  }

  .filter-btn,
  .map-filter {
    scroll-snap-align: start;
  }
}


/* Leaflet Map Customisation */
.leaflet-container {
  font-family: var(--font-sans);
}

.leaflet-popup-content-wrapper {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Ensure popup appears above zoom controls on mobile */
.leaflet-popup-pane {
  z-index: 1000 !important;
}

.leaflet-popup-content {
  margin: var(--space-md);
  min-width: 200px;
}

/* Force light mode colors in popup (white background needs dark text) */
.map-popup h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: #1e293b; /* Force dark text on white popup */
}

.map-popup p {
  font-size: var(--text-sm);
  color: #64748b; /* Force muted text on white popup */
  margin-bottom: var(--space-xs);
}

/* Species chips - tappable to open species modal */
.popup-species-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-sm);
}

.popup-species-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  min-height: 40px; /* Touch target in compact popup */
  background: #f8fafc; /* Force light bg on white popup */
  border: 1px solid #e2e8f0; /* Force light border */
  border-radius: var(--radius-md);
  font-size: 13px;
  color: #1e293b; /* Force dark text */
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.15s ease;
}

.popup-species-chip:hover,
.popup-species-chip:active {
  background: var(--color-ocean-light);
  border-color: var(--color-ocean);
  color: var(--color-ocean-deep);
}

.popup-species-chip:active {
  transform: scale(0.95);
}

/* Primary action - See full details */
.popup-details-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-ocean);
  color: white;
  font-size: var(--text-sm);
  font-weight: 500;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  min-height: 44px; /* Mobile-friendly tap target */
  transition: background 0.15s ease;
}

.popup-details-btn:hover,
.popup-details-btn:active {
  background: var(--color-ocean-deep);
}

.popup-details-btn:active {
  transform: scale(0.97);
}

/* Secondary action - Navigate link */
.popup-nav-link {
  display: block;
  text-align: center;
  margin-top: var(--space-sm);
  padding: var(--space-xs);
  color: var(--color-ocean);
  font-size: var(--text-sm);
  text-decoration: none;
  min-height: 32px;
  line-height: 32px;
}

.popup-nav-link:hover {
  color: var(--color-ocean-deep);
  text-decoration: underline;
}

/* Map popup enhancements */
.popup-hot-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  vertical-align: middle;
  margin-left: 4px;
}

.popup-hot-hot {
  background: var(--color-peak);
  color: white;
}

.popup-hot-warm {
  background: var(--color-good);
  color: var(--color-ocean-deep);
}

.popup-conditions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.popup-badge {
  font-size: 10px;
  padding: 2px 5px;
  background: #f1f5f9;
  border-radius: 3px;
  color: #475569;
}

.popup-tip {
  font-size: 11px;
  color: #64748b;
  margin: 8px 0;
  padding: 6px;
  background: #f8fafc;
  border-radius: 4px;
  border-left: 2px solid var(--color-ocean-light);
}

/* Hidden utility */
.hidden {
  display: none !important;
}

/* Peak badge on spots */
.spot-peak-badge {
  background: var(--color-peak);
  color: white;
  font-size: var(--text-xs);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-left: var(--space-xs);
}

/* Hot spot indicators */
.spot-hot-badge {
  font-size: var(--text-xs);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-left: var(--space-xs);
  font-weight: 600;
}

.spot-hot-hot {
  background: var(--color-peak);
  color: white;
}

.spot-hot-warm {
  background: var(--color-good);
  color: var(--color-ocean-deep);
}

/* Hot spot card */
.spot-card-hot {
  border-color: #f97316;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.05) 0%, var(--color-surface) 100%);
}

.spot-card-hot:hover {
  border-color: #ea580c;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

/* 0-10 rating circle — System B: where to go */
/* text colour is always set via inline style (white or #1e293b depending on bg) */
.spot-rating-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  /* no text-shadow — it blurs dark text on light bg (amber/lime) */
}

.spot-rating-circle-sm {
  width: 20px;
  height: 20px;
  font-size: 10px;
}

/* Rating circle in map popup — slightly larger */
.popup-rating-circle {
  width: 24px;
  height: 24px;
  font-size: 11px;
  vertical-align: middle;
  margin-left: 4px;
}

/* Leaflet DivIcon outer container: transparent, overflow visible so
   rotated shapes don't clip, no tap highlight flash on mobile */
.custom-marker {
  background: transparent !important;
  border: none !important;
  overflow: visible !important;
  -webkit-tap-highlight-color: transparent;
}

/* Right side of spot card header: rating + area tag */
.spot-header-right {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-shrink: 0;
}

/* Condition badges */
.spot-conditions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.condition-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: var(--text-xs);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text-muted);
}

.condition-badge.condition-time {
  background: rgba(56, 189, 248, 0.15);
  color: var(--color-ocean);
}

.condition-badge.condition-tide {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}

.condition-badge.condition-season {
  background: rgba(249, 115, 22, 0.15);
  color: #ea580c;
}

.condition-badge.condition-solunar {
  background: rgba(168, 85, 247, 0.15);
  color: #9333ea;
}

/* Technique tip on spot cards */
.spot-technique {
  background: var(--color-bg);
  border-left: 3px solid var(--color-ocean-light);
  padding: var(--space-xs) var(--space-sm);
  margin-bottom: var(--space-sm);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--text-xs);
}

.technique-species {
  font-weight: 600;
  color: var(--color-text);
}

.technique-tip {
  color: var(--color-text-muted);
  font-style: italic;
}

/* Dark mode adjustments for new elements */
@media (prefers-color-scheme: dark) {
  .spot-card-hot {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, var(--color-surface) 100%);
  }

  .condition-badge.condition-time {
    background: rgba(56, 189, 248, 0.2);
  }

  .condition-badge.condition-tide {
    background: rgba(34, 197, 94, 0.2);
  }

  .condition-badge.condition-season {
    background: rgba(249, 115, 22, 0.2);
  }

  .condition-badge.condition-solunar {
    background: rgba(168, 85, 247, 0.2);
  }

  /* Species clarity badges in dark mode */
  .species-clarity-badge.clarity-boost {
    background: rgba(34, 197, 94, 0.2);
  }

  .species-clarity-badge.clarity-penalty {
    background: rgba(239, 68, 68, 0.15);
  }

  /* Species clarity info in modal dark mode */
  .species-clarity-info.clarity-good {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
  }

  .species-clarity-info.clarity-warning {
    background: rgba(234, 179, 8, 0.15);
    border-color: rgba(234, 179, 8, 0.3);
  }

  /* Clarity tackle tip in dark mode */
  .clarity-tackle-tip {
    background: rgba(234, 179, 8, 0.15);
  }

  /* === DARK MODE: Cream/sand background text fixes === */
  /* All elements with --color-sand background need dark text in dark mode */
  /* Using !important to override CSS variable inheritance */

  /* Tackle tip boxes (species modal - inside collapsibles) */
  .tackle-tip,
  .collapsible-content .tackle-tip {
    color: #1e293b !important;
  }

  /* Modal tips (pro tips sections - inside collapsibles) */
  .modal-tips,
  .modal-tips p,
  .modal-tips h4,
  .modal-tips .pro-tips-list,
  .modal-tips .pro-tips-list li,
  .collapsible-content .modal-tips,
  .collapsible-content .modal-tips p,
  .collapsible-content .modal-tips h4,
  .collapsible-content .pro-tips-list,
  .collapsible-content .pro-tips-list li {
    color: #1e293b !important;
  }

  /* Quick recommendation box (species modal) */
  .quick-recommendation,
  .quick-recommendation .quick-pick {
    color: #1e293b !important;
  }

  /* Location technique section (location modal) */
  .location-technique-section,
  .location-technique-tip,
  .collapsible-content .location-technique-section,
  .collapsible-content .location-technique-tip {
    color: #1e293b !important;
  }

  /* Location tips section (LOCAL TIPS in location modal) */
  .location-tips-section,
  .location-tips-section .location-tips,
  .location-tips-section .location-tips li,
  .collapsible-content .location-tips-section,
  .collapsible-content .location-tips,
  .collapsible-content .location-tips li {
    color: #1e293b !important;
  }

  /* Modal spot CTA (navigation section) */
  .modal-spot-cta,
  .modal-spot-cta .modal-spot-name {
    color: #1e293b !important;
  }

  /* Species card hover state */
  .location-species-card:hover .species-name,
  .location-species-card:active .species-name {
    color: #1e293b !important;
  }

  /* Modal tabs hover/active states */
  .modal-tab:hover,
  .modal-tab:active,
  .modal-tab.active {
    color: var(--color-ocean-deep) !important;
  }
}

/* Browse section */
.browse-section {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--color-border);
}
.browse-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
@media (min-width: 768px) {
  .browse-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.browse-col h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}
.browse-col h3 a {
  color: var(--color-text);
  text-decoration: none;
}
.browse-col h3 a:hover {
  color: var(--color-ocean);
}
.browse-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.browse-links li {
  padding: 3px 0;
}
.browse-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
}
.browse-links a:hover {
  color: var(--color-ocean);
}

/* ============================================================
   Smart Tackle Recommendation Engine
   ============================================================ */

.tackle-recommendation {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}
.tackle-recommendation[data-confidence="high"] {
  border-color: var(--color-peak);
  border-width: 2px;
}
.tackle-recommendation h4 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 4px 0;
}
.tackle-conditions-summary {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-sm) 0;
}

/* Primary recommendation */
.tackle-rec-primary {
  background: var(--color-bg);
  border-radius: 8px;
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-sm);
}
.tackle-rec-lure strong,
.tackle-rec-jighead strong {
  color: var(--color-text);
  font-size: var(--text-sm);
}
.tackle-rec-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: block;
  margin-top: var(--space-sm);
}
.tackle-rec-why {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 2px 0 6px 0;
  line-height: 1.4;
}

/* BCF buttons */
.tackle-bcf-btn {
  display: inline-block;
  background: var(--color-ocean);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 4px;
  margin-right: 6px;
}
.tackle-bcf-btn:hover {
  background: var(--color-ocean-deep);
}
.tackle-bcf-link {
  font-size: 11px;
  color: var(--color-ocean);
  text-decoration: none;
  font-weight: 600;
}

/* Technique section */
.tackle-rec-technique {
  margin: var(--space-sm) 0;
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--color-border);
}
.tackle-rec-technique h5 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 4px 0;
}
.tackle-rec-technique p {
  font-size: var(--text-xs);
  color: var(--color-text);
  margin: 0 0 4px 0;
  line-height: 1.5;
}
.tackle-creek-tip {
  background: #fef3c7;
  border-radius: 6px;
  padding: 6px 8px;
  margin-top: 6px;
}

/* Alternatives (collapsed) */
.tackle-alternatives,
.tackle-shopping,
.tackle-learn {
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
}
.tackle-alternatives summary,
.tackle-shopping summary,
.tackle-learn summary {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  padding: 4px 0;
  list-style: none;
}
.tackle-alternatives summary::before,
.tackle-shopping summary::before,
.tackle-learn summary::before {
  content: '▸ ';
  color: var(--color-text-muted);
}
.tackle-alternatives[open] summary::before,
.tackle-shopping[open] summary::before,
.tackle-learn[open] summary::before {
  content: '▾ ';
}
.tackle-alt-item {
  background: var(--color-bg);
  border-radius: 6px;
  padding: 8px 10px;
  margin: 6px 0;
}
.tackle-alt-item strong {
  font-size: var(--text-sm);
  color: var(--color-text);
}
.tackle-alt-price {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-left: 4px;
}
.tackle-alt-why {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 2px 0 0 0;
  line-height: 1.4;
}

/* Bait fallback */
.tackle-bait-fallback {
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
}
.tackle-bait-fallback h5 {
  font-size: var(--text-sm);
  font-weight: 600;
  margin: 0 0 4px 0;
}
.tackle-bait-fallback p {
  font-size: var(--text-xs);
  color: var(--color-text);
  margin: 0 0 2px 0;
}
.tackle-bait-why {
  color: var(--color-text-muted) !important;
  font-style: italic;
}

/* Shopping list */
.tackle-shop-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0 0;
}
.tackle-shop-list li {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  padding: 3px 0;
  border-bottom: 1px solid var(--color-border);
}
.tackle-shop-price {
  color: var(--color-text-muted);
  font-weight: 600;
}

/* Educational "Why" section */
.tackle-learn-content {
  padding: 8px 0;
}
.tackle-learn-content p {
  font-size: var(--text-xs);
  color: var(--color-text);
  margin: 0 0 6px 0;
  line-height: 1.5;
}
.tackle-learn-when {
  color: var(--color-text-muted) !important;
  font-style: italic;
}

/* Location modal "What to throw" */
.spot-tackle-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.spot-tackle-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-bg);
  border-radius: 8px;
  padding: 8px 10px;
  flex-wrap: wrap;
}
.spot-tackle-species {
  background: none;
  border: none;
  padding: 0;
  font-size: var(--text-sm);
  color: var(--color-text);
  cursor: pointer;
  white-space: nowrap;
}
.spot-tackle-species:hover {
  color: var(--color-ocean);
}
.spot-tackle-species strong {
  font-weight: 600;
}
.spot-tackle-lure {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spot-tackle-bcf {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-ocean);
  text-decoration: none;
  white-space: nowrap;
}
.spot-tackle-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 6px 0 0 0;
  font-style: italic;
}

/* ============================================
   SESSION PLANNER
   ============================================ */

/* Entry card inside hero */
.planner-entry-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  text-align: center;
  margin-top: var(--space-md);
}
.planner-entry-label {
  display: block;
  font-size: var(--text-lg);
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-xs);
}
.planner-entry-sub {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 var(--space-md);
}
.planner-entry-btn {
  display: inline-block;
  background: var(--color-sand);
  color: var(--color-ocean-deep);
  font-size: var(--text-sm);
  font-weight: 700;
  padding: var(--space-sm) var(--space-xl);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.planner-entry-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Planner section */
.session-planner {
  padding: var(--space-xl) 0;
  background: var(--color-bg);
}
.session-planner.hidden {
  display: none;
}
.planner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xs);
}
.planner-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 0;
}
.planner-close-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0 var(--space-xs);
  line-height: 1;
}

/* Hero recommendation card */
.planner-hero-card {
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.planner-hero-card:hover {
  transform: translateY(-1px);
}
.planner-hero-card.prime {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.04));
  border: 1px solid rgba(34, 197, 94, 0.3);
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.12);
}
.planner-hero-card.solid {
  background: linear-gradient(135deg, rgba(132, 204, 22, 0.10), rgba(132, 204, 22, 0.03));
  border: 1px solid rgba(132, 204, 22, 0.25);
  box-shadow: 0 2px 12px rgba(132, 204, 22, 0.08);
}
.planner-hero-card.normal {
  background: var(--color-bg);
  border: 1px solid #e2e8f0;
}
.planner-hero-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}
.planner-hero-main {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}
.planner-hero-time {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}
.planner-hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}
.planner-hero-badge.prime { background: #22c55e; color: #052e16; }
.planner-hero-badge.solid { background: #84cc16; color: #1a2e05; }
.planner-hero-badge.normal { background: #e2e8f0; color: #475569; }
.planner-hero-summary {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}
.planner-hero-confidence {
  display: inline-block;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 6px;
  font-weight: 500;
}
.planner-hero-confidence.high { background: rgba(34,197,94,0.15); color: #22c55e; }
.planner-hero-confidence.good { background: rgba(132,204,22,0.15); color: #84cc16; }
.planner-hero-confidence.approx { background: rgba(251,191,36,0.15); color: #fbbf24; }

/* Forecast groups */
.planner-group {
  margin-bottom: var(--space-md);
}
.planner-group-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.planner-group-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* Approximate forecast chips — reduced confidence */
.planner-chip.conf-approx {
  opacity: 0.75;
}
.planner-chip.conf-approx.active,
.planner-chip.conf-approx.chip-best {
  opacity: 1;
}

/* Chip rows (spots, species) */
.planner-spots-row,
.planner-species-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-md);
  scrollbar-width: none;
}
.planner-spots-row::-webkit-scrollbar,
.planner-species-row::-webkit-scrollbar {
  display: none;
}
.planner-species-row.hidden {
  display: none;
}

/* Section divider between WHEN and WHERE */
.planner-section-divider {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-lg) 0 var(--space-md);
}
.planner-section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border, #e2e8f0);
}
.planner-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}
.planner-section-hint {
  font-size: 11px;
  color: var(--color-text-muted);
  opacity: 0.7;
  margin-left: auto;
  flex-shrink: 0;
}

/* Spot-specific chip colors (blue palette to distinguish from time chips) */
.planner-chip.spot-chip {
  border-color: #cbd5e1;
  background: var(--color-bg);
}
.planner-chip.spot-chip.chip-prime {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.08);
}
.planner-chip.spot-chip.chip-prime .chip-quality { color: #2563eb; }
.planner-chip.spot-chip.chip-prime.active {
  background: #2563eb;
  border-color: #2563eb;
}
.planner-chip.spot-chip.chip-solid {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.06);
}
.planner-chip.spot-chip.chip-solid .chip-quality { color: #6366f1; }
.planner-chip.spot-chip.chip-solid.active {
  background: #6366f1;
  border-color: #6366f1;
}
.planner-chip.spot-chip.chip-best {
  animation: spot-chip-glow 2s ease-in-out infinite alternate;
}
@keyframes spot-chip-glow {
  from { box-shadow: 0 0 4px rgba(59, 130, 246, 0.15); }
  to { box-shadow: 0 0 14px rgba(59, 130, 246, 0.35); }
}
.planner-chip.spot-chip.chip-best.active {
  animation: none;
}

/* Row labels */
.planner-row-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  flex-basis: 100%;
}

/* Chips */
.planner-chip {
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: 10px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid #cbd5e1;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  position: relative;
  text-align: left;
}
.planner-chip:hover {
  border-color: var(--color-ocean);
  color: var(--color-ocean);
}
.planner-chip.active {
  background: var(--color-ocean);
  color: white;
  border-color: var(--color-ocean);
}
.planner-chip.active .chip-quality { color: rgba(255,255,255,0.85); }
.planner-chip .chip-label {
  display: block;
  font-weight: 600;
  line-height: 1.2;
}
.planner-chip .chip-quality {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
  line-height: 1;
}

/* Heatmap chip variants */
.planner-chip.chip-prime {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.08);
}
.planner-chip.chip-prime .chip-quality { color: #16a34a; }
.planner-chip.chip-prime.active {
  background: #16a34a;
  border-color: #16a34a;
}

.planner-chip.chip-solid {
  border-color: rgba(132, 204, 22, 0.35);
  background: rgba(132, 204, 22, 0.06);
}
.planner-chip.chip-solid .chip-quality { color: #65a30d; }
.planner-chip.chip-solid.active {
  background: #65a30d;
  border-color: #65a30d;
}

.planner-chip.chip-normal {
  border-color: #e2e8f0;
  opacity: 0.6;
}
.planner-chip.chip-normal:hover { opacity: 1; }

.planner-chip.chip-best {
  animation: chip-glow 2s ease-in-out infinite alternate;
}
@keyframes chip-glow {
  from { box-shadow: 0 0 4px rgba(34, 197, 94, 0.15); }
  to { box-shadow: 0 0 14px rgba(34, 197, 94, 0.35); }
}
.planner-chip.chip-best.active {
  animation: none;
}

/* Custom datetime chip and input */
.planner-chip-custom {
  border-style: dashed;
  opacity: 0.6;
}
.planner-chip-custom:hover { opacity: 1; }
.planner-custom-datetime {
  font-family: inherit;
  font-size: 13px;
  padding: 8px 12px;
  border: 1px solid var(--color-ocean);
  border-radius: 20px;
  background: var(--color-bg);
  color: var(--color-text);
  flex-shrink: 0;
  outline: none;
}
.planner-custom-datetime::-webkit-calendar-picker-indicator {
  filter: invert(0.5);
}

/* Session result card */
.planner-result {
  margin-top: var(--space-md);
}
.planner-result.hidden {
  display: none;
}
.planner-result-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  position: relative;
}
.planner-result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}
.planner-result-spot {
  font-size: var(--text-lg);
  font-weight: 700;
  margin: 0;
}
.planner-result-time {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 2px 0 0 0;
}
.planner-confidence {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.planner-confidence.high {
  background: #dcfce7;
  color: #166534;
}
.planner-confidence.good {
  background: #fef3c7;
  color: #92400e;
}
.planner-confidence.approx {
  background: #f1f5f9;
  color: #475569;
}

/* Conditions summary */
.planner-conditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: #f8fafc;
  border-radius: var(--radius-lg);
}
.planner-cond-item {
  text-align: center;
}
.planner-cond-label {
  display: block;
  font-size: 11px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.planner-cond-value {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-top: 2px;
}

/* Why this spot */
.planner-why {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: var(--space-md);
}

/* Tackle section in planner reuses existing tackle styles */
.planner-tackle-section {
  margin-bottom: var(--space-lg);
}

/* Action buttons */
.planner-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.planner-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  background: white;
  color: var(--color-text);
  transition: all 0.15s;
}
.planner-action-btn:hover {
  border-color: var(--color-ocean);
  color: var(--color-ocean);
}
.planner-action-btn.copied {
  background: #dcfce7;
  border-color: #166534;
  color: #166534;
}

/* Score badge on chips */
.planner-chip .chip-rating {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: middle;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .planner-entry-card {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.12);
  }
  .planner-hero-card.prime {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    border-color: rgba(34, 197, 94, 0.35);
  }
  .planner-hero-card.solid {
    background: linear-gradient(135deg, rgba(132, 204, 22, 0.12), rgba(132, 204, 22, 0.04));
    border-color: rgba(132, 204, 22, 0.3);
  }
  .planner-hero-card.normal {
    background: #1e293b;
    border-color: #334155;
  }
  .planner-hero-time { color: #f1f5f9; }
  .planner-chip {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
  }
  .planner-chip:hover {
    border-color: var(--color-ocean-light);
    color: var(--color-ocean-light);
  }
  .planner-chip.active {
    background: var(--color-ocean);
    color: white;
    border-color: var(--color-ocean);
  }
  .planner-chip.chip-prime {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
  }
  .planner-chip.chip-prime .chip-quality { color: #4ade80; }
  .planner-chip.chip-prime.active { background: #16a34a; border-color: #16a34a; }
  .planner-chip.chip-solid {
    background: rgba(132, 204, 22, 0.10);
    border-color: rgba(132, 204, 22, 0.3);
  }
  .planner-chip.chip-solid .chip-quality { color: #a3e635; }
  .planner-chip.chip-solid.active { background: #65a30d; border-color: #65a30d; }
  .planner-chip.chip-normal {
    border-color: #334155;
  }
  .planner-result-card {
    background: #1e293b;
    border-color: #334155;
  }
  .planner-conditions-grid {
    background: #0f172a;
  }
  .planner-cond-value {
    color: #e2e8f0;
  }
  .planner-action-btn {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
  }
  .planner-confidence.high {
    background: #052e16;
    color: #4ade80;
  }
  .planner-confidence.good {
    background: #451a03;
    color: #fbbf24;
  }
  .planner-confidence.approx {
    background: #1e293b;
    color: #94a3b8;
  }
  .planner-custom-datetime {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
  }
  .planner-custom-datetime::-webkit-calendar-picker-indicator {
    filter: invert(0.8);
  }
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .planner-result-card {
    padding: var(--space-md);
  }
  .planner-conditions-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: var(--space-sm);
  }
}
