.route-demo {
    overflow: hidden;
    border: 1px solid #dce5ef;
    border-radius: 18px;
    box-shadow: 0 16px 48px #24355c18;
}

.route-demo-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px;
}

.route-demo-heading .btn { flex-shrink: 0; }
.route-demo-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #267449;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.route-demo-map { height: clamp(280px, 38vh, 420px); background: #edf2f5; }
.route-demo-footer { padding: 16px 18px; }
.route-demo-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 8px; font-size: .85rem; font-weight: 600; }
.route-demo-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.route-demo-blue { background: #2563eb; }
.route-demo-green { background: #15803d; }
.route-demo-orange { background: #c2410c; }
.route-demo-stop { background: transparent; border: 0; }
.route-demo-stop span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 6px #0004;
    font: 700 12px/1 sans-serif;
}
.route-demo-depot span { background: #24355c; border-radius: 7px; }
#route-demo-expanded .route-demo-map { height: 65vh; min-height: 280px; }
@media (max-width: 575px) {
    #route-demo-modal .modal-content { height: 100%; }
    #route-demo-expanded { display: flex; flex: 1; }
    #route-demo-expanded .route-demo-map { height: auto; flex: 1; }
}
