.shipmentMapContainer {
    --shipment-green: #1e9e2f;
    --shipment-red: #e53935;
    background: #fff;
    /* border: 1px solid #e5e7eb; */
    border-radius: 12px;
    padding: 16px;
    width: 100%;
    min-width: 0;
    font-family: inherit;
    container-type: inline-size;
    /* /////////// */
    height: 100%;
}

.shipmentMapContent {
    width: 100%;
    min-width: 0;
     /* /////////// */
    height: 100%;
}

.shipmentMapContainer .orderHeaderCss {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.shipmentMapContainer .dashboardCardHeading {
    margin: 0;
    /* font-size: 17px;
    font-weight: 700;
    color: #1f2937; */
}

.shipmentViewAll {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    font-weight: 600;
    color: var(--shipment-green);
    text-decoration: none;
}
.shipmentViewAll:hover {
    text-decoration: underline;
    color: var(--shipment-green);
}

/* ---------- Map ---------- */
.shipmentMapWrap {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    background: #e8eef3;
}

.shipmentMapCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.shipmentMapOverlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.shipmentMapRoute {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.shipmentMapRouteLine {
    fill: none;
    stroke: var(--shipment-red);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 1 6;
    animation: shipmentRouteFlow 0.9s linear infinite;
}

.shipmentMapPoint {
    position: absolute;
    width: 0;
    height: 0;
}

.shipmentMapPin {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -100%);
    line-height: 0;
    filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.3));
}
.shipmentMapPin svg {
    display: block;
    transform-origin: 50% 100%;
    animation: shipmentPinDrop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both,
        shipmentPinBounce 2.2s ease-in-out 0.8s infinite;
}
.shipmentMapPinDest svg {
    animation-delay: 0.15s, 1.1s;
}

.shipmentMapGroundDot {
    position: absolute;
    left: -6px;
    top: -6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--shipment-green);
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.shipmentMapGroundDot::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: var(--shipment-green);
    opacity: 0.5;
    animation: shipmentGroundPulse 1.8s ease-out infinite;
}

.shipmentMapVehicle {
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--shipment-green);
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    animation: shipmentVehiclePulse 1.6s ease-out infinite;
    will-change: transform;
}

/* .shipmentMapError {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    color: #6b7280;
    background: #f3f4f6;
    z-index: 10;
} */

/* ---------- Info row ---------- */
.shipmentInfoRow {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.shipmentInfoLeft {
    min-width: 0;
}

.shipmentInfoRow > * {
    min-width: 0;
}

.shipmentIdRow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.shipmentId {
    font-size: 17px;
    font-weight: 700;
    color: var(--shipment-green);
}

.shipmentStatusBadge {
   font-size: 12px;
    font-weight: 500;
    color: #004BC0;
    background: #77A2E612;
    /* border: 1px solid #d3dcec; */
    border-radius: 6px;
    padding: 3px 12px;
}
.gmnoprint{
    display: none !important;
}
.shipmentRoute {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    font-size: 16px;
    color: #3d4b63;
}
.shipmentRoute svg {
    color: #6b7280;
}

.shipmentInfoRight {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}
.shipmentEtaLabel {
    font-size: 12px;
    color: #6b7280;
}
.shipmentEtaValue {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
}

/* ---------- Stepper ---------- */
.shipmentStepper {
    display: flex;
    margin-top: 18px;
}

.shipmentStep {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* connector line to the next step */
.shipmentStep:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #d9dde2;
}
.shipmentStep.isLineDone:not(:last-child)::before {
    /* background: var(--shipment-green); */
    background:linear-gradient(to right, #5BA603, #6AB117);
}

.shipmentStepDot {
    position: relative;
    z-index: 1;
    width: 16px;
    height: 16px;
    box-sizing: border-box;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #c7ccd3;
}
.shipmentStep.isDone .shipmentStepDot,
.shipmentStep.isCurrent .shipmentStepDot {
    background: linear-gradient(to right, #5BA603, #6AB117);
    border-color: var(--shipment-green);
}
.shipmentStep.isCurrent .shipmentStepDot {
    animation: shipmentStepPulse 1.8s ease-out infinite;
}

.shipmentStepLabel {
    margin-top: 8px;
    padding: 0 2px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    overflow-wrap: anywhere;
}
.shipmentStep.isDone .shipmentStepLabel,
.shipmentStep.isCurrent .shipmentStepLabel {
    color: #519205;
}

.shipmentStepTime {
    margin-top: 2px;
    font-size: 11px;
    color: #4b5d7a;
}

/* ---------- Animations ---------- */
@keyframes shipmentRouteFlow {
    to { stroke-dashoffset: -7; }
}
@keyframes shipmentPinDrop {
    from { transform: translateY(-24px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes shipmentPinBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
@keyframes shipmentGroundPulse {
    0% { transform: scale(1); opacity: 0.55; }
    100% { transform: scale(3.2); opacity: 0; }
}
@keyframes shipmentVehiclePulse {
    0% { box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(30, 158, 47, 0.55); }
    100% { box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 0 0 14px rgba(30, 158, 47, 0); }
}
@keyframes shipmentStepPulse {
    0% { box-shadow: 0 0 0 0 rgba(30, 158, 47, 0.45); }
    100% { box-shadow: 0 0 0 9px rgba(30, 158, 47, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .shipmentMapRouteLine,
    .shipmentMapPin svg,
    .shipmentMapGroundDot::after,
    .shipmentMapVehicle,
    .shipmentStep.isCurrent .shipmentStepDot {
        animation: none;
    }
}

/* Card-driven responsiveness: keeps the component intact when the card is
   narrow (e.g. a column in the 1400px 3-card layout). */
@container (max-width: 460px) {
    .shipmentMapWrap {
        height: 170px;
    }

    .shipmentId {
        font-size: 15px;
    }

    .shipmentRoute {
        font-size: 13px;
    }

    .shipmentStepLabel {
        font-size: 11px;
    }

    .shipmentStepTime {
        font-size: 10px;
    }
}

@container (max-width: 360px) {
    .shipmentMapWrap {
        height: 270px;
    }

    .shipmentStepLabel {
        font-size: 11px;
    }

    .shipmentStepTime {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .shipmentMapWrap {
        height: 170px;
    }
}