.map-overlay-toolbar {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.map-layers {
  pointer-events: auto;
  margin-left: auto;
}
.map-layers label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fffffff5;
  padding: 0 10px;
  border: 1px solid #dce3de;
  border-radius: 14px;
  font-size: 12px;
  box-shadow: 0 6px 24px #243d371c;
}
.map-layers select {
  width: auto;
  max-width: 190px;
  min-height: 44px;
  border: 0;
  background: transparent;
  padding: 8px 24px 8px 4px;
  font-size: 12px;
}
#map-count {
  align-self: center;
  color: #203c35;
  background: #fffffff2;
  border-radius: 10px;
  padding: 8px;
  font-size: 12px;
}
.map-directions {
  position: absolute;
  z-index: 12;
  top: 76px;
  left: 14px;
  width: 360px;
  max-height: calc(100% - 165px);
  overflow: auto;
  padding: 20px;
  background: #fffefb;
  border: 1px solid #dde4df;
  border-radius: 22px;
  box-shadow: 0 16px 55px #142f3233;
}
.map-directions .map-panel-heading {
  align-items: start;
}
.map-directions h2 {
  font-size: 22px;
  margin: 5px 0 0;
}
.map-directions .actions,
.route-modes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.map-directions button,
.map-directions summary,
.map-pin-chooser button {
  min-height: 44px;
}
.route-modes button {
  flex: 1;
  padding: 8px;
}
.route-modes [aria-pressed='true'] {
  background: #203e36;
  color: white;
}
.route-status {
  font-weight: 700;
}
.route-endpoint {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #246ce0;
  color: white;
  font-weight: 800;
  border: 3px solid white;
  box-shadow: 0 2px 8px #10284255;
}
.travel-app .map-picked-point {
  width: 44px;
  height: 44px;
  border: 3px solid white;
  border-radius: 50%;
  background: #2369d9;
  color: white;
  font-size: 26px;
  box-shadow: 0 3px 16px #133c6655;
  cursor: grab;
}
.map-panel:has(.map-picked-point) .map-group-dock,
.map-panel:has(.map-picked-point) .map-overlay-toolbar {
  visibility: hidden;
}
.picked-point-card {
  display: grid;
  gap: 8px;
  padding: 8px;
  max-height: min(360px, 45svh);
  overflow: auto;
}
.picked-point-card p {
  margin: 0;
}
.picked-point-card .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.picked-point-card button {
  min-height: 44px;
}
.picked-coordinates {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
.route-result ol {
  padding-left: 22px;
  max-height: 180px;
  overflow: auto;
}
.route-result li {
  padding: 8px 0;
}
.route-result small {
  display: inline-block;
  margin: 8px 0;
}
.route-external {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.is-picking .route-controls,
.is-picking .route-result {
  display: none;
}
.routing-open .map-group-dock {
  display: none;
}
.routing-open .map-tools {
  display: none;
}
.map-pin-chooser {
  display: grid;
  gap: 4px;
  max-height: 280px;
  overflow: auto;
}
.pin-card {
  max-height: min(420px, 50svh);
  overflow-y: auto;
}
.map-pin-chooser button {
  text-align: left;
}
.service-profile {
  border-top: 1px solid #dce3de;
  margin-top: 20px;
  padding-top: 20px;
}
.service-profile dl {
  display: grid;
  gap: 12px;
}
.service-profile dl > div {
  display: grid;
  gap: 4px;
}
.service-profile dt {
  font-size: 12px;
  color: #65786d;
}
.service-profile dd {
  margin: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 800px) {
  .map-layers label {
    font-size: 0;
    padding: 0 4px;
  }
  .map-layers select {
    max-width: 155px;
  }
  #map-count {
    position: absolute;
    top: 50px;
    left: 0;
    max-width: calc(100% - 78px);
  }
  .map-directions {
    top: 136px;
    width: calc(100% - 28px);
    max-height: calc(100% - 250px);
    padding: 16px;
  }
  .map-directions:has(.route-result ol) {
    max-height: 35%;
  }
  .map-directions:has(.route-result ol) .route-controls {
    display: none;
  }
  .map-directions:has(.route-result ol) h2 {
    font-size: 18px;
  }
  .map-directions:has(.route-result ol) .route-status {
    margin: 8px 0;
  }
  .map-directions:has(.route-result ol) .route-result .help {
    font-size: 12px;
    line-height: 1.4;
    margin: 6px 0;
  }
  .map-directions:has(.route-result ol)::after {
    content: '';
  }
  .routing-open .map-panel:has(.is-picking) .map-pin {
    pointer-events: none;
  }
}
