/* Nerede oturalım? Tam ekran harita, üstünde tek panel.
   İlke: bir anda tek soru. İşyeri seçilene kadar yalnızca arama görünür; seçenekler sonra açılır.
   Görsel dil: İstanbul toplu taşıma tabelaları. Kişiler hat yuvarlağı, süreler renkli hap, lejant hat şeridi. */

:root {
  --ink: #14213d;
  --ink-soft: #46536a;
  --muted: #74809a;
  --rule: #e3e7ee;
  --surface: #ffffff;
  --tint: #f3f5f9;
  --tint-strong: #e8ecf3;
  --navy: #0a2f51;
  --focus: #1f6feb;
  --shadow-float: 0 12px 40px rgb(20 33 61 / 0.16), 0 2px 6px rgb(20 33 61 / 0.06);
  --shadow-chip: 0 2px 10px rgb(20 33 61 / 0.14);
  --r-panel: 20px;
  --r-box: 14px;
  --r-pill: 999px;
  font-family: "Overpass", system-ui, sans-serif;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--tint); overflow: hidden; }
button, input, select, output { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg circle { fill: currentColor; stroke: none; }

.app { position: fixed; inset: 0; }
.map-wrap { position: absolute; inset: 0; }
#map { position: absolute; inset: 0; }

/* ---------------------------------------------------------------- panel */

.panel {
  position: absolute;
  top: 16px;
  left: 16px;
  bottom: 16px;
  width: 380px;
  z-index: 3;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-float);
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  scrollbar-width: thin;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
}
/* İki hat yuvarlağı üst üste: "birden fazla kişi, ortak nokta" */
.brand-mark { position: relative; width: 26px; height: 18px; }
.brand-mark::before, .brand-mark::after {
  content: "";
  position: absolute;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}
.brand-mark::before { left: 0; background: #c8324b; }
.brand-mark::after { left: 8px; background: #d99a16; mix-blend-mode: multiply; }

.intro h1 { margin: 0; font-size: 2rem; line-height: 1.05; font-weight: 800; letter-spacing: -0.025em; }
.lede { margin: 8px 0 0; color: var(--ink-soft); font-size: 1rem; max-width: 32ch; }

/* Hat yuvarlağı: kişi, harita işareti ve kartta aynı */
.badge {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--person);
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  line-height: 1;
  padding-top: 2px;
  flex: none;
}

/* ---------------------------------------------------------------- kişiler */

.people { list-style: none; margin: -4px 0 0; padding: 0; display: grid; gap: 14px; }
.person { display: grid; gap: 6px; }
.person-label { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); }

.field { display: grid; gap: 6px; }
.search { position: relative; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-icon circle { fill: none; stroke: currentColor; }
.place {
  width: 100%;
  height: 52px;
  padding: 3px 44px 0 42px;
  border: 2px solid var(--rule);
  border-radius: var(--r-box);
  background: var(--surface);
  font-size: 1.05rem;
  font-weight: 600;
  transition: border-color 120ms;
}
.place::placeholder { color: var(--muted); font-weight: 400; }
.place:hover { border-color: #ccd3de; }
.place:focus { outline: none; border-color: var(--person); box-shadow: 0 0 0 4px color-mix(in srgb, var(--person) 18%, transparent); }

.remove {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}
.remove:hover { background: var(--tint); color: var(--ink); }

.days { justify-self: start; position: relative; }
.days::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -5px;
  border-right: 1.8px solid var(--ink-soft);
  border-bottom: 1.8px solid var(--ink-soft);
  transform: rotate(45deg);
  pointer-events: none;
}
.day-count {
  appearance: none;
  -webkit-appearance: none;
  height: 32px;
  padding: 2px 30px 0 12px;
  border: none;
  border-radius: var(--r-pill);
  background: var(--tint);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.day-count:hover { background: var(--tint-strong); }

.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; }
.quick span { font-size: 0.82rem; color: var(--muted); margin-right: 2px; }
.quick button {
  height: 32px;
  padding: 2px 12px 0;
  border: none;
  border-radius: var(--r-pill);
  background: var(--tint);
  font-size: 0.88rem;
  font-weight: 600;
}
.quick button:hover { background: var(--tint-strong); }

.suggestions {
  position: absolute;
  z-index: 6;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border-radius: var(--r-box);
  box-shadow: var(--shadow-float);
}
.suggestions li { padding: 10px 12px 8px; border-radius: 10px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.suggestions li span { color: var(--muted); font-size: 0.9rem; }
.suggestions li[aria-selected="true"], .suggestions li:hover { background: var(--tint); }

.add-person {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border: none;
  background: transparent;
  color: var(--navy);
  font-weight: 700;
  margin-top: -6px;
  align-self: flex-start;
}
.add-person svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--tint); }
.add-person:hover svg { background: var(--tint-strong); }

/* ---------------------------------------------------------------- kira */

.rent { border: none; margin: 0; padding: 0; min-width: 0; }
.rent legend { padding: 0; margin-bottom: 8px; font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); }
.rent .hint { font-weight: 400; color: var(--muted); }
.segmented { display: grid; grid-template-columns: repeat(4, auto); gap: 4px; padding: 4px; border-radius: var(--r-box); background: var(--tint); }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span {
  display: grid;
  place-items: center;
  height: 36px;
  padding: 2px 6px 0;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.1;
}
.segmented input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgb(20 33 61 / 0.14); }
.segmented input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 1px; }

/* ---------------------------------------------------------------- sonuç listesi */

.results h2 { font-size: 1.05rem; font-weight: 800; margin: 2px 0 6px; }
.empty { margin: 0; color: var(--ink-soft); font-size: 0.95rem; padding: 14px; background: var(--tint); border-radius: var(--r-box); }

.ranking { list-style: none; margin: 0 -8px; padding: 0; counter-reset: rank; }
.ranking li { counter-increment: rank; }
.result {
  width: 100%;
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  column-gap: 10px;
  padding: 10px 8px 8px;
  border: none;
  border-radius: 12px;
  background: none;
  text-align: left;
}
.result::before { content: counter(rank); color: var(--muted); font-size: 0.82rem; font-variant-numeric: tabular-nums; text-align: right; }
.result:hover { background: var(--tint); }
.result[aria-current="true"] { background: var(--tint-strong); }
.result .where { min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.result .where strong { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result .meta { font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.result .where:has(.risk) { flex-wrap: wrap; row-gap: 0; }
.result .risk { flex-basis: 100%; font-size: 0.78rem; font-weight: 700; color: #b3261e; }

.pill {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  min-width: 60px;
  justify-content: center;
  padding: 5px 10px 3px;
  border-radius: var(--r-pill);
  background: var(--c);
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  font-weight: 600;
}
.pill strong { font-size: 1.05rem; font-weight: 800; }
.pill.light { color: var(--ink); }

.how { margin-top: 10px; font-size: 0.85rem; color: var(--ink-soft); }
.how summary { cursor: pointer; font-weight: 600; color: var(--navy); width: fit-content; }
.how p { margin: 8px 0 0; line-height: 1.5; }

/* ---------------------------------------------------------------- harita araçları */

.map-tools { position: absolute; top: 16px; right: 16px; z-index: 4; display: grid; justify-items: end; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 2px 16px 0 13px;
  border: none;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--shadow-chip);
  font-size: 0.9rem;
  font-weight: 700;
}
.chip svg { margin-top: -2px; }
.chip[aria-expanded="true"] { background: var(--ink); color: #fff; }

.layers {
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: var(--r-box);
  background: var(--surface);
  box-shadow: var(--shadow-float);
  min-width: 270px;
}
.switch { display: flex; align-items: center; gap: 12px; padding: 9px 10px 7px; border-radius: 10px; font-size: 0.92rem; cursor: pointer; }
.switch:hover { background: var(--tint); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span {
  position: relative;
  flex: none;
  width: 38px;
  height: 22px;
  margin-top: -2px;
  border-radius: var(--r-pill);
  background: var(--tint-strong);
  transition: background 150ms;
}
.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(20 33 61 / 0.3);
  transition: transform 150ms;
}
.switch input:checked + span { background: var(--navy); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.maplibregl-ctrl-bottom-right { bottom: 26px; right: 6px; }
.maplibregl-ctrl-group { border-radius: 12px !important; box-shadow: var(--shadow-chip) !important; overflow: hidden; }

/* Lejant: hat şeridi; yalnızca akılda kalan eşikler yazılı */
.legend {
  position: absolute;
  z-index: 2;
  bottom: 18px;
  left: 412px;
  width: min(360px, calc(100% - 500px));
  padding: 10px 16px 8px;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.95);
  box-shadow: var(--shadow-chip);
}
.legend-title { margin: 0 0 7px; font-size: 0.8rem; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.legend-title span { font-weight: 400; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.legend-title i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.legend .line { display: grid; grid-template-columns: repeat(7, 1fr); height: 8px; border-radius: 4px; overflow: hidden; }
.legend .stops { display: grid; grid-template-columns: repeat(7, 1fr); font-size: 0.72rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; margin-top: 4px; }
.legend .stops span { position: relative; transform: translateX(-50%); white-space: nowrap; }
.legend .stops span:first-child, .legend .stops .blank { visibility: hidden; }
.legend .stops span::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--ink);
}

.work-marker {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--person);
  color: #fff;
  font: 800 1rem/32px "Overpass", sans-serif;
  text-align: center;
  padding-top: 1px;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgb(20 33 61 / 0.35);
}

.hover-tip .maplibregl-popup-content {
  padding: 7px 11px 5px;
  font: 0.85rem/1.35 "Overpass", sans-serif;
  color: var(--ink);
  border-radius: 10px;
  box-shadow: var(--shadow-chip);
}
.hover-tip .maplibregl-popup-content span { display: block; color: var(--ink-soft); }
.hover-tip .maplibregl-popup-tip { display: none; }

/* Örnek ilan kartı (harita üstü açılır pencere) */
.ilan-popup .maplibregl-popup-content {
  padding: 16px 16px 14px;
  border-radius: var(--r-box);
  box-shadow: var(--shadow-float);
  font: 0.9rem/1.4 "Overpass", sans-serif;
  color: var(--ink);
}
.ilan-popup .maplibregl-popup-close-button { width: 30px; height: 30px; font-size: 1.3rem; color: var(--ink-soft); border-radius: 50%; }
.ilan-popup p, .ilan-sheet p { margin: 0; }
.ilan-sheet {
  position: absolute;
  z-index: 5;
  top: 10px;
  left: 10px;
  right: 10px;
  padding: 16px 16px 14px;
  border-radius: var(--r-panel);
  background: var(--surface);
  box-shadow: var(--shadow-float);
  font-size: 0.9rem;
  line-height: 1.4;
}
.ilan-sheet .close { position: absolute; top: 12px; right: 12px; margin: 0; }
.ilan-sheet .btn { width: 100%; height: 40px; }
.ilan-etiket {
  display: inline-block;
  margin-bottom: 8px !important;
  padding: 4px 9px 2px;
  border-radius: var(--r-pill);
  background: #fff1cc;
  color: #8a5a00;
  font-size: 0.75rem;
  font-weight: 700;
}
.ilan-fiyat { font-size: 0.9rem; color: var(--ink-soft); }
.ilan-fiyat strong { font-size: 1.5rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.ilan-ozet { margin-top: 2px !important; font-weight: 600; }
.ilan-yer { color: var(--muted); }
.ilan-not { margin: 10px 0 12px !important; font-size: 0.78rem; color: var(--muted); line-height: 1.4; }
.ilan-popup .btn { width: 100%; height: 38px; }

/* ---------------------------------------------------------------- mahalle kartı */

.card {
  position: absolute;
  z-index: 3;
  top: 68px;
  right: 16px;
  width: 350px;
  max-height: calc(100% - 170px);
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-float);
  padding: 20px 20px 18px;
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card h2 { margin: 0; font-size: 1.6rem; line-height: 1.05; font-weight: 800; letter-spacing: -0.015em; }
.card-ilce { margin: 3px 0 0; color: var(--muted); }
.close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: -4px -6px 0 0;
  border: none;
  border-radius: 50%;
  background: var(--tint);
  color: var(--ink-soft);
}
.close:hover { background: var(--tint-strong); color: var(--ink); }

.card-stat { display: flex; align-items: center; gap: 14px; margin: 16px 0 14px; }
.card-stat .big { font-size: 2.6rem; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; padding-top: 4px; white-space: nowrap; }
.card-stat .big small { font-size: 1rem; font-weight: 700; margin-left: 2px; }
.card-stat p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.4; }
.card-stat p strong { color: var(--ink); }
.card-stat .swatch { width: 8px; align-self: stretch; border-radius: 4px; background: var(--c); }
.card-warn { margin: 14px 0; padding: 10px 12px; border-radius: var(--r-box); background: #fbeaea; color: #7d2323; font-size: 0.92rem; }

.legs { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.legs li {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 6px 10px;
  border-radius: 12px;
  background: var(--tint);
  font-size: 0.92rem;
}
.legs .who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.legs .t { font-variant-numeric: tabular-nums; color: var(--ink-soft); white-space: nowrap; display: grid; justify-items: end; line-height: 1.15; }
.legs .t strong { color: var(--ink); font-weight: 800; font-size: 1rem; }
.legs .t small { font-size: 0.72rem; color: var(--muted); }

.card-facts { margin: 0; padding: 10px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 4px; font-size: 0.9rem; }
.card-facts p { margin: 0; display: flex; justify-content: space-between; gap: 12px; color: var(--ink-soft); }
.card-facts strong { color: var(--ink); }
.card-note { font-size: 0.8rem !important; color: var(--muted) !important; }
.card-facts p.card-note { display: block; line-height: 1.4; }
.quake { padding: 1px 8px; border-radius: 999px; font-size: 0.82rem; }
.quake-dusuk { background: #dff3e4; color: #1d6b34 !important; }
.quake-orta { background: #fdf0cf; color: #8a5a00 !important; }
.quake-yuksek { background: #fbe0dd; color: #b3261e !important; }
.safe-only { margin: -6px -10px 0; }

.card-street { margin-top: 14px; border-radius: var(--r-box); overflow: hidden; background: var(--tint); aspect-ratio: 4 / 3; }
.card-street iframe { display: block; width: 100%; height: 100%; border: 0; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 44px;
  padding: 2px 12px 0;
  border: none;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; margin-top: -2px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #072240; }
.btn-secondary { background: var(--tint); color: var(--ink); }
.btn-secondary:hover { background: var(--tint-strong); }
.btn-ghost { grid-column: 1 / -1; background: transparent; color: var(--navy); height: 36px; }
.btn-ghost:hover { background: var(--tint); }

/* ---------------------------------------------------------------- otobüsler */

.card-bus { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); }
.card-bus:empty { display: none; }
.card-bus h3 { margin: 0; font-size: 0.95rem; font-weight: 800; }
.bus-hint { margin: 2px 0 10px; font-size: 0.82rem; color: var(--muted); }
.bus-none { margin: 0; font-size: 0.85rem; color: var(--muted); }
.bus-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bus-chip, .bus-more {
  height: 32px;
  min-width: 48px;
  padding: 2px 10px 0;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.bus-chip { background: #fdebe1; color: #a63a06; }
.bus-chip:hover { background: #fbd9c6; }
.bus-chip.on { background: var(--ink); color: #fff; }
.bus-more { background: transparent; color: var(--navy); font-weight: 700; }
.bus-more:hover { background: var(--tint); }

/* Seçili hat şeridi: haritanın üstünde, hangi hattın gösterildiğini ve kaç otobüsün yolda olduğunu söyler */
.line-bar {
  position: absolute;
  z-index: 3;
  top: 16px;
  left: 412px;
  max-width: min(460px, calc(100% - 412px - 140px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 10px;
  border-radius: var(--r-box);
  background: var(--surface);
  box-shadow: var(--shadow-float);
}
.line-code {
  flex: none;
  padding: 6px 10px 4px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.line-name { min-width: 0; display: grid; line-height: 1.25; }
.line-name strong { font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-name small { font-size: 0.78rem; color: #a63a06; font-weight: 600; }
.line-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--tint);
  color: var(--ink-soft);
}
.bus-status {
  position: absolute;
  z-index: 3;
  top: 66px;
  right: 16px;
  margin: 0;
  padding: 8px 12px 6px;
  border-radius: 10px;
  background: #fff4e6;
  color: #8a3b00;
  font-size: 0.82rem;
  box-shadow: var(--shadow-chip);
}

.sheet-handle { display: none; }

/* ---------------------------------------------------------------- mobil: tam ekran harita + sürüklenebilir alt panel */

@media (max-width: 859px) {
  .map-wrap { --sheet-visible: 52vh; }

  .panel {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: 92vh;
    height: 92dvh;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -8px 30px rgb(20 33 61 / 0.18);
    padding: 0 18px 24px;
    gap: 16px;
    will-change: transform;
  }
  .sheet-handle {
    display: grid;
    place-items: center;
    position: sticky;
    top: 0;
    z-index: 4;
    flex: none;
    margin: 0 -18px -8px;
    height: 28px;
    border: none;
    background: var(--surface);
    cursor: grab;
    touch-action: none;
  }
  .sheet-handle span { width: 40px; height: 5px; border-radius: 3px; background: var(--rule); }
  .brand { display: none; }
  .intro h1 { font-size: 1.6rem; }
  .lede { font-size: 0.95rem; }

  .map-tools { top: 10px; right: 10px; }
  .chip { height: 38px; }
  .maplibregl-ctrl-bottom-right { bottom: calc(var(--sheet-visible) + 90px); right: 2px; }

  .legend { left: 10px; right: 10px; width: auto; bottom: calc(var(--sheet-visible) + 10px); padding: 8px 12px 6px; }

  .card { top: 10px; left: 10px; right: 10px; width: auto; max-height: 52%; padding: 16px 16px 14px; }
  .card h2 { font-size: 1.35rem; }
  .card-stat { margin: 10px 0; }
  .card-stat .big { font-size: 2rem; }
  .has-card .map-tools, .has-card .legend, .has-card .maplibregl-ctrl-bottom-right { display: none; }
  .line-bar { top: 58px; left: 10px; right: 10px; max-width: none; }
  .bus-status { top: auto; right: 10px; left: 10px; bottom: calc(var(--sheet-visible) + 86px); }
}

@media (prefers-reduced-motion: reduce) {
  .place, .switch span, .switch span::after { transition: none; }
}
