/* Map additions only. Every selector is scoped to the new section so the
   original dashboard, typography, descriptions, and layout stay unchanged. */
#park-explorer {
  --purple:#302c54; --paper:var(--card); --coral:var(--pink); --border:#eee8e0;
  --crowd-low:#57ac85; --crowd-mid:#efc051; --crowd-high:#df6265;
  --wait-0:#fff0ad; --wait-30:#f9c45a; --wait-60:#ed883e; --wait-90:#d24b44; --wait-120:#9b2448;
  --map-ground:#f2f1e9; --map-building:#e3dfd7; --map-building-edge:#aaa79d;
  --map-path:#a9a79a; --map-water:#b7d8e2; --map-green:#d9e6d5;
  margin-top:32px; color:var(--ink);
}
#park-explorer * { box-sizing:border-box; }
#park-explorer button,#park-explorer input { font:inherit; }
#park-explorer button { cursor:pointer; }
#park-explorer button:disabled { cursor:default; opacity:.45; }
#park-explorer :focus-visible { outline:3px solid var(--blue); outline-offset:4px; }
#park-explorer [hidden] { display:none !important; }
#park-explorer .date-panel { display:grid; grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) minmax(180px,1fr); gap:20px; align-items:center; padding:20px; margin-bottom:24px; background:var(--card); border-radius:16px; box-shadow:0 4px 18px #3e315012; }
#park-explorer .date-control input { display:block; width:100%; min-height:44px; margin-top:5px; padding:10px; border:1px solid #ddd6cf; border-radius:8px; background:white; color:var(--ink); }
#park-explorer .date-control p,#park-explorer .crowd-legend p { margin:7px 0 0; font-size:.75rem; }
#park-explorer .date-summary { display:grid; gap:6px; }
#park-explorer .date-summary strong { font-size:.95rem; }
#park-explorer .date-summary span { font-size:.8rem; color:var(--muted); }
#park-explorer .legend-title { display:block; font-size:.8rem; font-weight:600; }
#park-explorer .legend-gradient { margin-top:9px; height:9px; border-radius:3px; background:linear-gradient(to right,var(--crowd-low),var(--crowd-mid) 33.333%,var(--crowd-high)); }
#park-explorer .legend-ticks { display:flex; justify-content:space-between; margin-top:4px; font-size:.7rem; color:var(--muted); font-variant-numeric:tabular-nums; }
#park-explorer .missing-key { display:flex; align-items:center; gap:7px; margin-top:6px; font-size:.7rem; color:var(--muted); }
#park-explorer .missing-key i,#park-explorer .crowd-swatch.is-missing { background:repeating-linear-gradient(135deg,#eeece5,#eeece5 3px,#a7a49d 3px,#a7a49d 4px); }
#park-explorer .missing-key i { width:12px; height:10px; }
#park-explorer .date-error { grid-column:1/-1; margin:0; color:#a52d42; font-size:.85rem; }
#park-explorer .load-status,#park-explorer .load-error { margin-bottom:24px; padding:20px; background:var(--card); border-radius:16px; }
#park-explorer .load-error button { margin-top:12px; padding:9px 15px; border:1px solid #ddd6cf; border-radius:8px; background:white; color:var(--pink); }
#park-explorer #park-maps { display:grid; gap:24px; }
#park-explorer .park-card { overflow:hidden; background:var(--card); border-radius:16px; box-shadow:0 4px 18px #3e315012; }
#park-explorer .park-header { padding:20px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; }
#park-explorer .park-name-group { display:flex; align-items:center; gap:12px; }
#park-explorer .park-number { color:var(--muted); font-size:.75rem; }
#park-explorer .park-header h2 { margin:0; font-size:1.3rem; }
#park-explorer .park-crowd { display:flex; align-items:center; gap:10px; }
#park-explorer .crowd-swatch { width:15px; height:15px; border-radius:3px; flex-shrink:0; }
#park-explorer .crowd-index { font-size:1.2rem; font-weight:650; font-variant-numeric:tabular-nums; }
#park-explorer .crowd-caption { display:block; color:var(--muted); font-size:.7rem; }
#park-explorer .park-content { border-top:1px solid var(--border); }
#park-explorer .map-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; padding:10px 16px; font-size:.7rem; color:var(--muted); }
#park-explorer .map-tools { display:inline-flex; align-items:center; gap:5px; }
#park-explorer .map-tools button { min-width:36px; min-height:36px; padding:5px 10px; background:white; border:1px solid #ddd6cf; border-radius:8px; color:var(--ink); font-size:.85rem; }
#park-explorer .map-tools button:not(:disabled):hover { background:var(--cream); }
#park-explorer .map-holder { width:100%; background:var(--map-ground); }
#park-explorer .park-map { display:block; width:100%; overflow:hidden; cursor:grab; }
#park-explorer .park-map:active { cursor:grabbing; }
#park-explorer .park-surface { fill-opacity:.24; transition:fill .3s; }
#park-explorer .park-outline { fill:none; stroke:#aaa99b; stroke-width:1; }
#park-explorer .map-green { fill:var(--map-green); }
#park-explorer .map-water { fill:var(--map-water); }
#park-explorer .map-building { fill:var(--map-building); stroke:var(--map-building-edge); stroke-width:.6; }
#park-explorer .map-ride-building { stroke:#795b4b; stroke-width:.8; cursor:pointer; }
#park-explorer .map-ride-building:hover,#park-explorer .map-ride-building.is-selected { stroke:#302c54; stroke-width:2; }
#park-explorer .map-path { fill:none; stroke:var(--map-path); stroke-width:1.2; stroke-linecap:round; stroke-linejoin:round; }
#park-explorer .map-service { stroke:#c7c3b6; stroke-width:.85; }
#park-explorer .map-track { fill:none; stroke:#a49bb7; stroke-width:1.2; }
#park-explorer .map-path,#park-explorer .map-track { pointer-events:none; }
#park-explorer .map-geometry path { vector-effect:non-scaling-stroke; }
#park-explorer .marker { cursor:pointer; }
#park-explorer .marker:focus,#park-explorer .map-ride-building:focus { outline:none; }
#park-explorer .marker-dot { fill:var(--ride-color); stroke:white; stroke-width:2; }
#park-explorer .marker:hover .marker-dot { stroke:#302c54; }
#park-explorer .marker-number { fill:var(--ride-ink); font-size:12px; font-weight:650; text-anchor:middle; dominant-baseline:central; pointer-events:none; }
#park-explorer .marker-compact .marker-number { font-size:9px; }
#park-explorer .marker-label { fill:#31313a; font-size:12px; paint-order:stroke; stroke:#fffdf7; stroke-width:4px; stroke-linejoin:round; pointer-events:none; }
#park-explorer .map-reference { fill:#66695e; font-size:11px; paint-order:stroke; stroke:#fffdf7; stroke-width:3px; pointer-events:none; }
#park-explorer .marker-ring { fill:none; stroke:#302c54; stroke-width:1.5; stroke-opacity:.7; }
#park-explorer .marker-leader { stroke:#656966; stroke-width:1; pointer-events:none; }
#park-explorer .ride-directory { padding:0 16px 16px; }
#park-explorer .ride-directory h3 { margin:0 0 8px; font-size:.85rem; }
#park-explorer .ride-directory details { margin-top:9px; }
#park-explorer .ride-directory summary { padding:6px 0; color:var(--muted); font-size:.75rem; cursor:pointer; }
#park-explorer .ride-key { margin:0; padding:4px; max-height:245px; overflow:auto; list-style:none; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
#park-explorer .ride-key li { min-width:0; }
#park-explorer .ride-key button { display:flex; align-items:center; gap:9px; text-align:left; width:100%; min-height:40px; padding:8px 10px; background:var(--cream); border:1px solid transparent; border-radius:8px; color:var(--ink); font-size:.75rem; line-height:1.4; }
#park-explorer .ride-key button:hover { border-color:#ddd6cf; }
#park-explorer .ride-key button[aria-pressed="true"] { background:#fff0f2; border-color:var(--pink); }
#park-explorer .ride-key-number { display:inline-grid; place-items:center; width:23px; height:23px; flex-shrink:0; border-radius:50%; background:var(--ride-color); color:var(--ride-ink); font-size:.7rem; font-weight:650; }
#park-explorer .is-wait-missing .ride-key-number { background:repeating-linear-gradient(135deg,#e3e5e8,#e3e5e8 3px,#9aa0a9 3px,#9aa0a9 4px); }
#park-explorer .ride-key-name { flex:1; }
#park-explorer .ride-key-name small { display:block; color:var(--muted); font-size:.65rem; }
#park-explorer .ride-key-wait { flex-shrink:0; font-size:.7rem; color:#62594f; font-variant-numeric:tabular-nums; }
#park-explorer .wait-legend { max-width:420px; margin:16px 16px 18px; }
#park-explorer .wait-gradient { background:linear-gradient(to right,var(--wait-0),var(--wait-30),var(--wait-60),var(--wait-90),var(--wait-120)); }
#park-explorer .wait-missing-key i { background:repeating-linear-gradient(135deg,#e3e5e8,#e3e5e8 3px,#9aa0a9 3px,#9aa0a9 4px); }
#park-explorer .ride-tooltip { position:fixed; z-index:20; width:min(308px,calc(100vw - 20px)); max-height:calc(100vh - 20px); max-height:calc(100dvh - 20px); overflow:auto; padding:13px 15px; border:1px solid #e0d7d0; border-radius:12px; background:#fffdf9; box-shadow:0 6px 24px #302c5430; color:var(--ink); font-size:.77rem; line-height:1.4; }
#park-explorer .ride-tooltip-name { margin-bottom:9px; color:#302c54; font-size:.93rem; font-weight:700; overflow-wrap:anywhere; }
#park-explorer .ride-tooltip-stats { margin:0; display:grid; gap:5px; }
#park-explorer .ride-tooltip-stats div { display:flex; justify-content:space-between; align-items:baseline; gap:12px; }
#park-explorer .ride-tooltip-stats dt { color:var(--muted); }
#park-explorer .ride-tooltip-stats dd { margin:0; text-align:right; font-weight:650; font-variant-numeric:tabular-nums; }
#park-explorer .ride-tooltip-date { border-top:1px solid var(--border); margin:10px 0 5px; padding-top:8px; font-weight:650; }
#park-explorer .ride-tooltip-note { margin:8px 0 0; color:var(--muted); font-size:.72rem; }
#park-explorer .park-note { margin:0; padding:10px 20px; border-top:1px solid var(--border); font-size:.75rem; color:var(--muted); }
#park-explorer .map-data-note { margin-top:24px; }
#park-explorer .map-attribution { font-size:.8rem; }
@media(min-width:1200px) {
  #park-explorer .ride-key { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:1000px) {
  #park-explorer .date-panel { grid-template-columns:1fr 1fr; }
  #park-explorer .crowd-legend { grid-column:1/-1; max-width:420px; }
}
@media(max-width:620px) {
  #park-explorer .date-panel { grid-template-columns:minmax(0,1fr); padding:18px; }
  #park-explorer .date-summary { padding-top:14px; border-top:1px solid var(--border); }
  #park-explorer .park-header { padding:18px 16px; gap:14px; }
  #park-explorer .park-header h2 { font-size:1.1rem; }
  #park-explorer .park-crowd { width:100%; margin-left:24px; }
  #park-explorer .crowd-caption { display:inline; margin-left:6px; }
  #park-explorer .crowd-index { font-size:1rem; }
  #park-explorer .map-toolbar { padding:10px 12px; }
  #park-explorer .ride-key { grid-template-columns:minmax(0,1fr); }
  #park-explorer .ride-key button { min-height:44px; font-size:.78rem; }
}
@media(prefers-reduced-motion:reduce) { #park-explorer .park-surface { transition:none; } }
