/* walk-from module styles.
   Chrome (reset, nav, container, header, meta, buttons, related strip, FAQ,
   CTA, mobile and reduced-motion rules) is an independent copy of
   weekend-closures.css, per the one-module-one-stylesheet convention in
   CLAUDE.md. Module-specific rules are appended at the end. */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f5f7fa;
  min-height: 100vh;
  color: #1d3557;
}

/* Main page area sits below the sticky nav */
.page-body { padding: 20px; }

/* ---- Navigation bar (mirrors the home page) ---- */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #000000;
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.nav-logo {
  font-size: 1.8em;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-logo:hover {
  transform: translateY(-3px) scale(1.02);
  filter: drop-shadow(0 6px 12px rgba(102, 126, 234, 0.4));
}
.nav-logo .logo-icon { width: 32px; height: 28px; flex-shrink: 0; }
.nav-center {
  display: flex;
  align-items: center;
  gap: 40px;
  flex: 1;
  justify-content: center;
}
.nav-links { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; justify-content: center; }
.nav-links a {
  text-decoration: none;
  white-space: nowrap;
  color: #fff;
  font-weight: 600;
  font-size: 1.05em;
  position: relative;
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-links a:hover { transform: translateY(-2px); }
.nav-links a:hover::after,
.nav-links a.active::after { width: calc(100% - 32px); }
.nav-links a.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
}

/* "Live" dropdown — groups Live Departures + Live Status without widening the nav */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-drop-toggle {
  color: #fff;
  font-weight: 600;
  font-size: 1.05em;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.drop-caret { font-size: 0.7em; margin-left: 5px; opacity: 0.75; }
.nav-dropdown:hover .nav-drop-toggle,
.nav-dropdown:focus-within .nav-drop-toggle,
.nav-drop-toggle.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
}
.nav-drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column;
  gap: 2px;
  min-width: 200px;
  padding: 8px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  z-index: 1200;
}
.nav-dropdown:hover .nav-drop-menu,
.nav-dropdown:focus-within .nav-drop-menu { display: flex; }
.nav-links .nav-drop-menu a { display: block; font-size: 1em; padding: 10px 14px; white-space: nowrap; }
.nav-links .nav-drop-menu a::after { display: none; }
.nav-links .nav-drop-menu a:hover {
  transform: none;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.25), rgba(118, 75, 162, 0.25));
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}
.hamburger-btn:hover { background: rgba(255, 255, 255, 0.1); }
.hamburger-btn span {
  display: block;
  width: 24px;
  height: 3px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger-btn span:nth-child(1) { margin-bottom: 5px; }
.hamburger-btn span:nth-child(3) { margin-top: 5px; }
.hamburger-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  padding: 12px 0;
}
.mobile-nav.show { display: block; animation: slideDown 0.3s ease-out; }
.mobile-nav a {
  display: block;
  padding: 14px 24px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 1.1em;
  border-left: 4px solid transparent;
}
.mobile-nav a:hover {
  background: linear-gradient(90deg, rgba(255,255,255,0.1), transparent);
  color: #fff;
  border-left-color: rgba(255,255,255,0.8);
}
.mobile-nav a.active { border-left-color: #667eea; background: rgba(255,255,255,0.06); }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .nav-container { padding: 12px 16px; gap: 8px; }
  .nav-logo { font-size: 1.3em; gap: 6px; }
  .nav-center { display: none; }
  .hamburger-btn { display: flex; }
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 20px auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 40px 50px;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: #667eea;
  text-decoration: none;
  font-size: 0.95em;
  font-weight: 600;
  transition: color 0.2s;
}
.back-link:hover { color: #764ba2; text-decoration: underline; }

/* Row holding "All lines" and the live-departures cross-link */
.page-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.line-header {
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
  position: relative;
  overflow: hidden;
}
.line-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  pointer-events: none;
}
.line-header h1 {
  margin: 0 0 6px;
  font-size: 1.8em;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}
.line-header .subtitle {
  margin: 0;
  font-size: 1.05em;
  opacity: 0.92;
  font-weight: 400;
}

/* Meta info row */
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 0.9em;
  color: #555;
  margin-bottom: 24px;
  padding: 14px 18px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #eef0f3;
}
.meta strong { color: #1d3557; font-weight: 700; }

/* Pill control groups */
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.btn {
  border: 2px solid #e8e8e8;
  background: #fff;
  color: #1d3557;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn:hover {
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-1px);
}
.btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.btn:focus { outline: none; box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2); }

.note {
  margin-top: 22px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 12px;
  font-size: 0.88em;
  color: #78350f;
  line-height: 1.55;
}
.note em { font-style: italic; font-weight: 600; }

/* Source line above CTA */
.source-line {
  margin-top: 14px;
  font-size: 0.82em;
  color: #777;
  text-align: right;
}
.cta-card {
  margin-top: 28px;
  padding: 28px 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f172a 0%, #1d3557 100%);
  color: #fff;
  text-align: center;
  box-shadow: 0 8px 24px rgba(29, 53, 87, 0.25);
}
.cta-card h2 {
  margin: 0 0 8px;
  font-size: 1.3em;
  font-weight: 800;
  color: #fff;
}
.cta-card p {
  margin: 0 0 18px;
  font-size: 0.95em;
  opacity: 0.92;
  line-height: 1.5;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1em;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 44px;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(102, 126, 234, 0.45); }
.cta-btn:active { transform: translateY(0); }
.cta-card .cta-btn { margin: 4px 6px 0; }
.cta-btn-alt { background: rgba(255, 255, 255, 0.14); box-shadow: none; border: 1px solid rgba(255, 255, 255, 0.35); }
.cta-btn-alt:hover { box-shadow: none; background: rgba(255, 255, 255, 0.22); }

@media (max-width: 700px) {
  .cta-card { padding: 22px 18px; }
  .cta-card h2 { font-size: 1.15em; }
}

.error {
  padding: 16px 20px;
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
  border-radius: 12px;
  font-weight: 500;
}
.line-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.line-list a {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  border: 2px solid #eef0f3;
  border-radius: 14px;
  text-decoration: none;
  color: #1d3557;
  background: #fff;
  font-weight: 700;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}
.line-list a:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}
.line-list .swatch {
  display: inline-block;
  width: 16px; height: 16px;
  border-radius: 4px;
  margin-right: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

h1.page-title {
  color: #1d3557;
  font-size: 1.8em;
  font-weight: 800;
  margin-bottom: 12px;
}
p.page-lede {
  color: #555;
  font-size: 1.05em;
  margin-bottom: 28px;
  opacity: 0.9;
}
p.footer-note {
  margin-top: 28px;
  color: #777;
  font-size: 0.85em;
}
p.footer-note code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}

/* ---- Mobile (chrome only; module rules have their own block below) ---- */
@media (max-width: 700px) {
  .page-body { padding: 12px; }
  .container {
    padding: 20px 16px;
    border-radius: 16px;
    margin: 12px auto;
  }
  .line-header { padding: 20px 18px; border-radius: 14px; }
  .line-header h1 { font-size: 1.35em; line-height: 1.25; }
  .line-header .subtitle { font-size: 0.95em; }

  .page-title { font-size: 1.5em; }
  .page-lede { font-size: 0.98em; }

  .meta {
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    font-size: 0.85em;
  }

  /* Stack controls into wrap-friendly rows; thumb-sized targets */
  .controls { gap: 6px; }
  .btn {
    padding: 11px 16px;
    font-size: 0.92em;
    min-height: 44px;        /* Apple HIG touch target */
    -webkit-tap-highlight-color: transparent;
  }
  .btn:hover { transform: none; }   /* hover lift is awkward on touch */
  .btn:active { transform: scale(0.97); }

  .line-list { grid-template-columns: 1fr; gap: 8px; }
  .line-list a {
    padding: 14px 16px;
    min-height: 56px;
    border-radius: 12px;
  }
  .line-list a:hover { transform: none; box-shadow: 0 2px 4px rgba(0,0,0,0.04); }

  .note { font-size: 0.85em; padding: 12px 14px; }
  .back-link { margin-bottom: 14px; }
}

/* iPhone notch / Dynamic Island safe area */
@supports (padding: max(0px)) {
  body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .main-nav { padding-top: env(safe-area-inset-top); }
}

/* Prevent iOS from zooming on focus of buttons (no inputs here but future-proof) */
@media (max-width: 700px) {
  input, select, textarea, button { font-size: 16px; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* FAQ section (static content rendered by the generator; no JS dependency) */
.faq-card {
  margin-top: 28px;
  padding: 26px 28px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}
.faq-card h2 {
  margin: 0 0 6px;
  font-size: 1.25em;
  font-weight: 800;
  color: #1d3557;
}
.faq-item { margin-top: 18px; }
.faq-q {
  margin: 0 0 6px;
  font-size: 1.02em;
  font-weight: 700;
  color: #0f172a;
}
.faq-a {
  margin: 0;
  font-size: 0.95em;
  line-height: 1.6;
  color: #334155;
}
.faq-a a { color: #457b9d; }
@media (max-width: 640px) {
  .faq-card { padding: 20px 18px; }
}
/* Related-pages strip — same card language as the line-list tiles */
.related-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 20px;
}
.related-strip a {
  display: flex; align-items: center; gap: 10px;
  background: #ffffff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 12px 16px;
  text-decoration: none;
  color: #1d3557;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.related-strip a:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(29, 53, 87, 0.12); }
.related-strip .rel-emoji { font-size: 1.35em; }
.related-strip strong { display: block; font-size: 0.92em; font-weight: 700; }
.related-strip small { display: block; color: #64748b; font-size: 0.76em; margin-top: 2px; }
@media (max-width: 640px) {
  .related-strip { grid-template-columns: 1fr; gap: 8px; }
  .related-strip a { border-radius: 12px; padding: 12px 14px; }
}

/* ==========================================================================
   walk-from specific styles (appended to a copy of the shared site chrome,
   same convention as weekend-closures.css and first-trains.css).
   ========================================================================== */

/* Announcements for screen readers only (map selection, filter counts) */
.wf-sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.wf-h2 {
  font-size: 1.15em;
  font-weight: 800;
  color: #1d3557;
  margin: 26px 0 4px;
}
.wf-sub {
  color: #64748b;
  font-size: 0.92em;
  margin-bottom: 14px;
}

/* ---- Summary tiles ---- */
.walk-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0 6px;
}
.ws-tile {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
}
.ws-tile strong {
  display: block;
  font-size: 1.25em;
  font-weight: 800;
  color: #0f766e;
  line-height: 1.1;
}
.ws-tile span {
  display: block;
  margin-top: 3px;
  font-size: 0.75em;
  color: #64748b;
  line-height: 1.25;
}

/* ---- Filters ---- */
.wf-controls { margin-bottom: 12px; }
.wf-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.wf-chip {
  border: 1px solid #dbe3ec;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 0.85em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  min-height: 38px;
}
.wf-chip:hover { border-color: #94a3b8; }
.wf-chip.is-on {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}
.wf-chip-free.is-on { background: #b45309; border-color: #b45309; }
.wf-chip:focus-visible, .wf-mini:focus-visible, .wf-add:focus-visible, .wf-route:focus-visible {
  outline: 3px solid #0369a1;
  outline-offset: 2px;
}

.wf-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 0.88em;
  color: #334155;
  flex-wrap: wrap;
}
.wf-slider-row label { font-weight: 600; white-space: nowrap; }
.wf-slider-row output { font-weight: 800; color: #0f766e; }
.wf-slider-row input[type="range"] {
  flex: 1 1 160px;
  min-width: 140px;
  accent-color: #0f766e;
  height: 32px;
}
.wf-reset {
  border: none;
  background: transparent;
  color: #0369a1;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 6px;
}

/* ---- Map ---- */
.wf-map-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  background: #eef2f6;
}
.wf-map {
  height: 340px;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background:
    repeating-linear-gradient(45deg, #e8eef4 0 12px, #eef3f8 12px 24px);
}
.wf-map.is-live { display: block; background: #f4f1ea; }
.wf-map-open {
  border: none;
  background: #0f766e;
  color: #fff;
  font-size: 0.95em;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.3);
  min-height: 46px;
}
.wf-map-note { font-size: 0.8em; color: #64748b; }
.wf-map.is-live .wf-map-open, .wf-map.is-live .wf-map-note { display: none; }

/* Warm the standard OSM raster tiles slightly so the map reads as an
   illustration rather than a road atlas. Tiles stay legible and unmodified
   in substance; this is presentation only. */
.wf-map .leaflet-tile-pane {
  filter: sepia(0.24) saturate(0.92) brightness(1.03) contrast(0.94);
}
.wf-map .leaflet-container { font: inherit; background: #f4f1ea; }

.wf-map-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
}
.wf-attrib { font-size: 0.72em; color: #94a3b8; }
.wf-mini {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82em;
  font-weight: 600;
  cursor: pointer;
  min-height: 38px;
}
.wf-mini:hover { border-color: #0f766e; color: #0f766e; }
.wf-mini-alt { color: #b91c1c; }
.wf-mini-alt:hover { border-color: #b91c1c; color: #b91c1c; }

/* Map markers (Leaflet divIcons) */
.wf-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 8px;
  background: var(--pin, #0f766e);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.35);
  border: 2px solid #fff;
  cursor: pointer;
  transition: transform 0.12s;
}
.wf-marker:hover { transform: scale(1.12); }
.wf-marker.is-sel {
  transform: scale(1.25);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.28), 0 3px 8px rgba(15, 23, 42, 0.4);
}
.wf-marker.is-dim { opacity: 0.28; }
/* Pins not on the drawn route step back so the route line reads clearly. */
.wf-marker.is-faded { opacity: 0.25; filter: saturate(0.4); }
.wf-marker.is-hub {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #1d3557;
  font-size: 18px;
}
.wf-marker.is-me { background: #0369a1; border-radius: 50%; }

/* Boxed distance label on the drawn route, echoing a printed walking map */
.wf-route-label {
  background: #0f766e;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.3);
  text-align: center;
}
.wf-route-label small { display: block; font-weight: 500; opacity: 0.85; font-size: 10px; }

/* ---- My walk tray ---- */
.wf-plan {
  margin-top: 18px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 14px;
  padding: 14px 16px;
}
.wf-plan .wf-h2 { margin-top: 0; }
.wf-plan-list {
  margin: 0 0 8px 18px;
  font-size: 0.92em;
  color: #134e4a;
}
.wf-plan-list li { margin: 3px 0; }
.wf-plan-list .wf-drop {
  border: none;
  background: none;
  color: #0f766e;
  cursor: pointer;
  font-size: 0.95em;
  /* Finger-sized without pushing the line height around */
  padding: 6px 8px;
  margin: -6px 0;
  line-height: 1;
}
.wf-plan-list .wf-drop:hover { color: #b91c1c; }
.wf-plan-total { font-weight: 700; color: #115e59; font-size: 0.95em; margin-bottom: 10px; }
.wf-plan-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- Place list ---- */
.wf-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* Walking times between the landmarks */
.wf-pairs { margin: 30px 0 8px; }
.wf-pair-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding: 0;
}
.wf-pair-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  background: #fff;
  border: 1px solid #e6ebf1;
  border-radius: 10px;
  padding: 11px 14px;
  text-decoration: none;
  color: #1d3557;
  font-size: 0.9em;
  min-height: 44px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.wf-pair-list a:hover {
  border-color: #0f766e;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.12);
}
.wf-pair-name { font-weight: 600; }
.wf-pair-time { color: #0f766e; font-weight: 700; white-space: nowrap; }

.wf-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid #e6ebf1;
  border-left: 4px solid var(--cat, #e6ebf1);
  border-radius: 12px;
  scroll-margin-top: 80px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.wf-item:hover { border-color: #cbd5e1; border-left-color: var(--cat, #cbd5e1); }
.wf-item.is-selected {
  border-color: #0f766e;
  border-left-color: var(--cat, #0f766e);
  background: #f0fdfa;
  box-shadow: 0 2px 10px rgba(15, 118, 110, 0.15);
}
.wf-item.is-hidden { display: none; }
.wf-item.is-beyond { background: #fcfcfd; }

.wf-pin {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 8px;
  background: var(--pin, #0f766e);
  font-size: 16px;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.2);
}
.wf-item-body { flex: 1 1 auto; min-width: 0; }
.wf-name {
  font-size: 1em;
  font-weight: 700;
  color: #1d3557;
  margin: 1px 0 3px;
}
.wf-blurb { font-size: 0.88em; color: #475569; line-height: 1.45; margin-bottom: 5px; }
.wf-meta { font-size: 0.78em; color: #64748b; }
.wf-tag {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 600;
  font-size: 0.95em;
}
.wf-links {
  margin-top: 7px;
  font-size: 0.78em;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.wf-links a { color: #0369a1; text-decoration: none; font-weight: 600; }
.wf-links a:hover { text-decoration: underline; }
.wf-links a.wf-route {
  border: 1px solid #99f6e4;
  background: #f0fdfa;
  color: #0f766e;
  border-radius: 999px;
  padding: 5px 11px;
  font-weight: 700;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.wf-links a.wf-route:hover { text-decoration: none; background: #ccfbf1; }
.wf-add {
  border: 1px solid #99f6e4;
  background: #f0fdfa;
  color: #0f766e;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
  min-height: 32px;
}
.wf-add.is-on { background: #0f766e; border-color: #0f766e; color: #fff; }

.wf-thumb {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  border-radius: 10px;
  overflow: hidden;
  display: block;
  background: #eef2f7;
}
.wf-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wf-thumb:focus-visible { outline: 3px solid #0369a1; outline-offset: 2px; }

.wf-credits { margin: 18px 0 10px; font-size: 0.8em; color: #64748b; }
.wf-credits summary { cursor: pointer; font-weight: 600; color: #475569; }
.wf-credits ul { margin: 8px 0 0 18px; line-height: 1.7; }
.wf-credits a { color: #0369a1; }

.wf-dist {
  flex: 0 0 auto;
  text-align: center;
  color: #0f766e;
  line-height: 1;
  padding-left: 4px;
}
.wf-dist strong { display: block; font-size: 1.2em; font-weight: 800; }
.wf-dist small { font-size: 0.62em; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.04em; }

.wf-empty {
  padding: 16px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  color: #64748b;
  font-size: 0.9em;
  text-align: center;
}
.wf-note {
  margin-top: 22px;
  font-size: 0.8em;
  color: #778;
  line-height: 1.55;
}

/* ---- Desktop: map and plan on the left, list scrolling on the right ---- */
@media (min-width: 1000px) {
  .wf-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }
  /* The sticky column holds the map and the itinerary tray, which together can
     be taller than the viewport on a short window. Without its own scroll the
     bottom of the tray (the remove and clear buttons) becomes unreachable. */
  .wf-col-map {
    position: sticky;
    top: 76px;
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .wf-map { height: 52vh; min-height: 380px; }
}

/* ---- Mobile ---- */
@media (max-width: 700px) {
  .walk-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .wf-map { height: 300px; }
  .wf-map:not(.is-live) { height: 190px; }
  .wf-item { padding: 12px; gap: 10px; }
  .wf-thumb { width: 60px; height: 60px; }
  .wf-pin { width: 30px; height: 30px; font-size: 15px; }
  .wf-name { font-size: 0.96em; }
  .wf-blurb { font-size: 0.85em; }
  .wf-chip { padding: 9px 12px; font-size: 0.82em; }
  .wf-item:hover { border-color: #e6ebf1; }
  .wf-note { font-size: 0.76em; }
}

@media (prefers-reduced-motion: reduce) {
  .wf-marker, .wf-item { transition: none; }
}
