.map-widget {
    position: relative;
    width: 100%;
    height: 500px;
    border: 1px solid #d7ddea;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f2f7;
}

.map-widget-inner {
    width: 100%;
    height: 100%;
}

.map-fullscreen-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1001;
    background: #fff;
    border: 1px solid #bfc8db;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s;
}
.map-fullscreen-btn:hover {
    background: #e6eaf3;
}

.map-widget.is-fullscreen {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none;
    max-height: none;
    border-radius: 0 !important;
    border: none !important;
    z-index: 9999;
    background: #f0f2f7;
}
.map-widget.is-fullscreen .map-widget-inner {
    width: 100vw !important;
    height: 100vh !important;
}
.map-widget.is-fullscreen .map-fullscreen-btn {
    top: 18px;
    right: 18px;
}

.map-widget {
    position: relative;
    width: 100%;
    height: 500px;
    border: 1px solid #d7ddea;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f2f7;
}

.vehicle-icon {
    background: transparent;
    border: none;
}

.vehicle-marker-wrap {
    position: relative;
    width: 32px;
    height: 80px;
}

.vehicle-marker-wrap.vehicle-marker-wrap--dot {
    width: 34px;
    height: 34px;
}

.live-vehicle-marker__vehicle {
    position: absolute;
    inset: 0;
    width: 32px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.3));
    transform-origin: 16px 46px;
}

.live-vehicle-marker__vehicle svg {
    width: 100%;
    height: 100%;
}

.vehicle-marker-label {
    position: absolute;
    top: 48px;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 26px;
    padding: 2px 5px;
    border-radius: 8px;
    background: #001f46;
    color: #fff;
    font-size: 0.72rem;
    line-height: 1;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.02em;
    pointer-events: none;
}

.vehicle-marker-wrap--dot .vehicle-marker-label {
    top: 50%;
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.vehicle-marker-label.route-LHR {
    background: #001f46;
}

.vehicle-marker-label.route-LGW {
    background: #001f46;
}

.vehicle-marker-label.route-OXF {
    background: #001f46;
}

.vehicle-details {
    margin-top: 0.85rem;
    background: #f1f2f5;
    border: 1px solid #d2d6df;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(18, 32, 57, 0.12);
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.2s ease;
    overflow-y: auto;
}

.vehicle-details.is-open {
    max-height: 620px;
    opacity: 1;
    transform: translateY(0);
}

.vehicle-details__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #d2d6df;
    background: #fff;
}

.vehicle-details__title {
    margin: 0;
    color: #20293a;
    font-size: 1rem;
    font-weight: 700;
}

.vehicle-details__close {
    border: 1px solid #c8ceda;
    background: #fff;
    color: #18263f;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.1;
    border-radius: 4px;
    padding: 0.33rem 0.55rem;
}

.vehicle-details__body {
    padding: 0;
}

.vehicle-card {
    background: #ececef;
    color: #172133;
}

.vehicle-card__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.9rem 1rem;
    background: #fff;
    border-bottom: 1px solid #d4d8e1;
}

.vehicle-card__identity {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

.vehicle-card__bus-icon {
    width: 70px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 4px;
    display: grid;
    place-items: center;
    background: #f3f6fb;
    border: 1px solid #d7ddea;
}

.vehicle-card__bus-icon svg {
    width: 64px;
    height: 20px;
    display: block;
}

.vehicle-card__name {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 600;
    color: #111e36;
}

.vehicle-card__type {
    margin-top: 0.12rem;
    color: #6a7486;
    font-size: 0.9rem;
    font-style: italic;
}

.vehicle-card__meta {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.vehicle-pill {
    background: #f4f6fb;
    border: 1px solid #cfd5e2;
    border-radius: 5px;
    color: #1c2944;
    font-weight: 700;
    font-size: 0.93rem;
    padding: 0.36rem 0.62rem;
    min-width: 86px;
    text-align: center;
}

.vehicle-card__main {
    padding: 1rem;
    display: grid;
    grid-template-columns: minmax(230px, 1fr) minmax(0, 1.25fr);
    gap: 1rem;
}

.vehicle-route-panel {
    background: #fff;
    border: 1px solid #d6dae3;
    border-radius: 6px;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: center;
    padding: 1rem;
    min-height: 124px;
}

.vehicle-route-badge {
    background: #24366f;
    color: #fff;
    border-radius: 4px;
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 0.12rem;
    padding: 0.7rem 0.75rem;
    min-height: 84px;
}

.vehicle-route-badge__brand {
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
    opacity: 0.95;
    text-transform: lowercase;
}

.vehicle-route-badge__line {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: 0.01em;
}

.vehicle-route-title {
    margin: 0;
    font-size: 1.05rem;
    color: #12213d;
    line-height: 1.25;
    font-weight: 700;
}

.vehicle-route-label {
    margin: 0.3rem 0 0;
    font-size: 0.8rem;
    line-height: 1.25;
    color: #2d3a52;
}

.vehicle-route-subtitle {
    margin: 0.3rem 0 0;
    font-size: 0.98rem;
    line-height: 1.25;
    color: #2d3a52;
}

.vehicle-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-content: start;
}

.vehicle-sections__column {
    display: grid;
    gap: 0.95rem;
    align-content: start;
}

.vehicle-section h3 {
    margin: 0 0 0.35rem;
    font-size: 1.02rem;
    color: #152444;
}

.vehicle-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.34rem;
}

.vehicle-feature-list li {
    position: relative;
    color: #1c2944;
    font-size: 0.95rem;
    padding-left: 1.25rem;
    line-height: 1.3;
}

.vehicle-feature-list li::before {
    content: '●';
    position: absolute;
    left: 0;
    top: 0.02rem;
    color: #2f9f4b;
    font-size: 0.8rem;
}

.vehicle-empty-note {
    color: #6a7486;
    font-style: italic;
    font-size: 0.92rem;
}

.vehicle-details-empty {
    padding: 1rem;
    color: #5a6577;
}

@media (max-width: 1024px) {
    .vehicle-sections {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 880px) {
    .vehicle-card__main {
        grid-template-columns: 1fr;
    }

    .vehicle-sections {
        grid-template-columns: 1fr;
    }

    .vehicle-sections__column {
        gap: 0.8rem;
    }
}

@media (max-width: 560px) {
    .vehicle-card__top {
        grid-template-columns: 1fr;
    }

    .vehicle-card__meta {
        justify-content: flex-start;
    }

    .vehicle-route-panel {
        grid-template-columns: 1fr;
    }

    .vehicle-route-badge {
        min-height: 70px;
        justify-items: center;
    }
}

@media (max-width: 700px) {
    .map-widget {
        height: 420px;
    }
}