.driver-routes .driver-map-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: .4rem .8rem 0 0;
  color: inherit;
  font-weight: 700;
  text-underline-offset: .2em;
}
.driver-map-dialog {
  inset: 0;
  width: min(96vw, 1500px);
  height: 94dvh;
  max-width: none;
  max-height: none;
  box-sizing: border-box;
  margin: auto;
  padding: 0;
  border: 1px solid #879aa6;
  border-radius: 18px;
  color: #fff5df;
  background: #172f40;
  overflow: hidden;
}
.driver-map-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.driver-map-dialog::backdrop { background: #091a26b8; }
body:has(.driver-map-dialog[open]) { overflow: hidden; }
.driver-map-dialog header { display: flex; align-items: center; gap: .75rem; padding: 5px 12px; }
.driver-map-dialog strong { margin-inline-end: auto; }
.driver-map-dialog a { color: inherit; text-underline-offset: .18em; }
.driver-map-dialog form { margin: 0; }
.driver-map-dialog button {
  width: 44px;
  height: 44px;
  border: 1px solid #879aa6;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font-size: 1.65rem;
  cursor: pointer;
}
.driver-map-frame { position: relative; min-height: 0; }
.driver-map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.driver-map-frame [role="status"] { position: absolute; inset: 0; align-content: center; text-align: center; background: #172f40; pointer-events: none; }
@media (max-width: 680px) {
  .driver-map-dialog { width: calc(100vw - 8px); height: calc(100dvh - 8px); border-radius: 14px; }
  .driver-map-dialog header { gap: .5rem; padding-inline: 8px; font-size: .85rem; }
  .driver-dock :is(button,a) { line-height: 1.16; }
}
