@charset "UTF-8";

:root {
  --ink: #253b31;
  --muted: #7a827a;
  --forest: #2d493d;
  --forest-deep: #233f32;
  --lime: #d6ed8a;
  --lime-light: #eef5db;
  --paper: #f8f9f3;
  --white: #fff;
  --line: #e7eae1;
  --lavender: #eeebf8;
  --lavender-ink: #7b6b9b;
  --shadow: 0 8px 32px #273e3010, 0 2px 8px #273e3007;
  --sidebar-width: 370px;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { font-size: 14px; line-height: 1.5; letter-spacing: -.025em; }
button, input, select { font: inherit; letter-spacing: inherit; }
button, a, input, select, label { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button, input, select { outline: none; }
button { border: 0; }
button:disabled { cursor: wait; opacity: .55; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #8baa60; outline-offset: 3px; }
a { color: var(--forest); }
svg { display: block; }
[hidden] { display: none !important; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 20px; top: -70px; z-index: 2000; padding: 12px 20px; border-radius: 12px; background: var(--forest); color: white; text-decoration: none; }
.skip-link:focus { top: 12px; }
.app-shell { display: flex; flex-direction: column; height: 100vh; height: 100dvh; min-height: 0; }
.site-header { height: 78px; min-height: 78px; display: flex; align-items: center; padding: 0 30px 0 26px; border-bottom: 1px solid var(--line); background: var(--paper); z-index: 600; gap: 25px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: 0 0 calc(var(--sidebar-width) - 25px); }
.brand-symbol { width: 37px; height: 39px; border-radius: 12px; display: grid; place-items: center; background: var(--forest); color: var(--lime); transform: rotate(-5deg); }
.brand-symbol .icon { width: 23px; height: 23px; stroke-width: 1.65; transform: rotate(5deg); }
.brand-name { font-weight: 850; font-size: 28px; letter-spacing: -.075em; line-height: 1; }
.brand-dot { color: #8baf4e; margin-left: 1px; }
.brand-caption { margin-left: 3px; padding-left: 13px; border-left: 1px solid #d9dfd2; font-size: 11px; font-weight: 500; letter-spacing: -.035em; color: var(--muted); line-height: 1.5; }
.header-context { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #6d796f; flex: 1; }
.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #8db965; box-shadow: 0 0 0 3px #8db96512; flex: 0 0 auto; }
.sources-button { min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; background: transparent; border: 1px solid #dce2d5; border-radius: 10px; color: #697568; font-size: 12px; font-weight: 550; white-space: nowrap; }
.sources-button .icon { width: 16px; height: 16px; }
.sources-button:hover { background: #eef1e8; border-color: #c6d0bf; }
.mobile-view-switch { display: none; }
.app-main { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); flex: 1; min-height: 0; position: relative; }
.sidebar { display: flex; flex-direction: column; min-height: 0; position: relative; z-index: 500; background: var(--paper); border-right: 1px solid var(--line); }
.sidebar-intro { padding: 29px 26px 20px; }
.eyebrow { margin: 0 0 10px; font-size: 9px; font-weight: 750; letter-spacing: .13em; color: #8a967e; }
h1 { margin: 0; font-size: 27px; font-weight: 700; letter-spacing: -.06em; line-height: 1.42; }
h1 span { position: relative; isolation: isolate; }
h1 span::after { content: ""; position: absolute; left: -1px; right: -3px; bottom: 1px; height: 11px; border-radius: 1px; background: var(--lime); z-index: -1; transform: rotate(-1deg); }
.intro-copy { margin: 10px 0 0; font-size: 11px; color: #8a9287; letter-spacing: -.035em; }
.filter-panel { padding: 0 24px; }
.search-field { height: 46px; display: flex; gap: 9px; align-items: center; border-radius: 11px; border: 1px solid #e1e5d9; padding: 0 12px; background: white; box-shadow: 0 1px 2px #243b2f03; }
.search-field:focus-within { border-color: #9bae7b; box-shadow: 0 0 0 3px #c8d9aa25; }
.search-field > .icon { width: 17px; height: 17px; color: #84917c; }
.search-field input { width: 100%; min-width: 0; height: 42px; border: 0; background: transparent; color: var(--ink); font-size: 11px; padding: 0; }
.search-field input:focus-visible { outline: none; }
.search-field input::placeholder { color: #9da498; opacity: 1; }
.search-field kbd { border: 1px solid #edf0e8; border-radius: 4px; padding: 0 4px; white-space: nowrap; font: 9px/19px inherit; color: #a5ac9e; }
.filter-row { display: flex; gap: 8px; margin-top: 9px; }
.district-field { display: flex; align-items: center; position: relative; flex: 1; border: 1px solid #e1e5d9; border-radius: 9px; background: white; min-width: 0; }
.district-field > .icon { width: 15px; height: 15px; position: absolute; left: 12px; pointer-events: none; color: #8c9885; }
.district-field::after { content: ""; width: 5px; height: 5px; border-bottom: 1.5px solid #98a08f; border-right: 1.5px solid #98a08f; position: absolute; right: 14px; transform: rotate(45deg) translateY(-2px); pointer-events: none; }
.district-field select { appearance: none; width: 100%; height: 40px; border: 0; background: transparent; padding: 0 31px 0 34px; font-size: 11px; color: #65705f; cursor: pointer; border-radius: 9px; }
.favorite-filter { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 0 12px; border: 1px solid #e1e5d9; border-radius: 9px; background: white; min-height: 42px; font-size: 11px; color: #7c8675; }
.favorite-filter .icon { width: 15px; height: 15px; }
.favorite-filter[aria-pressed="true"] { background: var(--lime-light); color: var(--forest); border-color: #c7d8a1; }
.favorite-filter[aria-pressed="true"] .icon { fill: var(--lime); }
.availability-toggle { display: flex; gap: 8px; align-items: center; width: fit-content; min-height: 41px; cursor: pointer; color: #7c8775; font-size: 10px; }
.availability-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-track { display: inline-flex; align-items: center; width: 25px; height: 15px; border-radius: 12px; background: #d9dfd0; padding: 2px; transition: background .2s; }
.toggle-track > span { width: 11px; height: 11px; border-radius: 50%; background: white; box-shadow: 0 1px 2px #2f43291a; transition: transform .2s; }
.availability-toggle input:checked + .toggle-track { background: var(--forest); }
.availability-toggle input:checked + .toggle-track > span { transform: translateX(10px); }
.availability-toggle input:focus-visible + .toggle-track { outline: 3px solid #8baa60; outline-offset: 3px; }
.summary-stats { display: flex; justify-content: space-between; margin: 0 24px 0; padding: 13px 0 15px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); gap: 12px; font-size: 10px; color: #8a9382; }
.summary-stats > div, .summary-stat { display: flex; flex-direction: column; gap: 1px; }
.summary-stats strong, .summary-stats b { font-size: 21px; line-height: 1.25; letter-spacing: -.06em; font-weight: 650; color: var(--forest); }
.summary-stats .summary-loading { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.loading-dot { width: 6px; height: 6px; background: #9db879; border-radius: 50%; animation: pulse 1.5s infinite; }
.school-results { display: flex; flex-direction: column; flex: 1; min-height: 0; padding-top: 17px; }
.results-header { flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; margin: 0 24px 11px; }
.results-header h2 { font-size: 12px; font-weight: 650; margin: 0; letter-spacing: -.035em; display: flex; gap: 6px; align-items: center; }
#resultCount { color: #8a9a73; font-size: 10px; font-weight: 500; }
.results-hint { font-size: 9px; color: #a2aa9b; }
.school-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 14px 14px; scrollbar-width: thin; scrollbar-color: #d6dece transparent; overscroll-behavior: contain; }
.school-card { position: relative; display: block; width: 100%; background: transparent; text-align: left; border: 1px solid transparent; border-radius: 12px; padding: 14px 15px; margin: 0 0 5px; transition: background .18s, border-color .18s; cursor: pointer; }
.school-card:hover { background: #f0f3e9; }
.school-card.active { background: var(--lime-light); border-color: #d9e6bc; }
.school-card:focus-visible { outline-offset: -3px; }
.school-card > button, .school-card .school-select { width: 100%; border: 0; background: transparent; padding: 0; text-align: left; }
.school-card .school-district { display: block; font-size: 9px; font-weight: 500; color: #8c9682; margin-bottom: 3px; }
.school-name { margin: 0; font-size: 14px; font-weight: 650; letter-spacing: -.04em; line-height: 1.5; color: var(--forest); }
.school-card .school-name { padding-right: 26px; }
.school-card .school-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 0; color: #949b8c; font-size: 9px; line-height: 1.5; }
.school-card .school-meta p { margin: 0; }
.school-card .school-meta .icon { width: 11px; height: 11px; }
.school-card .school-address { display: block; margin: 3px 0 0; font-size: 10px; color: #8b9682; }
.favorite-btn { position: absolute; right: 9px; top: 17px; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #b7bfae; font-size: 22px; line-height: 1; z-index: 1; }
.favorite-btn .icon, .favorite-btn svg { width: 17px; height: 17px; }
.favorite-btn:hover { background: #dfe8cf; color: #75865e; }
.favorite-btn[aria-pressed="true"], .favorite-btn.saved, .favorite-btn.is-favorite { color: #78934f; }
.favorite-btn[aria-pressed="true"] .icon { fill: #ccdf9c; }
.status-badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 4px; padding: 3px 6px; font-size: 8px; line-height: 1.1; font-weight: 600; white-space: nowrap; }
.status-badge.verified, .verified.status-badge { background: #e8efdc; color: #6e8852; }
.school-card.active .status-badge.verified { background: #dce9c3; color: #627d45; }
.status-badge.unavailable, .unavailable.status-badge { background: #efeee9; color: #96988c; }
.status-badge.partial, .status-badge.pending { background: var(--lavender); color: var(--lavender-ink); }
.school-card .card-arrow { position: absolute; right: 16px; bottom: 16px; width: 14px; height: 14px; color: #91a075; }
.school-card.active::before { content: ""; position: absolute; left: -1px; top: 22px; width: 3px; height: 24px; background: #9cb661; border-radius: 0 3px 3px 0; }
.school-skeleton { padding: 15px; margin-bottom: 8px; min-height: 95px; }
.school-skeleton span { display: block; height: 8px; background: #e7ecde; border-radius: 4px; margin-bottom: 9px; animation: pulse 1.5s infinite; width: 25%; }
.school-skeleton span:nth-child(2) { width: 63%; height: 13px; }
.school-skeleton span:nth-child(3) { width: 46%; }
.empty-state { padding: 35px 24px; text-align: center; color: #939c89; }
.empty-icon { display: grid; place-items: center; width: 49px; height: 49px; border-radius: 16px; margin: 0 auto 13px; background: #eef1e6; color: #91a17b; }
.empty-state h3 { font-size: 13px; font-weight: 600; color: #6a785e; margin: 0 0 5px; }
.empty-state p { font-size: 11px; margin: 0; line-height: 1.8; }
.sidebar-footer { display: flex; gap: 9px; align-items: flex-start; flex: 0 0 auto; margin: 0 24px; padding: 14px 0 16px; border-top: 1px solid var(--line); }
.footer-mark { display: grid; place-items: center; width: 19px; height: 19px; border: 1px solid #dce5d1; border-radius: 5px; font-size: 12px; color: #8c9b79; flex: 0 0 auto; }
.sidebar-footer p { margin: 0; font-size: 9px; line-height: 1.75; color: #818d76; }
.sidebar-footer p span { color: #a1aa97; }
.map-workspace { min-height: 0; position: relative; isolation: isolate; overflow: hidden; background: #eef1e7; }
#map { height: 100%; width: 100%; z-index: 1; background: #eef1e7; outline: none; }
.leaflet-container { font: inherit; }
.leaflet-tile-pane { filter: saturate(.56); }
.leaflet-control-attribution { background: #f8f9f3e8 !important; color: #7f8a76; font-size: 9px !important; }
.leaflet-control-attribution a { color: #627954; }
.leaflet-control-zoom { border: 1px solid #e5e9dc !important; border-radius: 12px !important; overflow: hidden; box-shadow: var(--shadow) !important; }
.leaflet-control-zoom a { background: #fffffff5 !important; color: #61734f !important; width: 40px !important; height: 40px !important; line-height: 40px !important; font-size: 20px !important; font-weight: 400 !important; }
.leaflet-control-zoom a + a { border-top-color: #edf0e7 !important; }
.leaflet-top.leaflet-left { top: 128px; left: 14px; }
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--shadow); padding: 1px; color: var(--forest); }
.leaflet-popup-content { margin: 14px 17px; font-size: 12px; line-height: 1.65; min-width: 130px; }
.leaflet-popup-content strong { font-size: 13px; }
.leaflet-popup-content a { color: #5d7840; }
.leaflet-popup-content button { padding: 6px 10px; border-radius: 7px; background: var(--lime-light); font-size: 11px; margin-top: 6px; }
.leaflet-popup-close-button { margin: 5px; color: #8c9682 !important; }
.maplibregl-map { font: inherit; }
.maplibregl-canvas:focus-visible { outline: 3px solid #8baa60; outline-offset: -3px; }
.maplibregl-ctrl-top-left { top: 128px; left: 14px; }
.maplibregl-ctrl-group { border: 1px solid #e5e9dc !important; border-radius: 12px !important; overflow: hidden; background: #fffffff7 !important; box-shadow: var(--shadow) !important; }
.maplibregl-ctrl-group button { width: 40px; height: 40px; }
.maplibregl-ctrl-group button + button { border-top-color: #edf0e7 !important; }
.maplibregl-ctrl-attrib, .maplibregl-ctrl-attrib-inner { font-size: 9px; color: #7f8a76; }
.maplibregl-ctrl-attrib { background: #f8f9f3e8 !important; }
.maplibregl-ctrl-attrib a { color: #627954; }
.maplibregl-popup-content { padding: 15px 18px; border-radius: 14px; box-shadow: var(--shadow); color: var(--forest); font-size: 12px; line-height: 1.7; }
.maplibregl-popup-content strong { font-size: 13px; }
.maplibregl-popup-content a { color: #5d7840; }
.maplibregl-popup-close-button { width: 30px; height: 30px; color: #8c9682; font-size: 20px; }
.map-heading { position: absolute; top: 23px; left: 24px; z-index: 420; max-width: calc(100% - 110px); padding: 16px 21px; border: 1px solid #ffffffd9; border-radius: 14px; background: #fffffff1; box-shadow: var(--shadow); pointer-events: none; backdrop-filter: blur(10px); }
.map-eyebrow { display: flex; align-items: center; gap: 6px; font-size: 8px; font-weight: 650; letter-spacing: .12em; color: #82916e; }
.map-eyebrow .live-dot { width: 5px; height: 5px; }
.map-heading h2 { font-size: 18px; font-weight: 450; letter-spacing: -.05em; margin: 5px 0 4px; }
.map-heading h2 strong { font-weight: 700; }
.map-heading p { margin: 0; font-size: 10px; line-height: 1.6; color: #8c9682; max-width: 310px; }
.map-controls { position: absolute; right: 23px; top: 24px; z-index: 430; display: flex; flex-direction: column; gap: 8px; }
.map-control { width: 42px; height: 42px; display: grid; place-items: center; background: #fffffff7; color: #6c7e5e; border: 1px solid #e1e7d8; border-radius: 12px; box-shadow: var(--shadow); }
.map-control .icon { width: 18px; height: 18px; }
.map-control:hover { background: #f4f8ec; color: var(--forest); }
.map-legend { position: absolute; bottom: 39px; left: 24px; z-index: 420; display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 10px 14px; border: 1px solid #ffffffc9; border-radius: 9px; background: #fffffff1; box-shadow: 0 2px 15px #273e3008; font-size: 9px; color: #7b8870; backdrop-filter: blur(8px); }
.map-legend > span { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.map-legend i { display: inline-block; flex: 0 0 auto; }
.legend-school { width: 10px; height: 10px; border: 2px solid white; outline: 1px solid #76975b; border-radius: 4px 4px 4px 0; background: var(--forest); transform: rotate(-45deg); }
.legend-stop { width: 7px; height: 7px; border: 1.5px solid #8e7fb3; border-radius: 50%; background: #f6f3fd; }
.legend-line { height: 0; width: 14px; border-top: 2px dashed #9a8db8; }
.map-footnote { position: absolute; left: 25px; bottom: 16px; z-index: 420; margin: 0; color: #809075; font-size: 9px; text-shadow: 0 1px 4px white, 0 1px 4px white; }
.detail-panel { position: absolute; top: 24px; right: 80px; bottom: 24px; width: 348px; max-width: calc(100% - 110px); z-index: 450; border: 1px solid #fefefee6; border-radius: 18px; background: var(--paper); box-shadow: 0 12px 48px #253b3120; overflow: hidden; animation: detail-in .22s ease; }
.detail-close { position: absolute; top: 14px; right: 13px; z-index: 2; background: #f1f4e9 !important; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 10px; background: transparent; color: #839275; flex: 0 0 auto; }
.icon-button .icon { width: 18px; height: 18px; }
.icon-button:hover { background: #e9eedf !important; color: var(--forest); }
.detail-content { height: 100%; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #d7dfce transparent; overscroll-behavior: contain; }
.detail-header { padding: 29px 24px 21px; border-bottom: 1px solid var(--line); }
.detail-header .school-district, .detail-district, .detail-eyebrow { font-size: 10px; color: #89987b; margin: 0 0 5px; }
.detail-header h2, .detail-title { margin: 0 30px 7px 0; font-size: 23px; letter-spacing: -.065em; line-height: 1.4; font-weight: 700; }
.detail-header .status-badge { margin-top: 2px; font-size: 9px; padding: 5px 7px; }
.detail-address, .detail-header address, .detail-header > p { font-size: 10px; color: #8b9681; margin: 5px 0; font-style: normal; line-height: 1.7; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; font-size: 10px; color: #8a957e; margin-top: 9px; }
.detail-stats { display: flex; gap: 21px; padding-top: 14px; font-size: 10px; color: #8a967e; }
.detail-stats strong { font-size: 19px; color: var(--forest); margin-right: 3px; font-weight: 650; }
.detail-section { padding: 21px 24px; border-bottom: 1px solid var(--line); }
.detail-section h3, .section-title { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 650; margin: 0 0 13px; color: #4e6340; }
.detail-section h3 span { color: #9aa58d; font-size: 10px; font-weight: 400; }
.detail-section p { font-size: 11px; color: #8b9682; line-height: 1.85; margin: 7px 0; }
.route-filters, .route-chips, .route-selector { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 15px; }
.route-chip { display: inline-flex; justify-content: center; align-items: center; gap: 5px; min-height: 32px; border: 1px solid #e0e5d6; border-radius: 7px; padding: 7px 10px; background: white; color: #859175; font-size: 10px; line-height: 1.3; }
.route-chip:hover { border-color: #aebf93; color: var(--forest); }
.route-chip.selected, .route-chip[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: white; }
.route-chip i, .route-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }
.route-description, .route-note { margin: 10px 0 15px !important; padding: 10px 12px; font-size: 10px !important; background: var(--lavender); color: #8b7aab !important; border-radius: 8px; line-height: 1.7 !important; }
.route-title { margin: 14px 0 10px; display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 650; }
.route-title span { font-size: 10px; font-weight: 400; color: #97a189; }
.stop-list, .stops-list { list-style: none; padding: 0; margin: 0; }
.stop-item { position: relative; display: flex; align-items: flex-start; gap: 12px; min-height: 59px; padding: 1px 0 15px; border: 0; width: 100%; text-align: left; background: transparent; }
button.stop-item { border-radius: 8px; }
button.stop-item:hover { background: #f0f4e7; }
.stop-item:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 23px; bottom: 0; border-left: 1px dashed #d6ddc8; }
.stop-number { display: grid; place-items: center; width: 22px; height: 22px; min-width: 22px; border: 1px solid #d4dec2; border-radius: 50%; background: #f3f7ea; color: #92a171; font-size: 9px; line-height: 1; margin-top: 1px; position: relative; z-index: 1; }
.stop-item.active .stop-number, .stop-item.selected .stop-number { background: var(--forest); border-color: var(--forest); color: white; }
.stop-info, .stop-main { flex: 1; min-width: 0; }
.stop-name, .stop-item strong { display: block; font-size: 12px; font-weight: 550; color: #536b43; line-height: 1.7; }
.stop-item p, .stop-item small, .stop-detail, .stop-address { margin: 1px 0 0; color: #9ca58f; font-size: 9px; line-height: 1.7; display: block; }
.stop-time { font-size: 11px; font-variant-numeric: tabular-nums; color: #7c8e66; font-weight: 550; white-space: nowrap; line-height: 24px; margin-left: auto; }
.source-link { display: inline-flex; align-items: center; gap: 5px; color: #758d59; font-size: 10px; text-decoration: none; text-underline-offset: 3px; line-height: 1.7; }
.source-link:hover { text-decoration: underline; }
.source-link .icon { width: 12px; height: 12px; }
.source-card { display: block; padding: 12px 14px; border: 1px solid #e1e7d7; border-radius: 9px; background: #fff; margin: 8px 0; font-size: 11px; text-decoration: none; }
.source-card span, .source-date, .checked-date { display: block; margin-top: 3px; color: #9ca68f; font-size: 9px; }
.detail-notice, .data-notice, .no-routes { padding: 15px; margin: 16px 24px; border-radius: 10px; background: #eeebf6; color: #88789f; font-size: 11px; line-height: 1.85; }
.detail-notice h3, .no-routes h3 { font-size: 13px; color: #796790; margin: 0 0 5px; }
.detail-notice p, .no-routes p { margin: 0; }
.detail-actions { display: flex; gap: 8px; padding-top: 13px; }
.primary-button, .detail-actions a, .detail-actions button { display: inline-flex; justify-content: center; align-items: center; min-height: 39px; gap: 6px; padding: 0 13px; border-radius: 8px; border: 1px solid #d6dfc8; background: #edf4df; color: #68834c; font-size: 10px; text-decoration: none; }
.sheet-handle { display: none; }
.school-marker, .school-pin { display: grid; place-items: center; border: 3px solid white; color: white; background: var(--forest); border-radius: 12px; box-shadow: 0 3px 12px #2c43373d; }
.school-marker.selected, .school-marker.active { background: #7c9656; box-shadow: 0 0 0 7px #b6d18f45, 0 3px 12px #2c43373d; }
.school-marker svg, .school-pin svg { width: 18px; height: 18px; }
.stop-marker, .stop-pin { display: grid; place-items: center; border: 2px solid white; border-radius: 50%; box-shadow: 0 1px 8px #4f455133; color: white; font-size: 10px; font-weight: 650; }
.sources-dialog { width: 600px; max-width: calc(100% - 36px); max-height: min(760px, 86dvh); border: 1px solid #e6ebdd; border-radius: 21px; background: var(--paper); box-shadow: 0 22px 90px #213a3033; padding: 0; color: var(--ink); overflow: hidden; }
.sources-dialog::backdrop { background: #233a304d; backdrop-filter: blur(4px); }
.sources-dialog[open] { display: flex; flex-direction: column; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 26px 28px 23px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.dialog-header .eyebrow { font-size: 8px; margin-bottom: 7px; }
.dialog-header h2 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -.055em; }
.sources-content { overflow-y: auto; padding: 20px 28px 27px; font-size: 12px; line-height: 1.9; color: #7d8a70; overscroll-behavior: contain; }
.sources-content h3 { font-size: 14px; font-weight: 650; color: #526c42; margin: 20px 0 7px; }
.sources-content h3:first-child { margin-top: 0; }
.sources-content p { margin: 7px 0 13px; }
.sources-content ul, .sources-content ol { padding-left: 18px; }
.sources-content li { padding-left: 2px; margin-bottom: 7px; }
.sources-content a { color: #66834b; text-underline-offset: 3px; }
.sources-content strong { color: #536d42; font-weight: 600; }
.sources-content table { width: 100%; border-collapse: collapse; font-size: 10px; line-height: 1.7; }
.sources-content th, .sources-content td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sources-content th { color: #58714a; font-weight: 600; }
.dialog-footer { display: flex; align-items: flex-start; gap: 8px; margin: 0 28px; padding: 15px 0 21px; border-top: 1px solid var(--line); flex-shrink: 0; }
.dialog-footer .icon { width: 14px; height: 14px; margin-top: 2px; color: #a0aa91; }
.dialog-footer p { margin: 0; font-size: 10px; line-height: 1.7; color: #9aa48d; }
.toast { position: fixed; z-index: 2000; left: 50%; bottom: 28px; transform: translateX(-50%); max-width: calc(100% - 40px); padding: 13px 19px; border-radius: 12px; background: var(--forest-deep); box-shadow: 0 6px 30px #19362630; color: white; text-align: center; font-size: 12px; line-height: 1.7; animation: toast-in .2s ease; }
.error-state, .loading-state { padding: 26px; text-align: center; font-size: 12px; line-height: 1.8; color: #8c987d; }
.error-state { color: #9b785f; }
.noscript-message { position: fixed; z-index: 3000; top: 0; left: 0; width: 100%; padding: 16px; background: var(--forest); color: white; text-align: center; }
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes detail-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toast-in { from { opacity: 0; margin-bottom: -5px; } to { opacity: 1; margin-bottom: 0; } }

@media (min-width: 1440px) {
  :root { --sidebar-width: 390px; }
  .sidebar-intro { padding-left: 30px; padding-right: 30px; }
  .filter-panel { padding-left: 28px; padding-right: 28px; }
  .summary-stats { margin-left: 28px; margin-right: 28px; }
  .results-header { margin-left: 28px; margin-right: 28px; }
  .school-list { padding-left: 18px; padding-right: 18px; }
  .detail-panel { width: 370px; }
}

@media (min-width: 1024px) and (max-width: 1100px) {
  :root { --sidebar-width: 330px; }
  .site-header { padding-left: 23px; padding-right: 23px; gap: 15px; }
  .brand { gap: 9px; }
  .brand-caption { font-size: 9px; padding-left: 10px; }
  .header-context { font-size: 10px; }
  .sidebar-intro { padding-left: 22px; padding-right: 22px; }
  h1 { font-size: 25px; }
  .filter-panel { padding-left: 20px; padding-right: 20px; }
  .search-field kbd { display: none; }
  .summary-stats { margin-left: 20px; margin-right: 20px; }
  .results-header { margin-left: 20px; margin-right: 20px; }
  .results-hint { display: none; }
  .school-list { padding-left: 10px; padding-right: 10px; }
  .map-heading { left: 18px; top: 18px; padding: 13px 15px; }
  .map-heading h2 { font-size: 16px; }
  .map-heading p { max-width: 230px; }
  .map-controls { top: 18px; right: 17px; }
  .detail-panel { right: 17px; top: 122px; bottom: 20px; width: 310px; max-width: calc(100% - 34px); }
  .detail-header { padding-left: 21px; padding-right: 21px; }
  .detail-section { padding-left: 21px; padding-right: 21px; }
  .map-legend { left: 18px; }
}

@media (max-height: 800px) and (min-width: 1024px) {
  .sidebar-intro { padding-top: 20px; padding-bottom: 17px; }
  h1 { font-size: 24px; }
  .intro-copy { margin-top: 8px; }
  .summary-stats { padding-top: 10px; padding-bottom: 12px; }
  .summary-stats strong { font-size: 19px; }
}

@media (max-width: 1023px) {
  body { font-size: 14px; }
  .site-header { height: 66px; min-height: 66px; padding: 0 18px; gap: 10px; }
  .brand { flex: 1; gap: 9px; }
  .brand-symbol { width: 32px; height: 34px; border-radius: 10px; }
  .brand-symbol .icon { width: 20px; height: 20px; }
  .brand-name { font-size: 25px; }
  .brand-caption { font-size: 9px; padding-left: 10px; margin-left: 3px; line-height: 1.5; }
  .header-context { display: none; }
  .sources-button { min-height: 44px; min-width: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; }
  .sources-button .icon { width: 20px; height: 20px; }
  .sources-button > span { display: none; }
  .mobile-view-switch { display: flex; gap: 5px; padding: 0 17px 10px; background: var(--paper); z-index: 600; border-bottom: 1px solid var(--line); }
  .view-button { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 7px; flex: 1; background: #eff2e7; border-radius: 9px; color: #95a087; font-size: 12px; font-weight: 550; }
  .view-button .icon { width: 15px; height: 15px; }
  .view-button.active, .view-button[aria-pressed="true"] { background: var(--forest); color: #f0f6e6; box-shadow: 0 2px 5px #243b2f0d; }
  .app-main { display: block; min-height: 0; }
  .sidebar { position: absolute; inset: 0; z-index: 450; border: 0; background: transparent; pointer-events: none; }
  .sidebar-intro, .summary-stats, .sidebar-footer { display: none; }
  .filter-panel { pointer-events: auto; margin: 12px 13px 0; padding: 10px; border: 1px solid #ffffffe6; border-radius: 14px; background: #f8f9f3f5; box-shadow: var(--shadow); backdrop-filter: blur(12px); }
  .search-field { height: 44px; border-radius: 9px; padding-left: 12px; }
  .search-field input { font-size: 12px; height: 42px; }
  .search-field > .icon { width: 17px; height: 17px; }
  .search-field kbd { display: none; }
  .filter-row { margin-top: 7px; gap: 7px; }
  .district-field select { height: 44px; font-size: 11px; }
  .favorite-filter { min-height: 44px; padding-left: 14px; padding-right: 14px; font-size: 11px; }
  .availability-toggle { min-height: 44px; margin-bottom: -4px; font-size: 11px; gap: 7px; }
  .toggle-track { width: 27px; height: 16px; }
  .toggle-track > span { width: 12px; height: 12px; }
  .availability-toggle input:checked + .toggle-track > span { transform: translateX(11px); }
  .school-results { position: absolute; bottom: 34px; left: 0; right: 0; height: 163px; padding: 0; flex: none; pointer-events: auto; }
  .results-header { margin: 0 22px 9px; }
  .results-header h2 { font-size: 11px; padding: 3px 8px; margin-left: -8px; border-radius: 6px; background: #f8f9f3ec; }
  #resultCount { font-size: 10px; }
  .results-hint { display: none; }
  .school-list { display: flex; gap: 9px; overflow-x: auto; overflow-y: hidden; padding: 0 13px 5px; scroll-snap-type: x mandatory; scrollbar-width: none; align-items: stretch; flex: 1; }
  .school-list::-webkit-scrollbar { display: none; }
  .school-card { min-width: calc(100vw - 51px); max-width: calc(100vw - 51px); width: auto; height: 100%; padding: 13px 17px; margin: 0; background: #fffffff7; border: 1px solid #e1e7d8; border-radius: 13px; box-shadow: var(--shadow); scroll-snap-align: start; }
  .school-card.active { background: #f1f7e5fa; }
  .school-card .school-district { font-size: 10px; margin-bottom: 2px; }
  .school-name { font-size: 15px; }
  .school-card .school-meta { font-size: 10px; gap: 7px; margin-top: 6px; }
  .status-badge { font-size: 9px; padding: 4px 6px; }
  .favorite-btn { width: 44px; height: 44px; right: 6px; top: 9px; }
  .favorite-btn .icon, .favorite-btn svg { width: 19px; height: 19px; }
  .school-skeleton { width: calc(100vw - 51px); min-width: calc(100vw - 51px); height: 100%; border-radius: 13px; background: #fffffff7; margin: 0; }
  .empty-state { margin: 0 13px; padding: 16px; background: #fffffff7; box-shadow: var(--shadow); border-radius: 13px; }
  .empty-icon { display: none; }
  .empty-state h3 { font-size: 12px; margin-bottom: 3px; }
  .empty-state p { font-size: 10px; }
  .empty-state p br { display: none; }
  .map-workspace { height: 100%; width: 100%; }
  .map-heading { display: none; }
  .map-controls { top: 183px; right: 14px; gap: 7px; }
  .map-control { width: 44px; height: 44px; border-radius: 12px; }
  .map-control .icon { width: 18px; height: 18px; }
  .leaflet-top.leaflet-left { top: 174px; left: 3px; }
  .maplibregl-ctrl-top-left { top: 174px; left: 3px; }
  .maplibregl-ctrl-top-left .maplibregl-ctrl-group { display: none; }
  .maplibregl-ctrl-attrib, .maplibregl-ctrl-attrib-inner { font-size: 8px; }
  .leaflet-control-zoom { display: none; }
  .leaflet-control-attribution { font-size: 8px !important; max-width: 100%; line-height: 1.6; }
  .map-legend { top: 186px; bottom: auto; left: 14px; right: auto; gap: 10px; padding: 8px 11px; font-size: 8px; border-radius: 8px; max-width: calc(100% - 82px); }
  .map-legend span { gap: 5px; }
  .map-footnote { bottom: 14px; left: 16px; right: 10px; font-size: 8px; max-width: 75%; }
  .detail-panel { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-width: 100%; height: 55%; max-height: calc(100% - 174px); border-radius: 23px 23px 0 0; border-bottom: 0; border-left: 0; border-right: 0; box-shadow: 0 -8px 45px #213a301c; z-index: 500; animation: sheet-in .24s ease; }
  .sheet-handle { display: block; position: absolute; z-index: 2; top: 9px; left: calc(50% - 17px); width: 34px; height: 4px; border-radius: 4px; background: #d9e0ce; }
  .detail-close { top: 18px; right: 15px; width: 44px; height: 44px; border-radius: 50%; background: #edf2e5 !important; }
  .detail-content { padding-bottom: env(safe-area-inset-bottom, 0px); }
  .detail-header { padding: 26px 24px 18px; }
  .detail-header h2, .detail-title { font-size: 23px; margin-right: 42px; }
  .detail-header .school-district, .detail-district, .detail-eyebrow { font-size: 10px; }
  .detail-address, .detail-header address, .detail-header > p { font-size: 11px; }
  .detail-section { padding: 20px 24px; }
  .detail-section h3 { font-size: 13px; }
  .route-chip { min-height: 40px; padding: 9px 12px; font-size: 11px; }
  .stop-item { min-height: 62px; padding-bottom: 15px; }
  .stop-name, .stop-item strong { font-size: 13px; }
  .stop-time { font-size: 12px; }
  .stop-item small, .stop-detail, .stop-address { font-size: 10px; }
  .source-link { min-height: 35px; font-size: 11px; }
  .detail-actions a, .detail-actions button, .primary-button { min-height: 44px; font-size: 11px; }
  body[data-mobile-view="map"]:has(#detailPanel:not([hidden])) .school-results { display: none; }
  body[data-mobile-view="map"]:has(#detailPanel:not([hidden])) .map-legend { display: none; }
  body[data-mobile-view="map"]:has(#detailPanel:not([hidden])) .map-footnote { display: none; }
  body[data-mobile-view="list"] .sidebar { background: var(--paper); pointer-events: auto; }
  body[data-mobile-view="list"] .filter-panel { flex: 0 0 auto; margin-bottom: 0; box-shadow: none; border: 0; background: transparent; padding: 0 4px; backdrop-filter: none; }
  body[data-mobile-view="list"] .summary-stats { display: flex; padding: 12px 0; margin: 8px 18px 0; gap: 20px; flex: 0 0 auto; justify-content: flex-start; }
  body[data-mobile-view="list"] .summary-stats > div, body[data-mobile-view="list"] .summary-stat { flex-direction: row; align-items: baseline; gap: 5px; }
  body[data-mobile-view="list"] .summary-stats strong { font-size: 17px; }
  body[data-mobile-view="list"] .school-results { position: static; flex: 1; min-height: 0; height: auto; padding-top: 16px; }
  body[data-mobile-view="list"] .results-header { margin: 0 21px 8px; }
  body[data-mobile-view="list"] .results-header h2 { font-size: 12px; background: transparent; }
  body[data-mobile-view="list"] .results-hint { display: block; font-size: 9px; }
  body[data-mobile-view="list"] .school-list { display: block; overflow-y: auto; overflow-x: hidden; padding: 0 13px 18px; scroll-snap-type: none; }
  body[data-mobile-view="list"] .school-card { width: 100%; min-width: 0; max-width: 100%; height: auto; min-height: 104px; margin-bottom: 7px; background: white; box-shadow: none; border-color: #e6eadf; padding: 14px 17px; }
  body[data-mobile-view="list"] .school-card.active { background: var(--lime-light); border-color: #d9e6bc; }
  body[data-mobile-view="list"] .school-skeleton { width: 100%; min-width: 0; max-width: 100%; height: 100px; margin-bottom: 8px; }
  body[data-mobile-view="list"] .map-workspace { visibility: hidden; pointer-events: none; }
  body[data-mobile-view="list"] .empty-state { box-shadow: none; margin-top: 10px; }
  body[data-mobile-view="list"] .sidebar-footer { display: flex; margin: 0 19px; padding-top: 11px; padding-bottom: max(13px, env(safe-area-inset-bottom)); }
  .sources-dialog { max-width: calc(100% - 24px); width: 100%; max-height: 85dvh; border-radius: 18px; }
  .dialog-header { padding: 24px 22px 20px; }
  .dialog-header h2 { font-size: 20px; }
  .dialog-header .icon-button { width: 44px; height: 44px; }
  .sources-content { padding: 19px 22px 24px; font-size: 12px; }
  .dialog-footer { margin: 0 22px; padding-bottom: 19px; }
  .dialog-footer p { font-size: 10px; }
  .toast { bottom: 19px; width: max-content; max-width: calc(100% - 32px); padding: 13px 17px; font-size: 11px; border-radius: 10px; }
  @keyframes sheet-in { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
}

@media (max-width: 375px) {
  .brand-caption { display: none; }
  .site-header { height: 60px; min-height: 60px; }
  .filter-panel { margin-left: 10px; margin-right: 10px; }
  .school-card { min-width: calc(100vw - 43px); max-width: calc(100vw - 43px); }
  .school-list { padding-left: 10px; padding-right: 10px; }
  .map-legend { gap: 8px; font-size: 7px; }
}

@media (max-height: 700px) and (max-width: 1023px) {
  .site-header { height: 58px; min-height: 58px; }
  .mobile-view-switch { padding-bottom: 8px; }
  .view-button { min-height: 44px; }
  .filter-panel { margin-top: 9px; padding: 8px; }
  .availability-toggle { min-height: 44px; }
  .school-results { height: 148px; bottom: 29px; }
  .school-card { padding-top: 11px; padding-bottom: 11px; }
  .map-controls { top: 173px; }
  .map-legend { top: 176px; }
  .detail-panel { max-height: calc(100% - 165px); height: 54%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
  .school-card, .map-control, .map-heading, .map-legend, .detail-panel, .search-field, .view-button { border: 1px solid CanvasText; }
  .toggle-track { border: 1px solid ButtonText; }
  .favorite-filter[aria-pressed="true"], .school-card.active { outline: 2px solid Highlight; }
}
/* Interactive school and route overlays on the shared LH Lease map. */
.school-map-marker { width:36px;height:36px;padding:0;display:grid;place-items:center;background:#fff;border:2px solid #a6ad9f;border-radius:11px;color:#778572;box-shadow:0 2px 8px #233f322b;cursor:pointer; }
.school-map-marker.has-routes {background:#f1f6e7;border-color:#648e51;color:#355c42;}
.school-map-marker.selected {background:#2d493d;border-color:#d6ed8a;color:#d6ed8a;z-index:3;}
.school-map-marker .icon {width:17px;height:17px;}
.school-map-marker img {display:block;width:28px;height:28px;object-fit:contain;border-radius:3px;}
.school-map-marker span {display:block;position:absolute;bottom:41px;left:50%;transform:translateX(-50%);font-size:11px;font-weight:650;line-height:1.45;background:#fffffff2;border:1px solid #e4eadc;border-radius:6px;padding:4px 7px;box-shadow:0 2px 10px #263c3118;white-space:nowrap;max-width:92px;overflow:hidden;text-overflow:ellipsis;color:#2d493d;pointer-events:none;}
.school-map-marker:hover span,.school-map-marker:focus-visible span,.school-map-marker.selected span {max-width:160px;z-index:4;border-color:#bdcda9;background:white;}
.map-zoomed-out .school-map-marker span,.school-map-marker.compact span {font-size:10px;max-width:70px;padding:3px 5px;}
.map-zoomed-out .school-map-marker.selected span,.map-zoomed-out .school-map-marker:hover span,.map-zoomed-out .school-map-marker:focus-visible span {max-width:160px;}
.school-map-marker:focus-visible,.stop-map-marker:focus-visible {outline:3px solid #a2bd69;outline-offset:3px;}
.stop-map-marker {display:grid;place-items:center;min-width:28px;height:28px;padding:0 4px;border:2px solid white;background:#317157;color:white;border-radius:50%;font-size:11px;font-weight:700;box-shadow:0 2px 8px #233f3240;cursor:pointer;}
.stop-map-marker.approximate {background:#f0ebfa;color:#6c548c;border-color:#8a75ae;}
.my-location {width:18px;height:18px;border:3px solid white;background:#287eb4;border-radius:50%;box-shadow:0 0 0 9px #287eb422;}
.stop-popup strong {display:block;margin-top:4px;}.stop-popup small {font-size:10px;color:#7d8d72;}.stop-popup p {margin:6px 0;}
.school-card-bottom {margin-top:9px;}.status-badge .icon {width:11px;height:11px;}
.detail-actions {display:flex;align-items:center;gap:18px;margin-top:12px;flex-wrap:wrap;}
.text-button {padding:0;display:flex;gap:5px;align-items:center;background:transparent;color:#6e845c;font-size:11px;min-height:32px;}.text-button .icon {width:12px;height:12px;}
.direction-switch {display:flex;gap:4px;padding:4px;background:#e9edde;border-radius:10px;margin-bottom:15px;}
.direction-button {min-height:35px;border-radius:7px;flex:1;background:transparent;color:#819270;font-size:12px;}.direction-button.selected {background:white;color:#2d493d;box-shadow:0 1px 5px #263b3210;font-weight:650;}
.route-summary {display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#88957b;}.route-title h3 {margin:0;}
.stop-item {display:block;padding:0 0 12px;}.stop-focus {display:flex;align-items:flex-start;gap:10px;width:100%;padding:5px 0;background:transparent;text-align:left;border-radius:7px;min-height:48px;}.stop-focus:hover {background:#edf2e3;}.stop-focus:disabled {cursor:default;opacity:1;}
.stop-quality {display:block;font-size:10px;line-height:1.6;color:#929b88;font-weight:400;margin-top:2px;}.stop-item.unmapped .stop-number {background:#f0eee9;color:#a3a59d;border-color:#dedfd9;}.stop-item.unmapped .stop-name {color:#909885;}
.stop-map-link {font-size:10px;color:#8c9c7b;margin-left:32px;text-decoration:none;}.stop-map-link:hover {text-decoration:underline;}
.stop-time {font-size:12px;max-width:76px;white-space:normal;line-height:1.8;text-align:right;}
.stop-warning {display:block;margin:6px 0 0 32px;padding:7px 9px;border-radius:6px;background:#fff0cf;color:#946027;font-size:10px;line-height:1.7;}
.accuracy-note {display:flex;gap:8px;padding:10px 12px;border-radius:8px;background:#eef2e5;font-size:10px!important;}.accuracy-note .icon {width:15px;height:15px;flex-shrink:0;margin-top:3px;}
.source-block {margin-top:18px;border-top:1px solid #e1e7d8;padding-top:15px;}.source-block strong {display:block;font-size:11px;margin-bottom:7px;}.source-block p {font-size:10px!important;}
.no-route-message h3 {font-size:16px;margin:14px 0 10px;}.no-route-message>.icon {color:#8e9b78;}.no-route-message p {font-size:12px;}.muted {color:#8f9986!important;}.school-info p {font-size:10px!important;}
.source-school-row {display:grid;grid-template-columns:1fr 1.25fr auto;gap:10px;border-bottom:1px solid #e4e8df;padding:12px 0;font-size:11px;}.source-school-row strong {font-weight:600;}.source-school-row>span {color:#8f9885;}.sources-callout {background:#eef4df;border-radius:12px;padding:16px 18px;}.sources-callout strong {font-size:14px;}.sources-content h3 {margin-top:28px;}.sources-content li {margin:8px 0;}
.search-field input,.district-field select,.favorite-filter {font-size:12px;}.school-card .school-meta {font-size:11px;}.school-card .school-district {font-size:10px;}.school-name {font-size:16px;}.status-badge {font-size:10px;}.availability-toggle {font-size:11px;}.favorite-btn {width:44px;height:44px;top:10px;right:6px;}.route-chip {min-height:38px;font-size:11px;}.detail-section p {font-size:12px;}.source-link {font-size:11px;}
@media(max-width:1023px){.school-map-marker {width:34px;height:34px;border-radius:10px;}.school-map-marker span {bottom:39px;}.maplibregl-ctrl-top-right {top:175px;right:8px;}.maplibregl-ctrl-bottom-right {bottom:185px;}.maplibregl-ctrl-bottom-left {bottom:185px;}.route-chip {min-height:44px;}.source-school-row {grid-template-columns:1fr 1fr auto;font-size:10px;}.stop-focus {min-height:52px;}.school-list .school-card .school-meta {font-size:10px;}.search-field input,.district-field select {font-size:16px;}.direction-button {min-height:44px;} }

/* Route previews are illustrative; controls remain reachable above the map. */
.animation-controls { position:absolute; bottom:75px; left:24px; z-index:440; width:300px; max-width:calc(100% - 48px); padding:15px 16px 12px; border:1px solid #ffffffed; border-radius:14px; background:#fffffff5; box-shadow:var(--shadow); backdrop-filter:blur(12px); pointer-events:auto; }
.animation-title { margin:0; color:var(--forest); font-size:12px; line-height:1.5; font-weight:650; letter-spacing:-.035em; }
.animation-meta { margin:3px 0 11px; color:#8c967e; font-size:10px; line-height:1.5; }
.animation-buttons { display:flex; align-items:center; gap:7px; }
.animation-buttons button { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-width:44px; min-height:44px; padding:0 13px; border-radius:9px; font-size:11px; font-weight:550; line-height:1.3; }
.animation-buttons .icon { width:15px; height:15px; }
.animation-play { flex:1; background:var(--forest); color:white; }
.animation-play:hover { background:#3f5c44; }
.animation-restart { background:#eef3e4; color:#708557; border:1px solid #e0e7d4; }
.animation-restart:hover { background:#e5edda; }
.animation-progress { display:flex; align-items:center; width:100%; min-height:25px; margin-top:7px; }
.animation-progress input[type="range"] { width:100%; height:20px; margin:0; accent-color:#789957; cursor:pointer; background:transparent; }
.animation-progress input[type="range"]:focus-visible { outline-offset:2px; border-radius:4px; }
.animation-status { display:block; margin:2px 0 0; color:#849374; font-size:10px; line-height:1.6; font-variant-numeric:tabular-nums; }
.map-workspace:has(#animationControls:not([hidden])) .map-footnote { bottom:15px; }

@media (min-width:1024px) and (max-width:1100px) {
  .animation-controls { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:2px 10px; top:18px; bottom:auto; left:18px; width:calc(100% - 94px); max-width:430px; padding:10px 12px; }
  .animation-title { grid-column:1; grid-row:1; font-size:11px; }
  .animation-meta { grid-column:1; grid-row:2; margin:0; font-size:9px; }
  .animation-buttons { grid-column:2; grid-row:1 / span 3; align-self:center; gap:5px; }
  .animation-buttons button { padding:0 9px; font-size:10px; }
  .animation-progress { grid-column:1; grid-row:3; min-height:19px; margin-top:0; }
  .animation-status { grid-column:1 / -1; grid-row:4; margin:0; font-size:9px; }
  .map-workspace:has(#animationControls:not([hidden])) .map-heading { visibility:hidden; }
}

@media (max-width:1023px) {
  .animation-controls { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:2px 9px; top:175px; bottom:auto; left:14px; right:70px; width:auto; max-width:none; padding:10px 11px; border-radius:11px; }
  .animation-title { grid-column:1; grid-row:1; font-size:11px; }
  .animation-meta { grid-column:1; grid-row:2; margin:0; font-size:9px; }
  .animation-buttons { grid-column:2; grid-row:1 / span 3; align-self:center; gap:5px; }
  .animation-buttons button { min-height:44px; min-width:44px; padding:0 8px; font-size:10px; }
  .animation-buttons .icon { width:14px; height:14px; }
  .animation-progress { grid-column:1; grid-row:3; margin-top:0; min-height:20px; }
  .animation-progress input[type="range"] { height:20px; }
  .animation-status { grid-column:1 / -1; grid-row:4; margin:0; font-size:9px; line-height:1.5; }
  .map-workspace:has(#animationControls:not([hidden])) .map-legend { display:none; }
  .map-workspace:has(#animationControls:not([hidden])) .detail-panel { height:42%; }
}

@media (min-width:1024px) and (max-height:600px) {
  .sidebar { overflow-y:auto; overscroll-behavior:contain; }
  .sidebar-intro,.filter-panel,.summary-stats { flex-shrink:0; }
  .school-results { flex:0 0 auto; min-height:200px; }
  .school-list { flex:none; overflow:visible; }
  .sidebar-footer { flex-shrink:0; }
}
/* Preview control markup and small-screen layout. */
.animation-controls {display:block;}
.animation-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;}
.animation-heading>div {min-width:0;}
.animation-title {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.animation-meta {display:block;margin:2px 0 0;font-size:9px;white-space:nowrap;}
.animation-direction {font-size:10px;flex-shrink:0;color:#6f845d;background:#eef4df;border-radius:6px;padding:3px 7px;}
.animation-buttons {display:grid;grid-template-columns:auto 44px auto minmax(45px,1fr);gap:6px;margin-top:10px;}
.animation-buttons .animation-play {min-width:72px;padding:0 10px;}
.animation-speed-label {display:flex;flex-direction:column;align-items:center;font-size:8px;color:#87917b;line-height:1.2;}
.animation-speed-label select {border:0;background:#f0f4e7;border-radius:5px;font-size:12px;min-height:28px;padding:0 3px;color:#536944;}
input.animation-progress {display:block;margin:0;width:100%;height:32px;min-width:0;accent-color:#55794b;cursor:pointer;}
.animated-bus {display:flex;align-items:center;flex-direction:column;pointer-events:none;z-index:8;filter:drop-shadow(0 3px 3px #26423640);}
.animated-bus-glyph {display:grid;place-items:center;width:43px;height:39px;border:2px solid white;border-radius:13px;background:#d8ee92;font-size:27px;line-height:1;}
.animated-bus-tag {font-size:8px;line-height:1.4;border-radius:4px;background:#2d493d;color:white;padding:2px 5px;white-space:nowrap;margin-top:1px;}
@media(min-width:1024px) and (max-width:1100px){.animation-controls {width:calc(100% - 94px);display:block;}.animation-buttons {margin-top:8px;}}
@media(max-width:1023px){.animation-controls {display:block;top:175px;left:14px;right:70px;max-width:430px;padding:10px 11px;}.animation-title {font-size:11px;}.animation-buttons {margin-top:7px;}.animation-status {margin-top:3px;font-size:9px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}.map-workspace:has(#animationControls:not([hidden])) .detail-panel {height:42%;}.maplibregl-ctrl-top-right{top:175px;}}
@media(max-width:1023px) and (max-height:600px){.filter-panel{padding:6px;margin:7px 10px 0;}.filter-row,.availability-toggle{display:none;}.animation-controls{top:70px;padding:7px 10px;}.animation-meta{display:none;}.animation-buttons{margin-top:3px;}.animation-status{display:none;}.animation-buttons button{min-height:36px;}.map-controls{top:75px;}.maplibregl-ctrl-top-right{top:75px;}.map-workspace:has(#animationControls:not([hidden])) .detail-panel{height:40%;}.school-results{height:135px;bottom:25px;}}
.animation-buttons input.animation-progress {grid-column:auto;grid-row:auto;margin:0;}
@media(max-width:1023px){
 body[data-mobile-view="map"]:has(#detailPanel:not([hidden])) .filter-row,
 body[data-mobile-view="map"]:has(#detailPanel:not([hidden])) .availability-toggle {display:none;}
 body[data-mobile-view="map"]:has(#detailPanel:not([hidden])) .animation-controls {top:84px;}
 body[data-mobile-view="map"]:has(#detailPanel:not([hidden])) .map-controls {top:92px;}
 body[data-mobile-view="map"]:has(#detailPanel:not([hidden])) .maplibregl-ctrl-top-right {top:92px;}
}
.school-emblem {display:grid;place-items:center;width:30px;height:30px;overflow:hidden;border-radius:4px;background:white;}
.school-map-marker .school-emblem img {height:30px;width:auto;max-width:none;object-fit:initial;object-position:left;flex-shrink:0;justify-self:start;}
.school-map-marker .school-emblem.emblem img {width:28px;height:28px;object-fit:contain;justify-self:center;}
.school-map-marker.selected {background:white;box-shadow:0 0 0 3px #b7d67f55,0 2px 8px #233f322b;}
.detail-school-identity {display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.detail-emblem {width:145px;height:42px;object-fit:contain;object-position:left;}
.detail-school-identity .detail-title {flex-basis:100%;margin-top:6px;}
.year-selector {display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:#718060;margin-bottom:15px;}
.year-selector select {max-width:210px;background:white;border:1px solid #dce4d2;border-radius:8px;min-height:40px;padding:0 8px;color:#334f38;font-size:12px;}
.source-year-alert {padding:10px 12px;border-radius:8px;background:#fff0cf;color:#886020!important;font-weight:600;}
.source-block>.source-link {display:block;margin:4px 0;}.source-school-row small {display:block;font-size:9px;color:#98a08e;margin-top:3px;}
@media(max-width:1023px){.year-selector select{min-height:44px;font-size:16px;}}

.departure-summary {color:#345944!important;font-weight:650;background:#edf3e6;padding:9px 12px;border-radius:8px;}

.stop-map-marker.estimated {background:#fff2d9;color:#8a541d;border:2px dashed #b87e32;}
.stop-item.estimated .stop-number {background:#fff2d9;color:#8a541d;border-color:#c18a3b;}
.stop-item.estimated .stop-quality {color:#986b30;}
.location-legend {display:flex;gap:8px;padding:10px 12px;border-radius:8px;background:#fff5e3;color:#875d25!important;}
.location-legend i {flex:0 0 12px;height:12px;border-radius:50%;border:2px dashed #b87e32;background:#fff2d9;margin-top:5px;}

.stop-popover-overlay {z-index:460;}.stop-popover-overlay .maplibregl-popup-content {max-height:250px;overflow:auto;padding:12px 15px;}
.stop-popup small {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:14px;}
@media(max-width:1023px){.stop-popover-overlay .maplibregl-popup-content {max-height:180px;}}
@media(max-width:1023px) and (max-height:600px){.stop-popover-overlay .maplibregl-popup-content {max-height:140px;}}
