/* /tools/drayage-quote: THE PORT AND RAIL PINS on the map, their legend and their popups (drayage-pins.js). Tokens only.
   The pin colours live here and are READ AT RUNTIME (getComputedStyle) when the marker icons are built, so no colour is written in the script.
   Three kinds, told apart by SHAPE and LETTER as well as by hue: seaport = round pin "P" (teal), rail ramp / inland hub = square pin "R" (orange),
   your address = diamond pin (magenta). */
:root {
  --dq-pin-port: #0f766e;
  --dq-pin-rail: #c2410c;
  --dq-pin-addr: #a21caf;
  --dq-pin-ring: var(--surface);
  --dq-iw-ink: #1f2937;
  --dq-iw-muted: #4b5563;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --dq-pin-port: #2dd4bf; --dq-pin-rail: #fb923c; --dq-pin-addr: #e879f9; }
}
:root[data-theme="dark"] { --dq-pin-port: #2dd4bf; --dq-pin-rail: #fb923c; --dq-pin-addr: #e879f9; }

/* The legend under the map: the same three shapes and colours as the pins. */
.dq-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; 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); }
.dq-legend[hidden] { display: none; }
.dq-legend:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dq-legend li { display: inline-flex; align-items: center; gap: 8px; }
.dq-legend svg { flex: none; width: 20px; height: 20px; }
.dq-lg-port { fill: var(--dq-pin-port); }
.dq-lg-rail { fill: var(--dq-pin-rail); }
.dq-lg-addr { fill: var(--dq-pin-addr); }
.dq-lg-t { fill: var(--dq-pin-ring); font: 700 9px/1 sans-serif; text-anchor: middle; }
.dq-lg-ring { stroke: var(--dq-pin-ring); stroke-width: 1.5; }

/* 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; }
