/* /tools/drayage-quote: THE MAP MARKERS' COLOURS, THE LEGEND AND THE POPUPS (drayage-pin-icons.js builds the markers, drayage-pins.js places them). Tokens only.
   The colours are READ AT RUNTIME (getComputedStyle) when the marker icons are built, so no colour is written in any script.
   Pick-up = blue pin "A" and delivery = red pin "B" (--qf-pin-a / --qf-pin-b in drayage-pin-tokens.css: ONE source with the sheet, the PDF and the map picture).
   Seaport = GREEN badge with a gantry crane, rail ramp / inland hub = YELLOW badge with a railway wagon on its rail, container depot = SLATE badge with a shipping
   container (slate stays apart from blue, red, green and yellow; depots are not drawn on the map today). The map tiles are Google's light roadmap in both themes,
   so the marker colours do not change with the page theme; the halo is white so a marker reads over water, parks and roads alike. */
:root {
  --dq-pin-port: #15803d;
  --dq-pin-rail: #facc15;
  --dq-pin-depot: #475569;
  --dq-pin-ink: #ffffff;
  --dq-pin-ink-dark: #1f2937;
  --dq-pin-halo: #ffffff;
  --dq-iw-ink: #1f2937;
  --dq-iw-muted: #4b5563;
}

/* The legend under the map: the very same SVGs as the markers (drayage-pin-icons.js), ONE line: compact labels, nothing wraps. */
.dq-legend { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0 0; padding: 8px 12px; list-style: none; font-size: 13px; line-height: 1.5; color: var(--ink-soft); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; scrollbar-width: none; }
.dq-legend::-webkit-scrollbar { display: none; }
.dq-legend[hidden] { display: none; }
.dq-legend:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dq-legend li { display: inline-flex; flex: none; align-items: center; gap: 4px; white-space: nowrap; }
.dq-legend svg { flex: none; width: auto; height: 22px; }
@media (max-width: 360px) {
  .dq-legend { gap: 4px; padding: 8px; font-size: 12px; }
  .dq-legend svg { height: 20px; }
}

/* The nearby list: the distance sits on the right of each row, the kind word under it (a phone keeps the distance and drops the kind word). */
.dq-hub-o .dq-hub-k.dq-hub-kd { display: grid; justify-items: end; text-align: right; }
.dq-hub-o .dq-hub-d { font-size: 12px; font-weight: 700; line-height: 1.4; color: var(--ink); white-space: nowrap; }
.dq-hub-o .dq-hub-kw { font-size: 11px; line-height: 1.4; color: var(--muted); }
.dq-hub-far { border-bottom: 1px solid var(--border); }
@media (max-width: 640px) {
  .dq-hub-o:has(.dq-hub-kd) { grid-template-columns: 20px minmax(0, 1fr) auto; }
  .dq-hub-o .dq-hub-k.dq-hub-kd { display: grid; }
  .dq-hub-o .dq-hub-kw { display: none; }
}

/* Popups: Google's bubble is white in both themes, so the text colour is fixed dark here. */
.dq-iw { box-sizing: border-box; max-width: 260px; padding: 0; margin: 0; font-size: 13px; line-height: 1.5; color: var(--dq-iw-ink); text-align: left; }
.dq-iw-i { margin: 0 0 8px; }
.dq-iw-i:last-child { margin-bottom: 0; }
.dq-iw-n { display: block; font-weight: 700; overflow-wrap: anywhere; }
.dq-iw-a, .dq-iw-k, .dq-iw-d, .dq-iw-more { display: block; font-size: 12px; line-height: 1.5; color: var(--dq-iw-muted); overflow-wrap: anywhere; }
.dq-iw-d { color: var(--dq-iw-ink); font-weight: 600; }
.dq-iw .btn { min-height: 44px; margin-top: 4px; padding: 8px 12px; font-size: 13px; }
.dq-iw--hover { pointer-events: none; }
