*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{display:flex;flex-direction:column;font:14px/1.45 Geist,system-ui,-apple-system,Segoe UI,sans-serif;color:#202124;overflow:hidden}
a{color:#1a4fd6;text-decoration:none}
#app{position:relative;flex:1;min-height:0}
#map{position:absolute;inset:0}
#side{position:absolute;top:12px;left:12px;width:400px;max-width:calc(100% - 24px);z-index:3;display:flex;flex-direction:column;gap:8px;max-height:calc(100% - 24px);pointer-events:none}
#side>*{pointer-events:auto}
#sb{border:0;width:100%;height:56px;background:transparent;color-scheme:normal;flex:none}
#panel{background:#fff;border-radius:16px;box-shadow:0 2px 8px rgba(60,64,67,.3);overflow:auto;min-height:0}
#panel[hidden]{display:none}
.ph{padding:16px 16px 8px;position:relative}
.ph h1{font-size:22px;font-weight:500;margin:0 34px 2px 0;line-height:1.25}
.ph .kind{color:#70757a}
.ph .x{position:absolute;top:10px;right:10px}
.ib{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:50%;border:0;background:transparent;color:#5f6368;cursor:pointer}
.ib:hover{background:#f1f3f4}
.acts{display:flex;gap:2px;padding:8px 6px 12px;border-bottom:1px solid #f1f3f4;overflow-x:auto}
.act{display:flex;flex:1 0 54px;flex-direction:column;align-items:center;gap:4px;min-width:54px;padding:4px 2px;border:0;background:none;cursor:pointer;color:#1a73e8;font:500 12px Geist,system-ui,sans-serif;text-decoration:none}
.act span{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;border:1px solid #dadce0}
.act.main span{background:#1a73e8;border-color:#1a73e8;color:#fff}
.act.adv{color:#7c3aed}.act.adv span{border-color:#ddd6fe;background:#f5f3ff}
.act:hover span{background:#e8f0fe}.act.main:hover span{background:#1765cc}.act.adv:hover span{background:#ede9fe}
.rows{padding:6px 0}
.row{display:flex;gap:16px;align-items:center;padding:10px 18px;color:#3c4043}
.row svg{color:#1a73e8;flex:none}
.row button{margin-left:auto}
.note{padding:4px 18px 14px;color:#70757a;font-size:12px}
.dir{padding:12px 16px}
.dir .modes{display:flex;gap:6px;margin-bottom:12px}
.dir .modes button{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;padding:8px;border-radius:18px;border:1px solid #dadce0;background:#fff;cursor:pointer;font:500 13px Geist,system-ui,sans-serif;color:#3c4043}
.dir .modes button.on{background:#e8f0fe;border-color:#e8f0fe;color:#1967d2}
.ends{display:grid;grid-template-columns:20px 1fr auto;gap:8px 10px;align-items:center;margin-bottom:10px}
.ends .dot{width:12px;height:12px;border-radius:50%;border:2px solid #5f6368;justify-self:center}
.ends .dot.to{border:0;background:#ea4335;border-radius:50% 50% 50% 0;transform:rotate(-45deg)}
.ends .end{padding:8px 10px;border-radius:8px;background:#f1f3f4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ends form{margin:0;min-width:0}.ends input.end{width:100%;border:1px solid transparent;font:inherit;color:inherit;outline:none}.ends input.end:focus{border-color:#1a73e8;background:#fff}
.sum{padding:10px 0;border-top:1px solid #f1f3f4}
.sum b{font-size:20px;font-weight:500;color:#188038}
.sum small{color:#70757a;margin-left:8px;font-size:14px}
.steps{list-style:none;margin:0;padding:0;border-top:1px solid #f1f3f4}
.steps li{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #f8f9fa}
.steps li small{color:#70757a;white-space:nowrap}
.err{color:#c5221f;padding:8px 0}
.back{display:inline-flex;align-items:center;gap:4px;border:0;background:none;color:#1a73e8;cursor:pointer;font:500 13px Geist,system-ui,sans-serif;padding:0;margin-bottom:10px}
#layers{position:absolute;left:424px;bottom:32px;z-index:2}
@media (max-width:900px){#layers{left:auto;right:60px}}
#layer{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;width:76px;height:76px;padding:0;border:2px solid #fff;border-radius:10px;box-shadow:0 1px 4px rgba(0,0,0,.35);cursor:pointer;overflow:hidden;position:relative;background:#fff}
#layer .thumb{position:absolute;inset:0;background-size:cover;background-position:center}
#layer .thumb.sat{background-image:url(https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/13/2882/4425)}
#layer .thumb.std{background:linear-gradient(120deg,#f2efe9 0 38%,#aad3df 38% 52%,#f2efe9 52% 70%,#c8e6c2 70%)}
#layer .thumb.std::after{content:"";position:absolute;left:-10%;right:-10%;top:58%;height:5px;background:#f7c97a;transform:rotate(-18deg)}
#layer .lbl{position:relative;width:100%;padding:3px 0;background:linear-gradient(transparent,rgba(0,0,0,.6));color:#fff;font:500 12px Geist,system-ui,sans-serif}
.toast{position:absolute;left:50%;bottom:28px;transform:translateX(-50%);background:#323232;color:#fff;padding:10px 18px;border-radius:6px;z-index:5;font-size:14px}
.maplibregl-ctrl-bottom-right{margin-bottom:18px}
@media (max-width:640px){
  #side{width:auto;right:12px;top:8px;left:8px;max-width:none;max-height:calc(100% - 16px)}
  #panel{position:fixed;left:0;right:0;bottom:0;max-height:55vh;border-radius:16px 16px 0 0}
  #layers{bottom:auto;top:76px;left:auto;right:10px}
  #layer{width:52px;height:52px}#layer .lbl{display:none}
}
/* place details: photos, description, website, phone, hours */
.photos{display:flex;gap:4px;overflow-x:auto;scroll-snap-type:x mandatory;height:150px;border-radius:16px 16px 0 0}
.photos a{flex:0 0 auto;height:100%;scroll-snap-align:start}
.photos img{height:100%;width:auto;max-width:300px;min-width:120px;object-fit:cover;display:block;background:#f1f3f4}
.photos.loading i{flex:1;background:linear-gradient(90deg,#f1f3f4 25%,#e8eaed 50%,#f1f3f4 75%);background-size:200% 100%;animation:shim 1.2s infinite}
@keyframes shim{to{background-position:-200% 0}}
.desc{margin:8px 0 0;color:#3c4043;font-size:13px;line-height:1.5}.desc a{color:#70757a;font-size:12px}
.row.link{color:#1a73e8}.row.link small{margin-left:auto;color:#70757a;font-size:11px}
.row .fav{width:20px;height:20px;border-radius:4px;flex:none}
.row.muted{color:#70757a;font-size:13px}
.spin{width:16px;height:16px;border:2px solid #dadce0;border-top-color:#1a73e8;border-radius:50%;animation:rot .8s linear infinite;flex:none;margin:0 2px}
@keyframes rot{to{transform:rotate(360deg)}}
details.hours{display:block;padding:10px 18px}
details.hours>svg{float:left;margin-right:16px}
details.hours summary{cursor:pointer;list-style:none}details.hours summary::-webkit-details-marker{display:none}
details.hours summary small{color:#1a73e8;margin-left:6px}
details.hours ul{list-style:none;margin:6px 0 0 36px;padding:0;color:#3c4043;font-size:13px}details.hours li{padding:2px 0}

/* directions: clickable steps, start button, swap */
.sum{display:flex;align-items:center;justify-content:space-between;gap:10px}
.sum .warn{display:block;margin:2px 0 0;color:#b06000}
.go{display:inline-flex;align-items:center;gap:6px;padding:9px 18px;border:0;border-radius:20px;background:#1a73e8;color:#fff;font:500 14px Geist,system-ui,sans-serif;cursor:pointer}
.go:hover{background:#1765cc}
.go .arr{display:inline-flex}
.steps li{align-items:center;justify-content:flex-start;cursor:pointer}
.steps li:hover,.steps li.on{background:#e8f0fe}
.steps li:focus-visible{outline:2px solid #1a73e8;outline-offset:-2px}
.steps .si{flex:none;width:24px;display:grid;place-items:center;color:#5f6368}
.steps .st{flex:1;min-width:0}
.arr{display:inline-flex;transition:transform .2s}
.stepdot{width:16px;height:16px;border-radius:50%;background:#fff;border:4px solid #1a73e8;box-shadow:0 0 0 3px rgba(26,115,232,.25)}
.puck{width:22px;height:22px;border-radius:50%;background:#1a73e8;border:3px solid #fff;box-shadow:0 0 0 6px rgba(26,115,232,.25),0 1px 4px rgba(0,0,0,.4)}
.desc{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;cursor:pointer}
.desc.open{display:block;-webkit-line-clamp:unset}
/* navigating */
#app.navigating #side,#app.navigating #layers{display:none}
#nav{position:absolute;inset:0;pointer-events:none;z-index:4;display:flex;flex-direction:column;justify-content:space-between;padding:12px}
#nav>*{pointer-events:auto;width:min(480px,100%);align-self:center}
#nav .top{display:flex;gap:14px;align-items:center;padding:14px 18px;border-radius:16px;background:#188038;color:#fff;box-shadow:0 2px 8px rgba(60,64,67,.4)}
#nav .top .big{flex:none;display:grid;place-items:center;width:52px}
#nav .top b{display:block;font-size:26px;font-weight:600;line-height:1.1}
#nav .top .what,#nav .top small{display:block;margin-top:2px;font-size:16px;opacity:.95}
#nav .bot{display:flex;align-items:center;gap:10px;padding:10px 14px 10px 18px;border-radius:16px;background:#fff;box-shadow:0 2px 8px rgba(60,64,67,.4)}
#nav .bot>div{flex:1}
#nav .bot b{font-size:20px;font-weight:500;color:#188038}
#nav .bot small{margin-left:8px;color:#70757a}
.end-nav{padding:10px 18px;border:0;border-radius:20px;background:#d93025;color:#fff;font:500 14px Geist,system-ui,sans-serif;cursor:pointer}

/* reports, alternatives */
.rep{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#d93025;color:#fff;font:700 15px/1 Geist,system-ui,sans-serif;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.45)}
.rep.works{background:#f29900}.rep.accident{background:#7b1fa2}.rep.blocked{background:#e8710a}
.alert{margin:0 0 10px;padding:10px 12px;border-radius:10px;background:#fce8e6;color:#a50e0e;font-size:13px}
.lnk{border:0;background:none;color:#1a73e8;font:500 13px Geist,system-ui,sans-serif;cursor:pointer;padding:0;text-decoration:underline}
.alts{display:flex;gap:6px;margin-bottom:10px}
.alts button{flex:1;display:flex;flex-direction:column;align-items:flex-start;padding:6px 10px;border-radius:10px;border:1px solid #dadce0;background:#fff;cursor:pointer;font:inherit;color:#3c4043}
.alts button.on{background:#e8f0fe;border-color:#1a73e8}
.alts small{color:#70757a}
.rh{font-size:18px;font-weight:500;margin:4px 0 12px}
.kinds{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.kinds button{padding:12px;border-radius:10px;border:1px solid #dadce0;background:#fff;cursor:pointer;font:500 14px Geist,system-ui,sans-serif}
.kinds button:hover{background:#fce8e6;border-color:#d93025}
#nav .navwarn{display:block;margin-top:6px;padding:4px 8px;border-radius:6px;background:#fff;color:#a50e0e;font-size:14px;font-weight:600}
#nav .bot.rep{flex-wrap:wrap;gap:6px}
#nav .bot.rep button:not(.ib){padding:8px 12px;border-radius:16px;border:1px solid #dadce0;background:#fff;cursor:pointer;font:500 13px Geist,system-ui,sans-serif}

.alert.war{background:#fef7e0;color:#7a4b00;border:1px solid #f9ab00}

/* day out ideas */
#chips{display:flex;gap:8px;flex:none}
#dayout{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 14px;border:0;border-radius:18px;background:#fff;box-shadow:0 1px 4px rgba(60,64,67,.35);color:#3c4043;font:500 13px Geist,system-ui,sans-serif;cursor:pointer}
#dayout:hover{background:#f1f3f4}#dayout[aria-expanded="true"]{background:#e6f4ea;color:#137333}
.trip{padding:14px 16px 6px}
.trip .th{display:flex;align-items:center;justify-content:space-between}
.trip h2{margin:0;font-size:20px;font-weight:500}
.trip h3{margin:0 0 8px;font-size:14px;font-weight:600}
.trip section{padding:12px 0;border-top:1px solid #f1f3f4}
.trip .from{margin:2px 0 10px;color:#5f6368;font-size:13px}
.kid{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 0}
.kid>span{color:#3c4043}
.step{display:flex;align-items:center;gap:6px}.step b{min-width:64px;text-align:center;font-weight:600}
.rb{width:36px;height:36px;border-radius:50%;border:1px solid #dadce0;background:#fff;cursor:pointer;font-size:18px;color:#3c4043}
.rb:hover{background:#f1f3f4}
.add{margin-top:6px;width:100%;min-height:38px;border:1px dashed #9aa0a6;border-radius:10px;background:none;color:#1a73e8;font:500 13px Geist,system-ui,sans-serif;cursor:pointer}
.who{margin:8px 0 0;color:#5f6368;font-size:13px}
.segs.days{grid-template-columns:repeat(3,1fr);margin-bottom:8px}
.done{margin-top:10px;width:100%;min-height:38px;border:0;border-radius:10px;background:#1a73e8;color:#fff;font:500 13px Geist,system-ui,sans-serif;cursor:pointer}
.done:hover{background:#1765cc}
.whodone .kid>span{font-weight:500;color:#202124}
#tdate{min-height:38px;padding:0 10px;border:1px solid #dadce0;border-radius:8px;font:inherit}
.segs{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.seg,.chip{min-height:36px;border:1px solid #dadce0;background:#fff;cursor:pointer;font:500 13px Geist,system-ui,sans-serif;color:#3c4043}
.seg{border-radius:10px}.chip{padding:0 12px;border-radius:18px}
.seg.on,.chip.on{background:#e8f0fe;border-color:#1a73e8;color:#1967d2}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.season{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-bottom:10px;padding:12px;border-radius:12px;background:#1e3a8a;color:#fff}
.season b{width:100%}.season span{width:100%;font-size:13px;color:#dbe4ff}
.season button{min-height:34px;padding:0 12px;border:0;border-radius:8px;background:#fff;color:#1e3a8a;font:600 13px Geist,system-ui,sans-serif;cursor:pointer}
.tlist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.tlist button{display:flex;gap:10px;width:100%;padding:10px;border:1px solid #e8eaed;border-radius:12px;background:#fff;text-align:left;cursor:pointer;font:inherit;color:inherit}
.tlist button:hover{border-color:#1a73e8}
.tlist .n,.tpin{flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#137333;color:#fff;font:700 13px Geist,system-ui,sans-serif}
.logo{position:relative;flex:none;display:grid;place-items:center;width:44px;height:44px;border:1px solid #e8eaed;border-radius:10px;background:#f8f9fa;font-size:22px;line-height:1}
.logo img{position:absolute;inset:6px;width:30px;height:30px;object-fit:contain;background:#f8f9fa}
.tlist .logo .n{position:absolute;top:-7px;left:-7px;width:20px;height:20px;font-size:11px;box-shadow:0 0 0 2px #fff}
.tb{display:flex;flex-direction:column;gap:4px;min-width:0}.tb small{color:#5f6368}
.why{font-size:12px;color:#3c4043}
.badges{display:flex;flex-wrap:wrap;gap:4px}
.badge{padding:2px 7px;border-radius:6px;background:#f1f3f4;color:#3c4043;font-size:12px;font-weight:500}
.badge.ok{background:#e6f4ea;color:#137333}.badge.warn{background:#fef7e0;color:#7a4b00}.badge.season{background:#1e3a8a;color:#fff}
.hid{margin-top:12px;font-size:13px}.hid>div:not(.fh){display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-top:1px solid #f1f3f4}.hid small{color:#b3261e;text-align:right}
.fh{font-size:12px;font-weight:600;color:#5f6368;text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px}
.none{color:#5f6368}
.tpin{border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.4);cursor:pointer;padding:0}
.tpin.off{width:14px;height:14px;background:#9aa0a6}
.facts{margin:0 16px 10px;padding:12px;border-radius:12px;background:#f8faf8;border:1px solid #e6f4ea}
.facts p{margin:8px 0 0;font-size:13px;color:#3c4043}.facts .aka{color:#5f6368;font-size:12px}

.trip .segs:not(:has(.seg:nth-child(5))){grid-template-columns:repeat(4,1fr)}
.trip .from+.segs{margin-bottom:6px}
.trip h3 small{font-weight:400;color:#5f6368;margin-left:4px}
.who .spin{display:inline-block;vertical-align:-3px;margin-right:4px}
