.explore-page { overflow: hidden; }
.explorer { position: fixed; inset: 12px; isolation: isolate; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: 0 3px 16px rgba(0,0,0,.06); }
.explore-filters.shell { width: calc(100% - 24px); }
.filter-controls { display: contents; }
.mobile-filters-toggle { display: none; }
#explore-map { position: absolute; inset: 0; z-index: 0; background: var(--map); }
.explore-filters { position: absolute; z-index: 5; top: 16px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 22px; background: rgba(252,251,248,.95); box-shadow: 0 5px 24px rgba(0,0,0,.08); backdrop-filter: blur(18px); }
.map-home { display: grid; place-items: center; flex: 0 0 44px; height: 40px; }
.map-home img { width: 40px; height: 20px; }
.explore-filters .map-search { flex: 1 1 180px; min-width: 130px; max-width: 250px; height: 40px; margin: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: inset 0 1px 4px rgba(0,0,0,.07); }
.explore-filters .map-search input { color: var(--ink); width: 100%; }
.explore-filters .map-search input::placeholder { color: var(--muted); }
.explore-filters .map-search button { color: var(--ink); }
.filter-menu { position: relative; }
.filter-menu summary, .filter-reset, .fit-results, .type-filter, .map-get-app { list-style: none; height: 40px; display: flex; gap: 12px; align-items: center; justify-content: center; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.type-filter { min-width: 125px; }
.type-filter[data-type="circular"] { background: var(--cyan); border-color: transparent; color: #10252d; }
.type-filter[data-type="point-to-point"] { background: #d8eae4; border-color: transparent; color: #183c31; }
.map-get-app { background: var(--cyan); color: #10252d; border-color: transparent; }
.filter-menu summary::-webkit-details-marker { display: none; }
.filter-menu summary > span[aria-hidden] { display: block; flex: 0 0 7px; width: 7px; height: 7px; margin-top: -3px; font-size: 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.filter-menu[open] summary { border-color: var(--accent); }
.filter-menu.is-filtered summary { background: var(--cyan); border-color: transparent; color: #10252d; }
.fit-results { margin-left: auto; }
.filter-reset { color: var(--muted); }
.filter-panel { position: absolute; top: 50px; left: 0; width: 290px; padding: 22px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 15px 45px rgba(0,0,0,.17); }
.filter-panel h2 { font-size: 21px; letter-spacing: -.025em; margin: 0 0 20px; }
.filter-panel p { font-size: 12px; color: var(--muted); line-height: 1.5; }
.filter-panel label { display: grid; gap: 8px; font-size: 12px; color: var(--muted); }
.filter-panel input, .filter-panel select { min-width: 0; width: 100%; height: 44px; padding: 10px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; }
.slider-fields { display: grid; gap: 8px; margin-top: 18px; }
.slider-fields label { display: flex; align-items: center; justify-content: space-between; }
.slider-fields output { color: var(--ink); font-weight: 650; }
.slider-fields input[type="range"] { height: 28px; padding: 0; border: 0; background: transparent; accent-color: #32849e; cursor: pointer; }
.filter-panel .filter-error { color: #a83124; min-height: 18px; }
.filter-apply { width: 100%; padding: 13px; background: var(--cyan); color: #10252d; border: 0; border-radius: 999px; font-weight: 650; }
.explore-sidebar { position: absolute; z-index: 3; top: 96px; bottom: 12px; left: 12px; width: clamp(360px, 28vw, 420px); display: flex; flex-direction: column; background: rgba(252,251,248,.97); border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 8px 30px rgba(0,0,0,.14); overflow: hidden; }
.results-heading { padding: 24px 24px 18px; border-bottom: 1px solid var(--line); }
.results-heading .eyebrow { font-size: 10px; }
.results-heading h1 { font-size: 29px; letter-spacing: -.035em; line-height: 1.1; margin: 12px 0; overflow-wrap: anywhere; }
.results-heading p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.6; }
.results-heading .area-context { margin-top: 6px; }
.explore-results { overflow-y: auto; overscroll-behavior: contain; padding: 14px; }
.explore-result { position: relative; padding: 10px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.explore-result.is-active { border-color: #1864d9; box-shadow: 0 0 0 2px rgba(145,221,249,.35); }
.result-preview { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 12px; width: 100%; border: 0; background: none; text-align: left; text-decoration: none; padding: 0; color: var(--ink); }
.result-preview img { width: 100%; height: 170px; border-radius: 13px; object-fit: cover; }
.result-preview:focus-visible { outline: 2px solid #17617d; outline-offset: 3px; border-radius: 13px; }
.result-tap-hint { display: none; font-size: 11px; color: var(--muted); margin-top: 8px; }
.result-preview-wrap { position: relative; }
.result-thumbnail.is-swipeable { touch-action: pan-y pinch-zoom; user-select: none; cursor: grab; }
.result-thumbnail.is-swipeable:active { cursor: grabbing; }
.result-photo-controls { position: absolute; top: 0; left: 0; right: 0; height: 170px; pointer-events: none; }
.result-photo-arrow { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid #ffffffa0; border-radius: 50%; background: #10252dbb; color: white; font-size: 25px; line-height: 1; cursor: pointer; pointer-events: auto; }
.photo-previous { left: 8px; }
.photo-next { right: 8px; }
.result-photo-arrow:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.result-photo-arrow svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.result-photo-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; padding: 5px 7px; border-radius: 999px; background: #10252d88; }
.result-photo-dots i { width: 5px; height: 5px; border-radius: 50%; background: #ffffff70; }
.result-photo-dots i.is-current { background: white; }
.result-photo-controls .photo-position { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.result-preview .result-thumbnail, .result-preview .result-thumbnail img { width: 100%; }
.result-preview .result-image-placeholder { display: grid; place-items: center; height: 170px; background: var(--map); color: var(--muted); font-size: 30px; }
.result-thumbnail-actions { position: absolute; top: 8px; right: 8px; display: flex; align-items: center; justify-content: flex-end; gap: 4px; pointer-events: none; }
.result-thumbnail-actions > .verification-badge { margin: 0; padding: 4px 6px; font-size: 8px; gap: 3px; box-shadow: 0 2px 8px #10252d20; }
.result-thumbnail-actions > .verification-badge svg { width: 12px; height: 12px; flex-basis: 12px; }
.result-thumbnail-actions > .result-quick-save { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; min-height: 28px; margin: 0; padding: 0; background: #fffffff5; color: #10252d; border-radius: 50%; border: 1px solid #ffffffb3; font-size: 19px; line-height: 1; box-shadow: 0 2px 8px #10252d20; pointer-events: auto; cursor: pointer; }
.result-thumbnail-actions > .result-quick-save[aria-pressed="true"] { background: var(--cyan); border-color: var(--cyan); }
.result-thumbnail-actions > .result-quick-save:focus-visible { outline: 2px solid #17617d; outline-offset: 2px; }
.result-number { display: block; color: #235fc2; font-size: 10px; font-weight: 750; margin: 2px 0 6px; }
.result-copy { min-width: 0; }
.result-copy .result-number { display: flex; align-items: center; min-height: 28px; margin-top: 0; padding-right: 100px; white-space: nowrap; }
.result-preview h2 { font-size: 17px; line-height: 1.15; letter-spacing: -.025em; margin: 0 0 7px; }
.result-preview .meta { display: block; font-size: 11px; line-height: 1.55; }
.explore-result .result-link { display: flex; align-items: center; justify-content: center; width: fit-content; min-height: 36px; margin: 12px 0 0 auto; padding: 9px 15px; border: 1px solid transparent; border-radius: 999px; background: var(--cyan); color: #10252d; font-size: 12px; font-weight: 700; }
.explore-result .result-link:hover { background: #b1e7fb; }
.explore-result .result-link:focus-visible { outline: 2px solid #17617d; outline-offset: 3px; }
.results-empty { padding: 24px 12px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.results-empty h2 { color: var(--ink); font-size: 21px; }
.results-empty button { margin-top: 12px; border: 0; background: var(--cyan); color: #10252d; padding: 12px 16px; border-radius: 999px; font-weight: 650; }
.map-preview-card { position: absolute; z-index: 3; right: 24px; bottom: 58px; max-width: 330px; padding: 18px 22px; border: 1px solid rgba(255,255,255,.16); border-radius: 22px; background: rgba(24,28,30,.75); color: #fafaf7; box-shadow: 0 8px 28px rgba(0,0,0,.18); backdrop-filter: blur(18px); }
.map-preview-card strong { display: block; font-size: 17px; margin-bottom: 8px; }
.map-preview-card span { font-size: 12px; color: rgba(255,255,255,.75); }
.map-preview-card a { display: block; color: var(--cyan); font-size: 12px; margin-top: 10px; font-weight: 650; }
.search-map-area { position: absolute; z-index: 3; bottom: 24px; left: calc(50% + 150px); transform: translateX(-50%); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 13px 20px; font-weight: 650; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.route-number-icon { border: 2px solid white; background: #10252d; color: var(--cyan); border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 750; box-shadow: 0 2px 5px rgba(0,0,0,.2); }
.route-number-icon.is-active { background: var(--cyan); color: #10252d; }
.route-dot-icon { box-sizing: border-box; border: 2px solid white; border-radius: 50%; background: #10252d; box-shadow: 0 2px 5px #10252d40; }
.route-dot-icon.is-active { background: #91ddf9; border: 3px solid #10252d; }
.route-cluster-icon { box-sizing: border-box; display: grid; place-items: center; border: 2px solid white; border-radius: 50%; background: #10252d; color: #fff; box-shadow: 0 2px 8px #10252d40; }
.route-cluster-icon.is-active { background: #91ddf9; color: #10252d; }
.route-cluster-icon strong { font-size: 16px; }
.route-cluster-icon small { font-size: 10px; }
.route-cluster-picker { max-height: min(300px, 45vh); overflow-y: auto; overscroll-behavior: contain; }
.route-cluster-picker > strong { display: block; font-size: 15px; }
.route-cluster-picker p { margin: 6px 0 12px; color: #667076; font-size: 12px; }
.route-cluster-picker button { display: flex; gap: 10px; align-items: center; width: 100%; min-height: 48px; text-align: left; padding: 10px 6px; border: 0; border-top: 1px solid #e4e8e9; background: white; color: #10252d; cursor: pointer; }
.route-cluster-picker button:hover, .route-cluster-picker button:focus-visible { background: #eaf8fd; }
.route-cluster-picker button strong, .route-cluster-picker button small { display: block; }
.route-cluster-picker button small { margin-top: 3px; color: #667076; }
.cluster-route-number { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #10252d; color: #91ddf9; font-weight: 700; }
.map-load-error { position: absolute; bottom: 60px; left: 50%; padding: 12px; background: var(--surface); border-radius: 14px; z-index: 3; font-size: 13px; }
.explore-page .leaflet-bottom.leaflet-right { right: 12px; bottom: 12px; }
.explore-page .leaflet-control-zoom { margin-bottom: 18px; }
@media (max-width: 1250px) {
  .explore-filters { flex-wrap: wrap; gap: 6px; padding: 8px; }
  .explore-filters::after { content: ''; order: 1; flex-basis: 100%; }
  .type-filter, .filter-menu, .filter-reset { order: 2; }
  .explore-filters .map-search { max-width: none; }
  .filter-menu summary, .filter-reset, .fit-results, .type-filter, .map-get-app { padding-inline: 11px; font-size: 12px; }
  .explore-sidebar { top: 148px; }
}
@media (max-width: 850px) {
  .explore-sidebar { width: 310px; }
  .map-preview-card { max-width: 240px; }
}
@media (max-width: 650px) {
  .explorer { inset: 8px; border-radius: 20px; }
  .explore-filters.shell { width: calc(100% - 16px); }
  .explore-filters { top: 8px; flex-wrap: nowrap; gap: 5px; padding: 6px; }
  .explore-filters::after { display: none; }
  .mobile-filters-toggle { display: flex; align-items: center; justify-content: center; height: 40px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 12px; font-weight: 650; }
  .mobile-filters-toggle.is-filtered { background: var(--cyan); color: #10252d; border-color: transparent; }
  .filter-controls { display: none; position: absolute; top: calc(100% + 8px); right: 0; width: min(360px, 100%); padding: 16px; gap: 10px; flex-wrap: wrap; align-items: flex-start; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 8px 24px rgba(0,0,0,.15); max-height: calc(100dvh - 110px); overflow-y: auto; }
  .filter-controls.is-open { display: flex; }
  .filter-controls .filter-menu[open] { width: 100%; }
  .filter-controls .filter-menu[open] summary { width: fit-content; }
  .map-home { flex-basis: 32px; }
  .map-home img { width: 30px; }
  .explore-filters .map-search { min-width: 50px; flex-basis: 70px; }
  .type-filter { min-width: 108px; }
  .filter-reset { padding-inline: 7px; }
  .filter-menu summary { padding-inline: 10px; }
  .explore-sidebar { top: auto; bottom: 40px; left: 12px; right: 12px; width: auto; height: 37vh; max-height: 320px; border-radius: 22px; }
  .results-heading { padding: 14px 18px 10px; }
  .results-heading .eyebrow, .area-context { display: none; }
  .results-heading h1 { font-size: 20px; margin: 0 0 4px; }
  .explore-results { padding: 10px; }
  .result-preview img, .result-preview .result-image-placeholder { height: 125px; }
  .result-photo-controls { height: 125px; }
  .result-preview { gap: 9px; }
  .filter-panel { position: static; width: 100%; margin-top: 12px; padding: 16px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; }
  .fit-results { display: none; }
  .fit-label { display: none; }
  .map-get-app { padding-inline: 9px; font-size: 11px; }
  .search-map-area { bottom: calc(37vh + 52px); left: 50%; padding: 10px 15px; font-size: 12px; }
  .map-preview-card { display: none; }
}
@media (max-width: 650px), (hover: none) {
  .result-tap-hint { display: block; }
}
