/* Saved courses are a daily itinerary, separate from discovery filters. */
.daily-route-picker{min-width:0;padding:0 20px 12px;background:var(--surface)}
.daily-route-picker[hidden]{display:none}
.daily-route-picker>p{margin:0 0 8px;color:var(--muted);font-size:13px;line-height:1.5}
.daily-route-picker>div{display:flex;gap:6px;overflow-x:auto;scrollbar-width:thin;padding-bottom:4px}
.daily-route-picker button{flex:0 0 auto;min-height:52px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);cursor:pointer;text-align:left}
.daily-route-picker button strong,.daily-route-picker button small{display:block;white-space:nowrap}
.daily-route-picker button small{margin-top:3px;color:var(--muted);font-size:12px}
.daily-route-picker button[aria-pressed="true"]{background:var(--accent);color:#17271e;border-color:var(--accent);box-shadow:inset 0 0 0 1px #17271e22}
.daily-route-picker button[aria-pressed="true"] small{color:#34452b}
.daily-route-stops{list-style:none;padding:0;margin:14px 0}
.daily-route-stops>li{position:relative;padding:0 0 20px 34px}
.daily-route-stops>li:not(:last-child)::before{content:"";position:absolute;left:12px;top:28px;bottom:0;border-left:2px solid var(--line-strong)}
.daily-route-stop{min-width:0}
.daily-stop-number{position:absolute;left:0;top:0;display:grid;place-items:center;width:26px;height:26px;background:var(--accent);color:#17271e;border-radius:50%;font-size:13px;font-weight:800}
.daily-route-stop time{display:block;color:var(--green);font-size:13px;font-weight:750;line-height:26px}
.daily-stop-title{display:block;padding:0;margin:5px 0;border:0;background:none;color:var(--ink);font:inherit;font-size:18px;font-weight:750;line-height:1.4;text-align:left;overflow-wrap:anywhere;cursor:pointer}
.daily-stop-title:disabled{opacity:1;cursor:default}
.daily-route-stop>p{margin:6px 0 10px;font-size:13px;color:var(--muted);line-height:1.5;overflow-wrap:anywhere}
.daily-stop-actions{display:flex;gap:6px;flex-wrap:wrap}
.daily-stop-actions button,.route-directions,.itinerary-day-heading>button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 11px;border:1px solid var(--line-strong);border-radius:9px;background:var(--surface);color:var(--ink);font:inherit;font-size:13px;font-weight:650;text-decoration:none;cursor:pointer}
.daily-route-leg{display:flex;align-items:flex-start;flex-direction:column;gap:8px;margin:14px 0 0;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--muted);font-size:13px;line-height:1.5}
.daily-route-leg>p{margin:0}.daily-route-leg>p>b,.daily-route-leg>p>span{display:block}
.daily-route-leg .route-directions{color:var(--green);border-color:var(--green)}
.route-timing{color:var(--orange);font-weight:650}
.route-basis-note{margin:10px 0;color:var(--muted);font-size:12px;line-height:1.5}
.itinerary-day-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;flex-wrap:wrap}
.itinerary-day-heading .itinerary-day{margin:0}
body.route-active #routeView.saved-route-map .map-route-controls{grid-template-columns:repeat(2,minmax(0,1fr))}
#routeView .map-route-controls label[hidden],#routeView .map-search[hidden]{display:none}
#routeView.saved-route-map .map-header-actions #showSelectedMarkersBtn{display:none}
#routeView.saved-route-map .map-legend{display:none}
@media(min-width:1000px){
 body.route-active #routeView.saved-route-map.active{grid-template-rows:auto auto auto auto minmax(0,1fr)}
 body.route-active #routeView.saved-route-map .daily-route-picker{grid-column:1;grid-row:2}
 body.route-active #routeView.saved-route-map .map-route-summary{grid-row:3}
 body.route-active #routeView.saved-route-map .map-route-controls{grid-row:4}
 body.route-active #routeView.saved-route-map .map-browser{grid-row:5}
 body.route-active #routeView.saved-route-map .map-card{grid-row:1/6}
 body.route-active #routeView.saved-route-map .route-sheet{display:none}
}
@media(max-width:999px){
 .daily-route-picker{padding:0 12px 8px;flex-shrink:0}
 .daily-route-picker>p{display:none}
 .daily-route-picker button{min-height:46px;padding:6px 10px}
 body.route-active #routeView.saved-route-map .section-header h1{font-size:18px}
 body.route-active #routeView.saved-route-map .route-sheet.open{max-height:min(55dvh,560px)}
 body.route-active #routeView.saved-route-map .route-sheet-body{max-height:calc(min(55dvh,560px) - 66px)}
 #routeView.saved-route-map .map-browser .daily-route-stops{margin-top:20px}
 .itinerary-day-heading>button{font-size:12px}
}
