/* songsofsepta.com shell (songs-site.html). Loads after app.css and reuses its colour tokens, symbols, popups and
 * Songs classes; this file only lays the page out: a full-bleed map, a bar along the bottom (as /replay), a small
 * header, and a sheet that opens over the map (a bottom sheet on a phone). */

html, body { overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- header --------------------------------------------------------------------------------------------- */
#site-top {
  display: flex; align-items: center; gap: var(--space-md); padding: 6px 12px; padding-top: max(6px, env(safe-area-inset-top));
  background: var(--panel); border-bottom: 1px solid var(--border);
}
.brand { margin: 0; font-size: var(--font-size-xl); white-space: nowrap; }
#site-top .stop-search { flex: 1; max-width: 460px; margin: 0 0 0 auto; }
.results-box { position: absolute; z-index: 2000; left: 0; right: 0; top: calc(100% + 4px); display: flex; flex-direction: column; gap: 4px; }
.results-box .stop-results { position: static; }
.results-box .stop-results[hidden] { display: none; }

.btn {
  font: inherit; padding: 6px 12px; min-height: var(--min-touch-height); border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg); color: var(--fg); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.btn:disabled { opacity: 0.5; cursor: default; }
.btn:focus-visible, .fchip:focus-visible, .rchip:focus-visible { outline: var(--focus-width) solid var(--focus-color); outline-offset: var(--focus-offset); }
.btn.accent { background: var(--accent); color: var(--bg); border-color: var(--accent); font-weight: 600; white-space: nowrap; }
.btn.icon { min-width: var(--min-touch-height); padding: 0 8px; font-weight: 700; font-family: Georgia, serif; font-style: italic; }
.btn[aria-pressed="true"], .btn.on { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn.accent[aria-pressed="true"] { background: var(--accent); }

/* ---- stage: map, overlays --------------------------------------------------------------------------------- */
main#stage { position: relative; flex: 1; min-height: 0; display: block; }
main#stage #map { position: absolute; inset: 0; min-height: 0; z-index: 0; isolation: isolate; }
#pluck-layer { position: absolute; inset: 0; z-index: 650; pointer-events: none; overflow: hidden; }
/* Docked at the bottom of the map: a followed vehicle sits at the centre and its popup opens upward from there, so
   the "Following" pill never covers the popup heading, close button or rows. The bottom offset clears Leaflet's
   attribution line. */
#chips { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 700; display: flex; flex-direction: column; align-items: center;
  gap: 6px; pointer-events: none; max-width: calc(100% - 100px); }
.chip { pointer-events: auto; margin: 0; padding: 6px 12px; border-radius: 999px; background: var(--bg); color: var(--fg); border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); font-size: var(--font-size-base); display: inline-flex; align-items: center; gap: 8px; }
.chip[hidden], #mysong-btn[hidden] { display: none; }
.chip.warn { background: var(--notice-bg); color: var(--notice-fg); border-color: var(--notice-border); font-weight: 600; }
#follow-chip { background: var(--accent); color: var(--bg); border-color: var(--accent); font-weight: 600; }

/* ---- "Track your ride" toggle and its terms (songs-site-ride.js) ------------------------------------------- */
#track-ride[aria-pressed="true"] { background: var(--bg); color: var(--fg); border-color: var(--accent); gap: 6px; }
#track-ride[aria-pressed="true"]::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #d93025; animation: ride-dot 1.6s ease-in-out infinite; }
@keyframes ride-dot { 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { #track-ride[aria-pressed="true"]::before { animation: none; } }
.ride-chip button[hidden] { display: none; }
.ride-chip { max-width: 100%; border-radius: var(--radius-lg); transition: opacity 0.6s ease; }
.ride-chip.fading { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .ride-chip { transition: none; } }
.ride-terms { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow-y: auto; padding: 14px 18px;
  background: var(--panel); color: var(--fg); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35); }
.ride-terms::backdrop { background: rgba(0, 0, 0, 0.5); }
.ride-terms h2 { margin: 0 0 8px; font-size: 1.1rem; }
.ride-terms p { margin: 8px 0; font-size: 0.92rem; line-height: 1.4; }
.ride-terms-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 12px; }
#route-chip { background: var(--accent); color: var(--bg); border-color: var(--accent); font-weight: 600; }
#route-chip button, #follow-chip button { font: inherit; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; padding: 2px 10px; cursor: pointer; min-height: 28px; }

/* ---- plucks: big slow ripples and a short label at the source of a note ---------------------------------- */
.pluck-ripple, .pluck-label { position: absolute; left: 0; top: 0; will-change: transform; }
.pluck-ripple[hidden], .pluck-label[hidden] { display: none; }
.pluck-ripple { translate: -50% -50%; border: 0 solid; border-radius: 50%; }
.pluck-ripple::before, .pluck-ripple::after {
  content: ""; position: absolute; inset: 0; border: 4px solid; border-color: inherit; border-radius: 50%; opacity: 0;
  transform: scale(0.08); animation: pluck-ring 2.4s ease-out forwards; animation-duration: inherit;
}
.pluck-ripple::after { border-width: 2px; animation-delay: 0.35s; }
.pluck-ripple.est::before, .pluck-ripple.est::after { border-style: dashed; }
.pluck-ripple.quiet { opacity: 0.55; }
.pluck-ripple.restart::before, .pluck-ripple.restart::after, .pluck-ripple.still.restart::before { animation: none; }
.pluck-ripple.still::before { transform: scale(0.6); animation-name: pluck-fade; }
.pluck-ripple.still::after { display: none; }
@keyframes pluck-ring { 0% { transform: scale(0.08); opacity: 0.95; } 70% { opacity: 0.45; } 100% { transform: scale(1); opacity: 0; } }
@keyframes pluck-fade { 0% { opacity: 0.9; } 100% { opacity: 0; } }
.pluck-label {
  translate: -50% -100%; padding: 3px 9px; border-radius: 999px; background: var(--bg); color: var(--fg); border: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35); font-size: var(--font-size-sm); font-weight: 600; white-space: nowrap; max-width: 300px;
  overflow: hidden; text-overflow: ellipsis; animation: pluck-label 3.2s ease-out forwards;
}
.pluck-label.est { border-style: dashed; font-weight: 500; }
.pluck-label.restart { animation: none; }
@keyframes pluck-label { 0% { opacity: 0; } 8% { opacity: 1; } 78% { opacity: 1; } 100% { opacity: 0; } }

/* ---- the bar ---------------------------------------------------------------------------------------------- */
:root {
  --ic-rewind: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 6v12l-8.5-6zM21 6v12l-8.5-6z' fill='black'/%3E%3C/svg%3E");
  --ic-share: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='black'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3C/g%3E%3Cpath d='M8.6 10.6l6.8-4M8.6 13.4l6.8 4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  --ic-more: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 15l6-6 6 6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ic-sound-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 4V5L7 9z' fill='black'/%3E%3Cpath d='M16 9l6 6M22 9l-6 6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ic-sound-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 4V5L7 9z' fill='black'/%3E%3Cpath d='M16 8.5c1.8 2 1.8 5 0 7M19 5.5c3.8 3.8 3.8 9.2 0 13' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ic-locate: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4.5'/%3E%3Cpath d='M12 2.5v4M12 17.5v4M2.5 12h4M17.5 12h4'/%3E%3C/g%3E%3C/svg%3E");
  --ic-filters: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18l-7 8.5V20l-4-2v-4.5z' fill='black'/%3E%3C/svg%3E");
  --ic-live: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='3.2' fill='black'/%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3C/g%3E%3C/svg%3E");
  --ic-step: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 5v14l-11-7z' fill='black'/%3E%3Cpath d='M5.5 5v14' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ic-reverse: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 5v14l-12-7z' fill='black'/%3E%3C/svg%3E");
  --ic-play: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4l13 8-13 8z' fill='black'/%3E%3C/svg%3E");
  --ic-pause: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 5h4v14H6zM14 5h4v14h-4z' fill='black'/%3E%3C/svg%3E");
}
#bar { position: relative; background: var(--panel); border-top: 1px solid var(--border); padding: 8px 12px; }
.bar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.bar-row + .bar-row { margin-top: 8px; }
.bar-row[hidden] { display: none; }
.spacer { flex: 1; }
.split { display: inline-flex; align-items: stretch; }
.split .tool:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.split .tool.mini { border-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }

/* Large icon-plus-short-label controls. The icon is a mask painted in the text colour, so it follows the theme. */
.tool {
  font: inherit; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 6px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg); color: var(--fg); cursor: pointer; white-space: nowrap;
}
.tool::before { content: ""; width: 22px; height: 22px; flex: none; background: currentColor; mask: var(--ic) center / contain no-repeat; -webkit-mask: var(--ic) center / contain no-repeat; }
.tool:focus-visible { outline: var(--focus-width) solid var(--focus-color); outline-offset: var(--focus-offset); }
.tool.mini { padding: 6px 8px; min-width: 34px; }
.tool.mini::before { width: 18px; height: 18px; }
.tool.mini[aria-expanded="true"]::before { transform: rotate(180deg); }
.tool.mini.note { box-shadow: inset 0 -3px 0 var(--notice-border); }
.tool.accent { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.tool[aria-pressed="true"], .tool.on { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.tool[data-ic="rewind"] { --ic: var(--ic-rewind); }
.tool[data-ic="more"] { --ic: var(--ic-more); }
.tool[data-ic="sound"] { --ic: var(--ic-sound-off); }
.tool[data-ic="locate"] { --ic: var(--ic-locate); }
.tool[data-ic="filters"] { --ic: var(--ic-filters); }
.tool[data-ic="live"] { --ic: var(--ic-live); }
.tool[data-ic="step"] { --ic: var(--ic-step); }
.tool[data-ic="reverse"] { --ic: var(--ic-reverse); }
.tool[data-ic="play"] { --ic: var(--ic-play); }
.tool[data-ic="pause"] { --ic: var(--ic-pause); }
#songs-play.songs-play-on { --ic: var(--ic-sound-on); background: var(--accent); color: var(--bg); border-color: var(--accent); }
#songs-play { min-width: 9.5rem; }

/* freshness: a small dot, the words are its tooltip */
.fresh { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); flex: none; box-shadow: 0 0 0 2px var(--bg); }
.fresh[data-fresh="fresh"] { background: #1e9e4a; }
.fresh[data-fresh="stale"] { background: #d9a400; }
.fresh[data-fresh="error"] { background: #c8102e; }
.fresh[data-fresh="replay"] { background: var(--notice-border); }
.is-replay #rewind-split { display: none; }

/* small popovers above the bar: rewind choices, sound options */
.pop { position: absolute; z-index: 900; bottom: calc(100% + 6px); left: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35); max-width: calc(100% - 24px); }
.pop[hidden] { display: none; }
#sound-pop { left: 150px; }
.music-extra { display: inline-flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.music-extra select, .music-extra input[type="range"] { font: inherit; min-height: 32px; }
.music-extra select { padding: 4px 6px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg); color: var(--fg); }
.music-status { flex-basis: 100%; margin: 0; }
.music-status:empty { display: none; }

/* replay row */
#rp-speeds { display: inline-flex; gap: 4px; }
#rp-speeds .btn { min-height: 40px; }
/* The timeline, top to bottom: activity bars (0-24px), the track with recorder gaps (25-35px, the slider's
 * thumb centred on it: the slider is 60px tall, so its middle is the track's), date and time ticks (36-58px).
 * The slider covers all of it and is the only layer that takes the pointer. */
#scrub-wrap { position: relative; flex: 1 1 260px; min-width: 160px; height: 58px; }
#scrub-wrap input[type="range"] { position: absolute; left: 0; right: 0; top: 0; height: 60px; width: 100%; margin: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: grab; touch-action: pan-y; z-index: 2; }
#scrub::-webkit-slider-runnable-track { height: 10px; background: transparent; }
#scrub::-moz-range-track { height: 10px; background: transparent; }
#scrub::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }
#scrub::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }
#activity, #gaps, #ticks { pointer-events: none; }
#activity { position: absolute; left: 0; right: 0; top: 0; height: 24px; }
#activity .bar { position: absolute; bottom: 0; background: var(--accent); opacity: 0.45; border-radius: 1px 1px 0 0; box-shadow: inset -1px 0 0 var(--panel); }
#gaps { position: absolute; left: 0; right: 0; top: 25px; height: 10px; border-radius: 5px; background: rgba(128, 128, 128, 0.3); }
#gaps .gap { position: absolute; top: -25px; bottom: 0; background: repeating-linear-gradient(45deg, var(--delay-border) 0 3px, transparent 3px 6px); opacity: 0.8; }
#ticks { position: absolute; left: 0; right: 0; top: 36px; height: 22px; font-size: 0.68rem; line-height: 1; color: var(--muted); }
#ticks .tick { position: absolute; top: 0; width: 1px; height: 3px; background: var(--muted); opacity: 0.6; }
#ticks .tick.major { height: 6px; opacity: 0.85; }
#ticks .tick.day { height: 9px; width: 2px; margin-left: -1px; background: var(--fg); opacity: 1; }
#ticks .tick-label { position: absolute; top: 10px; left: 0; transform: translateX(-50%); white-space: nowrap; font-variant-numeric: tabular-nums; }
#ticks .tick-label.start { transform: none; }
#ticks .tick-label.end { transform: translateX(-100%); }
#ticks .tick.day .tick-label { color: var(--fg); font-weight: 700; }
#rp-clock { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
#rp-status { margin: 0; }

/* ---- sheet and info -------------------------------------------------------------------------------------- */
#sheet, #info {
  position: absolute; z-index: 800; right: 10px; bottom: 10px; width: min(390px, calc(100% - 20px)); max-height: calc(100% - 20px); overflow-y: auto;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35); padding: 10px 14px 12px;
}
#info { top: 10px; bottom: auto; }
#sheet[hidden], #info[hidden] { display: none; }
#sheet h2, #info h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 10px 0 4px; }
#info p { margin: 6px 0; }
.close { position: absolute; top: 6px; right: 8px; font-style: normal; font-family: inherit; font-size: 1.3rem; min-height: 36px; min-width: 36px; }
.sheet-block + .sheet-block { border-top: 1px solid var(--border); margin-top: 8px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; align-items: center; }
.fchip, .rchip { font: inherit; font-size: var(--font-size-base); display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; min-height: 36px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--bg); color: var(--fg); cursor: pointer; }
.fchip[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.fchip.off { color: var(--muted); }
.fchip.off .swatch { opacity: 0.4; }
.fchip:disabled { opacity: 0.45; cursor: default; }
.rchip { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.route-form { display: flex; gap: 6px; margin: 6px 0; }
.route-form input { flex: 1; min-width: 0; font: inherit; padding: 6px 10px; min-height: var(--min-touch-height); border: 1px solid var(--border);
  border-radius: var(--radius-md); background: var(--bg); color: var(--fg); }
.row.switch { min-height: 36px; }
.music-line { margin: 0 0 4px; }
#sheet .songs-audio-row { margin: 4px 0; }

/* ---- footer ----------------------------------------------------------------------------------------------- */
#site-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 14px; padding: 0 12px; font-size: 12px; line-height: 1.3; }
#site-foot a, .leaflet-control-attribution a { display: inline-block; padding: 9px 3px; }
#site-foot .foot-main { flex: 1 1 22rem; }

/* ---- phone: compact bar, sheet from the bottom ---------------------------------------------------------- */
@media (max-width: 799px) {
  #site-top { flex-wrap: wrap; gap: 6px 8px; }
  .brand { font-size: var(--font-size-lg); flex: 1; }
  .brand .tag { display: none; }
  #site-top .stop-search { order: 3; flex-basis: 100%; max-width: none; margin: 0 0 2px; }
  #track-ride { padding: 4px 10px; }
  #bar { padding: 6px 8px; padding-bottom: max(6px, env(safe-area-inset-bottom)); }
  /* one row of icon buttons: the icon above a very short label */
  #bar-main { flex-wrap: nowrap; gap: 4px; }
  #bar-main .spacer { display: none; }
  .tool { flex-direction: column; gap: 2px; min-height: 52px; padding: 4px 6px; font-size: 0.68rem; line-height: 1.1; }
  .tool.mini { min-width: 26px; padding: 4px 2px; }
  .tool.mini::before { width: 16px; height: 16px; }
  .split { flex: 0 1 auto; }
  #bar-main > .tool { flex: 1 1 0; }
  #songs-play { min-width: 0; }
  .split .tool:first-child { flex: 1 1 auto; }
  #bar .btn { font-size: 0.9rem; }
  .pop, #sound-pop { left: 8px; right: 8px; max-width: none; }
  #sheet, #info { left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 72%; border-radius: 14px 14px 0 0; border-width: 1px 0 0; }
  #info { top: auto; }
  #chips { max-width: calc(100% - 70px); }
  #site-foot { padding: 2px 10px; padding-bottom: max(2px, env(safe-area-inset-bottom)); }
  #site-foot .foot-main { flex-basis: 100%; }
  #replay-row { gap: 6px; }
  #replay-row .tool { flex: 1 1 0; }
  #rp-clock { font-size: var(--font-size-sm); }
  #scrub-wrap { flex-basis: 100%; order: 8; }
}
@media (prefers-reduced-motion: reduce) {
  .pluck-label { animation-duration: 1.6s; }
}

/* header share button: an icon only (the name is its aria-label) */
.btn.icon[data-ic="share"] { font-style: normal; min-width: var(--min-touch-height); padding: 0; }
.btn.icon[data-ic="share"]::before { content: ""; width: 22px; height: 22px; background: currentColor; mask: var(--ic-share) center / contain no-repeat; -webkit-mask: var(--ic-share) center / contain no-repeat; }

/* ---- reach and legibility (QA #51, #53) -------------------------------------------------------------------- */
/* tap targets of 40 px or more: zoom buttons, volume and arrangement */
.leaflet-touch .leaflet-bar a, .leaflet-bar a { width: 40px; height: 40px; line-height: 40px; }
.music-extra select, .music-extra input[type="range"] { min-height: 40px; }
/* attribution: the same colours as the rest of the page, links at 4.5:1 or better in both schemes */
.leaflet-container .leaflet-control-attribution { background: var(--panel); color: var(--fg); font-size: 12px; line-height: 1.2; }
.leaflet-container .leaflet-control-attribution a { color: var(--accent); }
/* a focus ring that shows on both themes, on everything the bar and the map offer */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, .leaflet-bar a:focus-visible, .leaflet-container:focus-visible {
  outline: var(--focus-width) solid var(--focus-color); outline-offset: var(--focus-offset);
}

/* ---- "you are here": not a bus dot ------------------------------------------------------------------------- */
.you-dot { background: transparent; border: 0; }
.you-dot span { display: block; width: 22px; height: 22px; box-sizing: border-box; border-radius: 50%; background: #d6246e; border: 4px solid #ffffff;
  box-shadow: 0 0 0 2px #d6246e, 0 2px 6px rgba(0, 0, 0, 0.5); }
#toast { max-width: min(420px, calc(100vw - 32px)); border-radius: 14px; text-align: left; }
