/* Campus controls and views; normal content retains the shared page width. */
.campus-explorer { --explorer-accent:#9b2f55;position:relative;margin-block:20px; }
.explorer-toolbar {display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px;}
.explorer-views {display:flex;gap:6px;margin-right:auto;flex-wrap:wrap;}
.explorer-toolbar button {border:1px solid #806f58;border-radius:100px;background:#fffdf7;color:#2d2318;padding:10px 18px;font:inherit;cursor:pointer;}
.explorer-toolbar button[aria-pressed=true] {background:#2d2318;color:#fffdf7;}
.explorer-toolbar button:focus-visible,.campus-walk-controls button:focus-visible {outline:3px solid #9b2f55;outline-offset:3px;}
.explorer-help {font-size:14px;line-height:1.6;color:#6b5a48;max-width:80ch;}
.explorer-selection {margin-bottom:16px;}
.explorer-selection .plan-help {margin-bottom:12px;}
.explorer-selection .toggles button {display:inline-flex;align-items:center;}
body[data-page=campus] .campus-explorer .grid {position:relative;grid-template-columns:minmax(0,1fr) 300px;}
.campus-connector {position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible;z-index:4;}
.campus-connector path {fill:none;stroke:#9b2f55;stroke-width:2;stroke-linecap:round;}
.campus-explorer .panel {border-left:4px solid #9b2f55;z-index:5;}
.campus-explorer .bld {transform-box:fill-box;transform-origin:center;transition:transform .3s ease,filter .3s ease;}
.campus-explorer .bld.on {transform:scale(1.1);filter:drop-shadow(0 4px 3px #2d231850);}
.campus-explorer .bld:hover,.campus-explorer .bld:focus-visible {transform:scale(1.15);filter:drop-shadow(0 4px 3px #2d231850);}
.campus-explorer .bld.on rect {stroke:#2d2318;stroke-width:6;}
.campus-explorer .bld.route-stop rect {stroke:#9b2f55;stroke-width:6;}
.campus-explorer #plan {touch-action:none;cursor:grab;}
.campus-explorer #plan:active {cursor:grabbing;}
.campus-explorer #plan .bld {cursor:pointer;}
.campus-3d {position:relative;height:min(70vh,760px);min-height:360px;overflow:hidden;border-radius:14px;}
.campus-3d canvas {display:block;width:100%;height:100%;touch-action:none;cursor:grab;}
.campus-3d canvas:active {cursor:grabbing;}
.building-label {position:absolute;transform:translate(-50%,-150%);padding:8px 12px;border-radius:8px;background:#fffdf7;color:#2d2318;border:1px solid #806f58;box-shadow:0 4px 16px #2d231820;pointer-events:none;font-size:14px;max-width:210px;text-align:center;}
.building-hover-label {position:absolute;background:#fffdf7;color:#2d2318;border:1px solid #806f58;border-radius:8px;padding:9px 12px;max-width:240px;box-shadow:0 5px 20px #2d231820;pointer-events:none;z-index:3;}
.control-icon {width:19px;height:19px;flex-shrink:0;vertical-align:middle;margin-right:7px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round;}
.route-summary {background:#fffdf7;border:1px solid #d7c5a8;border-radius:14px;padding:14px;margin-top:14px;}
.route-building-list {display:flex;flex-wrap:wrap;gap:7px;margin:8px 0 12px;}
.route-building-list button {font:inherit;font-size:14px;background:#f6f1e4;color:#2d2318;border:1px solid #806f58;padding:6px 10px;border-radius:30px;cursor:pointer;}
.simulation-status {padding:10px 14px;margin:0 0 12px;border:1px solid #d7c5a8;border-radius:10px;background:#fffdf7;color:#2d2318;font-size:14px;}
.campus-tour-caption {position:absolute;top:12px;left:12px;right:12px;border-radius:10px;background:#fffdf7;color:#2d2318;padding:10px 14px;font-size:14px;pointer-events:none;z-index:4;}
.campus-walk-controls {position:absolute;bottom:12px;left:12px;right:12px;display:flex;flex-wrap:wrap;justify-content:center;gap:8px;z-index:5;}
.campus-walk-controls button,.simulation-sound {min-height:44px;font:500 14px Inter,Arial,sans-serif;padding:8px 14px;border:1px solid #806f58;border-radius:8px;background:#fffdf7;color:#2d2318;touch-action:none;}
.simulation-sound {position:absolute;right:12px;bottom:72px;z-index:5;}
.simulation-dialogue {position:absolute;left:12px;right:12px;bottom:115px;z-index:4;max-width:600px;padding:10px 14px;border-radius:10px;background:#fffdf7;color:#2d2318;font-size:14px;pointer-events:none;}
[hidden] {display:none!important;}
/* Native computer fullscreen: the map spans the monitor, controls are drawers. */
.campus-explorer:fullscreen,.campus-explorer.expanded {background:#f6f1e4;padding:12px;margin:0;width:100%;height:100%;box-sizing:border-box;overflow:auto;}
.campus-explorer.expanded {position:fixed;inset:0;z-index:1000;}
.campus-explorer:is(:fullscreen,.expanded) .explorer-toolbar {position:relative;z-index:11;margin-bottom:8px;gap:6px;}
.campus-explorer:is(:fullscreen,.expanded) .explorer-toolbar button {font-size:14px;padding:8px 12px;}
.campus-explorer:is(:fullscreen,.expanded) .explorer-selection {display:none;}
.campus-explorer:is(:fullscreen,.expanded).controls-open .explorer-selection {display:block;position:absolute;left:12px;top:90px;z-index:10;width:min(600px,calc(100% - 24px));max-height:calc(100dvh - 120px);overflow:auto;background:#fffdf7;border:1px solid #806f58;border-radius:14px;padding:16px;box-shadow:0 10px 30px #2d231830;}
.campus-explorer:is(:fullscreen,.expanded) .explorer-help,.campus-explorer:is(:fullscreen,.expanded) .simulation-status,.campus-explorer:is(:fullscreen,.expanded) .planbox>.legend {display:none;}
body[data-page=campus] .campus-explorer:is(:fullscreen,.expanded) .grid {display:block;width:100%;}
.campus-explorer:is(:fullscreen,.expanded) .planbox {padding:0;border:0;border-radius:0;}
.campus-explorer:is(:fullscreen,.expanded) .panel {display:none;}
.campus-explorer:is(:fullscreen,.expanded).details-open .panel {display:block;position:absolute;right:12px;top:12px;width:min(320px,calc(100% - 24px));max-height:calc(100dvh - 140px);overflow:auto;z-index:8;box-shadow:0 10px 30px #2d231830;}
.campus-explorer:is(:fullscreen,.expanded) .campus-3d {min-height:180px;border-radius:10px;}
@media(max-width:900px) {
 body[data-page=campus] .campus-explorer .grid {grid-template-columns:1fr;}
 .campus-connector {display:none;}
 .campus-explorer .panel {position:static;}
 .campus-3d {height:55vh;min-height:320px;}
}
@media(prefers-reduced-motion:reduce) {.campus-explorer .bld {transition:none;}}

.street-legend::before {content:'';display:inline-block;width:22px;height:10px;margin-right:6px;background:#d4c7ad;border:2px solid #81745c;border-radius:3px;vertical-align:middle;}
