/* Little Adventures: bright and friendly */

:root {
  --paper: #fffaf1;
  --surface: #ffffff;
  --ink: #2b2d42;
  --ink-soft: #5e6178;
  --ink-faint: #9a9cb0;
  --line: #f0e7d8;
  --line-strong: #e1d5bf;

  --coral: #f2545b;
  --coral-deep: #d63a42;
  --coral-tint: #fde6e7;
  --sun: #ffc43d;
  --sun-deep: #d99a00;
  --sun-tint: #fff3d1;
  --sky: #4cc9f0;
  --sky-deep: #1890b8;
  --sky-tint: #e3f6fc;
  --mint: #2bb673;
  --mint-tint: #e2f6ec;
  --grape: #8e6be0;
  --danger: #d63a42;
  --cat: var(--mint);

  --font-display: "Fredoka", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow: 0 10px 30px rgba(43, 45, 66, 0.08);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
a { color: var(--sky-deep); text-underline-offset: 0.15em; }
a:hover { color: var(--coral-deep); }
code { font-family: ui-monospace, Consolas, monospace; font-size: 0.92em; background: var(--sun-tint); padding: 0.1em 0.35em; border-radius: 6px; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: var(--gutter); top: -100px;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 0 0 10px 10px; z-index: 100;
}
.skip:focus { top: 0; }

.muted { color: var(--ink-soft); }
.small { font-size: 0.92rem; }
.link-quiet { color: var(--ink-soft); font-weight: 700; text-decoration: none; }
.link-quiet:hover { color: var(--ink); text-decoration: underline; }
.link-danger { background: none; border: 0; padding: 0; font: inherit; color: var(--danger); cursor: pointer; font-weight: 700; }
.link-danger:hover { text-decoration: underline; }

/* Header */

.site-header {
  width: 100%; max-width: var(--max); margin: 0 auto; padding: 16px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.45rem;
  color: var(--ink); text-decoration: none;
}
.wordmark:hover { color: var(--ink); }
.wordmark-sun { width: 34px; height: 34px; fill: var(--sun); stroke: var(--sun-deep); stroke-width: 2; stroke-linecap: round; }
.wordmark-sun path { fill: none; }

.site-nav { display: flex; gap: 4px; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.site-nav a {
  text-decoration: none; color: var(--ink-soft); font-weight: 800; font-size: 0.98rem;
  padding: 9px 14px; border-radius: var(--radius-pill);
}
.site-nav a:hover { color: var(--ink); background: var(--sun-tint); }
.site-nav a.is-current { color: var(--ink); background: var(--sun); }
.saved-count {
  display: inline-block; min-width: 1.4em; padding: 0 0.4em; margin-left: 4px;
  background: var(--coral); color: #fff; border-radius: var(--radius-pill);
  font-size: 0.78rem; text-align: center; line-height: 1.5;
}

/* Main container */

.site-main { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 64px; flex: 1; }
.site-main-full { max-width: none; padding: 0; }

.site-footer {
  border-top: 2px dashed var(--line-strong); padding: 28px var(--gutter) 40px;
  color: var(--ink-soft); font-size: 0.95rem;
}
.site-footer p { max-width: var(--max); margin: 0 auto; }
.site-credits { margin-top: 6px !important; font-size: 0.88rem; }

.flash {
  margin: 8px 0 20px; padding: 12px 18px; border-radius: var(--radius);
  background: var(--mint-tint); border: 2px solid var(--mint); font-weight: 700;
}

.notice {
  margin-top: 28px; padding: 12px 18px; border-radius: var(--radius);
  background: var(--sun-tint); border: 2px solid var(--sun); font-size: 0.95rem;
}

/* Hero */

.hero { padding: clamp(16px, 4vw, 44px) 0 8px; position: relative; }
.hero-with-photo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 24px 48px; align-items: center; }
.hero-with-photo > * { min-width: 0; }
.hero-with-photo .finder, .hero-with-photo .chips, .hero-with-photo .kinds { grid-column: 1 / -1; }
.hero-context { color: var(--ink-soft); margin-bottom: 6px; font-weight: 700; }
.hero-title {
  font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.02em;
  margin: 0 0 16px; max-width: 14ch; color: var(--ink);
}
.hero-sub { font-size: 1.15rem; max-width: 48ch; color: var(--ink-soft); margin-bottom: 22px; }
.hero-sub a { font-weight: 800; }

.hero-art { position: relative; min-height: 120px; min-width: 0; }
.hero-photo {
  display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 6px solid #fff;
}
.hero-sun { position: absolute; width: clamp(90px, 12vw, 150px); height: auto; top: -24px; right: -18px; }
.hero-with-photo .hero-sun { top: -34px; left: -30px; right: auto; }
.hero:not(.hero-with-photo) .hero-art { position: absolute; top: 0; right: 0; width: 160px; height: 160px; pointer-events: none; }

@media (max-width: 760px) {
  .hero-with-photo { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .hero-with-photo .hero-art { max-width: 420px; }
  .hero-with-photo .hero-sun { top: -22px; left: -6px; width: 84px; }
  .hero-sub { margin-bottom: 8px; }
}
.hero-sun circle { fill: var(--sun); }
.hero-sun .hero-rays path { stroke: var(--sun-deep); stroke-width: 7; stroke-linecap: round; }
.hero-sun .hero-smile { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
.hero-sun .hero-eye { fill: var(--ink); }

.finder { display: flex; gap: 10px; align-items: stretch; max-width: 760px; margin: 8px 0 18px; }
.finder-search { position: relative; flex: 1 1 240px; min-width: 0; display: block; }
.finder-search svg {
  position: absolute; left: 20px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%);
  fill: none; stroke: var(--ink-soft); stroke-width: 2.4; stroke-linecap: round; pointer-events: none;
}
.finder-search input {
  width: 100%; height: 58px; padding: 0 18px 0 52px;
  border: 3px solid var(--ink); border-radius: var(--radius-pill); background: var(--surface);
  font: inherit; font-size: 1.05rem; color: var(--ink); box-shadow: var(--shadow);
}
.finder-search input::placeholder { color: var(--ink-faint); }
.finder-search input:focus { outline: 3px solid var(--sky); outline-offset: 2px; }
@media (max-width: 520px) {
  .finder { flex-wrap: wrap; }
  .finder .btn { width: 100%; height: 50px; }
}

/* Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 22px; height: 48px; border-radius: var(--radius-pill);
  font: inherit; font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 3px solid transparent; white-space: nowrap; transition: transform 120ms ease, background 120ms ease;
}
.btn:active { transform: translateY(1px); }
.finder .btn { height: 58px; }
.btn-primary { background: var(--coral); color: #fff; border-color: var(--coral); box-shadow: 0 8px 18px rgba(242, 84, 91, 0.28); }
.btn-primary:hover { background: var(--coral-deep); border-color: var(--coral-deep); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-save { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn-save svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.btn-save[aria-pressed="true"] { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn-save[aria-pressed="true"] svg { fill: #fff; }
.btn-small { height: 40px; padding: 0 16px; font-size: 0.95rem; }

/* Chips */

.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.chips-tight { gap: 6px; margin-bottom: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; border-radius: var(--radius-pill);
  background: var(--surface); border: 2px solid var(--line-strong);
  color: var(--ink); font-weight: 800; font-size: 0.93rem; text-decoration: none; line-height: 1.2;
  cursor: pointer; font-family: inherit;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--coral); border-color: var(--coral); color: #fff; }
.chip-cat { background: color-mix(in srgb, var(--cat) 14%, #fff); border-color: transparent; color: color-mix(in srgb, var(--cat) 55%, var(--ink)); }
.chip-cat:hover { border-color: var(--cat); }
.chip-cat.is-active { background: color-mix(in srgb, var(--cat) 30%, #fff); border-color: var(--cat); color: color-mix(in srgb, var(--cat) 45%, var(--ink)); }
.chip-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cat); flex: none; }
.chip-quiet { background: transparent; border-color: var(--line-strong); }
.chip-area { background: var(--sky-tint); border-color: transparent; color: var(--sky-deep); }
.chip-area.is-active { background: var(--sky-deep); border-color: var(--sky-deep); color: #fff; }
.chip-group { background: var(--surface); border-color: var(--sky-deep); }
.chip-group.is-partial { background: var(--sky-tint); border-color: var(--sky-deep); }
.landing-head .finder { margin: 14px 0 12px; max-width: 640px; }
.landing-head .chips-refine { margin-bottom: 8px; }
.landing-more { margin-top: 14px; }
.chip-select { padding-right: 8px; }
.chip-select select { border: 0; background: transparent; font: inherit; font-weight: 800; color: inherit; margin-left: 2px; }
.chips-divider { width: 2px; height: 22px; background: var(--line-strong); margin: 0 4px; border-radius: 2px; }
.chips-clear { margin-left: 6px; }
.chips-areas { margin-bottom: 14px; }

/* Browse-by-kind photo tiles */

.kinds {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 12px;
  overflow-x: auto; padding: 4px 2px 10px; margin: 4px 0 10px; scroll-snap-type: x proximity; scrollbar-width: thin;
}
@media (min-width: 1000px) {
  .kinds { grid-auto-flow: row; grid-template-columns: repeat(8, 1fr); overflow: visible; }
}
.kind {
  position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: color-mix(in srgb, var(--cat) 25%, #fff); text-decoration: none; color: #fff; scroll-snap-align: start;
  border: 4px solid #fff; box-shadow: var(--shadow); transition: transform 150ms ease;
}
.kind:hover { transform: translateY(-3px); color: #fff; }
.kind img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kind::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(43, 45, 66, 0.75), rgba(43, 45, 66, 0) 60%); }
.kind-name {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.15; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.kind-name::before { content: ""; display: block; width: 28px; height: 5px; border-radius: 3px; background: var(--cat); margin-bottom: 6px; }

/* Results */

.results { padding-top: 14px; }
.results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.results-title { font-size: 1.6rem; margin: 0; }
.results-tools { display: flex; gap: 18px; align-items: baseline; font-size: 0.95rem; color: var(--ink-soft); flex-wrap: wrap; }
.sort { display: inline-flex; gap: 10px; }
.sort a { color: var(--ink-soft); text-decoration: none; font-weight: 700; }
.sort a.is-active { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 4px; }
.results-tagline { color: var(--ink-soft); border-left: 5px solid var(--cat); padding-left: 12px; margin: 0 0 18px; border-radius: 3px; }

.empty { padding: 36px 24px; background: var(--surface); border: 2px dashed var(--line-strong); border-radius: var(--radius); color: var(--ink-soft); }
.empty p { margin: 0; }

/* Place ledger */

.places {
  list-style: none; margin: 0; padding: 0;
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
.place { position: relative; border-top: 2px solid var(--line); border-left: 8px solid var(--cat); }
.place:first-child { border-top: 0; }
.place:hover { background: color-mix(in srgb, var(--cat) 7%, var(--surface)); }
.place-link {
  display: grid; grid-template-columns: 180px minmax(0, 1fr) 260px; gap: 6px 24px; align-items: start;
  padding: 18px 64px 18px 20px; color: inherit; text-decoration: none;
}
.place-cat {
  grid-column: 1; justify-self: start; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--cat) 16%, #fff); color: color-mix(in srgb, var(--cat) 55%, var(--ink));
  font-weight: 800; font-size: 0.85rem;
}
.place-name { grid-column: 2; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.15; }
.place-where { grid-column: 2; color: var(--ink-soft); font-size: 0.95rem; }
.place-summary { grid-column: 2; margin-top: 2px; }
.place-link:hover .place-name { color: var(--coral-deep); }
.facts { grid-column: 3; grid-row: 1 / span 4; display: flex; flex-wrap: wrap; gap: 4px 12px; align-content: start; padding-top: 5px; font-size: 0.9rem; color: var(--ink-soft); }
.fact-strong { color: var(--ink); font-weight: 800; }
.fact-free { color: var(--mint); font-weight: 800; }
.fact-soft { color: var(--ink-faint); }

.save {
  position: absolute; right: 14px; top: 14px; width: 42px; height: 42px;
  border: 0; background: transparent; border-radius: 50%; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.save svg { width: 26px; height: 26px; fill: none; stroke: var(--ink-faint); stroke-width: 2.2; transition: transform 120ms ease; }
.save:hover svg { stroke: var(--coral); }
.save[aria-pressed="true"] svg { fill: var(--coral); stroke: var(--coral-deep); }
.save:active svg { transform: scale(0.85); }

.places { container-type: inline-size; }
@container (max-width: 820px) {
  .place-link { grid-template-columns: 1fr; gap: 4px; padding: 16px 56px 16px 16px; }
  .place-cat, .place-name, .place-where, .place-summary, .facts { grid-column: 1; grid-row: auto; }
  .facts { margin-top: 6px; }
}
@media (max-width: 860px) {
  .place-link { grid-template-columns: 1fr; gap: 4px; padding: 16px 56px 16px 16px; }
  .place-cat, .place-name, .place-where, .place-summary, .facts { grid-column: 1; grid-row: auto; }
  .facts { margin-top: 6px; }
}

/* Page heads */

.page-head { padding: clamp(16px, 4vw, 40px) 0 12px; }
.page-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-title { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 8px; }
.page-sub { color: var(--ink-soft); font-size: 1.1rem; max-width: 56ch; margin-bottom: 20px; }
.page-narrow { max-width: 520px; padding-top: clamp(16px, 4vw, 40px); }
.crumbs { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 4px; }
.crumbs a { color: inherit; }

/* Place details */

.detail { padding-top: clamp(12px, 3vw, 32px); }
.detail-head {
  position: relative; padding: 28px clamp(20px, 4vw, 40px); margin-bottom: 28px; overflow: hidden;
  background: color-mix(in srgb, var(--cat) 16%, #fff); border-radius: var(--radius-lg);
}
.detail-head-photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 34%); gap: 6px 28px; align-items: center; }
.detail-head-photo > * { grid-column: 1; }
.detail-head-photo > .detail-photo { grid-column: 2; grid-row: 1 / span 6; align-self: center; }
.detail-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 5px solid #fff; box-shadow: var(--shadow); }
.detail-head .btn-save { justify-self: start; }
.detail-head p { margin-bottom: 0.6em; }
.detail-cat {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--radius-pill);
  background: #fff; color: color-mix(in srgb, var(--cat) 55%, var(--ink)); font-weight: 800; text-decoration: none; font-size: 0.9rem;
}
.detail-title { font-size: clamp(2rem, 5.5vw, 3.4rem); margin: 12px 0 4px; max-width: 20ch; }
.detail-where { color: var(--ink-soft); font-weight: 700; margin-bottom: 10px; }
.detail-summary { font-size: 1.2rem; max-width: 60ch; margin-bottom: 14px; }
.detail-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 1rem; color: var(--ink-soft); margin-bottom: 18px; }
.detail-head .btn-save { height: 46px; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.detail-section { margin-bottom: 32px; max-width: 66ch; }
.detail-section h2 { font-size: 1.5rem; }
.detail-section h3 { font-size: 1.15rem; margin-top: 20px; }

.info-card { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; }
.info-card h2 { font-size: 1.2rem; margin-bottom: 12px; }
.info-list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 0.98rem; }
.info-list dt { color: var(--ink-soft); font-weight: 700; }
.info-list dd { margin: 0; overflow-wrap: anywhere; }
.amenities { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.amenities li { padding-left: 26px; position: relative; font-weight: 600; }
.amenities li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--cat); color: #fff; font-size: 0.72rem; font-weight: 900; display: grid; place-items: center; margin-top: 0.3em; }

.mini-events { list-style: none; margin: 0 0 8px; padding: 0; border-top: 2px solid var(--line); }
.mini-events li { display: grid; gap: 2px; padding: 12px 0; border-bottom: 2px solid var(--line); }
.mini-when { color: var(--ink-soft); font-size: 0.92rem; font-weight: 700; }
.mini-title { font-weight: 800; }

.tips { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.tip { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.tip-body { margin-bottom: 6px; }
.tip-meta { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
.tip-form { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.tip-form h3 { margin-top: 0; }

.related { margin-top: 36px; }
.related h2 { font-size: 1.5rem; }

@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; gap: 8px; }
  .detail-head-photo { grid-template-columns: 1fr; }
  .detail-head-photo > .detail-photo { grid-column: 1; grid-row: auto; max-height: 240px; width: auto; max-width: 100%; margin-bottom: 8px; }
}

/* Events */

.days { display: grid; gap: 28px; }
.day-title { font-size: 1.4rem; margin-bottom: 10px; padding: 4px 14px; border-radius: var(--radius-pill); background: var(--sun); display: inline-block; }
.events { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.event { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 16px 20px; border-top: 2px solid var(--line); }
.event:first-child { border-top: 0; }
.event-time { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.2; display: grid; gap: 2px; align-content: start; }
.event-end { font-family: var(--font-body); font-weight: 700; font-size: 0.9rem; color: var(--ink-soft); }
.event-body { display: grid; gap: 3px; }
.event-title { font-weight: 800; font-size: 1.1rem; }
.event-title a { color: inherit; }
.event-repeat { display: inline-block; margin-left: 8px; font-size: 0.78rem; font-weight: 800; color: var(--mint); background: var(--mint-tint); padding: 2px 9px; border-radius: var(--radius-pill); vertical-align: middle; }
.event-where { color: var(--ink-soft); font-size: 0.95rem; }
.event-desc { max-width: 70ch; }
.event .facts { grid-column: auto; grid-row: auto; padding-top: 2px; }

@media (max-width: 640px) {
  .event { grid-template-columns: 1fr; gap: 6px; }
}

/* Explore map */

.explore { display: grid; grid-template-columns: minmax(340px, 440px) minmax(0, 1fr); height: calc(100dvh - 72px); min-height: 520px; }
.explore-panel { overflow-y: auto; overflow-x: hidden; min-width: 0; padding: 18px var(--gutter) 40px 24px; background: var(--paper); }
.explore-panel > *, .explore-controls > *, .control-group > * { min-width: 0; max-width: 100%; }
.explore-head { margin-bottom: 12px; }
.explore-title { font-size: 2rem; margin-bottom: 2px; }
.explore-sub { color: var(--ink-soft); font-weight: 700; margin: 0; }
.explore-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
.control-group { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.control-label { font-weight: 800; font-size: 0.85rem; color: var(--ink-soft); }
.seg { display: inline-flex; background: var(--sun-tint); border-radius: var(--radius-pill); padding: 4px; gap: 4px; justify-self: start; }
.seg-btn { border: 0; background: transparent; font: inherit; font-weight: 800; padding: 8px 18px; border-radius: var(--radius-pill); cursor: pointer; color: var(--ink-soft); }
.seg-btn.is-on { background: var(--sun); color: var(--ink); }
.locate-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn-locate svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.locate-hint { color: var(--ink-soft); font-size: 0.9rem; }
.range-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range-inputs label { display: grid; gap: 4px; font-weight: 700; font-size: 0.85rem; color: var(--ink-soft); }
.range-inputs input { min-width: 0; width: 100%; padding: 7px 10px; border: 2px solid var(--line-strong); border-radius: 10px; font: inherit; color: var(--ink); background: var(--surface); }

.explore-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.xr {
  display: grid; gap: 2px; padding: 12px 14px 12px 16px; background: var(--surface); border: 2px solid var(--line); border-left: 8px solid var(--cat);
  border-radius: 14px; cursor: pointer;
}
.xr:hover { border-color: var(--cat); }
.xr-cat { font-size: 0.82rem; font-weight: 800; color: color-mix(in srgb, var(--cat) 55%, var(--ink)); }
.xr-event .xr-cat { color: var(--ink-soft); }
.xr-title { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--ink); text-decoration: none; line-height: 1.2; }
.xr-title:hover { color: var(--coral-deep); }
.xr-meta { color: var(--ink-soft); font-size: 0.9rem; }
.xr-facts { font-size: 0.88rem; color: var(--ink-soft); }
.xr-facts b { color: var(--ink); }
.explore-empty { padding: 16px 0; }

.explore-map-wrap { position: relative; }
.explore-map { position: absolute; inset: 0; background: #e8f0f4; }

@media (max-width: 900px) {
  .explore { grid-template-columns: minmax(0, 1fr); grid-template-rows: 52vh auto; height: auto; }
  .explore-map-wrap { order: -1; height: 52vh; }
  .explore-panel { padding: 16px var(--gutter) 40px; }
}

.leaflet-container { font-family: var(--font-body); }
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--shadow); }
.leaflet-popup-content { font-size: 0.95rem; line-height: 1.45; margin: 12px 16px; }
.leaflet-popup-content strong { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.leaflet-popup-content .pop-cat { font-weight: 800; font-size: 0.82rem; }
.leaflet-popup-content .pop-facts { color: var(--ink-soft); font-size: 0.88rem; }

.pin span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); }
.pin-event span { border-radius: 4px; transform: rotate(45deg) scale(0.9); }
.pin-approx span { border-style: dashed; border-color: var(--ink); opacity: 0.75; }
.pin-here span { background: var(--coral); border-color: #fff; box-shadow: 0 0 0 6px rgba(242, 84, 91, 0.25), 0 2px 6px rgba(0, 0, 0, 0.3); }

/* Forms */

.form { max-width: 820px; }
.form-narrow { max-width: 560px; }
.form-stack { display: grid; gap: 16px; max-width: 360px; }
.form-section { border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 18px 22px 22px; margin: 0 0 18px; }
.form-section legend { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; padding: 0 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.field { display: grid; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 800; font-size: 0.95rem; }
.field input, .field select, .field textarea, .toolbar input, .plan-email-form input[type="email"] {
  width: 100%; padding: 10px 12px; border: 2px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); font: inherit; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus, .plan-email-form input:focus { border-color: var(--ink); outline: 3px solid var(--sky); outline-offset: 1px; }
.field textarea { resize: vertical; }
.field-error { color: var(--danger); font-size: 0.9rem; font-weight: 700; }
.field-error:empty { display: none; }
.form-errors { color: var(--danger); font-weight: 700; margin-bottom: 12px; }
.form-errors ul { margin: 0; padding-left: 20px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 20px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--coral); }
.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.color-field { display: flex; gap: 8px; align-items: center; }
.color-field input[type="color"] { width: 48px; height: 44px; padding: 2px; border-radius: 10px; border: 2px solid var(--line-strong); background: var(--surface); }

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* Manage */

.manage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.manage-card {
  display: grid; gap: 2px; padding: 20px 22px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius);
  color: inherit; text-decoration: none;
}
.manage-card:hover { border-color: var(--coral); color: inherit; }
.manage-card-static:hover { border-color: var(--line); }
.manage-count { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; line-height: 1; color: var(--coral); }
.manage-label { font-weight: 800; }
.manage-hint { color: var(--ink-soft); font-size: 0.92rem; }
.manage-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.manage-section h2 { font-size: 1.3rem; }

.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar input { max-width: 320px; }
.toolbar .btn { height: 44px; }

.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 0.97rem; }
.table th, .table td { text-align: left; padding: 10px 14px; border-top: 2px solid var(--line); vertical-align: top; }
.table th { border-top: 0; font-size: 0.85rem; color: var(--ink-soft); font-weight: 800; background: var(--sun-tint); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { white-space: nowrap; text-align: right; }
.table .actions form { display: inline; margin-left: 12px; }
.table-compact { max-width: 480px; }
.tag { display: inline-block; margin-left: 8px; font-size: 0.75rem; font-weight: 800; color: var(--sun-deep); background: var(--sun-tint); padding: 2px 9px; border-radius: var(--radius-pill); vertical-align: middle; }
.cat-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--cat); margin-right: 8px; vertical-align: middle; }

@media (max-width: 760px) {
  .table thead { display: none; }
  .table tr { display: grid; padding: 10px 14px; border-top: 2px solid var(--line); gap: 2px; }
  .table td { border: 0; padding: 0; }
  .table .actions { text-align: left; margin-top: 6px; }
  .table .actions form { margin-left: 0; margin-right: 12px; }
}

/* Admin map */

.map-status form { margin: 0; }
.tag-live { color: var(--mint); background: var(--mint-tint); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.55; } }

.admin-map { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.map-filters {
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  display: grid; gap: 18px; position: sticky; top: 12px; max-height: calc(100dvh - 24px); overflow-y: auto; overflow-x: hidden; font-size: 0.95rem;
  min-width: 0;
}
.map-filters select, .map-filters input { min-width: 0; max-width: 100%; }
.filter-group { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.filter-group h2 { font-size: 0.95rem; margin: 0 0 2px; color: var(--ink-soft); font-family: var(--font-body); font-weight: 800; }
.filter-group select, .filter-group input[type="date"] {
  width: 100%; padding: 8px 10px; border: 2px solid var(--line-strong); border-radius: 10px; background: var(--surface); font: inherit; color: var(--ink);
}
.field-inline { display: grid; gap: 4px; font-weight: 700; }
.quick-times { display: flex; flex-wrap: wrap; gap: 6px; }
.quick-times .chip { padding: 6px 10px; font-size: 0.86rem; }
.filter-links { display: flex; gap: 12px; }
.filter-links button { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

.map-stage { display: grid; gap: 14px; }
.map-canvas { height: min(68dvh, 720px); min-height: 380px; border-radius: var(--radius); border: 2px solid var(--line); background: #e8f0f4; }
.map-summary { margin: 0; color: var(--ink-soft); font-weight: 700; }
.map-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.map-lists h2 { font-size: 1.15rem; }
.map-lists .count { color: var(--ink-faint); font-weight: 700; margin-left: 4px; }
.map-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); max-height: 420px; overflow: auto; font-size: 0.95rem; }
.map-list li { padding: 8px 12px; border-top: 2px solid var(--line); display: grid; gap: 1px; }
.map-list li:first-child { border-top: 0; }
.map-list a { font-weight: 800; text-decoration: none; }
.map-list a:hover { text-decoration: underline; }
.map-list-meta { color: var(--ink-soft); font-size: 0.88rem; }
.map-list:empty::before { content: "Nothing to show."; display: block; padding: 10px 12px; color: var(--ink-faint); }

@media (max-width: 960px) {
  .admin-map { grid-template-columns: 1fr; }
  .map-filters { position: static; max-height: none; }
  .map-lists { grid-template-columns: 1fr; }
}

/* Sign in, account, newsletter */

.nav-form { display: inline; margin: 0; }
.nav-btn { background: transparent; border: 0; font: inherit; font-weight: 800; color: var(--ink-soft); padding: 9px 14px; border-radius: var(--radius-pill); cursor: pointer; }
.nav-btn:hover { color: var(--ink); background: var(--sun-tint); }
.nav-quiet { color: var(--ink-faint) !important; }

.auth { max-width: 460px; padding-top: clamp(16px, 4vw, 48px); }
.auth-wide { max-width: 640px; }
.auth-form { display: grid; gap: 16px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.auth-form .form-actions { margin-top: 4px; flex-wrap: wrap; }
.code-input { font-size: 1.5rem; letter-spacing: 0.3em; font-variant-numeric: tabular-nums; max-width: 240px; }
.field-label { font-weight: 800; font-size: 0.95rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; align-items: start; }
.settings-grid .form-section { margin: 0; display: grid; gap: 14px; }
.settings-grid h2 { font-size: 1.3rem; margin: 0; }
.mfa-steps { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.mfa-setup { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.qr { width: 180px; height: 180px; background: #fff; padding: 6px; border: 2px solid var(--line); border-radius: 12px; }
.qr img, .qr canvas { display: block; width: 168px; height: 168px; }
.shared-key { display: inline-block; font-size: 0.95rem; margin-bottom: 12px; }
.mfa-verify { display: grid; gap: 10px; justify-items: start; }
.recovery-codes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 16px; }
.recovery-codes code { font-size: 1rem; }
.reset-link { display: block; overflow-wrap: anywhere; font-size: 0.85rem; }
.user-tools { margin-top: 24px; }
.user-tools .form-actions { flex-wrap: wrap; }
.user-tools form { margin: 0; }
.role-options { display: grid; gap: 10px; }
.tag-on { color: var(--mint); background: var(--mint-tint); }
.tag-off { color: var(--danger); background: var(--coral-tint); }

@media (max-width: 520px) {
  .mfa-setup { grid-template-columns: 1fr; }
}

.footer-newsletter {
  max-width: var(--max); margin: 0 auto 24px; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--sun-tint); border-radius: var(--radius-lg); color: var(--ink);
}
.footer-newsletter p { margin: 0; }
.footer-lead { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }

/* Area landing pages */

.landing { padding-top: clamp(12px, 3vw, 32px); }
.landing-head {
  position: relative; padding: 28px clamp(20px, 4vw, 40px); margin-bottom: 28px; overflow: hidden;
  background: var(--sky-tint); border-radius: var(--radius-lg);
}
.landing-head-photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 40%); gap: 24px 32px; align-items: center; }
.landing-head-photo > * { min-width: 0; }
.landing-kicker { font-weight: 800; color: var(--sky-deep); margin-bottom: 8px; }
.landing-kicker a { color: inherit; }
.landing-title { font-size: clamp(2rem, 5.5vw, 3.4rem); margin: 0 0 10px; max-width: 18ch; }
.landing-stats { font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 14px; }
.landing-stats a { font-weight: 800; }
.landing-photo { width: 100%; max-width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 5px solid #fff; box-shadow: var(--shadow); }
.landing-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.landing-intro { font-size: 1.15rem; max-width: 62ch; }
.landing-section { margin: 28px 0; }
.landing-section h2 { font-size: 1.5rem; }
.area-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.area-card {
  display: grid; gap: 2px; padding: 18px 20px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); transition: transform 120ms ease;
}
.area-card:hover { border-color: var(--coral); transform: translateY(-2px); color: var(--ink); }
.area-card-name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.15; }
.area-card-state { color: var(--ink-faint); font-weight: 800; font-size: 0.85rem; }
.area-card-meta { color: var(--ink-soft); font-size: 0.92rem; margin-top: 6px; }
.highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.highlights li { display: grid; gap: 2px; padding: 14px 18px; background: var(--surface); border: 2px solid var(--line); border-left: 8px solid var(--sun); border-radius: 14px; }
.chip-count { color: var(--ink-faint); font-weight: 700; margin-left: 2px; }
.plain-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-weight: 700; }
.info-card-sun { background: var(--sun-tint); border-color: var(--sun); }
.info-card-sun .btn { margin-top: 4px; }
.results-guide { margin: -6px 0 18px; color: var(--ink-soft); }
.slug-field { display: flex; align-items: center; gap: 6px; }
.slug-field span { font-weight: 800; color: var(--ink-faint); }
.slug-field input { flex: 1; }
.footer-areas { max-width: var(--max); margin: 0 auto 18px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 0.92rem; }
.footer-areas-label { font-weight: 800; color: var(--ink); }
.footer-areas a { color: var(--ink-soft); font-weight: 700; text-decoration: none; }
.footer-areas a:hover { color: var(--coral-deep); text-decoration: underline; }
.footer-area-group { color: var(--sky-deep) !important; }

@media (max-width: 900px) {
  .landing-grid { grid-template-columns: 1fr; gap: 8px; }
  .landing-head-photo { grid-template-columns: 1fr; }
  .landing-photo { max-height: 240px; }
}

/* Area page builder: accent color, custom sections, suggest box */
.landing[style*="--accent"] .landing-head { background: color-mix(in srgb, var(--accent) 14%, #fff); }
.landing[style*="--accent"] .landing-kicker,
.landing[style*="--accent"] .landing-section h2 { color: color-mix(in srgb, var(--accent) 80%, var(--ink)); }
.landing[style*="--accent"] .highlights li { border-left-color: var(--accent); }
.landing-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 12px; }
.psec { display: grid; gap: 14px 28px; align-items: center; }
.psec-text > :last-child { margin-bottom: 0; }
.psec-text p { max-width: 62ch; }
.psec-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 4px solid #fff; box-shadow: var(--shadow); }
.psec-imageleft { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.psec-imageright { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.psec-imageright .psec-photo { order: 2; }
.psec-imagetop .psec-photo { aspect-ratio: 16 / 7; }
.psec-callout { grid-template-columns: minmax(0, 1fr) auto; padding: 20px 24px; border-radius: var(--radius); background: color-mix(in srgb, var(--accent, var(--sun)) 16%, #fff); border: 2px solid color-mix(in srgb, var(--accent, var(--sun)) 55%, #fff); }
.psec-callout .psec-photo { width: 150px; aspect-ratio: 1; border-radius: 50%; }
.info-card-sky { background: var(--sky-tint); border-color: var(--sky); }
.info-card-sky .btn { margin-top: 4px; }
@media (max-width: 720px) {
  .psec-imageleft, .psec-imageright, .psec-callout { grid-template-columns: 1fr; }
  .psec-imageright .psec-photo { order: 0; }
  .psec-callout .psec-photo { width: 110px; }
}

/* Featured events */
.featured-events { margin: 0 0 32px; padding: 22px clamp(16px, 3vw, 28px) 26px; background: var(--sun-tint); border: 2px solid var(--sun); border-radius: var(--radius-lg); }
.featured-events-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.featured-events-head h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 1.7rem); }
.featured-events-head h2::before { content: ""; display: inline-block; width: 0.9em; height: 0.9em; margin-right: 8px; vertical-align: -0.08em; background: var(--coral); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.fe-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.fe-card { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.fe-photo { position: relative; aspect-ratio: 16 / 10; background: color-mix(in srgb, var(--cat, var(--coral)) 30%, #fff); }
.fe-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fe-date { position: absolute; left: 12px; top: 12px; display: grid; justify-items: center; min-width: 56px; padding: 6px 8px 4px; background: #fff; border-radius: 14px; box-shadow: 0 4px 12px rgba(43, 45, 66, 0.18); line-height: 1; }
.fe-month { font-weight: 800; font-size: 0.75rem; color: var(--coral-deep); text-transform: uppercase; letter-spacing: 0.04em; }
.fe-day { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--ink); }
.fe-body { display: grid; align-content: start; gap: 4px; padding: 14px 16px 16px; }
.fe-when { margin: 0; font-weight: 800; font-size: 0.9rem; color: var(--coral-deep); }
.fe-title { margin: 0; font-size: 1.2rem; line-height: 1.2; }
.fe-title a { color: var(--ink); text-decoration: none; }
.fe-title a:hover { text-decoration: underline; }
.fe-where { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.fe-desc { margin: 4px 0 0; font-size: 0.95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fe-body .facts { grid-column: 1; grid-row: auto; margin-top: 6px; padding-top: 0; }
.featured-events-compact .fe-photo { aspect-ratio: 16 / 8; }
.badge-featured { display: inline-block; margin-left: 8px; font-size: 0.72rem; font-weight: 800; color: #fff; background: var(--coral); padding: 2px 9px; border-radius: var(--radius-pill); vertical-align: middle; }
.xr-cat .badge-featured, .pop-cat .badge-featured { margin: 0 4px 0 0; }
.event-featured { background: var(--sun-tint); border-left: 6px solid var(--coral); }
.mini-featured .mini-title { color: var(--coral-deep); }
.page-head-tight { padding-top: 0; }
@media (max-width: 720px) {
  .fe-cards { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .fe-card { scroll-snap-align: start; }
}

/* Manage: featured stars, page builder, AI research */
.star-cell { width: 44px; }
.star-toggle { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--line-strong); }
.star-toggle svg { fill: currentColor; }
.star-toggle:hover { color: var(--sun-deep); background: var(--sun-tint); }
.star-toggle.is-on { color: var(--sun); }
.row-featured td { background: var(--sun-tint); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 20px; margin-bottom: 14px; }
.pick-list { display: grid; gap: 6px; max-height: 360px; overflow-y: auto; padding: 12px 14px; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; }
.thumb { display: block; border-radius: 10px; border: 2px solid var(--line); height: auto; margin-bottom: 8px; }
.thumb-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.form-actions-sticky { position: sticky; bottom: 0; z-index: 5; padding: 12px 0; background: linear-gradient(to top, var(--paper) 70%, transparent); }
.section-card { margin-bottom: 12px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); }
.section-card > summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px; cursor: pointer; font-weight: 800; }
.section-card[open] > summary { border-bottom: 2px solid var(--line); }
.section-card > form { padding: 16px 18px; }
.section-card-title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.tag-ai { color: var(--grape); background: color-mix(in srgb, var(--grape) 14%, #fff); }
.candidates { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.candidate { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; padding: 14px 16px; background: var(--surface); border: 2px solid var(--line); border-left: 6px solid var(--cat, var(--mint)); border-radius: 14px; }
.candidate.is-done { opacity: 0.65; }
.candidate-pick { display: grid; place-items: start center; padding-top: 2px; cursor: pointer; }
.candidate-pick input { width: 22px; height: 22px; accent-color: var(--coral); }
.candidate-body p { margin: 0 0 4px; }
.candidate-name { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.candidate-name .tag { text-decoration: none; }
.candidate-more summary { cursor: pointer; font-weight: 700; color: var(--sky-deep); }
.xr-featured { background: var(--sun-tint); }

/* Opening hours */
.open-status { display: inline-block; font-weight: 800; padding: 1px 10px; border-radius: var(--radius-pill); }
.open-status.is-open { color: var(--mint); background: var(--mint-tint); }
.open-status.is-closed { color: var(--coral-deep); background: var(--coral-tint); }
.hours-week { margin-top: 6px; }
.hours-week summary { cursor: pointer; font-weight: 700; color: var(--sky-deep); font-size: 0.92rem; }
.hours-table { border-collapse: collapse; margin: 6px 0; font-size: 0.92rem; }
.hours-table th { text-align: left; font-weight: 700; padding: 2px 14px 2px 0; }
.hours-table td { padding: 2px 0; }
.hours-table .is-today { font-weight: 800; color: var(--ink); }
.hours-editor { border-collapse: separate; border-spacing: 6px 4px; margin: 6px -6px; }
.hours-editor th { text-align: left; font-weight: 700; padding-right: 6px; }
.hours-editor select, .hours-editor input { padding: 6px 8px; border: 2px solid var(--line-strong); border-radius: 8px; font: inherit; background: var(--surface); }
.fact-open { color: var(--mint); font-weight: 800; }

/* Weather picks */
.weather { margin: 0 0 28px; padding: 18px clamp(16px, 3vw, 26px); border-radius: var(--radius-lg); background: var(--sky-tint); border: 2px solid var(--sky); }
.weather-rainy, .weather-cold { background: #eef0fb; border-color: #9aa6e6; }
.weather-hot { background: var(--coral-tint); border-color: var(--coral); }
.weather-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 24px; flex-wrap: wrap; }
.weather-day { margin: 0; font-weight: 800; color: var(--ink-soft); }
.weather h2 { margin: 2px 0 0; font-size: clamp(1.3rem, 3vw, 1.6rem); }
.weather-days { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.weather-days li { display: grid; justify-items: center; min-width: 56px; padding: 6px 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.75); line-height: 1.15; }
.weather-name { font-weight: 800; font-size: 0.8rem; color: var(--ink-soft); }
.weather-temp { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.weather-word { font-size: 0.75rem; font-weight: 800; }
.weather-days .is-in .weather-word { color: #5b67c9; }
.weather-days .is-out .weather-word { color: var(--mint); }
.weather-picks { list-style: none; margin: 14px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.weather-picks a { display: grid; gap: 2px; padding: 10px 14px; background: #fff; border-radius: 14px; border-left: 6px solid var(--cat, var(--mint)); text-decoration: none; color: var(--ink); }
.weather-picks a:hover { box-shadow: var(--shadow); }
.weather-pick-cat { font-size: 0.8rem; font-weight: 800; color: var(--ink-soft); }
.weather-pick-name { font-weight: 800; }
.weather-more { margin: 4px 0 0; font-weight: 700; }

/* Sponsored */
.fe-sponsored { outline: 3px solid var(--sun); }
.fe-sponsor { margin: 0; font-size: 0.78rem; font-weight: 800; color: var(--ink-soft); }

/* Sharing, event pages, visitor media */
.btn-share { display: inline-flex; align-items: center; gap: 6px; }
.btn-share svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.share-link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.landing-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 0; }
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 700; box-shadow: var(--shadow); transition: opacity 160ms, transform 160ms; z-index: 50; max-width: calc(100vw - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.detail-when { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--coral-deep); margin: 0 0 4px; }
.event-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.event-actions .plan-add { padding: 0 18px; height: 44px; font-size: 1rem; }
.videos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.videos video, .photo-card video { width: 100%; border-radius: 12px; background: #000; max-height: 360px; }
.contribute-cta { margin: 8px 0 24px; padding: 12px 16px; background: var(--mint-tint); border-radius: 14px; font-weight: 700; }
.captcha img { display: block; border: 2px solid var(--line-strong); border-radius: 10px; margin: 4px 0 8px; background: #fffaf1; }
.media-queue { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 14px; }
.media-item { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 16px; padding: 14px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); }
.media-preview img, .media-preview video { width: 100%; border-radius: 12px; display: block; max-height: 320px; object-fit: contain; background: #f3efe6; }
.media-info p { margin: 0 0 6px; }
@media (max-width: 640px) { .media-item { grid-template-columns: 1fr; } }

/* My plan */
.plan-add { border: 2px solid var(--coral); background: #fff; color: var(--coral-deep); font: inherit; font-weight: 800; font-size: 0.85rem; padding: 2px 10px; border-radius: var(--radius-pill); cursor: pointer; }
.plan-add:hover { background: var(--coral-tint); }
.plan-add[aria-pressed="true"] { background: var(--coral); color: #fff; }
.plan-add[aria-pressed="true"]::before { content: "\2713\00a0"; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 6px; }
.plan-days { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 22px; }
.plan-items { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.plan-item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px 18px; background: var(--surface); border: 2px solid var(--line); border-left: 6px solid var(--coral); border-radius: 14px; }
.plan-visit { border-left-color: var(--mint); }
.plan-overlap { border-color: var(--sun); background: var(--sun-tint); }
.plan-time { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.2; display: grid; gap: 2px; align-content: start; }
.plan-body { display: grid; gap: 3px; }
.plan-kind { font-size: 0.75rem; font-weight: 800; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.plan-warn { font-weight: 800; font-size: 0.9rem; color: var(--sun-deep); }
.plan-item .facts { grid-column: auto; grid-row: auto; padding-top: 2px; }
.plan-remove { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--danger); }
.plan-email-form { display: flex; gap: 8px; flex-wrap: wrap; }
.plan-email-form input[type="email"] { flex: 1 1 220px; }
.plan-email { max-width: 560px; margin-top: 8px; }
.plan-visit-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.plan-visit-fields .field:last-child { grid-column: 1 / -1; }
.plan-visit-form .btn { margin-top: 8px; }
.plan-visit-done { margin: 8px 0 0; font-weight: 700; color: var(--mint); }
@media (max-width: 640px) {
  .plan-item { grid-template-columns: 1fr; gap: 6px; }
  .tabbar a span:not(.saved-count) { font-size: 0.72rem; }
}

/* Place photos, corrections, calendar links */

.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gallery li { display: grid; gap: 4px; }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 3px solid #fff; box-shadow: var(--shadow); }
.gallery-caption { font-size: 0.85rem; color: var(--ink-soft); }
.fact-link { color: var(--sky-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 0.15em; }

/* Google Maps hand-off */

.map-card { padding: 12px; display: grid; gap: 12px; }
.mini-map { position: relative; display: block; height: 190px; border-radius: 12px; overflow: hidden; background: #e8f0f4; text-decoration: none; }
.mini-map-canvas { position: absolute; inset: 0; pointer-events: none; }
.mini-map .leaflet-control-attribution { font-size: 9px; }
.mini-map-hint {
  position: absolute; left: 10px; bottom: 10px; z-index: 500; padding: 6px 12px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.95); color: var(--ink); font-weight: 800; font-size: 0.85rem; box-shadow: var(--shadow);
}
.mini-map:hover .mini-map-hint, .mini-map:focus-visible .mini-map-hint { background: var(--coral); color: #fff; }
.gmaps-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gmaps-actions .btn { flex: 1 1 auto; }
.btn-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }
.pop-gmaps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gmaps-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: var(--radius-pill);
  background: var(--coral); color: #fff !important; font-weight: 800; font-size: 0.85rem; text-decoration: none;
}
.gmaps-btn svg, .xr-gmaps svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.gmaps-btn-quiet { background: var(--sky-tint); color: var(--sky-deep) !important; }
.xr-gmaps { display: flex; gap: 14px; margin-top: 4px; font-size: 0.88rem; font-weight: 800; }
.xr-gmaps a { display: inline-flex; align-items: center; gap: 4px; color: var(--sky-deep); text-decoration: none; }
.xr-gmaps a:hover { text-decoration: underline; }
.correction summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.correction[open] summary { margin-bottom: 12px; }
.correction .form-stack { max-width: none; }
.link-button { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.table .actions form { display: inline; }
.table .actions a, .table .actions form { margin-left: 10px; }

/* Suggestions queue */

.submissions { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.submission { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 10px; }
.submission-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.submission-head strong { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.submission-fields { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 0.97rem; }
.submission-fields dt { color: var(--ink-soft); font-weight: 700; }
.submission-fields dd { margin: 0; overflow-wrap: anywhere; }
.submission-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.submission-decide { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; }
.submission-decide input { padding: 8px 10px; border: 2px solid var(--line-strong); border-radius: 10px; font: inherit; min-width: 220px; }
.manage-card-alert { border-color: var(--coral); background: var(--coral-tint); }
.seg-wide { margin-bottom: 14px; }
.seg a.seg-btn { text-decoration: none; display: inline-block; }

/* Photo manager */

.photo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.photo-card { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; }
.photo-card.is-cover { border-color: var(--mint); }
.photo-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.photo-meta { padding: 10px 12px 0; display: grid; gap: 2px; }
.photo-actions { padding: 8px 12px 12px; display: flex; gap: 14px; align-items: center; }
.photo-actions form { margin: 0; }

/* Settings and newsletter */

.settings-wide { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.plain-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 2px; }
.newsletter-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 28px; }
.newsletter-controls { margin: 0; display: grid; gap: 12px; }
.newsletter-controls hr { border: 0; border-top: 2px dashed var(--line-strong); width: 100%; margin: 6px 0; }
.newsletter-preview h2 { font-size: 1.2rem; }
.email-frame { width: 100%; height: 760px; border: 2px solid var(--line); border-radius: var(--radius); background: #fffaf1; }
button[disabled] { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 900px) {
  .newsletter-layout { grid-template-columns: 1fr; }
  .settings-wide { grid-template-columns: 1fr; }
}

/* Credits */

.credits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.credit { display: grid; gap: 8px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 12px; }
.credit img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.credit-text { display: grid; gap: 2px; font-size: 0.95rem; }

/* Phones */

.tabbar { display: none; }

@media (max-width: 720px) {
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }

  .site-header { flex-wrap: nowrap; padding: max(10px, env(safe-area-inset-top)) var(--gutter) 8px; }
  .wordmark { font-size: 1.25rem; gap: 8px; }
  .wordmark-sun { width: 28px; height: 28px; }
  .site-nav { flex-wrap: nowrap; }
  .site-nav .nav-main { display: none; }
  .site-nav a, .nav-btn { padding: 8px 12px; font-size: 0.92rem; white-space: nowrap; }

  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 250, 241, 0.97); border-top: 2px solid var(--line);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .tabbar a {
    position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 54px;
    border-radius: 14px; color: var(--ink-soft); text-decoration: none; font-weight: 800; font-size: 0.74rem;
  }
  .tabbar svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a.is-current { color: var(--coral-deep); background: var(--coral-tint); }
  .tabbar a.is-current svg { stroke-width: 2.5; }
  .tabbar .saved-count { position: absolute; top: 4px; left: calc(50% + 6px); margin: 0; }

  /* iPhone zooms the page into any field smaller than 16px; keep them all at 16px or more. */
  input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), select, textarea { font-size: max(16px, 1em); }

  /* Rows of chips scroll sideways instead of stacking into a wall of buttons. */
  .chips:not(.chips-tight) {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
    padding: 2px var(--gutter) 6px; scroll-padding-inline: var(--gutter);
  }
  .chips:not(.chips-tight)::-webkit-scrollbar { display: none; }
  .chips > * { flex: none; }
  .chip { min-height: 42px; }
  .chips-tight .chip { min-height: 40px; }

  .hero { padding-top: 4px; }
  .hero-with-photo .hero-art { display: none; }
  .hero-title { font-size: 2.45rem; margin-bottom: 10px; }
  .hero-context { font-size: 0.92rem; }
  .hero-sub { font-size: 1rem; margin-bottom: 12px; }
  .finder { margin: 4px 0 14px; }
  .finder-search input { height: 52px; }
  .kinds { grid-auto-columns: minmax(132px, 42%); margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }

  .results-head { gap: 6px; }
  .results-title { font-size: 1.3rem; }
  .places { border-radius: var(--radius); }
  .save { width: 44px; height: 44px; right: 8px; top: 8px; }

  .page-title { font-size: 2rem; }
  .page-sub { font-size: 1rem; }

  .detail { padding-top: 4px; }
  .detail-head { padding: 18px; margin-bottom: 16px; }
  .detail-title { font-size: 2rem; }
  .detail-summary { font-size: 1.05rem; }
  .detail-head .btn-save { width: 100%; }
  /* On a phone the address, map and hours matter most, so they come before the description. */
  .detail-aside { order: -1; }

  .landing-head { padding: 18px; margin-bottom: 16px; }
  .landing-title { font-size: 2rem; }
  .landing-head .finder { margin-top: 10px; }

  .events { border-radius: var(--radius); }
  .event { padding: 14px 16px; }
  .day-title { font-size: 1.15rem; }

  .explore-panel { padding-bottom: 24px; }
  .leaflet-popup-content { margin: 10px 12px; max-width: 70vw; }

  .footer-newsletter { padding: 16px 18px; }
  .footer-newsletter .btn { width: 100%; }
  .site-footer { padding-bottom: 20px; }

  .auth { padding-top: 8px; }
  .auth-form { padding: 18px; }
  .form-actions { flex-wrap: wrap; }
}

/* Motion */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
