/* ============================================================
   FISHN BUDDY — Nautical Chart Design System
   ============================================================ */

/* 1. Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* 2. Design Tokens */
:root {
  --deep:        #0c1a2e;
  --deep-hi:     #081424;
  --chart:       #1a3050;
  --water:       #c8d8e8;
  --water-soft:  #6a8ab0;
  --water-mute:  #4a6a8a;
  --blue:        #2563eb;
  --blue-hi:     #1d4ed8;
  --white:       #ffffff;

  --condensed:   'Oswald', sans-serif;
  --sans:        'DM Sans', sans-serif;
  --mono:        'JetBrains Mono', monospace;
}

/* 3. Reset + Body */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--deep);
  color: var(--water);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--white);
}

/* 4. Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section--lg {
  padding: 6rem 0;
}

/* 5. Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--condensed);
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--white);
}

h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
}

h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
}

h4 {
  font-size: 15px;
  font-weight: 500;
  color: var(--water);
}

h5 {
  font-size: 11px;
  font-weight: 500;
  color: var(--water-soft);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.blue {
  color: var(--blue);
}

/* 6. Buttons */
.btn-blue,
.btn-ghost,
.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--condensed);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 3px;
  padding: 0.55rem 1.25rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
}

.btn-blue:hover {
  background: var(--blue-hi);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--water);
  border: 1px solid var(--chart);
}

.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--deep);
}

.btn-white:hover {
  background: var(--water);
  color: var(--deep);
}

.btn-lg {
  font-size: 15px;
  padding: 0.75rem 1.75rem;
}

/* 7. Chart Grid */
.chart-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* 8. Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--deep-hi);
  border-bottom: 1px solid var(--chart);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 56px;
}

.nav-logo {
  font-family: var(--condensed);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo:hover {
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--water-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  margin-left: auto;
  flex-shrink: 0;
}

/* Nav toggle button (hamburger) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--water);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav.open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav.open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav.open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Prevent nav CTA from clipping near max-width boundary */
@media (max-width: 1280px) {
  .nav-cta {
    font-size: 10px;
    padding: 7px 12px;
  }
}

/* Leaflet map dark background fallback (shows behind tiles while loading) */
.leaflet-container {
  background: #081424 !important;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .nav-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 0.75rem 1.5rem;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 0.75rem;
  }

  .nav.open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 0.65rem 0;
    font-size: 13px;
    border-bottom: 1px solid var(--chart);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }
}

/* 9. Footer */
.footer {
  background: var(--deep-hi);
  border-top: 1px solid var(--chart);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-brand {
  font-family: var(--condensed);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--blue);
  letter-spacing: 0.04em;
}

.footer-col h5 {
  font-family: var(--condensed);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--water-soft);
  margin-bottom: 0.75rem;
}

.footer-col a {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--water-soft);
  text-decoration: none;
  margin-bottom: 0.4rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 1.25rem 1.5rem 0;
  border-top: 1px solid var(--chart);
  font-family: var(--sans);
  font-size: 12px;
  color: var(--water-mute);
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner > div:first-child {
    grid-column: 1 / -1;
  }
}

/* 10. Stat Cards */
.stat-card {
  background: var(--deep);
  border: 1px solid var(--chart);
  border-radius: 3px;
  padding: 1.25rem 1.5rem;
}

.stat-label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 0.35rem;
}

.stat-value {
  font-family: var(--condensed);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}

.stat-unit {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--water-soft);
  margin-top: 0.2rem;
}

/* 11. Search */
.search-bar {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
}

.search-input {
  flex: 1;
  background: var(--deep-hi);
  border: 1px solid var(--chart);
  border-right: none;
  border-radius: 3px 0 0 3px;
  color: var(--water);
  font-family: var(--sans);
  font-size: 14px;
  padding: 0.65rem 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-input::placeholder {
  color: var(--water-mute);
}

.search-input:focus {
  border-color: var(--blue);
}

.search-bar .btn-blue {
  border-radius: 0 3px 3px 0;
}

/* 12. Feature Cards */
.feat-card {
  background: var(--deep-hi);
  border: 1px solid var(--chart);
  border-radius: 3px;
  padding: 1.75rem 1.5rem;
  transition: border-color 0.2s ease;
}

.feat-card:hover {
  border-color: var(--blue);
}

.feat-card .feat-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.feat-card h3 {
  font-family: var(--condensed);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.feat-card p {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--water-soft);
  line-height: 1.6;
}

/* 13. Post Cards */
.post-card {
  background: var(--deep-hi);
  border: 1px solid var(--chart);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.post-card:hover {
  border-color: var(--blue);
}

.post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 3px 3px 0 0;
}

.post-card .post-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.post-card .tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 0.5rem;
  display: block;
}

.post-card h2 {
  font-family: var(--condensed);
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.post-card p {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--water-soft);
  line-height: 1.6;
}

/* 14. CTA Band */
.cta-band {
  background: var(--blue);
  padding: 4rem 0;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--condensed);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.cta-band p {
  font-family: var(--sans);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

.cta-band .btn-white {
  font-size: 15px;
  padding: 0.75rem 2rem;
}

/* 15. Testimonial */
.testimonial {
  background: var(--deep-hi);
  border: 1px solid var(--chart);
  border-radius: 3px;
  padding: 2.5rem;
}

.testimonial blockquote {
  font-family: var(--sans);
  font-size: 18px;
  font-style: italic;
  color: var(--water);
  line-height: 1.7;
  border: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.testimonial cite {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-style: normal;
}

/* 16. Article / Prose */
.article {
  max-width: 720px;
  margin: 0 auto;
}

.article h1 {
  font-family: var(--condensed);
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.article h2 {
  font-family: var(--condensed);
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--white);
  border-top: 1px solid var(--chart);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article h3 {
  font-family: var(--condensed);
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--white);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article p {
  font-family: var(--sans);
  font-size: 17px;
  color: var(--water);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.article a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article a:hover {
  color: var(--white);
}

.article blockquote {
  border-left: 3px solid var(--blue);
  background: var(--deep-hi);
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-radius: 0 3px 3px 0;
}

.article blockquote p {
  margin: 0;
  font-size: 16px;
  color: var(--water-soft);
  font-style: italic;
}

.article pre,
.article code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--deep-hi);
  color: var(--water);
}

.article pre {
  padding: 1.25rem;
  border: 1px solid var(--chart);
  border-radius: 3px;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

.article code {
  padding: 0.15em 0.4em;
  border-radius: 2px;
}

.article pre code {
  padding: 0;
  background: transparent;
}

.article img {
  border: 1px solid var(--chart);
  border-radius: 6px;
  margin: 1.5rem 0;
}

.article strong {
  color: var(--white);
  font-weight: 600;
}

.article ul,
.article ol {
  font-family: var(--sans);
  font-size: 17px;
  color: var(--water);
  line-height: 1.75;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.article li {
  margin-bottom: 0.4rem;
}

/* 17. Camera/Hero Chrome */
.cam-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.scan-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

/* 18. Hero-Specific */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
}

.scroll-hint {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.scroll-hint::after {
  content: '↓';
  font-size: 14px;
  animation: bounceDown 1.6s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%       { transform: translateY(5px); opacity: 1; }
}

.hero-stats {
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.hero-stats.on {
  opacity: 1;
  pointer-events: auto;
}

/* 19. Responsive */
@media (max-width: 768px) {
  .section {
    padding: 2.5rem 0;
  }

  .section--lg {
    padding: 3.5rem 0;
  }

  h1 {
    font-size: clamp(30px, 8vw, 44px);
  }

  h2 {
    font-size: 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-inner > div:first-child {
    grid-column: 1 / -1;
  }

  .testimonial {
    padding: 1.5rem;
  }

  .testimonial blockquote {
    font-size: 16px;
  }

  .article h1 {
    font-size: 28px;
  }

  .article p,
  .article ul,
  .article ol {
    font-size: 16px;
  }
}

/* ============================================================
   Location Page — Ported from style.css, adapted to nautical palette
   ============================================================ */

/* Back / Home button */
.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--water-mute);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding: 6px 12px;
  border-radius: 3px;
  transition: all 0.2s ease;
}
.home-btn:hover {
  color: var(--blue);
  background: rgba(37, 99, 235, 0.1);
}

/* Location page header */
.location-header {
  padding: 2.5rem 0 2rem;
  text-align: center;
  position: relative;
  background: var(--deep);
}
.location-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Fishing score circle */
.fishing-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  font-family: var(--condensed);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 1rem 0 0.25rem;
  position: relative;
  border: 3px solid rgba(255, 255, 255, 0.1);
}
.score-1, .score-2, .score-3 { background: #ef4444; color: #fff; }
.score-4, .score-5             { background: #f97316; color: #fff; }
.score-6, .score-7             { background: #eab308; color: var(--deep); }
.score-8, .score-9             { background: #22c55e; color: #fff; }
.score-10                      { background: linear-gradient(135deg, var(--blue), #22c55e); color: var(--deep); }

.current-score-label {
  font-family: var(--condensed);
  font-size: 0.72rem;
  color: var(--water-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: -0.25rem;
  margin-bottom: 0.5rem;
}

.current-time {
  color: var(--water-mute);
  font-size: 0.88rem;
  margin-top: 0.5rem;
}

/* Sections wrapper */
.sections {
  padding: 2rem 0;
}

/* Generic card used on location page */
.card {
  background: var(--deep);
  border: 1px solid var(--chart);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.2s ease;
}
.card:hover {
  border-color: #1a3050;
}

/* Section grid (two-col layout) */
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

/* Tide chart */
.tide-chart {
  grid-column: 1 / -1;
}
.chart-container {
  position: relative;
  width: 100%;
  height: 300px;
  background: var(--deep-hi);
  border-radius: 3px;
  overflow: hidden;
}
.tide-curve         { stroke: var(--blue); stroke-width: 3; fill: none; }
.current-time-marker{ stroke: #f97316;     stroke-width: 2; }
.tide-point         { fill: var(--blue); }
.tide-label         { fill: var(--water);  font-size: 12px; text-anchor: middle; }

/* Tide points list */
.tide-points-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.tide-point-info {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--water-soft);
  background: var(--deep-hi);
  border: 1px solid var(--chart);
  border-radius: 3px;
  padding: 4px 10px;
}

/* Conditions grid */
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}
.condition-item {
  text-align: center;
  padding: 1rem;
  background: var(--deep-hi);
  border-radius: 3px;
  border: 1px solid var(--chart);
}
.condition-icon  { font-size: 1.25rem; margin-bottom: 0.4rem; }
.condition-value {
  font-family: var(--condensed);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  color: var(--white);
}
.condition-label {
  font-size: 0.78rem;
  color: var(--water-mute);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Sun & moon */
.sun-moon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.moon-phase {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
.moon-visual {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--water);
  position: relative;
  overflow: hidden;
}
.moon-shadow {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: var(--deep);
  border-radius: 0 50px 50px 0;
}

/* Solunar timeline */
.solunar-timeline {
  height: 52px;
  background: var(--deep-hi);
  border-radius: 3px;
  position: relative;
  margin: 1rem 0;
}
.solunar-period {
  position: absolute;
  height: 100%;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}
.major-period { background: rgba(37, 99, 235, 0.7); }
.minor-period { background: rgba(37, 99, 235, 0.3); }

/* Forecast grid */
.forecast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}
.forecast-card {
  text-align: center;
  padding: 1rem 0.75rem;
  background: var(--deep-hi);
  border: 1px solid var(--chart);
  border-radius: 3px;
  transition: border-color 0.2s ease;
}
.forecast-card:hover { border-color: var(--blue); }
.forecast-date {
  font-family: var(--condensed);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--water-mute);
  margin-bottom: 0.4rem;
}
.forecast-score {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--condensed);
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0.4rem 0;
}

/* Nearby links */
.nearby-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}
.nearby-link {
  padding: 7px 14px;
  background: var(--deep-hi);
  color: var(--water);
  text-decoration: none;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.82rem;
  transition: all 0.2s ease;
  border: 1px solid var(--chart);
}
.nearby-link:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* Loading / spinner */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--water-mute);
}
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--chart);
  border-top: 2px solid var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 0.5rem;
}
@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Error state */
.error {
  color: #ef4444;
  text-align: center;
  padding: 1rem;
  background: rgba(239, 68, 68, 0.08);
  border-radius: 3px;
  border: 1px solid rgba(239, 68, 68, 0.2);
  font-size: 0.9rem;
}

/* Depth map button */
.depth-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--deep-hi);
  color: var(--blue);
  padding: 11px 22px;
  border-radius: 3px;
  text-decoration: none;
  font-family: var(--condensed);
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid var(--blue);
  transition: all 0.2s ease;
}
.depth-map-btn:hover {
  background: var(--blue);
  color: var(--white);
}

/* Location type badge */
.location-type-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-family: var(--condensed);
  font-weight: 600;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.location-type-badge.coastal {
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.25);
}
.location-type-badge.inland {
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

/* Location card (used on home/browse pages) */
.location-card {
  background: var(--deep);
  border: 1px solid var(--chart);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}
.location-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}
.location-thumbnail {
  height: 100px;
  background: linear-gradient(135deg, var(--deep-hi), rgba(37, 99, 235, 0.2));
  position: relative;
  overflow: hidden;
}
.location-thumbnail::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), #3b82f6);
}
.location-info { padding: 1.25rem; }
.location-name {
  font-family: var(--condensed);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--white);
}
.location-state {
  color: var(--water-mute);
  font-size: 0.85rem;
}

/* Hero canvas fill */
.hero-wrap canvas,
.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Location page responsive overrides */
@media (max-width: 768px) {
  .section-grid      { grid-template-columns: 1fr; }
  .sun-moon-grid     { grid-template-columns: 1fr; }
  .forecast-grid     { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
  .conditions-grid   { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .nearby-links { justify-content: center; }
}

/* 20. Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 21. Focus Indicators */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* 22. Active Nav State */
.nav-links a[aria-current="page"] {
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
  padding-bottom: 2px;
}

/* 23. Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--deep-hi);
  border-top: 1px solid var(--chart);
  color: var(--water-soft);
  padding: 12px 24px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  z-index: 9999;
}

.cookie-banner a {
  color: var(--blue);
  text-decoration: underline;
}

.cookie-banner__btn {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.cookie-banner__btn:hover {
  background: var(--blue-hi);
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* ============================================================
   Search Suggestions Dropdown
   ============================================================ */
#searchSuggestions {
  background: var(--deep-hi);
  border: 1px solid var(--chart);
  border-top: none;
  border-radius: 0 0 3px 3px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
}

.search-suggestion {
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid var(--chart);
  font-size: 0.92rem;
  color: var(--water);
}

.search-suggestion:hover,
.search-suggestion.active {
  background: var(--deep);
}

.search-suggestion:last-child {
  border-bottom: none;
}

.search-suggestion strong {
  color: var(--white);
}
