.tex-journey {
    position: relative;
    height: 178px;
    margin-top: 38px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(194, 211, 233, 0.2);
    border-radius: 28px;
    background: linear-gradient(135deg, #16243a 0%, #101a2d 56%, #0a1425 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 18px 42px rgba(0,0,0,0.22);
    color: #f8fafc;
}

.tex-journey::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 74% 22%, rgba(239, 105, 76, 0.18), transparent 30%),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: auto, 42px 42px, 42px 42px;
    mask-image: linear-gradient(180deg, #000, transparent 85%);
}

.tex-journey__header {
    position: absolute;
    z-index: 5;
    top: 16px;
    left: 22px;
    right: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tex-journey__eyebrow,
.tex-journey__status,
.tex-journey__service {
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.25px;
    text-transform: uppercase;
}

.tex-journey__eyebrow {
    color: #c5d2e5;
}

.tex-journey__status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 10px;
    border: 1px solid rgba(116, 221, 172, 0.28);
    border-radius: 999px;
    background: rgba(34, 120, 83, 0.16);
    color: #c8f7df;
    white-space: nowrap;
}

.tex-journey__status::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #52d995;
    box-shadow: 0 0 0 4px rgba(82, 217, 149, 0.13);
    animation: tex-status-breathe 3s ease-in-out infinite;
}

.tex-journey__map-line {
    position: absolute;
    top: 78px;
    left: 53px;
    right: 53px;
    height: 2px;
    background: linear-gradient(90deg, rgba(102,191,235,0.36), rgba(226,239,252,0.45), rgba(255,172,131,0.52));
    box-shadow: 0 0 17px rgba(82, 177, 225, 0.2);
}

.tex-journey__map-line::before,
.tex-journey__map-line::after {
    content: '';
    position: absolute;
    top: -5px;
    width: 12px;
    height: 12px;
    border: 2px solid #93cfed;
    border-radius: 50%;
    background: #122038;
    box-shadow: 0 0 0 5px rgba(147,207,237,0.1);
}

.tex-journey__map-line::before { left: -4px; }
.tex-journey__map-line::after {
    right: -4px;
    border-color: #f4aa84;
    box-shadow: 0 0 0 5px rgba(244,170,132,0.1);
}

.tex-journey__stop {
    position: absolute;
    z-index: 3;
    top: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    background: #223651;
    box-shadow: 0 8px 18px rgba(0,0,0,0.22);
}

.tex-journey__stop svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #d7eaff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.tex-journey__stop--passenger { left: 19px; }
.tex-journey__stop--parcel { right: 19px; }
.tex-journey__stop--parcel svg { stroke: #ffd4bd; }

.tex-journey__road {
    position: absolute;
    inset: auto 0 29px;
    height: 45px;
    background: linear-gradient(180deg, rgba(12,20,35,0.08), #151b28 45%, #0a101d);
    border-top: 1px solid rgba(255,255,255,0.09);
}

.tex-journey__road::before {
    content: '';
    position: absolute;
    top: 21px;
    left: -100%;
    width: 300%;
    height: 2px;
    background: repeating-linear-gradient(90deg, rgba(239,244,249,0.56) 0 34px, transparent 34px 70px);
    animation: tex-lane-flow 3s linear infinite;
}

.tex-journey__vehicle {
    position: absolute;
    z-index: 4;
    left: 17%;
    bottom: 34px;
    width: 220px;
    filter: drop-shadow(0 10px 9px rgba(0,0,0,0.33));
    animation: tex-shuttle-cruise 7s ease-in-out infinite;
}

.tex-journey__vehicle svg {
    display: block;
    width: 100%;
    height: auto;
}

.tex-journey__wheel-detail {
    transform-box: fill-box;
    transform-origin: center;
    animation: tex-wheel-turn 1.7s linear infinite;
}

.tex-journey__footer {
    position: absolute;
    z-index: 5;
    inset: auto 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 29px;
    padding: 0 21px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(7, 14, 26, 0.76);
}

.tex-journey__service {
    color: #b6c9de;
    font-size: 9px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.tex-journey__service::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 8px;
    border-radius: 50%;
    background: #f19270;
    vertical-align: 2px;
}

.tex-journey__service:first-child::before { background: #8fd2f2; }

@keyframes tex-shuttle-cruise {
    0%, 100% { transform: translate3d(-7px, 1px, 0); }
    50% { transform: translate3d(45px, -2px, 0); }
}

@keyframes tex-lane-flow {
    to { transform: translateX(-70px); }
}

@keyframes tex-wheel-turn {
    to { transform: rotate(360deg); }
}

@keyframes tex-status-breathe {
    50% { box-shadow: 0 0 0 7px rgba(82, 217, 149, 0.05); }
}

@media (max-width: 575px) {
    .tex-journey {
        height: 132px;
        margin-top: 24px;
        border-radius: 20px;
    }

    .tex-journey__header { top: 10px; left: 13px; right: 13px; }
    .tex-journey__eyebrow { font-size: 9px; letter-spacing: 0.8px; }
    .tex-journey__status { padding: 4px 6px; font-size: 8px; letter-spacing: 0.6px; }
    .tex-journey__map-line { top: 61px; left: 38px; right: 38px; }
    .tex-journey__stop { top: 48px; width: 26px; height: 26px; border-radius: 8px; }
    .tex-journey__stop--passenger { left: 8px; }
    .tex-journey__stop--parcel { right: 8px; }
    .tex-journey__road { bottom: 24px; height: 32px; }
    .tex-journey__road::before { top: 17px; }
    .tex-journey__vehicle { left: 16%; bottom: 24px; width: 160px; }
    .tex-journey__footer { height: 24px; padding: 0 10px; }
    .tex-journey__service { font-size: 7px; letter-spacing: 0.45px; }
    .tex-journey__service::before { width: 4px; height: 4px; margin-right: 4px; vertical-align: 1px; }
}

@media (prefers-reduced-motion: reduce) {
    .tex-journey__vehicle,
    .tex-journey__road::before,
    .tex-journey__wheel-detail,
    .tex-journey__status::before {
        animation: none;
    }
}
