*{box-sizing:border-box}
:root{--ink:#1f2937;--muted:#6b7280;--line:#e5e7eb;--bg:#f8fafc}
body{margin:0;display:flex;height:100vh;font:14px/1.45 -apple-system,"Segoe UI",Roboto,sans-serif;color:var(--ink);background:var(--bg)}
#sidebar{width:360px;flex:none;display:flex;flex-direction:column;background:#fff;border-right:1px solid var(--line);box-shadow:2px 0 12px rgba(0,0,0,.05);z-index:5}
header{padding:18px 16px 12px;background:linear-gradient(135deg,#0f766e,#1d4ed8);color:#fff}
h1{margin:0;font-size:24px;font-weight:800;letter-spacing:.2px}
.sub{margin:2px 0 12px;font-size:12px;opacity:.85}
#days{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 8px;scrollbar-width:thin;scroll-snap-type:x proximity}
#days button{flex:none;scroll-snap-align:start;display:flex;flex-direction:column;align-items:center;min-width:62px;padding:6px 8px;border:2px solid transparent;border-radius:12px;background:rgba(255,255,255,.16);color:#fff;cursor:pointer;font:inherit;transition:transform .12s,background .12s}
#days button:hover{background:rgba(255,255,255,.3);transform:translateY(-1px)}
#days button .dn{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;opacity:.9}
#days button .dd{font-size:15px;font-weight:800;line-height:1.2}
#days button .dw{font-size:11px;opacity:.8}
#days button.on{background:#fff;color:var(--ink);border-color:var(--c);box-shadow:0 2px 8px rgba(0,0,0,.25)}
#days button.on .dn{color:var(--c);opacity:1}
.legend{display:flex;gap:14px;margin-top:2px;font-size:12px;opacity:.95}
.legend span{display:flex;align-items:center;gap:5px}
.lg{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:#fff;color:#1d4ed8;font-size:11px;font-style:normal}
.lg.sight{background:#e6194b;border:2px solid #fff}
.lg.stay{border-radius:6px}
#day-title{padding:14px 16px 8px;border-left:5px solid var(--c,#1d4ed8)}
#day-title .when{font-size:12px;color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.4px}
#day-title .what{font-size:17px;font-weight:700}
#day-title .sum{margin-top:6px;font-size:13px;color:#374151;line-height:1.5}
#day-title{max-height:42%;overflow:auto;border-bottom:1px solid var(--line)}
#stops{list-style:none;margin:0;padding:4px 10px 16px;overflow:auto;flex:1}
#stops li{display:flex;gap:12px;align-items:flex-start;padding:10px;margin-bottom:4px;border:1px solid transparent;border-radius:12px;cursor:pointer;transition:background .12s,box-shadow .12s}
#stops li:hover{background:var(--bg);border-color:var(--line)}
#stops li.on{background:#eff6ff;border-color:#bfdbfe;box-shadow:0 1px 6px rgba(29,78,216,.15)}
.num{flex:none;width:28px;height:28px;border-radius:50%;background:#1677ff;color:#fff;text-align:center;line-height:28px;font-size:13px;font-weight:700;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.t{display:inline-block;color:var(--muted);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px}
.n{font-weight:700}.blurb{color:#374151;font-size:13px;line-height:1.4;margin-top:2px}.note{color:var(--muted);font-size:12px;margin-top:2px}
main{flex:1;position:relative}
#map{position:absolute;inset:0}
#detail{position:absolute;top:14px;right:14px;width:320px;max-height:calc(100% - 28px);overflow:auto;background:#fff;border-radius:14px;box-shadow:0 8px 30px rgba(0,0,0,.25);padding:16px;z-index:1000}
#detail img{width:100%;border-radius:8px;margin:6px 0}
#detail h2{margin:0 0 2px;font-size:18px}
#detail .close{float:right;cursor:pointer;border:0;background:var(--bg);width:28px;height:28px;border-radius:50%;font-size:18px;line-height:1}
#detail a{color:#1d4ed8;font-weight:600;text-decoration:none}#detail a:hover{text-decoration:underline}.links{margin-top:10px}
.rating{color:#e67e00;font-weight:700}
#notice{position:absolute;inset:auto 14px 14px 14px;background:#fff3cd;border:1px solid #e0c36a;padding:10px 12px;border-radius:10px;z-index:1000}
@media(max-width:700px){body{flex-direction:column}#sidebar{width:100%;height:50%}main{height:50%}#detail{width:auto;left:12px;top:auto;bottom:12px;max-height:55%}}

.pin{color:#fff;border:2px solid #fff;border-radius:50%;width:26px;height:26px;text-align:center;line-height:22px;font-size:12px;box-shadow:0 1px 4px rgba(0,0,0,.4)}
.pin.approx{border-style:dashed;opacity:.85}
.pin.on{background:#e53935;transform:scale(1.25)}

/* Sights = solid disc. Food/stay = white fill with a thick ring in the day colour; stay is a rounded square. */
.pin.stay,.pin.food{background:#fff!important;border:3px solid var(--c);width:30px;height:30px;line-height:24px;margin:-2px;font-size:15px}
.pin.stay{border-radius:8px}
.pin.on.stay,.pin.on.food{border-color:#e53935}
.num.stay,.num.food{background:#fff!important;border:3px solid var(--c);line-height:22px;font-size:14px}
.num.stay{border-radius:7px}

/* Mobile only: day summary is collapsed until tapped, like the stop cards */
#day-title .chev{display:none}
@media(max-width:700px){
  #day-title{position:relative;cursor:pointer;max-height:none;overflow:visible;padding-right:40px}
  #day-title .chev{display:block;position:absolute;right:14px;top:50%;transform:translateY(-50%);color:var(--muted);transition:transform .15s}
  #day-title.open .chev{transform:translateY(-50%) rotate(180deg)}
  #day-title .sum{display:none}
  #day-title.open .sum{display:block}
  #day-title.open{max-height:60%;overflow:auto}
  #day-title.open .chev{top:22px;transform:rotate(180deg)}
}

/* Mobile only: collapsible stop list */
#stops-bar{display:none}
@media(max-width:700px){
  #sidebar{height:auto;max-height:62%}
  main{height:auto;flex:1;min-height:0}
  #stops-bar{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;font-weight:700;background:var(--bg);border-top:1px solid var(--line);border-bottom:1px solid var(--line);cursor:pointer}
  #stops-bar .chev{color:var(--muted);transition:transform .15s}
  #sidebar.stops-open #stops-bar .chev{transform:rotate(180deg)}
  #stops{display:none}
  #sidebar.stops-open #stops{display:block}
}

/* My-location button and blue dot */
.locate-btn{width:34px;height:34px;border:2px solid rgba(0,0,0,.25);border-radius:4px;background:#fff;font-size:18px;line-height:1;cursor:pointer;padding:0}
.locate-btn:hover{background:#f4f4f4}
.locate-btn.on{background:#1a73e8;border-color:#1a73e8}
.me{width:18px;height:18px;border-radius:50%;background:#1a73e8;border:3px solid #fff;box-shadow:0 0 0 2px rgba(26,115,232,.35),0 1px 4px rgba(0,0,0,.4)}
