/* Map first layout for /bus-route-planner and /bus-from pairs: content panel left, live map right (desktop); map on top, panel below (phone).
   Map height is reserved up front, so nothing shifts when the tiles load. */
.rm-shell { display: grid; grid-template-columns: minmax(360px, 440px) minmax(0, 1fr); height: calc(100dvh - var(--nv-bar-h, 56px)); min-height: 560px; }
.rm-panel { grid-column: 1; grid-row: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 24px 32px; background: var(--nv-surface, #fff); border-right: 1px solid var(--nv-line, #EAEAEA); min-width: 0; }
.rm-map { grid-column: 2; grid-row: 1; position: relative; min-height: 0; background: #f4f4f2; }
.rm-map .leaflet-container { font-family: inherit; }
.rm-shell.rm-nomap { display: block; height: auto; min-height: 0; }
.rm-shell.rm-nomap .rm-panel { max-width: var(--nv-wrap, 1180px); margin: 0 auto; overflow: visible; border: 0; }
.rm-panel .rp-hero { display: block; padding: 24px 0 24px; }
.rm-panel .rp-intro h1, .rm-panel .rp-hero h1 { max-width: none; font-size: 1.75rem; }
.rm-panel .rp-hero .nv-lede, .rm-panel .rp-intro p { max-width: none; }
.rm-panel .rp-tool { margin-top: 20px; padding: 16px; }
.rm-panel .rf-links { grid-template-columns: 1fr; }
.rm-panel .rp-list { grid-template-columns: 1fr; }
.rm-panel .rf-crumbs { padding-top: 16px; }
.rm-panel .rp-cta .nv-btn { flex: 1 1 auto; justify-content: center; }
@media (max-width: 860px) {
    .rm-shell { display: block; height: auto; min-height: 0; }
    .rm-map { height: 52vh; min-height: 300px; border-bottom: 1px solid var(--nv-line, #EAEAEA); }
    .rm-panel { overflow: visible; border-right: 0; border-top: 3px solid #e9b83a; margin-top: -3px; position: relative; z-index: 2; padding: 0 16px 32px; border-radius: 6px 6px 0 0; }
    .rm-shell.rm-nomap .rm-map { display: none; }
}
