/* Route overview reuses the existing map and itinerary components. */
.map-scope-toggle{display:none;position:absolute;z-index:5;top:14px;left:14px;gap:3px;padding:3px;border:1px solid #d8d0bd;border-radius:5px;background:#f6f1e7f2}
.map-scope-toggle button{min-height:36px;padding:7px 18px;border-radius:3px;color:#52616a;font-size:12px;white-space:nowrap}
.map-scope-toggle button.active{background:#2c5a2e;color:#fff}
.mode-map .map-scope-toggle{display:flex}
.mode-map .map-label{display:none}
.mode-map .map-route-note{top:70px;left:14px;z-index:3;border-radius:3px}
.drive-editor-route{display:grid;gap:12px}
.drive-measures{border-top:1px solid #d8d0bd;padding-top:12px}
.drive-measures>.text-btn{margin:4px 0 6px;color:#2c5a2e}
.drive-measures>small{display:block;color:#747e77;font-size:11px;line-height:1.5}
.timeline .drive-stop{padding:4px 11px 5px!important}
.timeline .drive-stop .time-rule{min-height:36px;height:36px}
.timeline .drive-stop .stop-title{min-height:36px;padding-block:3px}
.drive-card-details{padding:0 47px 0 70px;color:#59666c;font-size:11px;line-height:1.45;min-width:0}
.drive-meta-line{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:27px;min-width:0}
.drive-facts{min-width:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.drive-mode{color:#526f55;font-weight:600;white-space:nowrap}
.drive-card-details small{display:block;color:#526f55;font-size:11px}
.drive-card-details .drive-note{color:#66706d;margin:1px 0 3px;line-height:1.5}
.drive-card-details .drive-map-action{display:inline-flex;align-items:center;justify-content:flex-end;gap:3px;flex:none;min-height:27px;color:#2c5a2e;padding:2px 0;font-size:11px;font-weight:600;white-space:nowrap}
.drive-map-action .icon{width:14px;height:14px}
.drive-map-action:hover{text-decoration:underline;text-underline-offset:3px}
.drive-map-action:focus-visible{outline:2px solid #2c5a2e;outline-offset:2px}
.timeline.reordering .drive-stop .stop-footer{min-height:36px;height:36px;padding-right:35px;border-top:1px solid #e2dacb}
.timeline.reordering .drive-stop .drag-handle{min-height:36px}
.timeline.reordering .drive-stop .order-control{min-height:34px;height:34px;min-width:34px;width:34px;padding:6px}
.day-weather{display:flex;align-items:center;gap:6px;min-height:22px;margin:2px 0 0;color:#68736d;font-size:12px;line-height:1.4;white-space:nowrap;overflow:hidden}
.day-weather-slot{grid-column:1;grid-row:3;min-width:0}
.day-weather .icon{width:16px;height:16px;flex:none;color:#7d927b}
.day-weather-city{color:#526450;overflow:hidden;text-overflow:ellipsis;max-width:38%;font-weight:600}
.day-weather b{color:#526450;font-weight:600;font-variant-numeric:tabular-nums}
.day-weather a{color:#7b857d;font-size:10px;text-decoration:underline;text-underline-offset:2px;margin-left:3px}
.day-weather a:focus-visible{outline:2px solid #2c5a2e;outline-offset:2px}
.route-index{background:#f6f1e7}
.route-index header{padding:14px 16px 8px}
.route-index h3{margin:0 0 4px;color:#1f2a44}
.route-index .map-stop-list{max-height:none}
.route-index-row{width:100%;display:flex;align-items:flex-start;gap:10px;min-height:72px;padding:13px 16px;border-top:1px solid #e0d8c7;text-align:left;color:#1f2a44}
.route-index-row:hover,.route-index-row.selected{background:#eaf0e5}
.route-index-row:focus-visible,.map-scope-toggle button:focus-visible{outline:2px solid #2c5a2e;outline-offset:-2px}
.route-index-copy{min-width:0;display:block}
.route-index-copy b{display:block;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.route-index-copy small{display:block;font-size:10px;line-height:1.6;margin-top:4px;color:#747e77}
.route-index-footer{padding:12px 16px;border-top:1px solid #e0d8c7;color:#747e77;font-size:10px;line-height:1.5}
.route-index-footer a{color:#2c5a2e;text-decoration:underline}
.mode-map .map-stops:not(.route-index) header{padding:14px 16px 8px}
.mode-map .map-stops:not(.route-index) .map-stop-row{padding-inline:10px}
.trip-map-pin{background:#2c5a2e;color:#fff;border:2px solid #f6f1e7;cursor:pointer}
@media(min-width:701px){
  .mode-map.planning-grid{display:block}
  .mode-map .day-card{display:none}
  .mode-map .map-area{display:grid;grid-template-columns:minmax(0,1fr) 285px;grid-template-rows:minmax(550px,calc(100dvh - 315px));width:100%;position:relative;top:0;overflow:hidden}
  .mode-map .map-area #map{grid-column:1;grid-row:1;width:100%;height:100%;min-height:550px}
  .mode-map .map-stops{grid-column:2;grid-row:1;overflow:auto;min-width:0;border-top:0;border-left:1px solid #d8d0bd;padding:0}
  .mode-map .map-stops .sheet-handle{display:none}
  .mode-map #map-detail{display:none}
  .mode-map .maplibregl-ctrl-bottom-right{right:285px}
}
@media(max-width:700px){
  .mode-map .map-area{height:calc(100dvh - 238px);min-height:430px;position:relative;overflow:hidden}
  .mode-map .map-area #map{height:100%;min-height:0;max-height:none}
  .mode-map .map-stops{position:absolute;z-index:4;bottom:0;left:0;right:0;max-height:36%;overflow:hidden;padding:0;border-radius:12px 12px 0 0;box-shadow:0 -8px 22px #1f2a4414}
  .mode-map .map-stops.expanded{max-height:70%}
  .mode-map .map-stops header{padding:0 14px 7px}
  .mode-map .map-stops .map-stop-list{max-height:108px;overflow:auto}
  .mode-map .map-stops.expanded .map-stop-list{max-height:48dvh}
  .mode-map .map-stops .route-index-row{min-height:58px;padding:8px 14px}
  .mode-map .route-index-footer{padding:7px 14px}
  .mode-map #map-detail{display:none}
  .mode-map .map-route-note{top:62px;left:10px;max-width:calc(100% - 80px)}
  .mode-map .maplibregl-ctrl-top-right{top:66px;right:4px}
  .mode-map .maplibregl-ctrl-bottom-right{bottom:36%;z-index:3}
  .drive-card-details{padding-left:62px;padding-right:46px}
  .drive-card-details .drive-map-action{min-height:44px}
  .day-weather{font-size:11px}
  .day-weather-slot{grid-column:1 / 3;grid-row:3}
  .day-heading.has-weather .day-heading-actions{grid-row:4}
  .day-weather a{font-size:9px;margin-left:0}
}
