/* SipSpot — mobile-first, en-GB, Fresh palette */

:root {
  --ink: #0d2137;
  --ink-soft: #2c4a63;
  --muted: #4a6578;
  --paper: #E3F2FD;
  --paper-2: #ffffff;
  --line: #bbdefb;
  --primary: #1E88E5;
  --primary-dark: #1565C0;
  --primary-deep: #0D47A1;
  --leaf: #43A047;
  --leaf-dark: #2E7D32;
  --teal: var(--primary);
  --teal-dark: var(--primary-dark);
  --teal-deep: var(--primary-deep);
  --aqua: #64B5F6;
  --foam: #BBDEFB;
  --partner: #8E24AA;
  --partner-dark: #6A1B9A;
  --partner-bg: #F3E5F5;
  --cafe: var(--leaf);
  --danger: #c62828;
  --ad-bg: #ffffff;
  --shadow: 0 10px 30px rgba(13, 33, 55, 0.10);
  --radius: 16px;
  --header-h: 64px;
  --font-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  font-size: 1.05rem;
}

img { max-width: 100%; }
a { color: var(--teal-dark); }
a:hover { color: var(--teal); }
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10000;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: rgba(246, 243, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner, .footer-inner, .wrap {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--teal-deep);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
}
.brand-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.brand-name span { color: var(--teal); font-weight: 500; }

.nav {
  display: flex;
  gap: 0.2rem 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--teal-dark);
  border-bottom-color: var(--aqua);
}

.hero {
  padding: 1.6rem 0 1.1rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  color: var(--teal-deep);
}
.hero p.lede {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  max-width: 38rem;
  font-size: 1.08rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  line-height: 1.2;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 0 var(--teal-dark);
}
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-primary:disabled { opacity: 0.65; cursor: wait; }
.btn-ghost {
  background: transparent;
  color: var(--teal-dark);
  border: 2px solid var(--teal);
  padding: 0.58rem 1.05rem;
}
.btn-ghost:hover { background: var(--foam); color: var(--teal-dark); }

.status {
  min-height: 1.4rem;
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0.7rem 0 0;
}
.status.error { color: var(--danger); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0 0 1rem;
}
.filter-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}
.filter-chip:hover { border-color: var(--teal); }
.filter-chip[aria-pressed="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.filter-chip.partner[aria-pressed="true"] {
  background: var(--partner);
  border-color: var(--partner);
}

.map-layout {
  display: grid;
  gap: 1rem;
  padding-bottom: 2rem;
}
@media (min-width: 900px) {
  .map-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
    align-items: start;
  }
  .list-pane { max-height: calc(70vh + 2rem); overflow: auto; }
}

.map-pane {
  background: #bbdefb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 55vh;
  box-shadow: var(--shadow);
}
#map {
  height: 62vh;
  min-height: 360px;
  width: 100%;
}
.city-page #map { height: 52vh; }

.list-pane h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.6rem;
}
.results-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 0.8rem;
}

.result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.result-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
  display: block;
}
.result-card:hover, .result-card:focus {
  border-color: var(--teal);
  outline: 2px solid var(--foam);
}
.result-card.is-partner { border-left: 4px solid var(--partner); }
.result-card.is-osm { border-left: 4px solid var(--teal); }
.result-card.is-stale { opacity: 0.78; }
.result-card h3 {
  margin: 0 0 0.15rem;
  font-size: 1.02rem;
  font-weight: 700;
}
.result-card .meta, .popup-meta {
  color: var(--muted);
  font-size: 0.88rem;
}
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.08rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: var(--foam);
  color: var(--teal-dark);
  margin-right: 0.25rem;
}
.badge.partner { background: var(--partner-bg); color: var(--partner-dark); }
.badge.example { background: #fde68a; color: #78450f; }
.example-banner {
  background: #fde68a;
  color: #78450f;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 0.35rem;
}

/* Leaflet marker icons */
.rm-marker {
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rm-marker span {
  transform: rotate(45deg);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
}
.rm-marker.fountain { background: #1E88E5; }
.rm-marker.cafe { background: #43A047; }
.rm-marker.partner { background: #8E24AA; border-radius: 8px; transform: none; }
.rm-marker.partner span { transform: none; }
.rm-marker.stale {
  opacity: 0.42;
  filter: saturate(0.7);
}
.rm-marker.stale.fountain { background: #64B5F6; }
.rm-marker.stale.cafe { background: #81C784; }

.leaflet-popup-content {
  margin: 0.7rem 0.9rem;
  min-width: 200px;
  max-height: min(28rem, calc(58vh - 3rem));
  overflow-y: auto;
  font-family: var(--font-sans);
}
.leaflet-popup {
  margin-bottom: 18px;
}
.popup h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.popup p { margin: 0.2rem 0; font-size: 0.92rem; }
.popup-links { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 0.5rem; }
.popup-links a { font-weight: 600; }

.direct-me {
  margin: 0.65rem 0 0.45rem;
}
.direct-me-btn {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 999px;
  background: #1E88E5;
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--primary-dark);
}
.direct-me-btn:hover {
  background: var(--primary-dark);
  color: #fff;
}
.direct-me-btn:focus-visible {
  outline: 2px solid var(--primary-deep);
  outline-offset: 2px;
  background: var(--primary-dark);
  color: #fff;
}
.direct-me-choices {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.4rem;
}
.direct-me-choices[hidden] {
  display: none;
}
.direct-me-choices a,
a.direct-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  border: 2px solid var(--primary);
  background: var(--paper-2);
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}
.direct-me-choices a:hover,
.direct-me-choices a:focus-visible {
  background: var(--foam);
  color: var(--primary-deep);
}
.direct-me-choices a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.slots { display: grid; gap: 1rem; margin: 0 0 2rem; }
@media (min-width: 800px) {
  .slots { grid-template-columns: 1fr 1fr; }
}
.ad-slot, .affiliate-slot, .sponsor-slot {
  border: 2px dashed #c9c2b4;
  background: var(--ad-bg);
  border-radius: 12px;
  padding: 1rem;
  color: var(--muted);
}
.ad-slot .label, .affiliate-slot .label, .sponsor-slot .label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.4rem;
}
.ad-slot { min-height: 110px; text-align: center; }
.affiliate-slot h2, .sponsor-slot h2 { margin: 0 0 0.35rem; font-size: 1.05rem; color: var(--ink); }
.affiliate-slot p, .sponsor-slot p { margin: 0; font-size: 0.95rem; }
.affiliate-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
}
.affiliate-item {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  flex: 1 1 140px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.example-note {
  font-size: 0.85rem;
  color: #78450f;
  background: #fff6d6;
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  margin: 0 0 1rem;
}

.cities-preview {
  padding: 0 0 2.5rem;
}
.cities-preview h2, .page-body h2, .faq h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 0.8rem;
  color: var(--teal-deep);
}
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.55rem;
}
.city-grid a {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.city-grid a:hover { border-color: var(--teal); }
.city-grid strong { font-weight: 700; }
.city-grid span { color: var(--muted); font-size: 0.85rem; }

.page-body { padding: 1.5rem 0 2.5rem; }
.page-body .lede { color: var(--ink-soft); max-width: 40rem; }
.prose { max-width: 42rem; }
.prose h1, .page-body h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0 0 0.6rem;
  color: var(--teal-deep);
  letter-spacing: -0.03em;
}
.prose h2 { font-family: var(--font-display); color: var(--teal-deep); }
.form {
  display: grid;
  gap: 0.8rem;
  max-width: 34rem;
  margin: 1.2rem 0;
}
.form label { display: grid; gap: 0.25rem; font-weight: 600; font-size: 0.95rem; }
.form input, .form textarea, .form select {
  font: inherit;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
  color: var(--ink);
}
.form textarea { min-height: 7rem; resize: vertical; }
.form .hint { font-weight: 400; color: var(--muted); font-size: 0.85rem; }

.faq details {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  margin: 0 0 0.5rem;
}
.faq summary { cursor: pointer; font-weight: 700; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  background: #bbdefb;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.site-footer a { font-weight: 600; }
.footer-inner { display: grid; gap: 0.6rem; }
.licence-note { max-width: 46rem; }

/* Marker cluster colours: fountains blue, cafés green, partners purple */
.marker-cluster-small { background-color: rgba(30, 136, 229, 0.45) !important; }
.marker-cluster-small div { background-color: rgba(30, 136, 229, 0.9) !important; color: #fff !important; }
.marker-cluster-medium { background-color: rgba(21, 101, 192, 0.45) !important; }
.marker-cluster-medium div { background-color: rgba(21, 101, 192, 0.92) !important; color: #fff !important; }
.marker-cluster-large { background-color: rgba(13, 71, 161, 0.45) !important; }
.marker-cluster-large div { background-color: rgba(13, 71, 161, 0.94) !important; color: #fff !important; }
.marker-cluster-cafe { background-color: rgba(67, 160, 71, 0.45) !important; }
.marker-cluster-cafe div { background-color: rgba(67, 160, 71, 0.9) !important; color: #fff !important; }
.marker-cluster-partner { background-color: rgba(142, 36, 170, 0.45) !important; }
.marker-cluster-partner div { background-color: rgba(142, 36, 170, 0.9) !important; color: #fff !important; }

/* Mobile chrome: hamburger, filter sheet, map key, and toolbar.
   Hidden on desktop so the existing layout stays in place. */
.nav-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin-left: auto;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  flex: none;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
  transition: transform 0.2s ease, top 0.2s ease, background 0.2s ease;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.map-toolbar,
.sheet-chrome,
.legend-chrome,
.sheet-backdrop {
  display: none;
}
.map-pane { position: relative; }
.filters-sheet { display: block; }
.legend-panel { display: block; }
.legend-title {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0;
  color: var(--teal-deep);
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 44px;
}
.sheet-head h2,
.filters-sheet #filters-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0;
  color: var(--teal-deep);
}
.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: #cfd8dc;
  margin: 0.55rem auto 0.15rem;
}
.sheet-close {
  appearance: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  position: relative;
  cursor: pointer;
  flex: none;
}
.sheet-close::before,
.sheet-close::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 50%;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}
.sheet-close::before { transform: rotate(45deg); }
.sheet-close::after { transform: rotate(-45deg); }
.sheet-close:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.city-page .hero-actions { margin-bottom: 1rem; }

@media (max-width: 640px) {
  :root { --header-h: 52px; }
  body.nav-open,
  body.sheet-open { overflow: hidden; }

  .site-header { position: sticky; }
  .header-inner {
    flex-wrap: nowrap;
    min-height: var(--header-h);
    gap: 0.5rem;
  }
  .header-tagline { display: none; }
  .brand-name { white-space: nowrap; font-size: 1.1rem; }
  .brand-mark { width: 32px; height: 32px; }
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    justify-content: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.35rem 0.75rem 0.7rem;
    box-shadow: var(--shadow);
    z-index: 2001;
  }
  .nav.is-open { display: flex; }
  .nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 0;
    padding: 0.35rem 0.4rem;
    font-size: 1rem;
  }
  .nav a[aria-current="page"] {
    color: var(--teal-dark);
    background: var(--foam);
    border-radius: 8px;
    border-bottom-color: transparent;
  }

  .map-toolbar {
    display: flex;
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    z-index: 1100;
    gap: 0.4rem;
    align-items: center;
  }
  .map-tool-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 0 0.85rem;
    border-radius: 999px;
    border: 0;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    font-size: 0.92rem;
    box-shadow: 0 1px 4px rgba(13, 33, 55, 0.28);
    cursor: pointer;
    white-space: nowrap;
    flex: none;
  }
  .map-tool-btn[aria-expanded="true"],
  .map-tool-btn[data-count] {
    background: var(--primary);
    color: #fff;
  }
  .map-tool-btn:focus-visible {
    outline: 2px solid var(--primary-deep);
    outline-offset: 2px;
  }
  .map-toolbar .js-locate {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 44px;
    padding: 0.55rem 0.65rem;
    box-shadow: 0 1px 4px rgba(13, 33, 55, 0.2), 0 3px 0 var(--teal-dark);
    font-size: 0.92rem;
    white-space: nowrap;
  }
  .leaflet-top.leaflet-left { top: 56px; }

  .sheet-chrome,
  .legend-chrome { display: block; }
  .legend-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
  }
  .sheet-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(13, 33, 55, 0.4);
    z-index: 2500;
  }
  .sheet-backdrop[hidden] { display: none; }

  .filters-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 0 1rem max(1.2rem, env(safe-area-inset-bottom));
    box-shadow: 0 -8px 30px rgba(13, 33, 55, 0.18);
    transform: translateY(110%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, visibility 0.25s ease;
    max-height: min(80vh, 36rem);
    overflow: auto;
  }
  .filters-sheet.is-open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }
  .filters-sheet {
    display: flex;
    flex-direction: column;
  }
  .filters-sheet .sheet-chrome { order: 1; }
  .filters-sheet .filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    order: 2;
  }
  .filters-sheet .policy-line { margin: 0.85rem 0 0; order: 3; }
  .filter-chip {
    min-height: 44px;
    padding: 0.55rem 0.9rem;
  }

  .legend-panel {
    display: none;
    position: absolute;
    top: 60px;
    right: 10px;
    z-index: 1200;
    background: #fff;
    border-radius: 12px;
    padding: 0.45rem 0.55rem 0.7rem 0.85rem;
    box-shadow: 0 8px 24px rgba(13, 33, 55, 0.18);
    max-width: min(20rem, calc(100% - 20px));
  }
  .legend-panel.is-open { display: block; }
  .legend-panel .legend {
    margin: 0;
    flex-direction: column;
    gap: 0.45rem;
  }

  .map-stage { position: relative; }
  .home-page main,
  .city-page .page-body {
    display: flex;
    flex-direction: column;
  }
  .home-page .map-stage { order: 1; }
  .home-page .hero { order: 2; padding: 1.2rem 0 1rem; }
  .home-page .below-map { order: 3; }
  .home-page .hero-actions #locate-btn { display: none; }
  .home-page .map-stage-inner {
    width: 100%;
    max-width: none;
  }
  .home-page .map-pane {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    min-height: 0;
    box-shadow: none;
  }
  .home-page #map {
    height: calc(100svh - var(--header-h));
    min-height: 280px;
  }
  .home-page .map-layout { padding-bottom: 1.2rem; gap: 1rem; }
  .home-page .list-pane {
    width: min(100% - 1.5rem, var(--max));
    margin-inline: auto;
  }
  .home-page .map-stage-inner > .status {
    position: absolute;
    left: 10px;
    right: 10px;
    top: 60px;
    z-index: 500;
    margin: 0;
    min-height: 0;
    padding: 0.45rem 0.7rem;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(13, 33, 55, 0.15);
    font-size: 0.88rem;
    pointer-events: none;
  }
  .home-page .map-stage-inner > .status:empty { display: none; }
  .home-page .map-stage-inner > .status:not(.is-toast):not(.error) { display: none; }

  .city-page .page-body { padding: 0.7rem 0 1.5rem; }
  .city-page .city-intro { order: 1; }
  .city-page .map-stage { order: 2; }
  .city-page .city-sponsor { order: 3; }
  .city-page .below-map { order: 4; }
  .city-page .hero-actions { display: none; }
  .city-page .page-body h1 {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
    line-height: 1.2;
  }
  .city-page .lede {
    margin: 0 0 0.35rem;
    font-size: 0.98rem;
  }
  .city-page .status {
    margin: 0 0 0.65rem;
    min-height: 0;
    font-size: 0.9rem;
  }
  .city-page #map {
    height: calc(100svh - var(--header-h) - 7.25rem);
    min-height: 280px;
  }
  .city-page .map-layout { padding-bottom: 1.2rem; }
  .city-page .city-sponsor { margin-top: 0.2rem; }
}

.filter-chip.cafe[aria-pressed="true"] {
  background: var(--leaf);
  border-color: var(--leaf-dark);
}
.filter-chip.fountain[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary-dark);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.header-tagline {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-dark);
}
.hero .tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  color: var(--primary-deep);
}
.poster-card {
  max-width: 22rem;
  background: #1E88E5;
  color: #fff;
  border-radius: 16px;
  padding: 1.6rem 1.4rem;
  margin: 1.2rem 0 1.6rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.poster-card .poster-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
}
.poster-card .poster-line {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.2;
  margin: 0;
}
.poster-card .poster-caption {
  margin: 0.8rem 0 0;
  font-size: 0.85rem;
  opacity: 0.9;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.1rem;
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.legend-swatch {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  margin-right: 0.35rem;
  vertical-align: -1px;
}
.legend-swatch.fountain { background: #1E88E5; }
.legend-swatch.cafe { background: #43A047; }
.legend-swatch.partner { background: #8E24AA; border-radius: 3px; }
.legend-swatch.stale {
  background: #1E88E5;
  opacity: 0.4;
  box-shadow: inset 0 0 0 1px rgba(13, 33, 55, 0.35);
}

.policy-line {
  margin: 0 0 0.8rem;
  font-weight: 700;
  color: var(--leaf-dark);
}
.hours-prominent {
  margin: 0.35rem 0 0.45rem;
  font-size: 0.98rem;
  color: var(--ink);
}
.result-card .hours-prominent {
  margin: 0.25rem 0 0.4rem;
  font-weight: 600;
}
.badge.open { background: #e8f5e9; color: #2e7d32; }
.badge.closed { background: #eceff1; color: #455a64; }
.badge.water-tap { background: #e3f2fd; color: #1565c0; }
.badge.water-filtered, .badge.water-chilled_filtered { background: #e8f5e9; color: #1b5e20; }
.badge.water-unknown { background: #f5f5f5; color: #546e7a; }
.badge.chilled { background: #e0f7fa; color: #006064; }
.pin-flags {
  position: absolute;
  right: -6px;
  top: -8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  transform: rotate(45deg);
}
.rm-marker.partner .pin-flags { transform: none; right: -8px; top: -8px; }
.pin-flag {
  min-width: 12px;
  height: 12px;
  border-radius: 3px;
  font-size: 8px;
  font-weight: 800;
  line-height: 12px;
  text-align: center;
  color: #fff;
  padding: 0 2px;
  box-shadow: 0 0 0 1px #fff;
}
.pin-flag.filtered { background: #2e7d32; }
.pin-flag.chilled { background: #00838f; }
.rm-marker { position: relative; }

.form label.check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 600;
}
.form label.check input { width: auto; margin-top: 0.3rem; }

.badge.stale { background: #fff8e1; color: #6d4c00; }

.stale-note {
  background: #fff8e1;
  color: #6d4c00;
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  margin: 0.45rem 0 0.2rem;
  font-size: 0.88rem;
  line-height: 1.35;
}

.popup-updated {
  color: var(--muted);
}

.visitor-confirmed {
  color: var(--leaf-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.point-feedback {
  margin: 0.7rem 0 0.35rem;
  padding: 0.65rem 0 0.15rem;
  border-top: 1px solid var(--line);
}

.feedback-prompt {
  margin: 0 0 0.4rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.feedback-btn {
  appearance: none;
  flex: 1 1 8rem;
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.feedback-here {
  border: 2px solid var(--leaf);
  background: var(--paper-2);
  color: var(--leaf-dark);
}
.feedback-here:hover,
.feedback-here:focus-visible {
  background: #e8f5e9;
  color: var(--leaf-dark);
}
.feedback-gone {
  border: 2px solid #90a4ae;
  background: var(--paper-2);
  color: #37474f;
}
.feedback-gone:hover,
.feedback-gone:focus-visible {
  background: #eceff1;
  color: #263238;
}
.feedback-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.feedback-thanks {
  margin: 0 0 0.35rem;
  font-weight: 700;
  color: var(--leaf-dark);
}

.feedback-osm-note {
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

a.feedback-osm-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  border: 2px solid var(--primary);
  background: var(--paper-2);
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}
a.feedback-osm-link:hover,
a.feedback-osm-link:focus-visible {
  background: var(--foam);
  color: var(--primary-deep);
}
a.feedback-osm-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Use my location control (on the map) and you-are-here marker */
.sipspot-locate-control {
  margin: 0 10px 12px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.sipspot-locate-btn {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #1E88E5;
  box-shadow: 0 1px 4px rgba(13, 33, 55, 0.28);
  cursor: pointer;
  position: relative;
  line-height: 0;
}
.sipspot-locate-btn svg {
  width: 22px;
  height: 22px;
  display: block;
}
.sipspot-locate-btn:hover {
  background: #f5faff;
  color: #1565C0;
}
.sipspot-locate-btn:focus-visible {
  outline: 2px solid #1E88E5;
  outline-offset: 2px;
}
.sipspot-locate-btn.is-active {
  color: #1565C0;
  box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.35), 0 1px 4px rgba(13, 33, 55, 0.28);
}
.sipspot-locate-btn.is-locating {
  color: #90caf9;
  cursor: wait;
}
.sipspot-locate-btn.is-locating svg {
  opacity: 0;
}
.sipspot-locate-btn.is-locating::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid #bbdefb;
  border-top-color: #1E88E5;
  border-radius: 50%;
  animation: sipspot-spin 0.7s linear infinite;
}
@keyframes sipspot-spin {
  to { transform: rotate(360deg); }
}

.sipspot-you-are-here {
  background: none !important;
  border: 0 !important;
}
.sipspot-user-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1E88E5;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px rgba(21, 101, 192, 0.25), 0 1px 4px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.btn-primary.is-locating {
  cursor: wait;
}
