.truck-location-map-wrap {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 0.85rem;
    overflow: hidden;
    border: 1px solid #e4e6ef;
    background: #f5f8fa;
}

.truck-location-map-host {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.truck-location-map-host .mapboxgl-map,
.truck-location-map-host .mapboxgl-canvas-container,
.truck-location-map-host canvas.mapboxgl-canvas {
    width: 100% !important;
    height: 100% !important;
}

.truck-location-marker {
    position: relative;
    width: 56px;
    height: 56px;
    cursor: pointer;
}

.truck-location-marker-pulse {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    opacity: 0.45;
    animation: truck-location-pulse 2s ease-out infinite;
}

.truck-location-marker-body {
    position: absolute;
    inset: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(24, 28, 50, 0.28);
    border: 3px solid #ffffff;
}

.truck-location-marker-body svg {
    width: 30px;
    height: 30px;
}

.truck-location-marker-label {
    position: absolute;
    left: 50%;
    top: calc(100% + 4px);
    transform: translateX(-50%);
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(24, 28, 50, 0.88);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(24, 28, 50, 0.2);
}

.truck-location-marker.moving .truck-location-marker-pulse {
    background: #50cd89;
}

.truck-location-marker.moving .truck-location-marker-body {
    background: linear-gradient(135deg, #47be7d, #1b9e59);
}

.truck-location-marker.idle .truck-location-marker-pulse {
    background: #ffc700;
}

.truck-location-marker.idle .truck-location-marker-body {
    background: linear-gradient(135deg, #ffca2c, #f1a800);
}

.truck-location-marker.stopped .truck-location-marker-pulse {
    background: #a1a5b7;
    animation: none;
    opacity: 0.25;
}

.truck-location-marker.stopped .truck-location-marker-body {
    background: linear-gradient(135deg, #7e8299, #5e6278);
}

.truck-location-popup .mapboxgl-popup-content {
    padding: 0;
    border-radius: 0.85rem;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(24, 28, 50, 0.18);
}

.truck-location-popup-card {
    min-width: 280px;
    max-width: 340px;
    padding: 1rem 1rem 0.85rem;
    background: #ffffff;
}

.truck-location-popup-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.truck-location-popup-title {
    font-size: 1rem;
    font-weight: 700;
    color: #181c32;
}

.truck-location-popup-subtitle {
    font-size: 0.78rem;
    color: #7e8299;
    margin-top: 0.15rem;
}

.truck-location-popup-ignition {
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.truck-location-popup-ignition.on {
    background: #e8fff3;
    color: #50cd89;
}

.truck-location-popup-ignition.off {
    background: #f1f1f4;
    color: #7e8299;
}

.truck-location-popup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 0.85rem;
    margin-bottom: 0.75rem;
}

.truck-location-popup-grid span {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #a1a5b7;
}

.truck-location-popup-grid strong {
    display: block;
    font-size: 0.82rem;
    color: #3f4254;
    margin-top: 0.1rem;
}

.truck-location-popup-address {
    font-size: 0.8rem;
    line-height: 1.45;
    color: #5e6278;
    padding: 0.65rem 0.75rem;
    border-radius: 0.65rem;
    background: #f9f9f9;
    margin-bottom: 0.75rem;
}

.truck-location-popup-footer {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.72rem;
    color: #a1a5b7;
}

@keyframes truck-location-pulse {
    0% {
        transform: scale(0.75);
        opacity: 0.55;
    }

    70% {
        transform: scale(1.35);
        opacity: 0;
    }

    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}
