* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #fff; color: #333; min-height: 100vh; display: flex; flex-direction: column; }
.container { max-width: none; margin: 0; padding: 2rem 2rem 1.2rem 2rem; width: 100%; flex: 1; display: flex; flex-direction: column; }

.map-row { display: flex; flex: 1; min-height: 0; margin-left: -2rem; margin-right: -2rem; }
.regions { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0 0 1rem; align-items: center; }
.region-btn { padding: 0.15rem 0.5rem; background: #f5f5f5; border: none; border-radius: 999px; font-size: 0.75rem; cursor: pointer; color: #777; transition: background 0.15s, color 0.15s, border-color 0.15s; text-transform: lowercase; font-family: inherit; white-space: nowrap; line-height: 1.2; }
@media (hover: hover) { .region-btn:hover { background: #fff0e8; color: #fc4c02; } }
.region-btn.active { background: #ffe4f1; color: #e040a0; }
.region-btn .count { font-size: 0.68rem; margin-left: 4px; color: #bbb; }
.region-btn.active .count { color: #f4a5d0; }
.map-wrap { position: relative; flex: 1; display: flex; flex-direction: column; min-width: 0; }
.map-status { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4; padding: 0.5rem 0.75rem; border-radius: 6px; background: rgba(255,255,255,0.8); color: #777; font-size: 0.8rem; pointer-events: none; }
.ride-splash { display: none; position: absolute; z-index: 3; max-width: min(500px, 78%); pointer-events: none; color: #ff1493; font-size: clamp(1.6rem, 3.6vw, 2.7rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; }
.ride-splash.visible { display: block; }
.ride-splash .splash-title,
.ride-splash .splash-detail { width: fit-content; max-width: 100%; background: linear-gradient(transparent 14%, #fff 14%, #fff 86%, transparent 86%); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.ride-splash .splash-title { margin-bottom: 0.2em; }
.ride-splash .splash-detail { font-size: 0.86em; font-weight: 700; letter-spacing: -0.01em; }
.overlap-chooser { display: flex; position: absolute; top: 12px; left: 12px; z-index: 2; flex-direction: column; gap: 0.35rem; width: min(280px, calc(100% - 24px)); max-height: calc(100% - 24px); margin: 0; overflow: hidden; padding: 0; background: transparent; pointer-events: none; }
.overlap-chooser:empty { display: none; }
.overlap-options { display: flex; align-self: flex-start; max-width: 100%; min-height: 0; flex-direction: column; gap: 0.35rem; overflow-y: auto; scrollbar-width: none; pointer-events: auto; }
.overlap-option { pointer-events: auto; }
.overlap-options::-webkit-scrollbar { display: none; }
.overlap-label { color: #999; font-size: 0.68rem; text-transform: lowercase; }
.overlap-option { align-self: flex-start; width: max-content; max-width: 100%; flex: 0 0 auto; overflow: hidden; padding: 0.15rem 0.4rem; border: none; border-radius: 4px; background: rgba(255,255,255,0.58); box-shadow: none; backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%); color: #777; font: inherit; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.7rem; font-variant-numeric: tabular-nums; line-height: 1.2; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.overlap-option:hover, .overlap-option.active { color: #e040a0; background: rgba(255,245,250,0.74); }
#map { width: 100%; flex: 1; min-height: 500px; border-radius: 0; box-shadow: none; outline: none; }
#map canvas:focus, #map .mapboxgl-canvas:focus { outline: none; }
#map .mapboxgl-ctrl-logo { display: none; }
#map .mapboxgl-canvas-container,
#map .mapboxgl-canvas-container.mapboxgl-interactive { cursor: default; outline: none; }
.mapboxgl-ctrl-top-right { top: 2px; }
.mapboxgl-ctrl button, .mapboxgl-ctrl-geocoder, .region-btn { touch-action: manipulation; }
.mapboxgl-ctrl-geocoder { min-width: 180px; width: 180px; height: 28px; border: none; border-radius: 6px; background: rgba(255,255,255,0.58); box-shadow: none; backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%); font-size: 0.7rem; }
.mapboxgl-ctrl-geocoder input[type="text"] { height: 28px; padding: 0 0.45rem 0 1.8rem; color: #777; font: inherit; font-size: 0.7rem; }
.mapboxgl-ctrl-geocoder input[type="text"]::placeholder { color: #999; }
.mapboxgl-ctrl-geocoder--icon-search { top: 5px; left: 7px; width: 16px; height: 16px; }
.mapboxgl-ctrl-geocoder .suggestions { overflow: hidden; margin-top: 4px; border-radius: 6px; background: rgba(255,255,255,0.72); box-shadow: none; backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%); font-size: 0.7rem; }
.mapboxgl-ctrl-geocoder .suggestions > li > a { padding: 0.35rem 0.5rem; color: #777; }
.mapboxgl-ctrl-geocoder .suggestions > .active > a, .mapboxgl-ctrl-geocoder .suggestions > li > a:hover { background: rgba(255,245,250,0.74); color: #e040a0; }
.mapboxgl-ctrl-group { overflow: hidden; border: none; border-radius: 6px; background: rgba(255,255,255,0.58); box-shadow: none; backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%); }
.mapboxgl-ctrl-group button { width: 24px; height: 24px; border: none; background-color: transparent; background-size: 14px 14px; opacity: 0.55; }
.mapboxgl-ctrl-group button + button { border-top: none; }
.mapboxgl-ctrl-group button:hover { background-color: rgba(255,245,250,0.74); opacity: 1; }
.mapboxgl-ctrl-geocoder input[type="text"] { outline: none; }
.mapboxgl-ctrl-geocoder input[type="text"]:focus { outline: none; }

@media (max-width: 600px) {
  html, body { height: 100svh; min-height: 0; margin: 0; overflow: hidden; }
  body { display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); }
  .container { padding: 0.5rem; flex: 1; display: flex; flex-direction: column; min-height: 0; gap: 0.35rem; }
  .map-row { display: flex; flex-direction: column; gap: 0.35rem; flex: 1; min-height: 0; margin-left: -0.5rem; margin-right: -0.5rem; }
  .map-wrap { flex: 1; min-height: 0; }
  .regions { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 0.6rem; flex-shrink: 0; padding: 0.1rem 0; scrollbar-width: none; }
  .regions::-webkit-scrollbar { display: none; }
  .region-btn { font-size: 0.75rem; padding: 0.4rem 0.8rem; }
  .overlap-chooser { top: 12px; left: 12px; width: calc(100% - 24px); }
  .site-title { font-size: 1rem; margin: 0 0 0.3rem 0; }
  #map { min-height: 0; flex: 1; border-radius: 0; }
  footer { padding: 0.3rem 0 !important; font-size: 0.78rem !important; font-weight: 800; }
  .mapboxgl-ctrl-geocoder { min-width: 180px; width: 180px; }
  /* Keep phone browsers from zooming the page when the search field gains focus. */
  .mapboxgl-ctrl-geocoder input[type="text"] { font-size: 16px; }
  .mapboxgl-ctrl-geocoder.mapboxgl-ctrl-geocoder--collapsed { min-width: 32px; width: 32px; height: 32px; }
  .mapboxgl-ctrl-geocoder.mapboxgl-ctrl-geocoder--collapsed .mapboxgl-ctrl-geocoder--icon-search { top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0; }
}
/* Footer marquee. The strip is duplicated and the track shifts by exactly half
   its own width, so the second copy lands where the first began and the loop has
   no visible seam. Duration is set in app.js from the measured width, which keeps
   the speed constant no matter how long the timestamp makes the text. */
.site-footer { padding: 0 0 1.2rem 0; margin-top: 0; font-size: 0.82rem; font-style: italic; font-weight: 700; letter-spacing: 0.05em; }
.site-footer a { color: #ff1493; text-decoration: none; }
.marquee { overflow: hidden; width: 100%; }
.marquee-track { display: flex; width: max-content; animation: marquee-scroll linear infinite; will-change: transform; }
.marquee-group { display: flex; flex: 0 0 auto; }
.marquee-item { flex: 0 0 auto; padding-right: 0.6em; white-space: nowrap; color: #ff1493; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
