.valley-overview{margin:18px auto 24px;max-width:1100px;padding:12px 18px;background:#fff3d8;border:3px solid #b88d53;border-radius:24px;box-shadow:0 5px #987447;color:#294c4e}.valley-overview-title{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:18px}.valley-location{background:#d9edee;padding:4px 12px;border-radius:12px;font-weight:800}.valley-overview p{margin:6px 0 9px;font-size:14px}.valley-overview svg,.valley-dialog-map{display:block;width:100%;max-height:310px;background:#c3d99b;border-radius:18px}.map-lesson{font:700 19px system-ui;fill:#274b43;paint-order:stroke;stroke:#f3f5d9;stroke-width:5px;stroke-linejoin:round}.map-junction{font:600 16px system-ui;fill:#345943;paint-order:stroke;stroke:#dbe7bc;stroke-width:4px}.cockpit-direction[hidden]{display:none!important}.valley-dialog-map{max-height:65vh!important}
@media(max-width:600px){.valley-overview{padding:10px 6px;margin:12px 0}.valley-overview-title{font-size:15px;padding:0 6px}.valley-overview p{font-size:12px;padding:0 6px}.valley-overview svg{min-height:200px}.map-lesson{font-size:21px}}

.valley-look-controls{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:10px auto;max-width:1100px}.valley-look-controls button{font:700 15px system-ui;padding:10px 16px;color:#29514d;background:#fff1c9;border:2px solid #bc965c;border-radius:14px;cursor:pointer}.valley-look-controls button[aria-pressed=true]{background:#c6e3cc;border-color:#4b8674}.valley-look-controls button:focus-visible{outline:3px solid #2876a5;outline-offset:3px}

.world-look-active .continuous-road{display:block!important}.world-look-active .garage-discoveries,.world-look-active .cockpit-scenery,.world-look-active .cockpit-garage-departure,.world-look-active .cockpit-first-stop-sign,.world-look-active .first-stop-dog,.world-look-active .junction-garden-animation,.world-look-active .cockpit-first-stop-line{visibility:hidden!important}

/* Compact windshield overlay, with the full map available from its button. */
.cockpit-windshield>.valley-overview{position:absolute;z-index:15;top:10px;left:10px;width:clamp(135px,23%,245px);margin:0;padding:5px;border-width:2px;border-radius:12px;box-shadow:0 3px 8px #23443455;background:#fff3e0ed}
.cockpit-windshield>.valley-overview .valley-overview-title{display:block;font-size:11px;padding:0}.cockpit-windshield>.valley-overview strong,.cockpit-windshield>.valley-overview p{display:none}.cockpit-windshield>.valley-overview .valley-location{display:block;padding:2px 4px;text-align:center;font-size:11px}.cockpit-windshield>.valley-overview svg{min-height:0;max-height:118px;border-radius:7px}.valley-expand{display:block;width:100%;padding:3px;border:0;background:transparent;color:#294c4e;font-size:11px;font-weight:bold}.cockpit-windshield>.valley-overview .map-lesson,.cockpit-windshield>.valley-overview .map-junction{display:none}

/* Names belong in a readable directory rather than overlapping the road drawing. */
.valley-place-icon{font:16px system-ui}.valley-place-number{font:800 9px system-ui;fill:#294c4e;paint-order:stroke;stroke:#fff8e2;stroke-width:1px}
.valley-map-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(240px,1fr);gap:18px;width:100%;align-items:start;color:#294c4e}
.valley-map-area{min-width:0;background:#f5f3dc;border-radius:16px;padding:8px;position:sticky;top:0}
.valley-map-area .valley-dialog-map{width:100%;height:auto;max-height:65vh!important;min-height:260px;aspect-ratio:1000/880}
.valley-map-key{font:700 12px/1.6 system-ui;margin:8px 4px}.valley-map-directory{text-align:left;min-width:0}.valley-map-directory h3{font:800 21px system-ui;margin:0 0 5px}.valley-map-directory>p{font:14px/1.5 system-ui;margin:5px 0 10px}
.valley-map-filters{display:flex;flex-wrap:wrap;gap:5px}.valley-map-filters button{font:700 12px system-ui;padding:7px 9px;border-radius:20px;background:#f6f3df;border:1px solid #a1b294;color:#294c4e;cursor:pointer}.valley-map-filters button[aria-pressed=true]{background:#315e65;color:white}
.valley-place-list{max-height:44vh;overflow-y:auto;padding:0 5px 8px 0;scrollbar-gutter:stable}.valley-place-list h4{font:800 13px system-ui;text-transform:uppercase;letter-spacing:.04em;margin:14px 0 7px}
.valley-place-list button{display:grid;grid-template-columns:26px 25px minmax(0,1fr);gap:7px;align-items:center;width:100%;text-align:left;border:1px solid #bdc9ab;border-radius:10px;background:#fffaf0;color:#294c4e;padding:9px 8px;margin:0 0 6px;font:700 14px/1.35 system-ui;cursor:pointer;min-height:44px}
.valley-place-list button[aria-pressed=true]{background:#d9edf2;border-color:#34748d}.valley-directory-badge{display:grid;place-items:center;background:#375c67;color:white;border-radius:50%;width:25px;height:25px;font-size:12px}
.valley-place-list button:focus-visible,.valley-map-filters button:focus-visible{outline:3px solid #e4ac38;outline-offset:2px}.valley-place.is-selected rect{stroke:#164f79;stroke-width:5;fill:#ffde83}.valley-map-selection{padding:8px;border-radius:9px;background:#e3eee0;min-height:38px}
.benny-cockpit .cockpit-map-dialog{max-width:1180px;width:min(96vw,1180px)}.benny-cockpit .cockpit-map-content{overflow:auto;max-height:76vh;padding:8px}.cockpit-windshield>.valley-overview .valley-place-junctions{display:none}
@media(max-width:700px){.valley-map-layout{grid-template-columns:1fr}.valley-map-area{position:static}.valley-map-area .valley-dialog-map{max-height:47vh!important;min-height:210px}.valley-place-list{max-height:36vh}.valley-map-directory h3{font-size:18px}.valley-place-list button{font-size:14px}.valley-map-key{font-size:11px}}
/* Let the enlarged map use the viewport instead of spilling past the cockpit clip. */
.benny-cockpit .cockpit-map-dialog{position:fixed;inset:var(--bna-site-header-height,0px) 0 0;width:auto;max-width:none;box-sizing:border-box;padding:clamp(8px,2vw,24px);z-index:1000}
.benny-cockpit .cockpit-map-card{width:min(100%,1180px);max-height:94svh;box-sizing:border-box}
.benny-cockpit .cockpit-map-content{max-height:82svh;box-sizing:border-box}

.valley-dialog-map .valley-place[role=button]{cursor:pointer}.valley-dialog-map .valley-place:focus-visible rect{stroke:#164f79;stroke-width:5;fill:#ffde83}.valley-clear-route{padding:9px 14px;margin:4px 0 10px;border:2px solid #34748d;border-radius:10px;background:#e2f4f8;color:#294c4e;cursor:pointer;font:700 14px system-ui}.valley-clear-route[hidden]{display:none}
