/* Shared site header and footer for the homepage and generated park pages.
   Change this file to update both surfaces. No Tailwind or JavaScript required. */
.site-header, .site-footer { box-sizing: border-box; }
.site-header *, .site-footer * { box-sizing: border-box; }
.site-header {
  position: relative; z-index: 30; padding: 1rem 1.25rem 1.25rem;
  background: var(--bg); color: var(--ink);
}
.site-header-inner {
  display: flex; flex-wrap: wrap;
  align-items: center; gap: .75rem 1rem;
}
.site-tagline { flex: 1 1 14rem; margin: 0; padding: 0 .5rem; text-align: center;
  font-size: .875rem; line-height: 1.45; color: var(--ink-soft); }
.site-brand { display: inline-flex; align-items: center; gap: .625rem;
  color: var(--ink); font-weight: 600; text-decoration: none; }
.site-brand img { display: block; width: 2rem; height: 2rem; object-fit: contain; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink-soft); font-size: .875rem; font-weight: 500;
  text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
/* Mobile menu toggle: a real checkbox keeps the menu keyboard-accessible
   without any JavaScript; the label is the visible button. */
.nav-toggle, .nav-toggle-button { display: none; }
.site-header a:focus-visible, .site-footer a:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px;
}
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 1.25rem;
  background: var(--bg); color: var(--ink-faint); }
.site-footer-inner { max-width: 72rem; margin: 0 auto; display: flex;
  flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.site-footer-signoff { margin: 0; font-family: 'Reenie Beanie', cursive;
  font-size: 1.5rem; line-height: 2rem; }
.site-footer-note { max-width: 28rem; margin: 0; font-size: .75rem; line-height: 1.5; }
/* Clear support and social actions, with icon and text labels at every size. */
.site-footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: .625rem; }
.site-footer .site-footer-link { display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem; min-height: 2.75rem; padding: .625rem .9rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink); font-size: .875rem; font-weight: 600;
  line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease, transform .2s ease; }
.site-footer .site-footer-link-coffee { border-color: var(--coral-deep); background: var(--coral); }
.site-footer .site-footer-link:hover { background: var(--sage); transform: translateY(-2px); }
.site-footer .site-footer-link-coffee:hover { background: var(--coral-deep); }
.site-footer-link svg { display: block; flex: none; }
.site-footer-note a { color: inherit; text-decoration: underline; }
@media (min-width: 640px) {
  .site-header { padding-left: 2rem; padding-right: 2rem; }
  .site-nav ul { gap: 1.75rem; }
  .site-footer { padding-left: 2rem; padding-right: 2rem; }
}
@media (max-width: 639px) {
  .site-footer-inner { justify-content: center; text-align: center; }
  .site-header { padding-bottom: 1rem; }
  .site-tagline { display: none; }
  .nav-toggle { display: block; position: absolute; opacity: 0; pointer-events: none; }
  .nav-toggle-button {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 2.5rem; height: 2.5rem; padding: .625rem .5rem; margin-left: auto;
    cursor: pointer; border: 1px solid var(--line); border-radius: .5rem;
  }
  .nav-toggle-button span { display: block; height: 2px; background: var(--ink);
    border-radius: 1px; transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle:checked ~ .nav-toggle-button span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-button span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-button span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle:focus-visible + .nav-toggle-button { outline: 2px solid var(--ink); outline-offset: 2px; }
  .site-nav { display: none; flex-basis: 100%; margin-left: 0; }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-top: 1px solid var(--line); }
  .site-nav a { display: block; padding: .625rem .25rem; }
}


/* Floating search from the map's own frame, over Leaflet on every screen size. */
.map-search { position: absolute; z-index: 1001; top: 1rem; left: 1rem;
  width: min(24rem, calc(100% - 2rem)); color: var(--ink); }
#stamp-search { box-sizing: border-box; width: 100%; min-height: 3rem;
  padding: .8rem 1rem; border: 1px solid rgba(61,58,52,.2); border-radius: .75rem;
  background: rgba(253,252,248,.96); color: var(--ink); font: inherit;
  font-size: 1rem; box-shadow: 0 8px 24px rgba(61,58,52,.16); }
#stamp-search:focus-visible { outline: 2px solid var(--coral-deep); outline-offset: 2px; }
#stamp-search-results { box-sizing: border-box; max-height: min(24rem, 60vh);
  overflow-y: auto; margin-top: .4rem; padding: .35rem;
  border: 1px solid rgba(61,58,52,.12); border-radius: .75rem;
  background: rgba(253,252,248,.98); box-shadow: 0 12px 28px rgba(61,58,52,.18); }
#stamp-search-results[hidden] { display: none; }
.search-group { padding: .5rem .65rem; color: var(--ink-soft);
  font-size: .8rem; font-weight: 700; }
.search-option { display: block; width: 100%; padding: .65rem .7rem; border: 0;
  border-radius: .5rem; background: transparent; color: var(--ink);
  text-align: left; cursor: pointer; font: inherit; }
.search-option-title { display: block; font-weight: 600; }
.search-option-context { display: flex; justify-content: space-between;
  gap: 1rem; margin-top: .15rem; color: var(--ink-soft); font-size: .8rem; }
.search-option-context span:last-child { flex-shrink: 0; }
.search-option:hover, .search-option[aria-selected="true"] { background: var(--sage); }
.search-option.is-park-station { padding-left: 1.15rem; }
.search-empty { padding: .75rem; color: var(--ink-soft); }
