.visit-directions-links,
.visit-map-switch {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.visit-directions-links {
    margin-block: 1rem .8rem;
}

.visit-map-switch > button[aria-pressed="true"] {
    border-color: #e0c5ff99;
    background: #b58cf741;
    color: #fff;
}

.visit-map-view,
.visit-map-view > iframe {
    width: 100%;
    height: 100%;
}

.visit-map-view > iframe {
    display: block;
    border: 0;
}

@media (max-width: 600px) {
    .visit-directions-trigger,
    .visit-directions-links .button,
    [data-parking-map-actions] > .button,
    .visit-route-controls > * {
        width: 100%;
    }

    .visit-map-switch {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .visit-map-switch > .button {
        min-width: 0;
        padding-inline: .55rem;
        white-space: normal;
        text-align: center;
    }

    .visit-route-controls {
        display: grid;
    }
}
