:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: #193d40;
  background: #dce8ed;
  --green: #2e6259;
  --muted: #355458;
  --line: rgba(25, 61, 64, .24);
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100svh; background: transparent; }
.ambient { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ambient picture { display: block; width: 100%; height: 100%; }
.ambientImage { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.wrap { position: relative; z-index: 1; max-width: 1100px; margin: auto; padding: 0 36px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; }
a { color: inherit; }
.wordmark { font: italic 42px/1 Georgia, serif; letter-spacing: -1.5px; text-decoration: none; }
.topActions { display: flex; align-items: center; gap: 14px; }
.prototype { display: none; }
button, input, select { font: inherit; }
button, a, select, input { touch-action: manipulation; }
select { color: inherit; background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .9); border-radius: 99px; min-height: 44px; padding: 9px 12px; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 3px solid #1c6055; outline-offset: 4px; }
.intro { padding: 14px 0 30px; max-width: 700px; }
.intro .eyebrow { display: none; }
h1 { font: 48px/1.1 Georgia, serif; letter-spacing: -1px; margin: 0 0 16px; }
h2 { font-family: Georgia, serif; font-weight: 400; }
p { line-height: 1.5; }
.lead { font-size: 18px; line-height: 1.5; max-width: 490px; margin: 0; }
.sectionHead { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 6px; }
.sectionHead h2 { font-size: 28px; line-height: 1.12; margin: 0; }
.selectionHint { font-size: 13px; margin: 0 0 15px; color: var(--muted); }
.timeLabel { display: flex; align-items: center; flex: 0 0 auto; gap: 6px; font-size: 14px; white-space: nowrap; }
#activities { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.activity { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; width: 100%; min-width: 0; min-height: 144px; padding: 15px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 18px; background: #386358; color: white; text-align: left; box-shadow: 0 3px 12px rgba(16, 35, 30, .12); }
.activityImage { position: absolute; inset: 0; z-index: -2; display: block; width: 100%; height: 100%; object-fit: cover; }
.activity::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 35%, rgba(8, 28, 25, .72) 100%); }
.activityIcon { font-size: 26px; line-height: 1; filter: grayscale(1) brightness(0) invert(1); text-shadow: 0 1px 3px #173b36; }
.activityLabel { font-size: 16px; font-weight: 700; line-height: 1.2; text-shadow: 0 1px 3px #173b36; }
.activity[aria-pressed="true"] { border-color: white; box-shadow: 0 0 0 2px #2e6259, 0 3px 12px rgba(16, 35, 30, .12); }
.activity[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: white; color: var(--green); font: 800 16px/1 system-ui; }
.invitation { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 24px 0 0; padding: 18px 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .11em; margin: 0 0 8px; }
.invitation h2 { font-size: 31px; line-height: 1.12; margin: 0 0 10px; }
.invitationCopy p:last-child { max-width: 440px; font-size: 16px; margin: 0; }
.selectionHint, .sectionHead, .status { text-shadow: 0 1px 1px rgba(255, 255, 255, .95), 0 0 4px rgba(255, 255, 255, .8); }
.invitation, .method, footer { color: #fff; text-shadow: -1px 0 1px #193d40, 1px 0 1px #193d40, 0 -1px 1px #193d40, 0 2px 2px #193d40; }
.invitation .fine { color: inherit; font-size: 14px; }
.invitation .textButton { color: inherit; text-shadow: inherit; }
.invitation .inputRow input { color: #193d40; text-shadow: none; }
.invitation button, .resource a { text-shadow: none; }
#resources { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.resource { min-width: 0; }
#placeForm { align-self: center; min-width: 0; }
label { font-size: 14px; }
.inputRow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.inputRow input { width: 100%; min-width: 0; min-height: 48px; background: rgba(255, 255, 255, .94); border: 1px solid rgba(255, 255, 255, .9); border-radius: 14px; padding: 12px 14px; color: inherit; font-size: 16px; }
.inputRow button, .resource a, .result a.action { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; background: var(--green); color: white; text-decoration: none; border: 0; border-radius: 99px; padding: 12px 18px; font-size: 14px; }
.textButton { border: 0; background: transparent; color: inherit; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; padding: 9px 0; text-shadow: 0 1px 2px white; }
.fine { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.5; }
#locationNote { display: none; }
.status { min-height: 24px; margin: 12px 0; color: var(--muted); font-size: 14px; }
.status.error { color: #782c20; }
.status:empty { display: none; }
#results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 18px 0 32px; }
.result { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; border: 1px solid rgba(255, 255, 255, .9); border-radius: 18px; background: rgba(255, 255, 255, .94); }
.result h3, .resource h3 { font: 25px/1.15 Georgia, serif; margin: 0; }
.result p { font-size: 14px; margin: 0; }
.result .address { font-size: 13px; color: var(--muted); }
.result a.action { margin-top: auto; }
.result details { width: 100%; font-size: 13px; }
.result details p { font-size: 13px; margin-top: 10px; }
.resource { padding: 0 0 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.resource:last-child { border: 0; margin: 0; padding: 0; }
.resource p { font-size: 16px; margin: 10px 0 14px; }
.resource .fine { font-size: 14px; margin-top: 10px; }
.method { max-width: 720px; margin: 18px 0 22px; font-size: 13px; }
summary { cursor: pointer; min-height: 44px; padding: 12px 0; }
.method p { margin: 0; }
.cityChoice { display: block; width: 100%; border: 1px solid var(--line); border-radius: 12px; background: white; color: inherit; text-align: left; min-height: 48px; padding: 12px; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line); padding: 18px 0 calc(26px + env(safe-area-inset-bottom)); font-size: 13px; }
footer a { display: flex; align-items: center; min-height: 44px; }
.searchProgress { margin: 16px 0 8px; padding: 12px 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.progressMeta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 9px; font-size: 14px; font-weight: 600; text-shadow: 0 1px 2px white; }
.progressTrack { position: relative; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .78); }
.progressFill { height: 100%; width: 0; border-radius: inherit; background: var(--green); transition: width .45s ease; }
.progressCursor { position: absolute; top: 50%; left: 0; width: 17px; height: 17px; border: 4px solid var(--green); border-radius: 50%; background: white; transform: translate(-50%, -50%); transition: left .45s ease; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
[hidden] { display: none !important; }
@media (max-width: 650px) {
  .wrap { padding: 0 18px; }
  header { padding: calc(16px + env(safe-area-inset-top)) 0 16px; }
  .wordmark { font-size: 40px; }
  .intro { padding: 6px 0 25px; max-width: 345px; }
  .intro h1 { display: none; }
  .lead { font-size: 16px; line-height: 1.45; }
  .sectionHead { gap: 12px; }
  .sectionHead h2 { font-size: 24px; line-height: 1.1; letter-spacing: -.3px; }
  .timeLabel { font-size: 13px; gap: 5px; }
  .timeLabel select { padding: 9px 10px; }
  .selectionHint { margin-bottom: 12px; }
  #activities { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .activity { min-height: 116px; padding: 13px; border-radius: 16px; }
  .invitation { grid-template-columns: 1fr; gap: 17px; margin-top: 21px; padding: 12px 0; }
  .invitation h2 { font-size: 27px; }
  .invitationCopy p:last-child { font-size: 15px; }
  .inputRow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
  .inputRow button { padding: 12px 13px; white-space: nowrap; }
  #resources { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  #results { grid-template-columns: 1fr; gap: 12px; }
  footer { display: block; }
  footer a { margin-top: 4px; }
}
@media (max-width: 360px) {
  .wrap { padding: 0 15px; }
  .sectionHead h2 { font-size: 22px; }
  .timeLabel > span { display: none; }
  .activity { padding: 12px; }
  .activityLabel { font-size: 15px; }
  .inputRow { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .activity { transition: box-shadow .15s ease; }
}
@media (prefers-reduced-motion: reduce) {
  .progressFill, .progressCursor { transition: none; }
}

.routeControls { margin-bottom: 18px; }
.routeControls > label { margin-right: 12px; }
.routeControls select { color: #193d40; text-shadow: none; }
.routeControls > p { margin: 10px 0; }
.routeOnly { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.routeOnly input { width: 20px; height: 20px; accent-color: #2e6259; }
.routeNote { font-size: 13px; line-height: 1.5; }
.walkingResult { margin: 24px 0 32px; padding: 20px; border-radius: 18px; color: #193d40; background: rgba(255,255,255,.97); min-width: 0; scroll-margin-top: 20px; }
.walkingResult h2 { font-size: 29px; margin: 0 0 14px; }
.walkingResult p { margin: 10px 0; font-size: 14px; }
.walkingResult .routeNote { font-size: 12px; }
.routeSummary { font-weight: 700; }
.routeMap { height: 430px; width: 100%; border-radius: 12px; overflow: hidden; isolation: isolate; background: #eef3ef; }
.routeMap .leaflet-control-attribution { font-size: 10px; background: white; color: #193d40; }
.routeMap .leaflet-control-attribution a { color: #193d40; }
.routeMap .leaflet-control-zoom a { color: #193d40; }
.routeDirection { display: grid; place-items: center; background: white; color: #1c685c; border: 2px solid #1c685c; border-radius: 50%; font: bold 12px/1 system-ui; }
.routeActions, .routeAlternatives { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.routeActions button, .routeAlternatives button { min-height: 44px; padding: 10px 14px; border: 1px solid #2e6259; border-radius: 99px; background: white; color: #193d40; font-size: 14px; }
.routeActions #routeStart, .routeActions #routeStop, .routeAlternatives button[aria-pressed="true"] { background: #2e6259; color: white; }
.routeStats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 13px; }
.routeStats strong { display: block; font-size: 22px; margin-top: 5px; }
.routeSteps li { margin: 10px 0; font-size: 14px; }
.routeSteps li span { display: block; color: #355458; font-size: 12px; }
@media(max-width:650px) { .walkingResult { padding: 15px; } .routeMap { height: 350px; } .routeActions button { flex: 1 1 auto; } }

.routeMode{display:flex;gap:8px;margin:0 0 14px;flex-wrap:wrap}
.routeMode button{min-height:40px;padding:9px 14px;border-radius:999px;border:1px solid rgba(46,98,89,.32);background:rgba(255,255,255,.72);color:#193d40;font-weight:700}
.routeMode button[aria-pressed="true"]{background:#2e6259;color:white;border-color:#2e6259}
.trailDiscovery{margin-top:18px;padding-top:16px;border-top:1px solid rgba(46,98,89,.18)}
.trailDiscovery h3{font:24px/1.15 Georgia,serif;margin:0 0 8px}
.trailDiscoveryIntro{color:#355458}
.trailList{display:grid;gap:10px;margin-top:12px}
.trailCard{padding:14px;border-radius:14px;background:#f7faf7;border:1px solid rgba(46,98,89,.14)}
.trailCard h4{font:20px/1.15 Georgia,serif;margin:0 0 7px}
.trailMeta{font-size:12px;color:#4e6669;margin:0 0 7px}
.trailCard p{margin:7px 0}
.trailCard a{display:inline-flex;margin-top:6px;color:#1c685c;font-weight:700;text-underline-offset:3px}
.trailTrafficFree{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:999px;background:#e8f4ee;color:#205d50;font-size:11px;font-weight:700}
.trailShared{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:999px;background:#fff0dd;color:#7c531d;font-size:11px;font-weight:700}
@media(max-width:650px){.routeMode{margin-bottom:12px}.trailDiscovery{margin-top:14px}.trailCard{padding:12px}}

.crossIdeaRow{display:flex;justify-content:center;margin:14px 0 4px}
.crossIdeaRow .hiddenNearbyBtn{min-height:42px;padding:9px 15px;border-radius:999px;border:1px solid rgba(255,255,255,.7);background:rgba(255,255,255,.72);color:#264e4a;font-weight:750;box-shadow:0 8px 24px rgba(28,65,59,.08);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
.routeQualitySignal{margin:10px 0;padding:11px 12px;border-radius:14px;background:rgba(233,244,238,.86);border:1px solid rgba(47,103,93,.18);font-size:13px;line-height:1.42;color:#294f49}
.routeQualitySignal strong{display:block;margin-bottom:3px;color:#1d5d50}
