
.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 0 auto;
}

.timeline-step {
    text-align: center;
    flex: 1;
    position: relative;
}
#map {
    width: 100%;
    height: 400px;
}

.timeline-step::before {
    content: "";
    position: absolute;
    top: 11px;
    left: 0;
    height: 3px;
    width: 100%;
    background-color: #ccc;
    z-index: 1;
}

.timeline-step:first-child.active::before {
    background-color: #f79361;
    border-left: 3px solid #fff;
}

.timeline-step.completed::before {
    background-color: #f79361;
    border-left: 3px solid #fff;
}
.timeline-step.returned::before {
    background-color: #ff0a54;
    border-left: 3px solid #fff;
}
.timeline-step.delivered::before {
    background-color: #368a2d !important;
    border-left: 3px solid #fff;
}

.timeline-step .circle {
    width: 25px;
    height: 25px;
    background-color: #fff;
    border: 8px solid #ccc;
    box-shadow: 0 0 0px 5px #fff;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.timeline-step.active .circle {
    background-color: #fff;
    border: 8px solid #f79361;
    box-shadow: 0 0 0px 5px #fff;
}


.timeline-step.returned .circle {
    width: 25px;
    height: 25px;
    background-color: white;
    border: 3px solid #ff0a54;
    box-shadow: 0 0 0px 5px #fff;
    border-radius: 50%;
    position: relative;
}

.timeline-step.returned .circle::after {
    content: 'x';
    color: #ff0a54;
    font-size: 12px;
    font-weight: bold;
    position: absolute;
    top: 56%;
    left: 49%;
    transform: translate(-50%, -55%);
}
.timeline-step.delivered .circle {
    width: 25px;
    height: 25px;
    background-color: white;
    border: 3px solid green;
    box-shadow: 0 0 0px 5px #fff;
    border-radius: 50%;
    position: relative;
}

.timeline-step.delivered .circle::after {
    content: '✓';
    color: green;
    font-size: 11px;
    font-weight: bold;
    position: absolute;
    top: 56%;
    left: 46%;
    transform: translate(-50%, -55%);
}

.timeline-step .label {
    margin-top: 10px;
    font-size: 14px;
    color: #888;
}

.timeline-step.active .label {
    color: #f79361;
    font-weight: 400;
}
.timeline-step.returned .label {
    color: #ff0a54;
    font-weight: 400;
}

.timeline-step.delivered .label {
    color: #368a2d;
    font-weight: 400;
}
.animation-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.truck {
    position: absolute;
    top: 80%;
    transform: translateY(-50%);
    width: 200px;
    height: auto;
    animation: moveTruck 10s linear infinite;
}

@keyframes moveTruck {
    0% {
        left: -120px;
    }
    100% {
        left: 100%;
    }
}

.tracking-card {
    display: flex;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.42);
    border-radius: 12px;
    padding: 10px 0px;
    margin-top: 0px;
    color: white;
    justify-content: space-between;
    gap: 10px;
    width:100%;
}
.tracking-section {
    flex: 1;
    min-width: 150px;
    background:#fff;
    border:none;
}
.tracking-section h4 {
    color: #f26822;
    margin-bottom: 15px;
    font-weight: 400;
    font-size:18px;
}
.tracking-section ul {
    list-style: none;
    padding-left: 0;
}
.tracking-section li {
    margin-bottom: 10px;
    font-size: 16px;
}
.gonderidurum{
    line-height: 1.5;
    align-items: center;
    background-color: #f1f1f1;
    border-radius: 4px;
    padding: 16px;
}
.gonderbutton{
    padding:10px 20px;
    background:#fff;
    color:#f26822;
    border:2px solid #f26822;
    border-radius:5px;
    width:100%
}
.gonderbutton:hover{
    background:#f26822;
    color:#fff;
}

@media (max-width: 768px) {
    .tracking-card {
        flex-direction: column;
    }
}