/* Opt-in preview, independent of the site's existing stylesheet. */
.mini-map[data-route-map] {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 160px;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  background: #d9dfd5;
  color: #26382b;
}
.mini-map[data-route-map] > svg {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
}
.mini-map[data-route-map] > .gb-map-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  visibility: hidden;
  pointer-events: none;
  background: #d9dfd5;
}
.mini-map[data-route-map].gb-map-ready > svg { visibility: hidden; }
.mini-map[data-route-map].gb-map-ready > .gb-map-canvas {
  visibility: visible;
  pointer-events: auto;
}
/* Make the required attribution readable even with site-wide dark styles. */
.mini-map .leaflet-bottom.leaflet-right { left: 0; }
.mini-map .leaflet-control-attribution {
  float: right;
  max-width: 100%;
  margin: 0;
  padding: 3px 6px;
  background: #fff;
  color: #111;
  font: 12px/1.4 Arial, sans-serif;
  white-space: normal;
  text-align: right;
}
.mini-map .leaflet-control-attribution a {
  color: #003f72;
  text-decoration: underline;
}
