/* CWPD parks page concept — home (activity picker) and /map */
:root {
  --navy: #0032a0; --navy-deep: #00226e; --gold: #f7a700; --red: #d12a2e; --green: #2f6b3a;
  --cream: #f1ede9; --paper: #faf8f5; --ink: #2a2d31; --muted: #6b6865; --line: #e5e0d9;
  --shadow: 0 2px 4px rgba(0,0,0,.04), 0 12px 32px rgba(0,34,110,.10);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--ink); background: var(--paper); line-height: 1.5; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
a { color: var(--navy); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.lead { font-size: 19px; color: var(--muted); margin: 8px 0 0; }
svg.lucide { width: 20px; height: 20px; stroke-width: 2; flex: none; }
.ph { display: grid; place-items: center; background: linear-gradient(135deg, #3f7d4a, #1f4e2b); color: rgba(255,255,255,.6); }
.ph svg { width: 40%; height: 40%; max-width: 64px; max-height: 64px; stroke-width: 1.5; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  font-weight: 700; font-size: 15px; border-radius: 999px; padding: 13px 22px; background: var(--navy); color: #fff;
}
.btn.ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn.light { background: #fff; color: var(--navy); }
.btn.big { font-size: 17px; padding: 16px 28px; }
.link { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Nameless banner — in Nameless's own brand (ink, purple, yellow), not CWPD's */
.concept-bar {
  --nl-ink: #1b102d; --nl-purple: #885fc5; --nl-yellow: #ffc65c; --nl-cream: #fff8eb;
  display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 16px;
  background: var(--nl-ink); color: var(--nl-cream); text-decoration: none; font-size: 15px; letter-spacing: -.01em;
  position: relative; z-index: 1001;
}
.cb-star { width: 22px; height: 22px; color: var(--nl-purple); flex: none; transition: transform .6s cubic-bezier(.3,1.5,.5,1), color .2s; }
.concept-bar:hover .cb-star { transform: rotate(180deg) scale(1.15); color: var(--nl-yellow); }
.cb-text strong { font-weight: 800; color: #fff; }
.cb-cta {
  display: inline-flex; align-items: center; gap: 6px; background: var(--nl-yellow); color: var(--nl-ink);
  font-weight: 800; font-size: 14px; padding: 6px 14px; border-radius: 999px; white-space: nowrap; transition: background .2s, transform .2s;
}
.concept-bar:hover .cb-cta { background: #fff; transform: translateX(2px); }
.cb-cta-short { display: none; }
.concept-bar:focus-visible { outline: 3px solid var(--nl-yellow); outline-offset: -3px; }

/* header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 1000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 44px; width: auto; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 999px; }
.main-nav a[aria-current] { background: var(--navy); color: #fff; }

/* ---------- shared sheet ---------- */
#sheet { border: 0; padding: 0; border-radius: 22px; width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; box-shadow: 0 30px 80px rgba(0,0,0,.35); color: var(--ink); }
#sheet::backdrop { background: rgba(10,20,45,.5); }
.sh-img { position: relative; aspect-ratio: 16/10; background: var(--cream); }
.sh-img > img, .sh-img > .ph { width: 100%; height: 100%; object-fit: cover; }
.sh-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.sh-body { padding: 22px 24px 24px; }
.sh-body h2 { margin: 0; font-size: 28px; letter-spacing: -.02em; }
.sh-lede { margin: 6px 0 14px; color: var(--muted); font-size: 16px; }
.sh-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sh-tags span { background: var(--cream); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; }
.sh-next { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding: 12px 14px; background: #fff7e0; border-radius: 12px; font-size: 14px; }
.sh-next:empty { display: none; }
.sh-next svg { color: #b57a00; margin-top: 1px; }
.sh-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* ---------- near-me location bar (shared) ---------- */
.loc-box { width: 100%; max-width: 560px; margin: 0 auto; }
.loc {
  display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px;
  padding: 6px 6px 6px 16px; box-shadow: 0 4px 16px rgba(0,34,110,.12); border: 2px solid transparent;
}
.loc:focus-within { border-color: var(--navy); }
.loc > svg { color: var(--red); }
.loc input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; background: transparent; padding: 8px 0; color: var(--ink); }
.loc-go { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; flex: none; }
.loc-me { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--cream); font-weight: 700; font-size: 14px; white-space: nowrap; flex: none; }
.loc-me svg { width: 18px; height: 18px; }
.loc.busy { opacity: .6; pointer-events: none; }
.loc-msg { margin: 8px 0 0; font-size: 14px; color: var(--red); font-weight: 600; text-align: center; }
.loc-msg:empty { display: none; }
.loc.set { display: inline-flex; padding: 8px 8px 8px 16px; font-size: 15px; max-width: 100%; }
.loc.set span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.loc-clear { margin-left: 4px; padding: 6px 12px; border-radius: 999px; background: var(--cream); font-weight: 700; font-size: 13px; flex: none; }
.sh-dist { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-weight: 700; color: var(--navy); font-size: 14px; }
.sh-dist svg { width: 16px; height: 16px; }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: #1a73e8; border: 3px solid #fff; box-shadow: 0 0 0 8px rgba(26,115,232,.22), 0 2px 6px rgba(0,0,0,.3); }

/* =========== A — What do you feel like? =========== */
.a-ask { padding: 64px 24px 80px; text-align: center; }
.a-ask h1, .a-res h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; letter-spacing: -.03em; margin: 0; font-weight: 900; }
.a-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 40px auto 0; max-width: 920px; }
.a-tile {
  background: #fff; border-radius: 22px; padding: 26px 16px 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  transition: transform .18s cubic-bezier(.3,1.6,.6,1), box-shadow .18s;
}
.a-tile:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 18px 40px rgba(0,34,110,.16); }
.a-tile:nth-child(even):hover { transform: translateY(-6px) rotate(1deg); }
.a-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; margin-bottom: 10px; }
.a-ic svg { width: 34px; height: 34px; }
.a-tile b { font-size: 20px; }
.a-tile small { color: var(--muted); font-size: 14px; }
.a-near { margin: 56px auto 0; max-width: 560px; }
.a-near h2 { font-size: 22px; margin: 0 0 14px; letter-spacing: -.02em; }
.a-alt { margin-top: 18px; color: var(--muted); }
.a-or { margin: 0 6px; }
.map-link { display: inline-flex; align-items: center; gap: 6px; }
.map-link svg { width: 18px; height: 18px; }
.a-res-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.a-res-top .back { margin-bottom: 0; }
.map-pill { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 15px; color: var(--navy); background: #fff; padding: 9px 16px; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--line); }
.map-pill:hover { box-shadow: inset 0 0 0 2px var(--navy); }
.map-pill svg { width: 18px; height: 18px; }
.a-credit { margin: 48px 0 0; font-size: 13px; color: var(--muted); }
.a-res-near { margin-top: 18px; }
.a-res-near .loc-box { margin: 0; }
.a-dist { position: absolute; top: 12px; left: 12px; z-index: 1; background: #fff; color: var(--navy); font-weight: 800; font-size: 13px; padding: 5px 11px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.a-res { padding: 32px 24px 96px; }
.back { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.a-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.a-card { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow); background: var(--cream); }
.a-card.big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.a-card > img, .a-card > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.a-card:hover > img { transform: scale(1.05); }
.a-cap { position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; display: flex; flex-direction: column; }
.a-cap b { font-size: 20px; }
.a-card.big .a-cap b { font-size: 30px; }
.a-cap small { opacity: .85; }

/* =========== B — Map-first =========== */
body[data-page="map"] { overflow: hidden; height: 100dvh; display: flex; flex-direction: column; }
body[data-page="map"] #app { flex: 1; min-height: 0; }
.b-wrap { position: relative; height: 100%; }
#b-map { position: absolute; inset: 0; background: #e8e4dd; }
.b-top { position: absolute; top: 16px; left: 0; right: 0; z-index: 500; pointer-events: none; display: flex; flex-direction: column; gap: 10px; }
.b-loc { padding: 0 16px; display: flex; justify-content: center; }
.b-loc > * { pointer-events: auto; }
.b-loc .loc { box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.b-chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px; scrollbar-width: none; pointer-events: auto; justify-content: center; }
.b-chip { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; background: #fff; border-radius: 999px; padding: 10px 16px; font-weight: 700; font-size: 15px; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.b-chip svg { width: 18px; height: 18px; }
.b-chip.on { background: var(--navy); color: #fff; }
.b-pin { cursor: pointer; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.3); transition: transform .15s; }
.b-pin svg { width: 16px; height: 16px; }
.b-pin.hot { background: var(--gold); color: var(--ink); transform: scale(1.35); }
.b-strip { position: absolute; left: 0; right: 0; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 500; display: flex; gap: 12px; overflow-x: auto; padding: 8px 16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.b-card { flex: 0 0 280px; scroll-snap-align: center; display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 18px; padding: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.18); border: 2px solid transparent; }
.b-card.hot { border-color: var(--gold); }
.b-card > img, .b-card > .ph { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; flex: none; }
.b-card span { display: flex; flex-direction: column; min-width: 0; }
.b-card b { font-size: 16px; }
.b-card small { color: var(--muted); font-size: 13px; }
.b-card em { font-style: normal; font-weight: 800; font-size: 12px; color: var(--navy); }
.b-empty { margin: 0 auto; background: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow); }


/* ---------- "Edit these parks" button + request-access dialog ---------- */
.ea-fab { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 900; display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; font-weight: 800; font-size: 15px; padding: 13px 18px; border-radius: 999px; box-shadow: 0 10px 28px rgba(0,0,0,.28); transition: background .2s, transform .2s; }
.ea-fab:hover { background: var(--navy); transform: translateY(-2px); }
.ea-fab svg { width: 18px; height: 18px; }
body[data-page="map"] .ea-fab { bottom: calc(150px + env(safe-area-inset-bottom)); }
.ea-modal { border: 0; padding: 0; border-radius: 22px; width: min(600px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow: auto; color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.ea-modal::backdrop { background: rgba(10,20,45,.55); }
.ea-pad { padding: 28px 30px 30px; }
.ea-x { position: sticky; float: right; top: 12px; margin: 12px 12px 0 0; width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.18); z-index: 2; }
.ea-kick { margin: 0; color: var(--navy); font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.ea-modal h2 { margin: 6px 0; font-size: 30px; letter-spacing: -.03em; line-height: 1.1; }
.ea-h3 { margin: 0 0 12px; font-size: 20px; }
.ea-lede { color: var(--muted); margin: 0 0 12px; font-size: 16px; }
.ea-lede b { color: var(--ink); }
.ea-modal hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0 20px; }
.ea-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ea-steps li { display: flex; gap: 14px; align-items: flex-start; }
.ea-steps li > span { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); font-weight: 900; display: grid; place-items: center; }
.ea-steps b { font-size: 16px; }
.ea-steps p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.ea-form { display: grid; gap: 12px; }
.ea-form label { display: grid; gap: 5px; font-weight: 700; font-size: 14px; }
.ea-form input, .ea-form select, .ea-form textarea { font: inherit; font-size: 16px; font-weight: 400; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.ea-form input:focus, .ea-form select:focus, .ea-form textarea:focus { outline: 0; border-color: var(--navy); }
.ea-hint { margin: -4px 0 0; font-size: 13px; color: var(--muted); }
.ea-row2 label { align-content: start; }
.ea-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ea-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ea-err { margin: 0; color: var(--red); font-weight: 700; font-size: 14px; }
.ea-err:empty { display: none; }
.ea-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--navy); color: #fff; font-weight: 800; font-size: 15px; border-radius: 999px; padding: 13px 22px; }
.ea-btn:disabled { opacity: .6; }
.ea-btn svg { width: 18px; height: 18px; }
.ea-done { text-align: center; padding: 8px 0; }
.ea-done-ic { width: 56px; height: 56px; border-radius: 50%; background: #2f8a4c; color: #fff; display: grid; place-items: center; margin: 0 auto 10px; }
.ea-done h3 { margin: 0 0 6px; font-size: 22px; }
.ea-done p { color: var(--muted); margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .main-nav { display: none; }
  .a-grid { grid-template-columns: repeat(2, 1fr); }
  .a-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .header-inner { height: 60px; }
  .cb-more { display: none; }
  .ea-fab { right: 12px; padding: 12px 15px; font-size: 14px; }
  .ea-row2 { grid-template-columns: 1fr; }
  .ea-pad { padding: 22px 18px 24px; }
  .ea-modal h2 { font-size: 24px; }
  .concept-bar { justify-content: space-between; gap: 8px; padding: 8px 12px; font-size: 14px; }
  .cb-star { width: 18px; height: 18px; }
  .cb-text { flex: 1; }
  .cb-cta { font-size: 13px; padding: 5px 12px; }
  .cb-cta-long { display: none; }
  .cb-cta-short { display: inline; }
  .brand img { height: 36px; }
  .a-ask { padding: 36px 16px 90px; }
  .a-grid { gap: 10px; margin-top: 28px; }
  .a-tile { padding: 18px 10px 16px; border-radius: 18px; }
  .a-ic { width: 56px; height: 56px; }
  .a-ic svg { width: 26px; height: 26px; }
  .a-tile b { font-size: 17px; }
  .a-tile small { font-size: 12px; }
  .a-res { padding: 24px 16px 96px; }
  .a-list { grid-template-columns: 1fr; }
  .a-card.big { grid-column: auto; grid-row: auto; aspect-ratio: 4/3; }
  .b-chips { justify-content: flex-start; }
  .b-loc { padding: 0 12px; }
  .b-top { top: 12px; gap: 8px; }
  .b-chip { padding: 8px 13px; font-size: 14px; }
  .maplibregl-ctrl-top-right { display: none; }
  .loc { padding-left: 12px; gap: 6px; }
  .loc-me span { display: none; }
  .loc-me { width: 40px; padding: 0; justify-content: center; }
  .a-near { margin-top: 40px; }
  .a-near h2 { font-size: 19px; }
  .b-card > img, .b-card > .ph { width: 72px; height: 72px; }
  #sheet { margin: auto auto 0; width: 100vw; max-width: 100vw; border-radius: 22px 22px 0 0; max-height: 88dvh; }
  .sh-body { padding: 18px 18px 24px; }
  .sh-body h2 { font-size: 24px; }
  .sh-actions { flex-direction: column; }
  .sh-actions .btn { width: 100%; }
  .sh-img { aspect-ratio: 16/9; }
  .b-card { flex-basis: 84vw; }
}
