/* Paris Pulse website.
 *
 * Built on the supplied design tokens (assets/design-tokens.css), which this file imports
 * rather than duplicates. Three rules run through everything here:
 *
 * - Meaning is never carried by colour alone. Every price, promotion and status state is a
 *   word; colour only reinforces it.
 * - Touch targets are at least 46px. The specification asks for 44; browsers round
 *   sub-pixel heights down, so the declared value leaves room rather than landing on the
 *   limit and measuring 43.99.
 * - The layout works from 320px upwards and survives 200% zoom, because a filter you cannot
 *   reach is a filter that does not exist.
 */

@import url("../assets/design-tokens.504d63660ff5.css");

:root { --target-min: 46px; }

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.55;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 var(--space-3); }
h1 { font-size: var(--text-2xl); letter-spacing: -0.02em; }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }
p { margin: 0 0 var(--space-3); }

a { color: inherit; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute; left: -9999px; top: var(--space-2);
  background: var(--color-surface); color: var(--color-ink);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); z-index: 100;
}
.skip-link:focus { left: var(--space-4); }

.shell { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-4); }

/* --- Header ------------------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--color-line);
  background: var(--color-surface);
  position: sticky; top: 0; z-index: 20;
}
.site-header__inner {
  display: flex; align-items: center; gap: var(--space-4);
  min-height: 60px; flex-wrap: wrap;
}
.wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg);
  text-decoration: none; letter-spacing: -0.01em;
}
.wordmark span { color: var(--color-coral); }
.site-nav { margin-left: auto; display: flex; gap: var(--space-2); flex-wrap: wrap; }
.site-nav a {
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-pill);
  text-decoration: none; font-size: var(--text-sm); min-height: var(--target-min);
  display: inline-flex; align-items: center;
}
.site-nav a:hover { background: var(--color-paper); }

/* --- Hero and search ---------------------------------------------------------------- */

.hero { padding: var(--space-6) 0 var(--space-4); }
.hero h1 { max-width: 20ch; }
.hero__lede { color: var(--color-ink-muted); max-width: 60ch; }

.search { display: flex; gap: var(--space-2); margin: var(--space-4) 0 var(--space-3); }
.search input[type="search"] {
  flex: 1; min-width: 0; min-height: 48px;
  padding: 0 var(--space-4); font-size: var(--text-base);
  border: 1px solid var(--color-line); border-radius: var(--radius-pill);
  background: var(--color-surface); color: var(--color-ink);
}

.button, button.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-5);
  border: 1px solid transparent; border-radius: var(--radius-pill);
  background: var(--color-coral); color: #fff;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.button:hover { background: var(--color-coral-hover); }
.button--quiet {
  background: var(--color-surface); color: var(--color-ink); border-color: var(--color-line);
}
.button--quiet:hover { background: var(--color-paper); }

.date-chips {
  display: flex; gap: var(--space-2); overflow-x: auto; padding: 0 0 var(--space-2);
  border: 0; margin: 0; flex-wrap: wrap;
  /* A fieldset defaults to min-width: min-content, which would let the unwrapped chip row
   * widen the whole page on a phone instead of scrolling inside itself. */
  min-width: 0;
  /* The visually hidden radios are absolutely positioned; without a positioned ancestor
   * inside the scroller they escape its clipping and widen the page the same way. */
  position: relative;
}
@media (max-width: 767px) { .date-chips { flex-wrap: nowrap; } }
/* A radio dressed as a chip. The input stays in the document for the keyboard and the
 * screen reader; only its box is hidden, and focus shows on the chip itself. */
.chip__input {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.chip:has(.chip__input:focus-visible) { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.chip:has(.chip__input:checked) {
  background: var(--color-mint); border-color: var(--color-mint-strong);
  color: var(--color-mint-strong); font-weight: 600;
}
.date-range { display: none; flex-basis: 100%; gap: var(--space-3); flex-wrap: wrap; padding-top: var(--space-2); }
.date-range label { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); min-height: var(--target-min); }
.date-range input[type="date"] {
  min-height: var(--target-min); padding: 0 var(--space-3); font: inherit;
  border: 1px solid var(--color-line); border-radius: var(--radius-sm);
  background: var(--color-surface); color: inherit;
}
.date-chips:has(.chip__input[value="custom"]:checked) .date-range,
.date-chips[data-custom] .date-range { display: flex; }
/* Without the stylesheet rule support, and without JavaScript, the inputs stay visible. */
html.no-js .date-range { display: flex; }
.chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: var(--target-min); padding: 0 var(--space-4); white-space: nowrap;
  border: 1px solid var(--color-line); border-radius: var(--radius-pill);
  background: var(--color-surface); color: inherit;
  text-decoration: none; font-size: var(--text-sm); cursor: pointer;
}
.chip[aria-pressed="true"], .chip--active {
  background: var(--color-mint); border-color: var(--color-mint-strong);
  color: var(--color-mint-strong); font-weight: 600;
}
.chip--removable::after { content: "×"; font-size: 1.1em; line-height: 1; }

/* --- Layout ------------------------------------------------------------------------- */

.discovery { display: grid; gap: var(--space-5); align-items: start; padding-bottom: var(--space-7); }
@media (min-width: 1024px) {
  .discovery { grid-template-columns: 288px minmax(0, 1fr); }
  .filters { position: sticky; top: 76px; }
}

.filters {
  background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius-lg); padding: var(--space-4);
}
.filters__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.filters fieldset { border: 0; padding: 0; margin: 0 0 var(--space-5); min-width: 0; }
.filters legend {
  font-size: var(--text-sm); font-weight: 700; padding: 0;
  margin-bottom: var(--space-2); letter-spacing: 0.01em;
}
.filters label {
  display: flex; align-items: center; gap: var(--space-2);
  min-height: var(--target-min); font-size: var(--text-sm); cursor: pointer;
}
.filters input[type="checkbox"], .filters input[type="radio"] { width: 20px; height: 20px; accent-color: var(--color-coral); }
.filters .count { margin-left: auto; color: var(--color-ink-muted); font-variant-numeric: tabular-nums; }
.filters select, .filters input[type="date"] {
  width: 100%; min-height: var(--target-min); padding: 0 var(--space-3);
  border: 1px solid var(--color-line); border-radius: var(--radius-sm);
  background: var(--color-surface); color: inherit; font: inherit;
}
.filters .hint { font-size: var(--text-xs); color: var(--color-ink-muted); margin: 0 0 var(--space-2); }

.results__toolbar {
  display: flex; align-items: center; gap: var(--space-3);
  flex-wrap: wrap; margin-bottom: var(--space-4);
}
.results__count { font-weight: 700; margin: 0; }
.results__sort { margin-left: auto; display: flex; gap: var(--space-2); align-items: center; }
.results__sort select {
  min-height: var(--target-min); padding: 0 var(--space-3); font: inherit;
  border: 1px solid var(--color-line); border-radius: var(--radius-sm);
  background: var(--color-surface); color: inherit;
}
.results__more { text-align: center; margin-top: var(--space-5); }
.view-toggle { display: inline-flex; border: 1px solid var(--color-line); border-radius: var(--radius-pill); overflow: hidden; }
.view-toggle a {
  display: inline-flex; align-items: center; min-height: var(--target-min);
  padding: 0 var(--space-4); text-decoration: none; font-size: var(--text-sm);
}
.view-toggle a[aria-current="page"] { background: var(--color-mint); color: var(--color-mint-strong); font-weight: 600; }
.empty__actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; margin-top: var(--space-4); }
.coverage { margin-bottom: var(--space-6); }
.active-chips { display: flex; gap: var(--space-2); flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 var(--space-4); }

/* --- Cards -------------------------------------------------------------------------- */

.card-list { display: grid; gap: var(--space-4); }
@media (min-width: 768px) { .card-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .card-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  display: flex; flex-direction: column;
  background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card);
}
.card__media { aspect-ratio: 4 / 3; background: var(--color-mint); position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--color-mint), var(--color-paper));
  color: var(--color-mint-strong); font-family: var(--font-display); font-size: var(--text-lg);
}
.badge .icon { flex: none; }
.card__badges { position: absolute; left: var(--space-3); bottom: var(--space-3); display: flex; gap: var(--space-2); flex-wrap: wrap; }
.card__body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.card__eyebrow { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-ink-muted); }
.card__title { font-family: var(--font-display); font-size: var(--text-lg); margin: 0; }
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; }
.card__when { font-weight: 600; font-size: var(--text-sm); }
.card__where, .card__source { font-size: var(--text-sm); color: var(--color-ink-muted); }
.card__footer { margin-top: auto; padding-top: var(--space-2); display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* --- Badges ------------------------------------------------------------------------- */

.badge {
  display: inline-flex; align-items: center; gap: var(--space-1);
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill);
  font-size: var(--text-xs); font-weight: 700; white-space: nowrap;
  border: 1px solid var(--color-line); background: var(--color-surface);
}
.badge--positive { background: var(--color-mint); border-color: var(--color-mint-strong); color: var(--color-mint-strong); }
.badge--warning { background: #fdf0d5; border-color: var(--color-warning); color: var(--color-warning); }
.badge--danger { background: #fde3e1; border-color: var(--color-danger); color: var(--color-danger); }
.badge--info { background: #ece7ff; border-color: var(--color-violet); color: var(--color-violet); }
.badge--muted { background: var(--color-paper); color: var(--color-ink-muted); }

/* --- States ------------------------------------------------------------------------- */

.notice {
  border: 1px solid var(--color-line); border-left-width: 4px;
  border-radius: var(--radius-md); padding: var(--space-4);
  background: var(--color-surface); margin-bottom: var(--space-4);
}
.notice--warning { border-left-color: var(--color-warning); }
.notice--danger { border-left-color: var(--color-danger); }
.notice--info { border-left-color: var(--color-violet); }

.empty {
  text-align: center; padding: var(--space-7) var(--space-4);
  border: 1px dashed var(--color-line); border-radius: var(--radius-lg);
  background: var(--color-surface);
}
.empty ul { display: inline-flex; gap: var(--space-2); flex-wrap: wrap; list-style: none; padding: 0; justify-content: center; }

/* Six placeholders while results are in flight. Hidden entirely when idle rather than
 * faded, so they never take up space beside the real list. */
.skeleton { display: none; gap: var(--space-4); margin-bottom: var(--space-4); }
@media (min-width: 768px) { .skeleton { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .skeleton { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.skeleton__card {
  height: 320px; border-radius: var(--radius-lg);
  background: linear-gradient(90deg, var(--color-line) 25%, var(--color-surface) 50%, var(--color-line) 75%);
  background-size: 200% 100%; opacity: 0.6;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.htmx-indicator { opacity: 0; transition: opacity 120ms; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; }
.htmx-request .skeleton.htmx-indicator, .htmx-request.skeleton.htmx-indicator { display: grid; }
.htmx-request .card-list, .htmx-request .empty { opacity: 0.5; }

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

/* --- Event detail ------------------------------------------------------------------- */

.detail { padding: var(--space-5) 0 var(--space-7); display: grid; gap: var(--space-5); }
@media (min-width: 1024px) { .detail { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); } }
.detail__badges { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-3); }
.detail__media { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--space-4); background: var(--color-mint); }
.detail__media img { width: 100%; display: block; }
.panel {
  background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius-lg); padding: var(--space-4); margin-bottom: var(--space-4);
}
.panel h2 { font-size: var(--text-base); font-family: var(--font-sans); font-weight: 700; }
.kv { display: grid; gap: var(--space-2); margin: 0; }
.kv > div { display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--text-sm); }
.kv dt { color: var(--color-ink-muted); }
.kv dd { margin: 0; text-align: right; font-weight: 600; }
.occurrences { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.occurrences li { display: flex; gap: var(--space-3); justify-content: space-between; align-items: center; padding: var(--space-2) 0; border-bottom: 1px solid var(--color-line); font-size: var(--text-sm); }
.occurrences li:last-child { border-bottom: 0; }

/* --- Footer ------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--color-line); background: var(--color-surface);
  padding: var(--space-5) 0; font-size: var(--text-sm); color: var(--color-ink-muted);
}
.site-footer a { color: inherit; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Account, policies and the save control ------------------------------------------- */
/*
 * The account pages reuse the panel, notice, button and badge vocabulary from discovery
 * rather than introducing a second one. django-allauth's pages render through the same
 * classes, so sign-in and the privacy centre are the same design without a second stylesheet.
 */

.account-page {
  max-width: 44rem;
  margin: 0 auto;
  padding-block: var(--space-6);
}

.account-page__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  margin: 0 0 var(--space-4);
}

.account-page__heading {
  font-size: 1.125rem;
  margin: 0 0 var(--space-2);
}

.account-page__lede {
  color: var(--color-ink-muted);
  margin: 0 0 var(--space-4);
}

.account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.account-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  padding: 0 var(--space-4);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: inherit;
}

.account-tabs a[aria-current="page"] {
  background: var(--color-mint);
  border-color: var(--color-mint-strong);
  font-weight: 600;
}

.account-form .field { margin-bottom: var(--space-4); }

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea {
  width: 100%;
  min-height: var(--target-min);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: inherit;
  font: inherit;
}

/* The check and its label share a row, and the whole row is the target. */
.field__check {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--target-min);
}

.field__check input { width: 1.25rem; height: 1.25rem; flex: none; }
.field__check label { margin: 0; font-weight: 500; }

.field__help {
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  margin: var(--space-1) 0 0;
}

/* Errors are red *and* prefixed, because colour alone carries no meaning. */
.field__error {
  color: var(--color-danger);
  font-size: var(--text-sm);
  margin-top: var(--space-1);
}

.field__error ul { margin: 0; padding-left: 1.1rem; }
.field--invalid input,
.field--invalid textarea { border-color: var(--color-danger); }

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.button--danger {
  background: var(--color-danger);
  border-color: var(--color-danger);
  color: #fff;
}

.saved-list { list-style: none; margin: 0; padding: 0; }

.saved-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-line);
}

.saved-row:last-child { border-bottom: 0; }
.saved-row__title { font-weight: 600; }
.saved-row__meta { color: var(--color-ink-muted); margin: var(--space-1) 0 0; }

.save-control { display: inline-flex; }

/* Pressed state is announced by aria-pressed; this only reinforces it visually. */
.save-button[aria-pressed="true"] {
  background: var(--color-mint);
  border-color: var(--color-mint-strong);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-3);
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
}

.language-switch {
  display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center;
  margin-top: var(--space-3);
}
.language-switch select {
  min-height: var(--target-min); padding: 0 var(--space-3); font: inherit;
  border: 1px solid var(--color-line); border-radius: var(--radius-pill);
  background: var(--color-surface); color: inherit;
}

.legal-index { list-style: none; margin: 0; padding: 0; }
.legal-index li { padding: var(--space-3) 0; border-bottom: 1px solid var(--color-line); }
.legal-index a { display: block; font-weight: 600; }

.legal-document section { margin-bottom: var(--space-5); }

/* --- Messages ----------------------------------------------------------------------- */
/*
 * Each message can be dismissed without JavaScript: the label toggles a hidden checkbox and
 * the row hides. The checkbox stays focusable, so the keyboard reaches it too.
 */
.flash { margin: var(--space-4) 0 0; }
.flash__item {
  display: flex; align-items: center; gap: var(--space-3);
  border: 1px solid var(--color-line); border-left-width: 4px; border-left-color: var(--color-violet);
  border-radius: var(--radius-md); background: var(--color-surface);
  padding: var(--space-2) var(--space-3) var(--space-2) var(--space-4); margin-bottom: var(--space-3);
}
.flash__item--success { border-left-color: var(--color-mint-strong); }
.flash__item--error { border-left-color: var(--color-danger); }
.flash__item--warning { border-left-color: var(--color-warning); }
.flash__text { margin: 0; flex: 1; }
.flash__dismiss {
  display: inline-flex; align-items: center; min-height: var(--target-min); padding: 0 var(--space-3);
  border: 1px solid var(--color-line); border-radius: var(--radius-pill);
  font-size: var(--text-sm); cursor: pointer;
}
.flash__toggle:focus-visible ~ .flash__dismiss { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.flash__item:has(.flash__toggle:checked) { display: none; }
.flash__toggle:checked ~ .flash__text, .flash__toggle:checked ~ .flash__dismiss { display: none; }

/* --- Header search and city switcher ------------------------------------------------ */

.header-search { flex: 1 1 320px; margin: 0; min-width: 0; }
@media (max-width: 767px) {
  /* Compact header: the search wraps onto its own full-width row under the wordmark. */
  .header-search { order: 10; flex-basis: 100%; }
}
.city-switch { display: flex; gap: var(--space-2); align-items: center; }
.city-switch select {
  min-height: var(--target-min); padding: 0 var(--space-3); font: inherit;
  border: 1px solid var(--color-line); border-radius: var(--radius-pill);
  background: var(--color-surface); color: inherit;
}

/* --- The filter sheet ----------------------------------------------------------------- */
/*
 * The rail is a <dialog>. On a desktop it is displayed as an ordinary block and never
 * opened. Under 1024px, once site.js has run, it is hidden until opened as a modal sheet:
 * full height on a phone, a column anchored to the left on a tablet.
 */
.filters-sheet {
  display: block; position: static; margin: 0; padding: 0; border: 0;
  background: transparent; color: inherit; max-width: none; max-height: none; width: auto;
}
.filters-sheet::backdrop { background: rgb(0 0 0 / 0.45); }
/* `button.button` outranks a lone class, so the close control is addressed the same way. */
button.filters__close { display: none; min-width: var(--target-min); padding: 0; margin-left: auto; }
.filters__apply { margin-top: var(--space-2); }
.filters__narrow input {
  width: 100%; min-height: var(--target-min); padding: 0 var(--space-3); font: inherit;
  border: 1px solid var(--color-line); border-radius: var(--radius-sm);
  background: var(--color-surface); color: inherit; margin-bottom: var(--space-2);
}
@media (min-width: 1024px) { html.js .filters__apply { display: none; } }
@media (max-width: 1023px) {
  html.js .filters-sheet:not([open]) { display: none; }
  html.js .filters-sheet[open] {
    position: fixed; inset: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%;
    overflow: auto; background: var(--color-surface); padding: 0; z-index: 40;
  }
  html.js .filters-sheet[open] .filters { border: 0; border-radius: 0; min-height: 100%; padding-bottom: calc(var(--space-7) + var(--target-min)); }
  html.js .filters-sheet[open] button.filters__close { display: inline-flex; }
  html.js .filters-sheet[open] .filters__apply {
    position: sticky; bottom: 0; background: var(--color-surface);
    padding: var(--space-3) 0; border-top: 1px solid var(--color-line);
  }
  html.js .filters-sheet[open] .filters__apply .button { width: 100%; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  html.js .filters-sheet[open] { width: 380px; max-width: 90vw; }
}

/* The sticky bar at the bottom of a narrow screen. Hidden until site.js runs. */
.bottom-bar {
  position: sticky; bottom: 0; z-index: 30; display: flex; gap: var(--space-3);
  padding: var(--space-2) var(--space-4) max(var(--space-2), env(safe-area-inset-bottom));
  background: var(--color-surface); border-top: 1px solid var(--color-line);
}
.bottom-bar .button { flex: 1; }
.bottom-bar__count {
  display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em;
  border-radius: var(--radius-pill); background: var(--color-coral); color: #fff;
  font-size: var(--text-xs); padding: 0 var(--space-1);
}
@media (min-width: 1024px) { .bottom-bar { display: none; } }

/* --- The map ------------------------------------------------------------------------ */

.map { height: min(70vh, 640px); border-radius: var(--radius-lg); border: 1px solid var(--color-line); overflow: hidden; margin-bottom: var(--space-3); background: var(--color-paper); }
.map__status { margin-bottom: var(--space-4); }
.map__popup-title { font-weight: 700; margin: 0 0 var(--space-2); }
.map__popup-badges { margin: 0; display: flex; gap: var(--space-1); flex-wrap: wrap; }
.leaflet-container { font-family: inherit; }
.leaflet-control-zoom a { min-width: var(--target-min); min-height: var(--target-min); line-height: var(--target-min) !important; }

/* --- Forms: the honeypot and the saved row's actions --------------------------------- */

/* Off screen and out of the tab order: a person never meets it, a script fills it. */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.saved-row__actions { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.saved-row__move { display: flex; gap: var(--space-2); align-items: center; }
.saved-row__move select {
  min-height: var(--target-min); padding: 0 var(--space-3); font: inherit;
  border: 1px solid var(--color-line); border-radius: var(--radius-sm);
  background: var(--color-surface); color: inherit;
}
.inline-form { display: inline; }
.criteria-chips { display: flex; gap: var(--space-2); flex-wrap: wrap; list-style: none; padding: 0; margin: var(--space-2) 0; }
.field textarea { min-height: 6rem; }
.field__row { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.field__row > * { flex: 1 1 10rem; }

/* Notifications: an unread row is bold *and* marked, never colour alone. */
.notification--unread .saved-row__title { font-weight: 800; }
.notification__mark { font-size: var(--text-xs); font-weight: 700; color: var(--color-coral); }
.account-actions--top { margin-top: 0; margin-bottom: var(--space-4); }
