/* Map stop info cards (vg-map.js). Scoped with :has() to our cards only. */
.gm-style .gm-style-iw-c:has(.vg-iw-head) {
    padding: 14px 14px 16px 16px !important;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 49, 77, 0.18);
}
.gm-style .gm-style-iw-c:has(.vg-iw-head) .gm-style-iw-d {
    overflow: auto !important;
    padding: 0 !important;
}
.gm-style .gm-style-iw-chr:has(.vg-iw-head) {
    align-items: flex-start;
}
.gm-style .gm-style-iw-chr:has(.vg-iw-head) .gm-style-iw-ch {
    padding-top: 0;
}
.gm-style .gm-style-iw-chr:has(.vg-iw-head) button.gm-ui-hover-effect {
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    border-radius: 50%;
    position: absolute !important;
    top: -6px !important;
    right: -8px !important;
}
.gm-style .gm-style-iw-chr:has(.vg-iw-head) {
    position: relative;
}
.gm-style .gm-style-iw-chr:has(.vg-iw-head) button.gm-ui-hover-effect:focus-visible {
    outline: 2px solid #004b76;
    outline-offset: 1px;
}
.gm-style .gm-style-iw-chr:has(.vg-iw-head) button.gm-ui-hover-effect > span {
    margin: 4px !important;
    width: 24px !important;
    height: 24px !important;
}

.vg-iw-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    box-sizing: border-box;
    max-width: 240px;
    /* Keep the name clear of the close button, which some themes position absolutely. */
    padding-right: 30px;
}
.vg-iw-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    box-sizing: border-box;
    border-radius: 13px;
    background: #004b76;
    border: 1px solid #00314d;
    color: #fff;
    font: 700 13px/1 var(--vg-font-headers, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
}
.vg-iw-name {
    padding-top: 3px;
    color: #1d2a35;
    font: 700 16px/1.3 var(--vg-font-headers, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
    overflow-wrap: anywhere;
}
.vg-iw-body {
    padding-top: 10px;
}
.vg-iw-body:empty {
    display: none;
}
.vg-iw-dir {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    color: #004b76 !important;
    font: 600 14px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    text-decoration: none !important;
    border-bottom: 1px solid transparent;
}
.vg-iw-dir::after {
    content: "\2197";
    font-size: 13px;
}
.vg-iw-dir:hover,
.vg-iw-dir:focus-visible {
    color: #00314d !important;
    text-decoration: underline !important;
}
.vg-iw-dir:focus-visible {
    outline: 2px solid #004b76;
    outline-offset: 2px;
    border-radius: 2px;
}
