/* Port Drayage Quote: the Steamship Line logo slot and the default North America map. Tokens only; linked after drayage-polish2.css. */

/* ── Steamship Line: a fixed 56px logo slot so the carrier names line up in a column ── */
:root { --dq-ssl-chip: rgb(255 255 255); }
.dq-ssl-slot { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 28px; flex: none; border-radius: 6px; color: var(--ink-soft); }
.dq-ssl-slot.has-logo { background: var(--dq-ssl-chip); border: 1px solid var(--border); }
.dq-ssl-logo { display: block; height: 22px; width: auto; max-width: 48px; object-fit: contain; }
.dq-ssl-badge { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 56px; height: 28px; padding: 0 4px; border-radius: 6px; background: var(--surface-3); border: 1px solid var(--border); color: var(--ink-soft); font-size: 11px; font-weight: 700; line-height: 1.4; letter-spacing: 0.02em; overflow: hidden; }
.dq-ssl-none { display: block; width: 20px; height: 20px; color: var(--muted); }
/* The neutral icon sits flush at the slot's left edge (the same x as the label and a logo chip), not centred in the 56px: open rows and the closed field alike. */
.dq-ssl-slot[data-lead="none"] { justify-content: flex-start; }
.dq-hub-o.dq-o-sel.dq-o-lead { grid-template-columns: 56px minmax(0, 1fr) 16px; }
.dq-hub-o.dq-o-sel.dq-o-lead .dq-hub-n { grid-column: 2; }
.dq-hub-o.dq-o-sel.dq-o-lead .dq-ck { grid-column: 3; }
/* Closed field: the same slot sits on the value line, left of the carrier's name. */
.dq-selfield.dq-has-lead > input { padding-left: calc(32px + 56px + 12px); }
.dq-ssl-cur { position: absolute; left: 32px; bottom: 4px; z-index: 1; display: flex; align-items: center; height: 24px; pointer-events: none; }
.dq-ssl-cur .dq-ssl-slot, .dq-ssl-cur .dq-ssl-badge { height: 24px; box-sizing: border-box; }
/* No leading icon (the Steamship Line field): the title, the logo and the value start at the field's own left edge like every other field. */
.dq-selfield.dq-has-lead:not(.hh-field--icon) > input { padding-left: calc(var(--dq-ssl-x, 0px) + 56px + 12px); }
.dq-selfield:not(.hh-field--icon) .dq-ssl-cur { left: var(--dq-ssl-x, 0px); }
.dq-selfield:not(.hh-field--icon) { --dq-ssl-x: 14px; }
.dq-selfield:not(.hh-field--icon) > .hh-lab { margin-left: var(--dq-ssl-x, 14px); }
@media (max-width: 640px) { .dq-hub-o.dq-o-sel.dq-o-lead { grid-template-columns: 56px minmax(0, 1fr) 16px; } }

/* ── The route map shows North America from the first paint ── */
.dq-mapna { position: absolute; inset: 0; transition: opacity 0.25s ease; }
.dq-na-svg { display: block; width: 100%; height: 100%; }
.dq-na-land { fill: var(--surface); stroke: var(--border); stroke-width: 1.2; stroke-linejoin: round; }
.dq-na-border { fill: none; stroke: var(--muted); stroke-width: 0.8; stroke-dasharray: 3 3; opacity: 0.7; }
.dq-na-grid { fill: none; stroke: var(--border); stroke-width: 0.6; opacity: 0.6; }
/* The live map or a loaded image covers it; a failed one leaves it showing. */
.dq-map.na-off .dq-mapna { opacity: 0; visibility: hidden; }
.dq-mapcanvas { z-index: 1; }
/* The prompt is a quiet caption over the bottom of the map instead of text in the middle of an empty box. */
.dq-mapph { z-index: 2; inset: auto 8px 8px; display: block; padding: 8px 12px; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
/* A phone shows the whole continent in a short frame instead of a 120px strip. */
@media (max-width: 1023px) { .dq-map:not(.has-route) .dq-mapframe { height: 220px; } }
@media (max-width: 640px) { .dq-mapph { inset: auto 8px 8px; padding: 4px 8px; font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .dq-mapna { transition: none; } }
