.el-live-map {
    display: grid;
    gap: .8rem;
    min-width: 0;
}

.el-live-map-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.el-live-map-heading h3 {
    margin: .18rem 0 0;
    color: var(--el-text, #10213e);
    font-size: 1rem;
    font-weight: 750;
}

.el-live-map-mode {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0 .65rem;
    border-radius: 999px;
    color: #07757b;
    background: #e1f7f6;
    font-size: .68rem;
    font-weight: 750;
    white-space: nowrap;
}

.el-live-map-tabs {
    display: flex;
    gap: .4rem;
    overflow-x: auto;
    padding: .05rem 0 .15rem;
    scrollbar-width: thin;
}

.el-live-map-tabs button {
    flex: 0 0 auto;
    min-height: 2rem;
    padding: 0 .72rem;
    border: 1px solid #dce5ee;
    border-radius: .62rem;
    color: #40516b;
    background: #fff;
    font-size: .72rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.el-live-map-tabs button:hover {
    border-color: #9ed8da;
    color: #087d83;
}

.el-live-map-tabs button.is-active {
    border-color: #00aeb5;
    color: #fff;
    background: #009da6;
    box-shadow: 0 6px 16px rgb(0 157 166 / 18%);
}

.el-live-map-canvas {
    position: relative;
    min-height: 20rem;
    overflow: hidden;
    border: 1px solid #dfe7ef;
    border-radius: .9rem;
    background:
        linear-gradient(90deg, rgb(10 58 91 / 4%) 1px, transparent 1px),
        linear-gradient(rgb(10 58 91 / 4%) 1px, transparent 1px),
        #edf3f6;
    background-size: 28px 28px;
}

.el-live-map-loading,
.el-live-map-error {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: .6rem;
    padding: 1rem;
    color: #64748b;
    text-align: center;
}

.el-live-map-loading span {
    width: 2rem;
    height: 2rem;
    border: 3px solid #cae6e7;
    border-top-color: #00aeb5;
    border-radius: 999px;
    animation: el-map-spin .8s linear infinite;
}

@keyframes el-map-spin {
    to { transform: rotate(360deg); }
}

.el-live-map-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .55rem;
}

.el-live-map-summary > div {
    display: grid;
    gap: .16rem;
    min-width: 0;
    padding: .62rem .7rem;
    border: 1px solid #e2e9f0;
    border-radius: .72rem;
    background: #f8fafc;
}

.el-live-map-summary > div.is-wide {
    grid-column: span 3;
}

.el-live-map-summary small {
    color: #75839a;
    font-size: .64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .055em;
}

.el-live-map-summary strong {
    overflow: hidden;
    color: #17253d;
    font-size: .76rem;
    font-weight: 720;
    text-overflow: ellipsis;
}

.el-live-map-empty {
    display: flex;
    align-items: center;
    gap: .8rem;
    min-height: 10rem;
    padding: 1.2rem;
    border: 1px dashed #cad7e4;
    border-radius: .9rem;
    color: #66758c;
    background: #f8fafc;
}

.el-live-map-empty svg {
    width: 2rem;
    height: 2rem;
    color: #00aeb5;
}

.el-live-map-empty strong {
    color: #17253d;
}

.el-live-map-empty p {
    margin: .25rem 0 0;
    font-size: .78rem;
}

.el-map-marker {
    display: grid;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    border: 3px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: #062d54;
    box-shadow: 0 5px 15px rgb(2 21 47 / 25%);
    font-size: .66rem;
    font-weight: 800;
}

.el-map-marker.is-start { background: #00aeb5; }
.el-map-marker.is-end { background: #062d54; }
.el-map-marker.is-position {
    width: 2.05rem;
    height: 2.05rem;
    background: #f59e0b;
    animation: el-map-pulse 1.8s ease-in-out infinite;
}

@keyframes el-map-pulse {
    50% { box-shadow: 0 0 0 9px rgb(245 158 11 / 15%), 0 5px 15px rgb(2 21 47 / 20%); }
}

.el-live-map .leaflet-container {
    width: 100%;
    height: 100%;
    min-height: 20rem;
    font-family: inherit;
    background: #edf3f6;
}

.el-live-map .leaflet-control-attribution {
    font-size: 9px;
}

.el-live-map .leaflet-popup-content {
    margin: .7rem .8rem;
    font-family: inherit;
}

.el-live-map .leaflet-popup-content strong {
    display: block;
    color: #10213e;
    margin-bottom: .15rem;
}

.el-live-map .leaflet-popup-content span {
    color: #68778d;
    font-size: .72rem;
}

@media (max-width: 767px) {
    .el-live-map-canvas,
    .el-live-map .leaflet-container {
        min-height: 17rem;
    }

    .el-live-map-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .el-live-map-summary > div.is-wide {
        grid-column: span 2;
    }

    .el-live-map-heading {
        align-items: center;
    }
}
.el-map-marker.is-stop { background: #4c6b89; }
