#map { background:#edf0eb; color:#233c42; font-family:Barlow,'Segoe UI',sans-serif; }
.map-viewport { position:relative; isolation:isolate; overflow:hidden; }
.map-card { --map-trunk:#007d83; --map-feeder:#c93d79; --map-center:#e9cb91; --map-center-edge:#856129; }
.workspace.surveying[data-survey-step=editor] .map-card { container:stop-editor-map / inline-size; }
.workspace.surveying[data-survey-step=editor] .map-head { display:flex; flex-wrap:wrap; justify-content:flex-start; }
.workspace.surveying.picking[data-survey-step=editor] .picker { bottom:2.5rem; }
.editor-basemap { margin-inline-start:auto; }
.editor-basemap button { min-width:64px; min-height:34px; font-size:14px; }
.basemap-status { padding:5px 14px; border-bottom:1px solid var(--line); background:#f0f6f3; color:var(--ink); font-size:13px; }
.map-legend .swatch.trunk { background:var(--map-trunk); }
.map-legend .swatch.feeder { background:var(--map-feeder); }
.map-legend .swatch.center { background:var(--map-center); box-shadow:inset 0 0 0 1px var(--map-center-edge); }
.map-legend .swatch.point { background:white; border:2px solid #00636a; border-radius:50%; }
.map-card .leaflet-control-zoom.leaflet-bar { margin:12px; border:1px solid #b8c4c4; border-radius:9px; overflow:hidden; background:white; box-shadow:0 2px 8px #20394020; }
.map-card .leaflet-control-zoom.leaflet-bar a { display:grid; place-items:center; width:38px; height:38px; border-color:#d8e1e0; color:#143b40; background:#fff; font:500 25px/1 Barlow,sans-serif; }
.map-card .leaflet-control-zoom.leaflet-bar a:hover { background:#ecf5f2; }
.map-card .leaflet-control-zoom.leaflet-bar a:focus-visible { outline:2px solid #00747c; outline-offset:-3px; }
.map-card .leaflet-control-zoom.leaflet-bar .leaflet-disabled { color:#829193; }
.map-card .leaflet-popup-content-wrapper { border:1px solid #c8d4d1; border-radius:12px; box-shadow:0 4px 18px #18313726; }
.map-card .leaflet-popup-content { margin:14px 17px; }
.map-card .leaflet-control-attribution { color:#526166; background:#fffffff0; font:10px/1.3 Barlow,sans-serif; }
.map-card .leaflet-control-attribution a { color:#20595f; text-decoration:underline; }
.public-basemap { position: absolute; pointer-events: none; }
.geo-label { color:#4f6063; text-align:center; white-space:nowrap; line-height:1; pointer-events:none; }
.geo-label span { display:block; text-shadow:-1px 0 1px #fff,1px 0 1px #fff,0 -1px 2px #fff,0 1px 2px #fff; }
.geo-city { font:700 22px/1 Barlow,sans-serif; letter-spacing:-.025em; color:#344b50; }
.geo-district { font:600 11px/1 Barlow,sans-serif; color:#596b70; }
.geo-sector { font:500 11px/1 Barlow,sans-serif; color:#586569; }
.geo-poi { font:600 11px/1 Barlow,sans-serif; color:#375a5c; }
.geo-trunk span { display:inline-block; max-width:100%; box-sizing:border-box; overflow:hidden; text-overflow:ellipsis; border-radius:3px; padding:1px 4px; background:#fffffff0; }
.geo-trunk { font:600 11.5px/1.18 Barlow,sans-serif; color:#164449; }
.map-card .leaflet-tooltip.stop-label { border:1px solid #bacccb; background:#fff; color:#173b40; box-shadow:0 2px 6px #193e4220; font:600 12px/1.2 Barlow,sans-serif; }
.public-north { position:relative; margin-top:60px!important; margin-right:19px!important; width:19px; padding-top:15px; text-align:center; color:#294348; font:700 11px/1 Barlow,sans-serif; text-shadow:0 1px 2px white; pointer-events:none; }
.public-north::before { content:''; position:absolute; top:0; left:5px; border-left:5px solid transparent; border-right:5px solid transparent; border-bottom:13px solid #335256; }
.leaflet-control-scale { margin-right: 9px!important; }
.leaflet-control-scale-line { background: #f9faedba; font: 10px/1.15 'Segoe UI', sans-serif; border-color: #617665; color: #455746; text-shadow: none; }
.geo-popup { display:grid; gap:6px; font:14px/1.3 Barlow,sans-serif; color:#28484b; }
.geo-popup strong { font: 650 18px/1.1 Barlow, sans-serif; }
.geo-popup-button { border:1px solid #c2d1cf; border-radius:6px; background:#f1f7f5; padding:6px 9px; color:#1d555a; text-align:left; font:600 13px/1.3 Barlow,sans-serif; }
.geo-popup-button:hover { background:#deeeea; }
.it-point { width: 22px; height: 22px; border: 2px solid #fff; border-radius: 50%; text-align: center; color: white; box-shadow: 0 1px 5px #162c2966; font: 700 12px/18px Barlow, sans-serif; }
.it-point.origin { background:#006a70; }
.it-point.destination { background:#a13166; }
.workspace.picking .public-north, .workspace.picking .map-legend { visibility: hidden; }
.workspace.picking .leaflet-popup { display:none; }
.picker.segment-picker { top:auto; bottom:14px; left:14px; right:14px; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 14px; }
.segment-picker > :first-child { grid-column:1/-1; }
.segment-picker .actions, .segment-pick-buttons { display:flex; flex-flow:row wrap; align-items:center; gap:6px; }
.segment-picker .actions { justify-content:flex-end; }
.segment-endpoint { border:1px solid #b4c2b4; border-radius:5px; padding:5px 9px; color:#284d41; background:#f7f9f1; font:600 13px/1.15 Barlow,sans-serif; }
.segment-endpoint[aria-pressed="true"] { border-color:#2e6653; background:#d9e9d9; color:#173d31; }
.segment-endpoint:disabled { opacity:.5; }
.segment-pin { display:grid; place-items:center; box-sizing:border-box; border:2px solid white; box-shadow:0 1px 6px #162c2975; color:white; font:700 15px/1 Barlow,sans-serif; }
.segment-pin.is-start { border-radius:50%; background:#006a70; }
.segment-pin.is-end { border-radius:5px; background:#a13166; }
.traffic-pin { pointer-events:none; font-size:12px; }
.segment-selecting .leaflet-control-scale { visibility:hidden; }
.segment-crosshair { position:absolute; z-index:490; left:50%; top:50%; width:16px; height:16px; transform:translate(-50%,-50%); pointer-events:none; filter:drop-shadow(0 0 1.3px white); }
.segment-crosshair::before,.segment-crosshair::after { content:''; display:block; position:absolute; background:#183f35; }
.segment-crosshair::before { width:16px; height:2px; top:7px; }
.segment-crosshair::after { height:16px; width:2px; left:7px; }
@media (max-width:780px) {
  .picker.segment-picker { left:6px; right:6px; bottom:12px; padding:9px; gap:6px; }
  .segment-picker .actions { flex-direction:row; }
  .segment-endpoint { padding:5px 6px; }
}
@media (max-width: 780px) { .public-north{ margin-top: 48px!important; margin-right: 14px!important; } .geo-city{ font-size: 18px; } }
@media (pointer:coarse), (max-width:780px) {
  .editor-basemap button { min-height:44px; }
  .map-card .leaflet-control-zoom.leaflet-bar { margin:9px; }
  .map-card .leaflet-control-zoom.leaflet-bar a { width:44px; height:44px; }
  .picker button,.geo-popup-button { min-height:44px; touch-action:manipulation; }
  .map-card .leaflet-container a.leaflet-popup-close-button { width:44px; height:44px; line-height:33px; }
  .map-card .leaflet-popup-content { margin-right:32px; }
}
@container stop-editor-map (max-width:410px) {
  .workspace.surveying[data-survey-step=editor] .map-head { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:2px 8px; }
  .map-heading h2 { font-size:16px; }
  .map-period { grid-area:2 / 1; justify-self:start; margin-inline-start:18px; border:0; padding:0; background:none; }
  .editor-basemap { grid-column:2; grid-row:1 / span 2; }
  .workspace.surveying.picking[data-survey-step=editor] .picker { bottom:3.5rem; }
}
