/* Shared stylesheet for the generated beach, town and country pages.
   Tokens mirror index.html so the pages read as the same site. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --navy: #1B2838;
  --navy-light: #243447;
  --gold: #D4A03C;
  --gold-light: #E8C068;
  --blue-1: #0077B6;
  --blue-2: #0096C7;
  --blue-3: #5ABED6;
  --blue-pale: #B3E0F2;
  --sand: #FDF0D5;
  --text: #E8ECF1;
  --text-muted: #8A9BB0;
  --line: rgba(255,255,255,0.08);
  --max-w: 860px;
}
html { scroll-padding-top: 5rem; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--blue-3); }
h1, h2, h3 { font-family: 'Bricolage Grotesque', 'Inter', sans-serif; letter-spacing: -0.02em; line-height: 1.15; }

/* ── Nav (same bar as the landing page, plus the search box) ── */
nav#mainNav {
  position: fixed; top: 0; width: 100%; z-index: 100; height: 62px;
  padding: 0 1rem; display: flex; align-items: center; gap: 1rem;
  background: rgba(27,40,56,0.94); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); flex-shrink: 0; }
.nav-brand img { width: 34px; height: 34px; border-radius: 9px; display: block; }
.nav-brand span { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 0.25rem; list-style: none; margin-left: auto; flex-shrink: 0; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; font-weight: 500; padding: 0.45rem 0.8rem; border-radius: 8px; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.08); }
.nav-search { position: relative; flex: 1 1 auto; max-width: 420px; margin: 0 auto; }
.nav-search input {
  width: 100%; height: 38px; padding: 0 0.9rem 0 2.2rem; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.07); color: var(--text);
  font: inherit; font-size: 0.9rem; outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238A9BB0' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='M11 11l3.5 3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 0.7rem center;
}
.nav-search input:focus { border-color: var(--blue-2); background-color: rgba(255,255,255,0.1); }
.nav-search input::placeholder { color: var(--text-muted); }
.nav-search-results {
  position: absolute; top: 44px; left: 0; right: 0; list-style: none;
  background: var(--navy-light); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4); overflow: hidden; max-height: 70vh; overflow-y: auto;
}
.nav-search-results li a { display: block; padding: 0.6rem 0.9rem; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line); }
.nav-search-results li:last-child a { border-bottom: 0; }
.nav-search-results li a:hover, .nav-search-results li.active a { background: rgba(255,255,255,0.07); }
.nav-search-results .r-name { display: block; font-weight: 600; font-size: 0.92rem; }
.nav-search-results .r-meta { display: block; font-size: 0.78rem; color: var(--text-muted); }
.nav-search-results .r-empty { padding: 0.7rem 0.9rem; color: var(--text-muted); font-size: 0.85rem; }
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-brand span { display: none; }
}

/* ── Page ── */
.page { max-width: var(--max-w); margin: 0 auto; padding: 5.5rem 1rem 3rem; }
.page.wide { --max-w: 1080px; }
.crumbs { font-size: 0.82rem; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-bottom: 1rem; }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.beach-head { margin-bottom: 1.5rem; }
.kicker { color: var(--gold); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.4rem; }
.beach-head h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); font-weight: 800; margin-bottom: 0.7rem; }
.beach-head h1 .alt { font-weight: 600; color: var(--text-muted); font-size: 0.6em; }
.lede { color: var(--text); font-size: 1.02rem; max-width: 62ch; }

/* ── Facts ── */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.6rem; margin: 1.5rem 0; }
.fact { background: var(--navy-light); border: 1px solid var(--line); border-radius: 12px; padding: 0.75rem 0.85rem; display: flex; flex-direction: column; gap: 0.1rem; }
.fact-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.fact-value { font-weight: 700; font-size: 1rem; }
.fact-note { font-size: 0.78rem; color: var(--text-muted); line-height: 1.35; }

/* ── App CTA ── */
.app-cta {
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, rgba(0,119,182,0.28), rgba(212,160,60,0.14)); border: 1px solid rgba(90,190,214,0.3);
  border-radius: 16px; padding: 1.1rem 1.25rem; margin: 1.5rem 0;
}
.app-cta h2 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.app-cta p { color: var(--text-muted); font-size: 0.92rem; max-width: 52ch; }
.cta-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.btn-store { display: inline-flex; align-items: center; gap: 0.55rem; background: #000; color: #fff; text-decoration: none; border-radius: 10px; padding: 0.45rem 0.9rem 0.45rem 0.7rem; border: 1px solid rgba(255,255,255,0.18); }
.btn-store small { display: block; font-size: 0.62rem; line-height: 1; opacity: 0.8; }
.btn-store b { display: block; font-size: 0.95rem; line-height: 1.15; }

/* ── Map ── */
.map-card h2, .nearby h2, .letter h2 { font-size: 1.2rem; margin: 1.6rem 0 0.7rem; }
.map { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); display: block; }
.coords { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; }

/* ── Lists ── */
.beach-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.5rem; }
.beach-list.big { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 0.5rem; }
.beach-list a { display: block; padding: 0.7rem 0.85rem; background: var(--navy-light); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--text); }
.beach-list a:hover { border-color: var(--blue-2); }
.bl-name { display: block; font-weight: 600; }
.bl-meta { display: block; font-size: 0.78rem; color: var(--text-muted); }
.more { margin-top: 0.9rem; font-size: 0.9rem; }
.chipline { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { display: inline-flex; gap: 0.35rem; align-items: baseline; padding: 0.3rem 0.7rem; border-radius: 999px; background: var(--navy-light); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 0.88rem; }
.chip small { color: var(--text-muted); font-size: 0.75rem; }
.chip:hover { border-color: var(--blue-2); }
.letter { margin-bottom: 0.5rem; }
.sources { margin-top: 2.5rem; font-size: 0.78rem; color: var(--text-muted); border-top: 1px solid var(--line); padding-top: 1rem; }

/* ── Footer ── */
footer { max-width: 1080px; margin: 0 auto; padding: 1.5rem 1rem 2.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; font-size: 0.82rem; color: var(--text-muted); border-top: 1px solid var(--line); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
