﻿/* ------------------------------------------------------------------ tokens
 *
 * Every colour in this file comes from a token below, so the palette lives in
 * exactly one place and no component CSS carries a literal colour.
 *
 * One palette: Tel Aviv–Yafo municipal blue. #0072bc and the #2e2e2e text
 * grey are read off tel-aviv.gov.il rather than invented, so the page sits
 * beside the city's own properties without a clash. The light/dark/TLV
 * switcher that used to live in the header is gone — a resident looking for
 * a parking space has no use for a theme menu, and one palette is one thing
 * to keep correct.
 */
:root {
  --ink: #2e2e2e;
  --ink-2: #4a5157;
  --muted: #6e767d;
  --muted-2: #9aa2a9;

  --bg: #f2f6f9;
  --card: #ffffff;
  --line: #dfe5ea;
  --line-strong: #c3ced7;
  --field: #ffffff;
  --field-line: #c8d2da;
  --soft: #f5f8fb;
  --chip-bg: #edf1f4;

  --accent: #0072bc;
  --accent-ink: #ffffff;
  --accent-soft: #e6f1f9;
  --accent-line: #a8cfe8;
  --accent-hover: #005c99;
  --link: #005c99;

  --ok: #15803d;
  --ok-bg: #e8f5ec;
  --warn: #a35a00;
  --warn-bg: #fdf3e3;
  --bad: #be2a2a;
  --bad-bg: #fdeaea;
  --plain: #5b6672;

  --topbar: #0072bc;
  --topbar-ink: #ffffff;
  --topbar-sub: #c6e2f4;
  --topbar-hover: rgba(255, 255, 255, .18);

  --pin: #10384f;
  --pin-ring: #ffffff;
  --dot: #8b96a3;
  --dest: #d64a16;
  --focus: #c2410c;
  --map-bg: #e3eaf0;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(17, 22, 28, .06), 0 6px 16px -10px rgba(17, 22, 28, .25);
  --panel-w: 400px;

  --font: "Segoe UI", Rubik, Heebo, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

/* ------------------------------------------------------------------- reset */
* { box-sizing: border-box; }

/* The menu, the loader and the suggestion list are all toggled with the
   [hidden] attribute, and all three set a display of their own — which would
   silently beat the UA's `display: none`. Settle it once, here. */
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { list-style: none; padding: 0; }

a { color: var(--link); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--ink);
  color: var(--card);
  padding: .6rem 1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.skip:focus { inset-inline-start: 0; }

/* ------------------------------------------------------------------ topbar */
.topbar {
  background: var(--topbar);
  color: var(--topbar-ink);
  padding-top: env(safe-area-inset-top);
}

.topbar__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: .7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.01em;
  min-width: 0;
}

.brand small {
  display: block;
  font-size: .76rem;
  font-weight: 400;
  color: var(--topbar-sub);
  letter-spacing: 0;
}

/* Latin wordmark sitting in an RTL header: pin its direction so the browser
   doesn't reorder it against neighbouring Hebrew. */
.brand__name {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

/* The mark is a map pin whose counter is a parking bay rather than the usual
   dot — "here" and "parking" in one closed path. The bay is a real hole (the
   path is a single shape with fill-rule evenodd), so it shows the bar through
   it and needs no second colour: the mark works anywhere one colour works,
   favicon included. White on the blue bar, since the accent *is* the bar. */
.brand__mark {
  flex: none;
  display: block;
  width: 34px;
  height: 34px;
  color: var(--card);
}

.brand__mark svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* ------------------------------------------------------------------ layout */
/* Mobile: search + state, then map, then results — in that reading order.
   Desktop: search + results in one scrolling column, map filling the rest. */
.layout {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.panel {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.search { margin: 1rem 1rem 0; }

/* Below the desktop breakpoint the map is a card like everything else, with
   air above it. Butted straight against the search card it read as a seam. */
.map-wrap {
  margin: .85rem 1rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

#map {
  height: 42vh;
  min-height: 240px;
  background: var(--map-bg);
  z-index: 0;
}

@media (min-width: 900px) {
  .layout {
    display: grid;
    grid-template-columns: var(--panel-w) 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
      "search map"
      "panel  map";
    height: calc(100vh - 54px);
  }
  .search { grid-area: search; margin: 1rem 1rem 0; }
  .panel { grid-area: panel; overflow-y: auto; padding-top: .9rem; }
  .map-wrap {
    grid-area: map;
    height: 100%;
    margin: 1rem 0 1rem 0;
    margin-inline-end: 1rem;
  }
  #map { height: 100%; min-height: 0; }
}

/* ------------------------------------------------------------------ search */
.search {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: .9rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  position: relative;
}

/* A hairline that sweeps while a search is in flight: the one piece of
   "something is happening" that sits at the very top of the page. */
.search::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transform: scaleX(.3);
}

.search[data-busy="true"]::after {
  opacity: 1;
  animation: sweep 1.1s ease-in-out infinite;
}

@keyframes sweep {
  0%   { transform: translateX(-35%) scaleX(.35); }
  50%  { transform: translateX(0) scaleX(1); }
  100% { transform: translateX(35%) scaleX(.35); }
}

.search__label {
  font-weight: 600;
  font-size: .95rem;
}

.search__row {
  display: flex;
  gap: .5rem;
}

.search__field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.search input {
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  padding: .6rem .75rem;
  border: 1px solid var(--field-line);
  border-radius: var(--radius-sm);
  background: var(--field);
  color: inherit;
}

.search input::placeholder { color: var(--muted-2); }

.search__help {
  font-size: .8rem;
  color: var(--muted);
}

.btn {
  font: inherit;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: .6rem .9rem;
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); }

.btn--ghost {
  background: var(--field);
  border-color: var(--field-line);
  color: var(--ink-2);
}
.btn--ghost:hover { background: var(--soft); }

.btn--geo { align-self: flex-start; padding: .45rem .7rem; font-size: .87rem; }

/* ------------------------------------------------------- suggestions (Photon) */
.suggest {
  position: absolute;
  z-index: 1100;
  top: calc(100% + .3rem);
  inset-inline: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
  /* Tall enough for all six results, so the common case never shows a
     scrollbar sitting over the map behind it. */
  max-height: 23rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.suggest li {
  padding: .45rem .6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .92rem;
  border-top: 1px solid var(--line);
}

.suggest li:first-child { border-top: 0; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--accent-soft); }

/* The sprite itself is never drawn; only its <symbol>s are referenced. */
.sprite { display: none; }

.suggest__ic {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--muted);
  /* fill and stroke are inherited, so they reach the <use> shadow content. */
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.suggest li[aria-selected="true"] .suggest__ic,
.suggest li:hover .suggest__ic { color: var(--accent); }

.suggest__pending {
  color: var(--muted);
  font-size: .86rem;
  cursor: default;
}

.suggest__pending .suggest__ic { animation: pulse 1.1s ease-in-out infinite; }

/* Both lines stay on one line each: an OSM district name can be long enough
   to push every row to three lines and turn the list into a wall. */
.suggest__lines { min-width: 0; flex: 1 1 auto; }

.suggest__name,
.suggest__where {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggest__name { font-weight: 600; }
.suggest__where { color: var(--muted); font-size: .82rem; }

/* ----------------------------------------------------------------- options */
.options {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .9rem;
}

.toggle {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  cursor: pointer;
  user-select: none;
}

.toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* --------------------------------------------------------- the state line
 * Sits inside the search card, directly under the input, so the answer to
 * "did my search work?" is never below the fold or below the map. */
/* What the page covers, as figures. These were one sentence that wrapped to
   three lines on a phone and got clipped, taking both numbers with it. As
   chips they wrap whole, and the numbers stay the thing you see first. */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0;
}

.fact {
  display: inline-flex;
  align-items: baseline;
  gap: .3rem;
  font-size: .8rem;
  color: var(--ink-2);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .2rem .6rem;
  white-space: nowrap;
}

.fact b {
  font-size: .95rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* The dot hangs in the margin rather than sitting in the flow. This used to be
 * a flex row, which turned every text node and every <b> of the message into
 * its own flex item: on one line it looked right, but as soon as the line
 * wrapped the items laid out as ragged columns instead of a sentence. */
.state {
  position: relative;
  padding-inline-start: .95rem;
  font-size: .88rem;
  line-height: 1.45;
  color: var(--ink-2);
  min-height: 1.4em;
  margin: 0;
}

.state b { color: var(--ink); }

.state::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted-2);
}

.state[data-state="busy"] { color: var(--ink-2); }
.state[data-state="busy"]::before { background: var(--accent); animation: pulse 1s ease-in-out infinite; }
.state[data-state="ok"]::before { background: var(--ok); }
.state[data-state="error"] { color: var(--bad); font-weight: 600; }
.state[data-state="error"]::before { background: var(--bad); }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.55); opacity: .45; }
}

.state__retry {
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  margin-inline-start: .2rem;
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

/* ------------------------------------------------------------ map loader
 * Line art of the three Azrieli towers, a Bauhaus block and a palm, drawn by
 * animating stroke-dashoffset. Swap the <g> for a self-drawing logo later;
 * nothing else needs to change.
 *
 * Base state is "fully drawn" so prefers-reduced-motion (which kills all
 * animation further down) leaves a complete picture rather than nothing. */
.loader {
  position: absolute;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--card) 76%, transparent);
  backdrop-filter: blur(2px);
}

.loader__card {
  text-align: center;
  padding: 1rem 1.25rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  max-width: min(22rem, 86%);
}

.loader__art {
  width: 220px;
  max-width: 100%;
  height: auto;
  color: var(--accent);
  cursor: pointer;
}

.loader__art { color: var(--accent); }

.loader__ink path {
  stroke-dasharray: 320;
  stroke-dashoffset: 0;
}

/* Looping says "still working". A failure is not still working, so it draws
   once and holds — a drawing that keeps redrawing itself next to "we didn't
   find it" reads as activity that isn't happening. */
.loader[data-anim="run"] .loader__ink path {
  animation: draw 2.6s ease-in-out infinite;
}

.loader[data-anim="once"] .loader__ink path {
  animation: draw-once 1.8s ease-in-out forwards;
}

.loader__ink path:nth-child(1)  { animation-delay: 0s; }
.loader__ink path:nth-child(2)  { animation-delay: .10s; }
.loader__ink path:nth-child(3)  { animation-delay: .18s; }
.loader__ink path:nth-child(4)  { animation-delay: .26s; }
.loader__ink path:nth-child(5)  { animation-delay: .34s; }
.loader__ink path:nth-child(6)  { animation-delay: .42s; }
.loader__ink path:nth-child(7)  { animation-delay: .50s; }
.loader__ink path:nth-child(8)  { animation-delay: .56s; }
.loader__ink path:nth-child(9)  { animation-delay: .62s; }
.loader__ink path:nth-child(10) { animation-delay: .68s; }
.loader__ink path:nth-child(11) { animation-delay: .74s; }
.loader__ink path:nth-child(12) { animation-delay: .80s; }

@keyframes draw {
  0%   { stroke-dashoffset: 320; opacity: 0; }
  8%   { opacity: 1; }
  50%  { stroke-dashoffset: 0; opacity: 1; }
  82%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: .12; }
}

/* Same draw, but it settles finished and stays there (note the `forwards`
   above) instead of fading out to start over. */
@keyframes draw-once {
  0%   { stroke-dashoffset: 320; opacity: 0; }
  10%  { opacity: 1; }
  70%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

.loader__text {
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
}

.loader__sub { font-size: .82rem; color: var(--muted); }

.loader[data-kind="error"] .loader__art { color: var(--bad); }
.loader[data-kind="error"] .loader__text { color: var(--bad); }

.loader__retry {
  font: inherit;
  font-size: .87rem;
  font-weight: 600;
  margin-top: .45rem;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: var(--radius-sm);
  padding: .4rem .85rem;
  cursor: pointer;
}
.loader__retry:hover { background: var(--accent-hover); }

/* How old the occupancy data is. Quiet by default, but it counts up visibly
   so nobody reads a stale chip as current. */
.freshness {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-top: -.6rem;
  font-size: .8rem;
  color: var(--muted);
}

.freshness::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
}

.freshness[data-stale="true"] { color: var(--warn); }
.freshness[data-stale="true"]::before { background: var(--warn); }

/* ----------------------------------------------------------------- results */
.results {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.lot {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: .75rem .85rem;
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  cursor: pointer;
  scroll-margin: 1rem;
}

.lot__body { flex: 1 1 auto; min-width: 0; }

.lot:hover { border-color: var(--line-strong); }
.lot.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft), var(--shadow); }

.lot__rank {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--pin);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: .15rem;
}

.lot__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
}

.lot__name {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

.lot__meta {
  font-size: .85rem;
  color: var(--muted);
}

.lot__meta b { color: var(--ink-2); font-weight: 600; }

/* price */
.price { margin-top: .3rem; font-size: .95rem; }

.price__now { font-weight: 700; }
.price__was { color: var(--muted); text-decoration: line-through; margin-inline-start: .35rem; font-weight: 400; font-size: .88em; }
.price__unit { font-weight: 400; color: var(--ink-2); }
.price__plain { color: var(--ink-2); }

/* Two rates run at every lot — hourly by day, a flat entry fee otherwise.
 * The one in force now is shown first and at full strength; the other is
 * dimmed so nobody reads the wrong number off the card. */
.price__rate--off { opacity: .45; }
.price__rate--off .price__now { font-weight: 400; }
.price__rate--off .price__was { display: none; }

.price__tag {
  margin-inline-start: .25rem;
  font-size: .72em;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: .5rem;
  padding: 0 .3rem;
  white-space: nowrap;
}

.price__when {
  display: block;
  margin-top: .15rem;
  font-size: .78rem;
  color: var(--ink-2);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .4rem;
}

.badge {
  font-size: .76rem;
  font-weight: 600;
  padding: .12rem .5rem;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--ink-2);
  white-space: nowrap;
}

.badge--perk { background: var(--accent-soft); color: var(--link); }
.badge--free { background: var(--ok-bg); color: var(--ok); }

/* live status chip */
.chip {
  flex: none;
  font-size: .78rem;
  font-weight: 600;
  padding: .12rem .5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--chip-bg);
  color: var(--plain);
}

.chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.chip--available { background: var(--ok-bg); color: var(--ok); }
.chip--few { background: var(--warn-bg); color: var(--warn); }
.chip--full { background: var(--bad-bg); color: var(--bad); }
.chip--loading { color: var(--muted-2); }
.chip--loading::before { background: none; }

/* Roughly half the lots publish no live count, only "operating". Neutral on
   purpose: פעיל is not פנוי and must never be mistaken for it. */
.chip--open { background: var(--chip-bg); color: var(--plain); }

/* סגור is the one piece of genuinely actionable bad news here, and it used to
   render identically to פעיל. Solid and dark — unmistakable, and distinct
   from מלא, which is red. */
.chip--closed { background: var(--ink-2); color: var(--card); }
.chip--closed::before { background: currentColor; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .55rem;
}

.actions a {
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-2);
  border: 1px solid var(--field-line);
  border-radius: var(--radius-sm);
  padding: .3rem .6rem;
  background: var(--field);
}

.actions a:hover { background: var(--soft); }
.actions a.is-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.actions a.is-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.tariff {
  margin-top: .5rem;
  font-size: .84rem;
  color: var(--ink-2);
}

.tariff summary {
  cursor: pointer;
  color: var(--link);
  font-weight: 600;
  width: fit-content;
}

.tariff p {
  margin-top: .4rem;
  padding: .5rem .6rem;
  background: var(--soft);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  line-height: 1.6;
}

.empty {
  background: var(--card);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 1.1rem;
  color: var(--ink-2);
  font-size: .95rem;
}

/* Explains a gap between the list and the map: lots the discount filter is
 * holding back that are nearer than the ones listed. */
.note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .75rem;
  background: var(--card);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: .7rem .9rem;
  color: var(--ink-2);
  font-size: .88rem;
}

.note__show {
  font: inherit;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: .2rem .7rem;
  cursor: pointer;
}

.note__show:hover { background: var(--accent); color: #fff; }
.note__show:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ----------------------------------------------------------------- credits */
.credits {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding-bottom: .5rem;
}

.credits__meta { color: var(--muted-2); }

/* -------------------------------------------------------------- map pieces */
.pin {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--pin);
  color: #fff;
  font: 700 .8rem/1 var(--font);
  border: 2px solid var(--pin-ring);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}

.pin--available { background: var(--ok); }
.pin--few { background: var(--warn); }
.pin--full { background: var(--bad); }

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--dot);
  border: 2px solid var(--pin-ring);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}

/* An unranked lot stays neutral until its pin is opened and we actually ask;
   then it carries the same colour language as the ranked pins. */
.dot--available { background: var(--ok); }
.dot--few { background: var(--warn); }
.dot--full { background: var(--bad); }
.dot--closed { background: var(--ink-2); }

.pin--closed { background: var(--ink-2); }

.pin-dest {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--dest);
  border: 3px solid var(--pin-ring);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dest) 28%, transparent), 0 1px 4px rgba(0, 0, 0, .35);
}

.leaflet-container { font-family: var(--font); background: var(--map-bg); }

.leaflet-popup-content { margin: .6rem .8rem; font-size: .9rem; }
.leaflet-popup-content b { display: block; font-size: .98rem; }
.leaflet-popup-content .popup__where { color: var(--muted); }
.leaflet-popup-content .chip { margin-top: .35rem; }

.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  background: var(--card);
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
