/* Jimmy's Ride — shared map chrome and typography only.
   All geometry (blocks, river, roads, route) lives inline inside
   map-art.js; this file only sets label typography and the compass /
   scale overlays that site on top of the SVG. */

.map-art {
  display: block;
}

/* Labels — sans-serif, not mono, matching the original 13px @ 1.4 user
   units that v0.1 used; surfaces tune the rendered size in their own
   CSS files. */
.map-art .map-labels text {
  font-family: var(--font);
  font-size: var(--map-label-size, 19px);
  font-weight: 500;
  fill: #5f7b93;
}

/* Bank-edge strength is a surface decision: the desktop canvas runs at
   a larger px-per-unit, so its two shoreline strokes are dialled back
   through variables instead of forking the shared SVG payload. */
.map-art .map-water-edge {
  opacity: var(--map-bank-outer, .4);
}

.map-art .map-water-edge-inner {
  opacity: var(--map-bank-inner, .28);
}

/* A surface may want to hide the inline vehicle marker (desktop shows
   a tooltip card instead, for example). */
.map-art .map-vehicle {
  display: block;
}

/* Compass and scale bar chrome — same drawing on every surface. */
.map-chrome {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(122, 174, 255, 0.16);
  border-radius: 50%;
  background: rgba(5, 10, 16, 0.62);
  color: #38bdf8;
  font-family: var(--font);
  font-weight: 600;
  line-height: 1;
}

.map-chrome::before {
  content: "";
  position: absolute;
  top: 11%;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 6px solid rgba(56, 189, 248, 0.7);
}

.map-chrome i {
  margin-top: 26%;
  font-style: normal;
}

.map-scale-rule {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  background: rgba(5, 10, 16, 0.4);
  font-family: var(--font);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--text-value, #e8f1fb);
}

/* The distance is a value/unit pair like any other reading: the number
   stays ink, the unit takes the one unit token. */
.map-scale-rule em {
  font: 500 0.92em/1 var(--mono);
  font-style: normal;
  letter-spacing: 0.04em;
  color: var(--text-unit);
}

.map-scale-rule::before {
  content: "";
  flex: none;
  width: var(--scale-len, 26px);
  transition: width 0.2s ease;
  height: 5px;
  border-left: 1px solid rgba(232, 241, 251, 0.55);
  border-right: 1px solid rgba(232, 241, 251, 0.55);
  background: linear-gradient(rgba(232, 241, 251, 0.55), rgba(232, 241, 251, 0.55)) 0 50% / 100% 1px no-repeat;
}
