/* ==========================================================================
   Logistics (goods pick & drop): home, booking wizard and live tracking.
   Accent comes from [data-service="logistics"] in tokens.css.
   ========================================================================== */

/* ---------------------------------------------------------------- home */
.sa-lg { padding-top: var(--sa-s-5); padding-bottom: var(--sa-s-8); }

.sa-lg-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sa-s-5);
    align-items: center;
    overflow: hidden;
    padding: var(--sa-s-6);
    border-radius: var(--sa-r-xl);
    background: radial-gradient(120% 140% at 100% 0%, var(--sa-accent-bright), var(--sa-accent) 45%, #172554);
    color: #fff;
    box-shadow: var(--sa-shadow-2);
}
@media (min-width: 768px) {
    .sa-lg-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); padding: var(--sa-s-8); }
}
.sa-lg-hero__title { font-size: var(--sa-fs-3xl); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; }
.sa-lg-hero__sub { margin: 10px 0 var(--sa-s-5); color: rgba(255, 255, 255, .78); font-weight: 600; }
.sa-lg-hero__media { aspect-ratio: 13 / 9; border-radius: var(--sa-r-lg); box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .55); }
.sa-lg-hero__media.sa-lg-fallback { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .85); }
.sa-lg-hero__media .sa-icon { width: 96px; height: 96px; }
@media (max-width: 767px) { .sa-lg-hero__media { max-height: 180px; width: 100%; } }

/* Vehicle pictures sit over a truck icon, which shows when a picture is missing or fails to load. */
.sa-lg-fallback { display: grid; place-items: center; color: var(--sa-muted); }
.sa-lg-fallback > img { position: absolute; inset: 0; }

.sa-lg-goods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sa-s-3);
}
@media (min-width: 640px) { .sa-lg-goods { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sa-lg-goods { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.sa-lg-goods__item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--sa-line);
    border-radius: var(--sa-r-lg);
    background: var(--sa-surface);
    font-weight: 700;
    font-size: var(--sa-fs-sm);
    text-align: center;
    transition: border-color var(--sa-fast), transform var(--sa-fast) var(--sa-ease), box-shadow var(--sa-fast);
}
.sa-lg-goods__item:hover { border-color: var(--sa-accent); transform: translateY(-2px); box-shadow: var(--sa-shadow-2); }
.sa-lg-goods__media { aspect-ratio: 4 / 3; border-radius: var(--sa-r-md); }

.sa-lg-fleet { display: grid; gap: var(--sa-s-3); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .sa-lg-fleet { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sa-lg-fleet { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sa-lg-vehicle { display: flex; align-items: center; gap: var(--sa-s-3); padding: var(--sa-s-3); }
.sa-lg-vehicle__media { flex: none; width: 96px; aspect-ratio: 3 / 2; border-radius: var(--sa-r-md); }
.sa-lg-vehicle__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.sa-lg-vehicle__name { font-weight: 800; }
.sa-lg-vehicle__meta { color: var(--sa-muted); font-size: var(--sa-fs-xs); }
.sa-lg-vehicle__price { display: flex; flex-direction: column; align-items: flex-end; font-weight: 800; color: var(--sa-accent-ink); white-space: nowrap; }
.sa-lg-vehicle__price small { font-size: 11px; font-weight: 600; color: var(--sa-muted); }

.sa-lg-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sa-s-3); margin-bottom: var(--sa-s-4); }
.sa-lg-head__title { font-size: var(--sa-fs-xl); font-weight: 800; }
.sa-lg-head__link { display: inline-flex; align-items: center; gap: 2px; font-size: var(--sa-fs-sm); font-weight: 700; color: var(--sa-accent-ink); }

.sa-lg-booking { display: flex; align-items: center; gap: var(--sa-s-3); padding: var(--sa-s-3); margin-bottom: var(--sa-s-3); transition: border-color var(--sa-fast); }
.sa-lg-booking:hover { border-color: var(--sa-accent); }
.sa-lg-booking__media { flex: none; width: 72px; aspect-ratio: 9 / 7; border-radius: var(--sa-r-md); }
.sa-lg-booking__body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; font-size: var(--sa-fs-sm); }
.sa-lg-booking__no { color: var(--sa-muted); font-weight: 600; }
.sa-lg-booking__route { display: flex; align-items: center; gap: 4px; color: var(--sa-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sa-lg-booking__date { color: var(--sa-muted); font-size: var(--sa-fs-xs); }
.sa-lg-muted { color: var(--sa-muted); font-size: var(--sa-fs-sm); }

/* ---------------------------------------------------------------- wizard */
.sa-lgw-wrap { padding-top: var(--sa-s-4); padding-bottom: var(--sa-s-8); }
.sa-lgw { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sa-s-6); align-items: start; }
@media (min-width: 1024px) { .sa-lgw { grid-template-columns: minmax(0, 1fr) 340px; } }
.sa-lgw__main { display: flex; flex-direction: column; gap: var(--sa-s-4); min-width: 0; }
.sa-lgw__aside { display: none; }
@media (min-width: 1024px) { .sa-lgw__aside { display: block; position: sticky; top: calc(var(--sa-header-h) + 16px); } }

.sa-lgw__head { display: flex; align-items: center; gap: var(--sa-s-3); }
.sa-lgw__heading { flex: 1; min-width: 0; }
.sa-lgw__title { font-size: var(--sa-fs-xl); font-weight: 800; letter-spacing: -.02em; }
.sa-lgw__title:focus { outline: none; }
.sa-lgw__count { margin-top: 2px; color: var(--sa-muted); font-size: var(--sa-fs-xs); font-weight: 600; }
.sa-lgw__progress { height: 4px; border-radius: var(--sa-r-pill); background: var(--sa-line-2); overflow: hidden; }
.sa-lgw__progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--sa-accent); transition: width var(--sa-med) var(--sa-ease); }

.sa-lgw__step { display: flex; flex-direction: column; gap: var(--sa-s-4); min-width: 0; margin: 0; padding: 0; border: 0; }
.sa-lgw__step[hidden] { display: none; }
.sa-lgw__error { min-height: 0; font-size: var(--sa-fs-sm); font-weight: 600; color: var(--sa-danger); }
.sa-lgw__error:empty { display: none; }
.sa-lgw-sub { margin-bottom: var(--sa-s-3); font-size: var(--sa-fs-md); font-weight: 800; }
.sa-lgw dd, .sa-lgt dd { margin: 0; }
.sa-lgt-legs, .sa-lgt-steps, .sa-lgt-photos, .sa-lgw-photos__list, .sa-lg-fleet { list-style: none; margin: 0; padding-left: 0; }

.sa-lgw__foot {
    position: sticky;
    bottom: calc(var(--sa-mobilenav-h) + 8px);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: var(--sa-s-4);
    padding: var(--sa-s-3);
    border: 1px solid var(--sa-line);
    border-radius: var(--sa-r-lg);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(8px);
    box-shadow: var(--sa-shadow-2);
}
@media (min-width: 768px) { .sa-lgw__foot { bottom: 16px; } }
.sa-lgw__foot .sa-btn { flex: 1; }
.sa-lgw__total { display: flex; flex-direction: column; line-height: 1.15; }
.sa-lgw__total small { color: var(--sa-muted); font-size: var(--sa-fs-xs); font-weight: 600; }
.sa-lgw__total strong { font-size: var(--sa-fs-xl); font-weight: 800; color: var(--sa-accent-ink); }
.sa-lgw__total[hidden] { display: none; }
.sa-btn.is-busy { opacity: .7; pointer-events: none; }

/* 1. goods */
.sa-lgw-goods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sa-s-3); }
@media (min-width: 640px) { .sa-lgw-goods { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sa-lgw-goods__item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    border: 1.5px solid var(--sa-line);
    border-radius: var(--sa-r-lg);
    background: var(--sa-surface);
    cursor: pointer;
    transition: border-color var(--sa-fast), box-shadow var(--sa-fast);
}
.sa-lgw-goods__item:hover { border-color: #c9ccd3; }
.sa-lgw-goods__item input { position: absolute; opacity: 0; pointer-events: none; }
.sa-lgw-goods__item:has(input:checked) { border-color: var(--sa-accent); box-shadow: 0 0 0 3px var(--sa-accent-soft); background: var(--sa-accent-soft); }
.sa-lgw-goods__item:has(input:focus-visible) { outline: 2px solid var(--sa-accent); outline-offset: 2px; }
.sa-lgw-goods__media { aspect-ratio: 4 / 3; border-radius: var(--sa-r-md); }
.sa-lgw-goods__name { font-weight: 700; font-size: var(--sa-fs-sm); text-align: center; }

/* 2. route */
.sa-lgw-route { display: grid; gap: var(--sa-s-4); grid-template-columns: minmax(0, 1fr); }
.sa-lgw-route__map {
    position: relative;
    display: grid;
    place-items: center;
    height: clamp(220px, 34vw, 300px);
    overflow: hidden;
    border: 1px solid var(--sa-line);
    border-radius: var(--sa-r-lg);
    background: linear-gradient(135deg, var(--sa-accent-soft), var(--sa-line-2));
}
.sa-lgw-route__mapnote { max-width: 260px; padding: var(--sa-s-4); color: var(--sa-muted); font-size: var(--sa-fs-sm); text-align: center; }
.sa-lgw-route__card { display: flex; flex-direction: column; gap: var(--sa-s-4); padding: var(--sa-s-4); }
.sa-lgw-point { display: flex; align-items: flex-start; gap: var(--sa-s-3); }
.sa-lgw-point__pin { display: grid; place-items: center; flex: none; width: 36px; height: 36px; margin-top: 26px; border-radius: 50%; background: var(--sa-accent-soft); color: var(--sa-accent); }
.sa-lgw-point--drop .sa-lgw-point__pin { background: var(--sa-food-soft); color: var(--sa-food); }
.sa-lgw-point__field { flex: 1; min-width: 0; }
.sa-lgw-point .sa-iconbtn { margin-top: 26px; flex: none; }
.sa-lgw-saved { border-top: 1px solid var(--sa-line-2); padding-top: var(--sa-s-3); }
.sa-lgw-saved__title { margin-bottom: 8px; font-size: var(--sa-fs-xs); font-weight: 700; color: var(--sa-muted); text-transform: uppercase; letter-spacing: .04em; }
.sa-lgw-saved .sa-chips { flex-wrap: wrap; }
.sa-lgw-saved .sa-field__hint { margin-top: 6px; }
.sa-lgw-distance { display: flex; align-items: center; gap: 10px; padding: var(--sa-s-3) var(--sa-s-4); font-size: var(--sa-fs-sm); font-weight: 600; }
.sa-lgw-distance[hidden] { display: none; }
.sa-lgw-distance strong { margin-left: auto; font-size: var(--sa-fs-lg); font-weight: 800; }
/* Google Places suggestions sit above the sticky header and footer. */
.pac-container { z-index: 1100; border-radius: var(--sa-r-md); font-family: var(--sa-font); box-shadow: var(--sa-shadow-2); }

/* 3. details */
.sa-lgw-photos { display: flex; gap: var(--sa-s-3); flex-wrap: wrap; }
.sa-lgw-photos__add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-height: 120px;
    border: 1.5px dashed #c9ccd3;
    border-radius: var(--sa-r-lg);
    background: var(--sa-line-2);
    color: var(--sa-muted);
    font-size: var(--sa-fs-sm);
    font-weight: 700;
    cursor: pointer;
    transition: border-color var(--sa-fast), color var(--sa-fast);
}
.sa-lgw-photos__add:hover, .sa-lgw-photos__add:focus-within { border-color: var(--sa-accent); color: var(--sa-accent-ink); }
.sa-lgw-photos__add small { font-weight: 500; font-size: var(--sa-fs-xs); }
.sa-lgw-photos__list { display: flex; gap: 8px; flex-wrap: wrap; }
.sa-lgw-photos__list:empty { display: none; }
.sa-lgw-photos__list li { position: relative; width: 72px; height: 72px; border-radius: var(--sa-r-md); overflow: hidden; background: var(--sa-line-2); }
.sa-lgw-photos__list img { width: 100%; height: 100%; object-fit: cover; }
.sa-lgw-photos__list li.is-busy::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .6); }
.sa-lgw-photos__list button { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(15, 17, 22, .72); color: #fff; cursor: pointer; }
.sa-lgw-photos__list button .sa-icon { width: 14px; height: 14px; }

.sa-lgw-weight { display: flex; gap: 8px; }
.sa-lgw-weight .sa-input { flex: 1; min-width: 0; }
.sa-lgw-unit { display: inline-flex; padding: 3px; border-radius: var(--sa-r-md); background: var(--sa-line-2); }
.sa-lgw-unit label { cursor: pointer; }
.sa-lgw-unit input { position: absolute; opacity: 0; pointer-events: none; }
.sa-lgw-unit span { display: grid; place-items: center; min-width: 56px; height: 100%; min-height: 40px; padding: 0 12px; border-radius: 9px; font-weight: 700; font-size: var(--sa-fs-sm); color: var(--sa-muted); }
.sa-lgw-unit input:checked + span { background: var(--sa-accent); color: var(--sa-on-accent); }
.sa-lgw-unit input:focus-visible + span { outline: 2px solid var(--sa-accent); outline-offset: 2px; }

.sa-lgw-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sa-s-3); min-height: 48px; padding: 4px 0; border-bottom: 1px solid var(--sa-line-2); }
.sa-lgw-row__label { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: var(--sa-fs-sm); }
.sa-lgw-row__label .sa-icon { color: var(--sa-muted); }
.sa-lgw-toggle { position: relative; cursor: pointer; }
.sa-lgw-toggle input { position: absolute; right: 0; width: 46px; height: 28px; margin: 0; opacity: 0; cursor: pointer; }
.sa-lgw-toggle__track { position: relative; flex: none; width: 46px; height: 28px; border-radius: var(--sa-r-pill); background: #d5d8de; transition: background var(--sa-fast); pointer-events: none; }
.sa-lgw-toggle__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--sa-shadow-1); transition: transform var(--sa-fast) var(--sa-ease); }
.sa-lgw-toggle input:checked + .sa-lgw-toggle__track { background: var(--sa-accent); }
.sa-lgw-toggle input:checked + .sa-lgw-toggle__track::after { transform: translateX(18px); }
.sa-lgw-toggle input:focus-visible + .sa-lgw-toggle__track { outline: 2px solid var(--sa-accent); outline-offset: 2px; }

/* 4. vehicles */
.sa-lgw-trip { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--sa-muted); font-size: var(--sa-fs-sm); font-weight: 600; }
.sa-lgw-trip:empty { display: none; }
.sa-lgw-trip span { display: inline-flex; align-items: center; gap: 6px; }
.sa-lgw-vehicles { display: flex; flex-direction: column; gap: var(--sa-s-3); }
.sa-lgw-vehicle { position: relative; display: block; cursor: pointer; }
.sa-lgw-vehicle input { position: absolute; opacity: 0; pointer-events: none; }
.sa-lgw-vehicle__card {
    display: flex;
    align-items: center;
    gap: var(--sa-s-3);
    padding: var(--sa-s-3);
    border: 1.5px solid var(--sa-line);
    border-radius: var(--sa-r-lg);
    background: var(--sa-surface);
    transition: border-color var(--sa-fast), box-shadow var(--sa-fast);
}
.sa-lgw-vehicle:hover .sa-lgw-vehicle__card { border-color: #c9ccd3; }
.sa-lgw-vehicle input:checked + .sa-lgw-vehicle__card { border-color: var(--sa-accent); box-shadow: 0 0 0 3px var(--sa-accent-soft); }
.sa-lgw-vehicle input:focus-visible + .sa-lgw-vehicle__card { outline: 2px solid var(--sa-accent); outline-offset: 2px; }
.sa-lgw-vehicle.is-off { cursor: not-allowed; }
.sa-lgw-vehicle.is-off .sa-lgw-vehicle__card { opacity: .55; background: var(--sa-line-2); }
.sa-lgw-vehicle__media { flex: none; width: 96px; aspect-ratio: 3 / 2; border-radius: var(--sa-r-md); }
.sa-lgw-vehicle__body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.sa-lgw-vehicle__name { font-weight: 800; }
.sa-lgw-vehicle__meta { color: var(--sa-muted); font-size: var(--sa-fs-xs); }
.sa-lgw-vehicle__price { font-size: var(--sa-fs-lg); font-weight: 800; color: var(--sa-accent-ink); white-space: nowrap; }
.sa-lgw-vehicle__check { position: absolute; top: -6px; right: -6px; display: none; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sa-accent); color: var(--sa-on-accent); }
.sa-lgw-vehicle__check .sa-icon { width: 14px; height: 14px; }
.sa-lgw-vehicle input:checked ~ .sa-lgw-vehicle__check { display: grid; }
.sa-lgw-vehicle__details { margin-top: 8px; padding: var(--sa-s-3) var(--sa-s-4); border-radius: var(--sa-r-md); background: var(--sa-line-2); }
.sa-lgw-toggle-details { align-self: center; display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; font: inherit; font-size: var(--sa-fs-sm); font-weight: 700; color: var(--sa-accent-ink); cursor: pointer; }
.sa-lgw-toggle-details[aria-expanded="true"] .sa-icon { transform: rotate(180deg); }

/* 5. price */
.sa-lgw-leg { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--sa-s-3); padding: var(--sa-s-4); text-align: center; }
.sa-lgw-leg__point { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; font-weight: 700; font-size: var(--sa-fs-sm); }
.sa-lgw-leg__point span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-lgw-leg__point .sa-icon { color: var(--sa-accent); }
.sa-lgw-leg__point--drop .sa-icon { color: var(--sa-food); }
.sa-lgw-leg__arrow { color: var(--sa-muted); }
.sa-lgw-leg__meta { grid-column: 1 / -1; color: var(--sa-ink-2); font-size: var(--sa-fs-sm); font-weight: 700; }

.sa-lgw-fare { display: flex; flex-direction: column; gap: 10px; font-size: var(--sa-fs-sm); }
.sa-lgw-fare > div { display: flex; justify-content: space-between; gap: var(--sa-s-3); }
.sa-lgw-fare dt small { display: block; color: var(--sa-muted); font-size: var(--sa-fs-xs); }
.sa-lgw-fare dd { font-weight: 700; white-space: nowrap; }
.sa-lgw-fare .is-total { margin-top: 4px; padding: var(--sa-s-3) var(--sa-s-4); border-radius: var(--sa-r-md); background: var(--sa-accent-soft); font-size: var(--sa-fs-md); font-weight: 800; }
.sa-lgw-fare .is-total dd { font-size: var(--sa-fs-xl); color: var(--sa-accent-ink); }

/* 6. confirm */
.sa-lgw-review { display: flex; flex-direction: column; gap: var(--sa-s-4); }
.sa-lgw-review__vehicle { display: flex; align-items: center; gap: var(--sa-s-3); }
.sa-lgw-review__vehicle .sa-media { flex: none; width: 110px; aspect-ratio: 3 / 2; border-radius: var(--sa-r-md); }
.sa-lgw-review__vehicle strong { display: block; font-size: var(--sa-fs-lg); font-weight: 800; }
.sa-lgw-review__vehicle span { color: var(--sa-muted); font-size: var(--sa-fs-sm); }
.sa-lgw-review__meta { color: var(--sa-ink-2); font-size: var(--sa-fs-sm); font-weight: 700; }
.sa-lgw-pay { display: flex; flex-direction: column; gap: var(--sa-s-2); }
.sa-lgw-pay__item { display: flex; align-items: center; gap: var(--sa-s-3); padding: var(--sa-s-3) var(--sa-s-4); cursor: pointer; transition: border-color var(--sa-fast); }
.sa-lgw-pay__item:has(input:checked) { border-color: var(--sa-accent); box-shadow: 0 0 0 3px var(--sa-accent-soft); }
.sa-lgw-pay__item.is-off { opacity: .55; cursor: not-allowed; }
.sa-lgw-pay__item input { width: 20px; height: 20px; margin: 0; accent-color: var(--sa-accent); }
.sa-lgw-pay__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--sa-r-md); background: var(--sa-accent-soft); color: var(--sa-accent); }
.sa-lgw-pay__text { display: flex; flex-direction: column; font-size: var(--sa-fs-sm); }
.sa-lgw-pay__text small { color: var(--sa-muted); }

/* Running summary + legs (shared by wizard aside, review and tracking) */
.sa-lgw-summary { display: flex; flex-direction: column; gap: 12px; font-size: var(--sa-fs-sm); }
.sa-lgw-summary > div { display: flex; flex-direction: column; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--sa-line-2); }
.sa-lgw-summary > div:last-child { border-bottom: 0; padding-bottom: 0; }
.sa-lgw-summary dt { color: var(--sa-muted); font-size: var(--sa-fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.sa-lgw-summary dd { font-weight: 600; overflow-wrap: anywhere; }
.sa-lgw-summary .is-total dd { font-size: var(--sa-fs-xl); font-weight: 800; color: var(--sa-accent-ink); }

.sa-lgt-legs { position: relative; display: flex; flex-direction: column; gap: var(--sa-s-4); margin: var(--sa-s-4) 0; padding-left: 26px; font-size: var(--sa-fs-sm); font-weight: 600; }
.sa-lgt-legs::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; border-left: 2px dashed var(--sa-line); }
.sa-lgt-legs__item { position: relative; overflow-wrap: anywhere; }
.sa-lgt-legs__item::before { content: ""; position: absolute; left: -26px; top: 4px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--sa-accent); background: #fff; }
.sa-lgt-legs__item--drop::before { border-color: var(--sa-food); border-radius: 4px; }
.sa-lgt-legs__item small { display: block; color: var(--sa-muted); font-size: var(--sa-fs-xs); font-weight: 700; }

/* ---------------------------------------------------------------- tracking */
.sa-lgt { display: flex; flex-direction: column; gap: var(--sa-s-4); padding-top: var(--sa-s-4); padding-bottom: var(--sa-s-8); }
.sa-lgt__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sa-s-4); align-items: start; }
@media (min-width: 1024px) { .sa-lgt__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: var(--sa-s-6); } }
.sa-lgt__main, .sa-lgt__side { display: flex; flex-direction: column; gap: var(--sa-s-4); min-width: 0; }

.sa-lgt-driver { display: flex; align-items: center; gap: var(--sa-s-3); padding: var(--sa-s-4); }
.sa-lgt-driver[hidden] { display: none; }
.sa-lgt-driver__photo { position: relative; display: grid; place-items: center; flex: none; width: 60px; height: 60px; border-radius: 50%; color: var(--sa-muted); }
.sa-lgt-driver__photo img { position: absolute; inset: 0; z-index: 1; }
.sa-lgt-driver__body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; font-size: var(--sa-fs-sm); }
.sa-lgt-driver__body strong { font-size: var(--sa-fs-md); font-weight: 800; }
.sa-lgt-driver__rating { display: inline-flex; align-items: center; gap: 4px; color: var(--sa-muted); }
.sa-lgt-driver__rating .sa-icon { color: #f5a524; }
.sa-lgt-driver__rating[hidden] { display: none; }
.sa-lgt-driver__vehicle { font-weight: 700; }
.sa-lgt-driver__actions { display: flex; gap: 8px; }
.sa-lgt-driver__btn { background: var(--sa-accent-soft); color: var(--sa-accent); }
.sa-lgt-driver__btn[hidden] { display: none; }

.sa-lgt-search { display: flex; align-items: center; gap: var(--sa-s-4); padding: var(--sa-s-4); font-size: var(--sa-fs-sm); }
.sa-lgt-search[hidden] { display: none; }
.sa-lgt-search strong { display: block; font-size: var(--sa-fs-md); font-weight: 800; }
.sa-lgt-search p { margin-top: 2px; color: var(--sa-muted); }
.sa-lgt-search__pulse { position: relative; display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--sa-accent); color: var(--sa-on-accent); }
.sa-lgt-search__pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--sa-accent); animation: sa-lgt-pulse 1.6s var(--sa-ease) infinite; }
@keyframes sa-lgt-pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sa-lgt-search__pulse::after { animation: none; } }

.sa-lgt-mapcard { position: relative; overflow: hidden; }
.sa-lgt-map { min-height: 280px; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--sa-accent-soft), var(--sa-line-2)); }
@media (min-width: 1024px) { .sa-lgt-map { min-height: 360px; } }
.sa-lgt-eta { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; padding: 8px 16px; border-radius: var(--sa-r-md); background: var(--sa-surface); box-shadow: var(--sa-shadow-2); font-size: var(--sa-fs-xs); font-weight: 700; white-space: nowrap; }
.sa-lgt-eta[hidden] { display: none; }
.sa-lgt-eta strong { font-size: var(--sa-fs-lg); font-weight: 800; }

.sa-lgt-steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); counter-reset: none; }
.sa-lgt-steps__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: var(--sa-fs-xs); font-weight: 700; color: var(--sa-muted); }
.sa-lgt-steps__item::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 3px; background: var(--sa-line); z-index: 0; }
.sa-lgt-steps__item:first-child::before { display: none; }
.sa-lgt-steps__item.is-done::before, .sa-lgt-steps__item.is-current::before { background: var(--sa-accent); }
.sa-lgt-steps__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--sa-line); background: var(--sa-surface); color: transparent; }
.sa-lgt-steps__dot .sa-icon { width: 14px; height: 14px; }
.sa-lgt-steps__item.is-done .sa-lgt-steps__dot { border-color: var(--sa-accent); background: var(--sa-accent); color: var(--sa-on-accent); }
.sa-lgt-steps__item.is-current .sa-lgt-steps__dot { border-color: var(--sa-accent); box-shadow: 0 0 0 4px var(--sa-accent-soft); }
.sa-lgt-steps__item.is-done, .sa-lgt-steps__item.is-current { color: var(--sa-ink); }
.sa-lgt-steps__time { color: var(--sa-muted); font-weight: 600; }
.sa-lgt-steps__time:empty { display: none; }

.sa-lgt-done { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: var(--sa-s-7) var(--sa-s-5); text-align: center; }
.sa-lgt-done__check { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 8px; border-radius: 50%; background: var(--sa-success); color: #fff; box-shadow: 0 0 0 10px var(--sa-success-soft); animation: sa-pop var(--sa-med) var(--sa-ease); }
.sa-lgt-done__check .sa-icon { width: 44px; height: 44px; }
.sa-lgt-done__title { font-size: var(--sa-fs-2xl); font-weight: 800; }
.sa-lgt-done__text { color: var(--sa-ink-2); }
.sa-lgt-done__when { color: var(--sa-muted); font-size: var(--sa-fs-sm); font-weight: 600; }
.sa-lgt-done__actions { display: flex; flex-direction: column; gap: var(--sa-s-2); width: 100%; max-width: 360px; margin-top: var(--sa-s-4); }
.sa-lgt-cancel { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sa-s-3); }

.sa-lgt-vehicle { display: flex; align-items: center; gap: var(--sa-s-3); }
.sa-lgt-vehicle__media { flex: none; width: 96px; aspect-ratio: 3 / 2; border-radius: var(--sa-r-md); }
.sa-lgt-vehicle strong { display: block; font-weight: 800; }
.sa-lgt-vehicle span { color: var(--sa-muted); font-size: var(--sa-fs-sm); }
.sa-lgt-goods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; padding-top: var(--sa-s-4); border-top: 1px solid var(--sa-line-2); font-size: var(--sa-fs-sm); }
.sa-lgt-goods dt { color: var(--sa-muted); font-size: var(--sa-fs-xs); font-weight: 600; }
.sa-lgt-goods dd { font-weight: 700; }
.sa-lgt-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sa-s-4); }
.sa-lgt-photos li { width: 64px; height: 64px; border-radius: var(--sa-r-md); }
.sa-lgt-paid { margin-top: var(--sa-s-3); color: var(--sa-muted); font-size: var(--sa-fs-sm); font-weight: 600; }
.sa-lgt-paid .is-paid { color: var(--sa-success); }
.sa-lgt-help { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: var(--sa-s-3); color: var(--sa-muted); font-size: var(--sa-fs-xs); }
.sa-lgt-help a { font-weight: 700; color: var(--sa-accent-ink); }
