  /* ---------- ParadeLine public map ---------- */
  :root { --accent: #00baff; }
  body.pl { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #0b1520; }
  body.pl #map { position: fixed; inset: 0; z-index: 0; }

  .pl-card {
    position: fixed; z-index: 1000; left: 12px; right: 12px; top: calc(12px + env(safe-area-inset-top));
    max-width: 520px; margin: 0 auto;
    background: rgba(11, 21, 32, .92); color: #fff; border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px; padding: 14px 16px 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .pl-top { display: flex; align-items: center; gap: 10px; }
  .pl-top h1 { margin: 0; font-family: Montserrat, Inter, sans-serif; font-weight: 800; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: #9fb0c2; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pl-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.08); color: #c7cbd1; flex: none; }
  .pl-badge i { width: 8px; height: 8px; border-radius: 50%; background: #8a96a3; display: block; }
  .pl-card.live .pl-badge { background: color-mix(in srgb, var(--accent) 18%, transparent); color: color-mix(in srgb, var(--accent) 65%, #fff); }
  .pl-card.live .pl-badge i { background: var(--accent); animation: pl-pulse 1.6s ease-out infinite; }
  .pl-card.stale .pl-badge { background: rgba(242,163,58,.15); color: #f7c27a; }
  .pl-card.stale .pl-badge i { background: #f2a33a; }
  @keyframes pl-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }

  .pl-status { font-family: Montserrat, Inter, sans-serif; font-weight: 700; font-size: 19px; line-height: 1.3; margin-top: 8px; }
  .pl-updated { font-size: 13px; color: #9fb0c2; margin-top: 2px; }
  .pl-updated:empty { display: none; }
  .pl-sub { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; color: #b4bcc6; }
  .pl-sub span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pl-sub button { flex: none; background: rgba(255,255,255,.1); color: #fff; font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 999px; min-height: 36px; }
  .pl-sub button:hover { background: rgba(255,255,255,.18); }

  .pl-locate {
    position: fixed; z-index: 1000; right: 14px; bottom: calc(34px + env(safe-area-inset-bottom));
    width: 52px; height: 52px; padding: 0; border-radius: 50%;
    background: #0b1520; color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.1);
  }
  .pl-locate svg { width: 24px; height: 24px; }
  .pl-brand {
    position: fixed; z-index: 1000; left: 14px; bottom: calc(34px + env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: 8px; text-decoration: none;
    background: rgba(11,21,32,.88); color: #fff; padding: 8px 12px 8px 10px; border-radius: 999px;
    font-size: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.08);
  }
  .pl-brand img { width: 20px; height: 20px; display: block; }
  .pl-brand b { font-family: Montserrat, sans-serif; font-weight: 800; letter-spacing: .5px; }
  .pl-brand b span { color: #00baff; }
  .pl-brand small { color: #9fb0c2; font-size: 11px; }
  .pl-staff { position: fixed; z-index: 1000; left: 16px; bottom: calc(8px + env(safe-area-inset-bottom)); font-size: 11px; color: #4a5b6e; text-decoration: none; background: rgba(255,255,255,.8); padding: 2px 8px; border-radius: 6px; }

  /* zoom buttons: out of the card's way, above the locate button */
  body.pl .leaflet-top.leaflet-left { top: auto; left: auto; right: 14px; bottom: calc(100px + env(safe-area-inset-bottom)); }
  body.pl .leaflet-control-zoom { border: 0 !important; box-shadow: 0 6px 18px rgba(0,0,0,.3); border-radius: 14px; overflow: hidden; }
  body.pl .leaflet-control-zoom a { background: #0b1520; color: #fff; border-color: rgba(255,255,255,.1); width: 40px; height: 40px; line-height: 40px; }
  body.pl .leaflet-control-zoom a:hover { background: #16263a; }
  body.pl .leaflet-control-attribution { font-size: 10px; }
  body.pl .emoji-pin { border-color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 50%, transparent), 0 4px 12px rgba(0,0,0,.35); }
  body.pl .leaflet-popup-content-wrapper { border-radius: 14px; }

  /* parade nights + no-map sheets */
  body.pl .overlay { align-items: flex-end; background: rgba(0,0,0,.45); }
  body.pl .overlay .card { background: #0b1520; color: #fff; border-radius: 22px 22px 16px 16px; max-width: 520px; border: 1px solid rgba(255,255,255,.08); }
  body.pl .overlay .card h2 { font-family: Montserrat, Inter, sans-serif; font-weight: 800; font-size: 20px; }
  body.pl .overlay .muted { color: #9fb0c2; }
  body.pl .overlay a { color: #00baff; }
  body.pl .sched-list button { background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 12px 14px; }
  body.pl .sched-list button.sel { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
  body.pl #btnSchedClose { width: 100%; background: rgba(255,255,255,.1); color: #fff; min-height: 46px; }
  @media (min-width: 700px) { body.pl .overlay { align-items: center; } body.pl .overlay .card { border-radius: 22px; } }

  /* ---------- light card ---------- */
  .pl-card.light { background: rgba(255,255,255,.95); color: #0b1520; border-color: rgba(11,21,32,.08); box-shadow: 0 10px 30px rgba(11,21,32,.18); }
  .pl-card.light .pl-top h1 { color: #4a5b6e; }
  .pl-card.light .pl-badge { background: rgba(11,21,32,.06); color: #4a5b6e; }
  .pl-card.light.live .pl-badge { color: color-mix(in srgb, var(--accent) 80%, #000); }
  .pl-card.light .pl-updated, .pl-card.light .pl-sub { color: #4a5b6e; }
  .pl-card.light .pl-sub { border-top-color: rgba(11,21,32,.08); }
  .pl-card.light .pl-sub button { background: rgba(11,21,32,.07); color: #0b1520; }

  /* ---------- banner (top of the card) ---------- */
  .pl-card { overflow: hidden; }
  .pl-banner { margin: -14px -16px 12px; padding: 12px 16px; color: #fff; position: relative; text-align: center; }
  .pl-banner b { display: block; font-family: Montserrat, Inter, sans-serif; font-weight: 800; font-size: 18px; line-height: 1.25; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
  .pl-banner span { display: block; font-size: 13px; opacity: .92; margin-top: 2px; }
  .pl-banner.style-lights { padding-top: 26px; }
  .pl-banner.style-lights::before {
    content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 16px;
    background:
      linear-gradient(#2b3a2b, #2b3a2b) 0 4px / 100% 1.5px no-repeat,
      radial-gradient(circle at 8px 10px, #ffd23f 4px, transparent 4.5px) 0 0 / 64px 16px repeat-x,
      radial-gradient(circle at 24px 10px, #3ddc84 4px, transparent 4.5px) 0 0 / 64px 16px repeat-x,
      radial-gradient(circle at 40px 10px, #4cc9ff 4px, transparent 4.5px) 0 0 / 64px 16px repeat-x,
      radial-gradient(circle at 56px 10px, #ff6b6b 4px, transparent 4.5px) 0 0 / 64px 16px repeat-x;
    animation: pl-twinkle 2.4s ease-in-out infinite alternate;
  }
  @keyframes pl-twinkle { from { filter: brightness(1) drop-shadow(0 0 2px rgba(255,255,255,.5)); } to { filter: brightness(1.35) drop-shadow(0 0 5px rgba(255,240,180,.9)); } }
  .pl-banner.style-candy { padding: 18px 16px; }
  .pl-banner.style-candy::before, .pl-banner.style-candy::after {
    content: ""; position: absolute; left: 0; right: 0; height: 7px;
    background: repeating-linear-gradient(135deg, #fff 0 8px, #d0102c 8px 16px);
  }
  .pl-banner.style-candy::before { top: 0; }
  .pl-banner.style-candy::after { bottom: 0; }
  .pl-banner.style-stars { background-image: radial-gradient(rgba(255,255,255,.5) 1.2px, transparent 1.8px); background-size: 14px 14px; }
  .pl-banner.style-stars::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: repeating-linear-gradient(90deg, #c8102e 0 14px, #fff 14px 28px); }

  /* ---------- falling snow ---------- */
  .pl-snow { position: fixed; inset: 0; z-index: 900; pointer-events: none; }
  .pl-snow::before, .pl-snow::after {
    content: ""; position: absolute; inset: -200px 0 0;
    background-image:
      radial-gradient(3px 3px at 20px 30px, #fff 50%, transparent 52%),
      radial-gradient(2px 2px at 90px 140px, #fff 50%, transparent 52%),
      radial-gradient(3px 3px at 160px 70px, #fff 50%, transparent 52%),
      radial-gradient(2px 2px at 60px 180px, #fff 50%, transparent 52%),
      radial-gradient(2.5px 2.5px at 130px 10px, #fff 50%, transparent 52%);
    background-size: 200px 200px;
    filter: drop-shadow(0 0 1px rgba(0,0,0,.25));
    animation: pl-snowfall 14s linear infinite;
    opacity: .9;
  }
  .pl-snow::after { background-size: 300px 300px; animation-duration: 22s; opacity: .6; }
  @keyframes pl-snowfall { from { transform: translateY(0); } to { transform: translateY(200px); } }
  .pl-snow::after { animation-name: pl-snowfall2; }
  @keyframes pl-snowfall2 { from { transform: translateY(0) translateX(0); } to { transform: translateY(300px) translateX(30px); } }
  @media (prefers-reduced-motion: reduce) { .pl-snow::before, .pl-snow::after, .pl-banner.style-lights::before, .pl-card.live .pl-badge i { animation: none; } }

  /* ---------- vehicles on the modern map ---------- */
  .veh { cursor: pointer; display: flex; align-items: center; justify-content: center; }
  .veh .emoji-pin { width: 46px; height: 46px; }
  .veh.is3d { width: 72px; height: 54px; }
  .veh3d { width: 72px; height: auto; display: block; transition: transform .4s ease; filter: drop-shadow(0 3px 4px rgba(0,0,0,.3)); }
  .veh.flip .veh3d { transform: scaleX(-1); }
  .me-dot { width: 18px; height: 18px; border-radius: 50%; background: #2563eb; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(37,99,235,.25), 0 2px 6px rgba(0,0,0,.3); }
  body.pl .maplibregl-ctrl-bottom-right { bottom: calc(96px + env(safe-area-inset-bottom)); right: 4px; }
  body.pl .maplibregl-ctrl-group { border-radius: 14px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.3); background: #0b1520; }
  body.pl .maplibregl-ctrl-group button { width: 40px; height: 40px; }
  body.pl .maplibregl-ctrl-group button + button { border-top-color: rgba(255,255,255,.12); }
  body.pl .maplibregl-ctrl-icon { filter: invert(1); }
  body.pl .maplibregl-popup-content { border-radius: 14px; padding: 10px 14px; font-family: Inter, sans-serif; }
  body.pl .sched-list div.sched-item { background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 12px 14px; line-height: 1.35; }
  body.pl .sched-list .sched-item.past { opacity: .55; }
  @media (prefers-reduced-motion: reduce) { .veh3d { transition: none; } }
