/* =========================================================================
   2mn Carburant — feuille de style
   Variables, thème clair/sombre, layout responsive, composants.
   ========================================================================= */

:root {
  --bg: #f4f6f8;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0f3f6;
  --text: #0f172a;
  --muted: #5a6b7b;
  --border: #dfe6ec;
  --border-strong: #c6d2dc;

  --accent: #0d9488;
  --accent-strong: #0f766e;
  --accent-soft: #ccfbf1;
  --danger: #dc2626;
  --warn: #d97706;
  --ok: #16a34a;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, .10);
  --shadow-lg: 0 -8px 32px rgba(15, 23, 42, .18);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --header-h: 60px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
  --bg: #0b1220;
  --bg-elev: #111a2b;
  --surface: #111a2b;
  --surface-2: #17203300;
  --surface-2: #172033;
  --text: #e8eef6;
  --muted: #9aabbf;
  --border: #223047;
  --border-strong: #32445f;

  --accent: #2dd4bf;
  --accent-strong: #14b8a6;
  --accent-soft: #0f3d3a;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, .5);
  --shadow-lg: 0 -8px 40px rgba(0, 0, 0, .6);
}

@media (prefers-color-scheme: dark) {
  [data-theme="auto"] {
    --bg: #0b1220;
    --bg-elev: #111a2b;
    --surface: #111a2b;
    --surface-2: #172033;
    --text: #e8eef6;
    --muted: #9aabbf;
    --border: #223047;
    --border-strong: #32445f;
    --accent: #2dd4bf;
    --accent-strong: #14b8a6;
    --accent-soft: #0f3d3a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, .5);
    --shadow-lg: 0 -8px 40px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
  overscroll-behavior-y: none;
}

a { color: var(--accent-strong); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 999;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------------ header */

.app-header {
  position: sticky;
  top: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: calc(.55rem + var(--safe-top)) .9rem .55rem;
  min-height: var(--header-h);
  background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.brand__logo { width: 40px; height: 40px; border-radius: 11px; flex: none; box-shadow: var(--shadow-sm); }
.brand__text { min-width: 0; }
.brand__text h1 { margin: 0; font-size: 1.06rem; letter-spacing: -.01em; }
.brand__sub {
  margin: 0;
  font-size: .78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60vw;
}

.header-actions { display: flex; align-items: center; gap: .4rem; flex: none; }

/* ------------------------------------------------------------------ boutons */

.btn {
  font: inherit;
  font-weight: 600;
  font-size: .86rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .5rem .9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--surface-2);
  color: var(--text);
  transition: transform .06s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn svg { flex: none; }

.btn--icon {
  padding: .5rem;
  width: 38px;
  height: 38px;
  justify-content: center;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
}
.btn--icon:hover { background: var(--surface-2); color: var(--text); }

.btn--primary { background: var(--text); color: var(--bg); }
.btn--primary:hover { opacity: .9; }

.btn--accent { background: var(--accent); color: #04211d; }
[data-theme="dark"] .btn--accent { color: #04211d; }
.btn--accent:hover { background: var(--accent-strong); color: #fff; }

.btn--ghost { background: var(--accent-soft); color: var(--accent-strong); }

.btn--map {
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  z-index: 420;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

/* ------------------------------------------------------------------ banners */

.banner {
  background: var(--warn);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  text-align: center;
  padding: .45rem .75rem;
}

/* ----------------------------------------------------------------- toolbar */

.toolbar {
  display: flex;
  gap: .5rem;
  padding: .7rem .9rem .1rem;
  align-items: stretch;
}

.search {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  gap: .4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .28rem .28rem .28rem .8rem;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.search:focus-within { border-color: var(--accent); }
.search__icon { color: var(--muted); flex: none; }
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: .92rem;
  color: var(--text);
  padding: .35rem 0;
  outline: none;
}
.search input::-webkit-search-cancel-button { display: none; }

.suggestions {
  position: absolute;
  top: calc(100% + .35rem);
  left: 0;
  right: 0;
  margin: 0;
  padding: .3rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  max-height: 46vh;
  overflow: auto;
  z-index: 600;
}
.suggestions li {
  padding: .5rem .6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: .6rem;
  align-items: baseline;
}
.suggestions li:hover,
.suggestions li[aria-selected="true"] { background: var(--surface-2); }
.suggestions li small { color: var(--muted); font-size: .74rem; }

/* ------------------------------------------------------------------ status */

.status {
  margin: .4rem .9rem .1rem;
  font-size: .8rem;
  color: var(--muted);
  min-height: 1.1em;
}
.status--error { color: var(--danger); font-weight: 600; }
.status--loading { color: var(--accent-strong); font-weight: 600; }

/* ---------------------------------------------------------------- controls */

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .5rem .9rem .35rem;
  align-items: flex-end;
}
.field {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  font-size: .72rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.field select {
  font: inherit;
  font-size: .86rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .42rem .6rem;
  cursor: pointer;
}
.field--check {
  flex-direction: row;
  align-items: center;
  gap: .45rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: .82rem;
  color: var(--text);
  padding-bottom: .4rem;
  cursor: pointer;
}
.field--check input { width: 1.05rem; height: 1.05rem; accent-color: var(--accent); }

/* ------------------------------------------------------------------- chips */

.chips {
  display: flex;
  gap: .4rem;
  padding: .35rem .9rem .15rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: .38rem .8rem;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: background .15s, border-color .15s, color .15s;
}
.chip__dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--chip-color, var(--accent)); flex: none; }
.chip[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.chip[aria-pressed="true"] .chip__dot { box-shadow: 0 0 0 2px color-mix(in srgb, var(--bg) 65%, transparent); }
.chip--muted { opacity: .55; }

/* ----------------------------------------------------------------- summary */

.summary {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: .5rem .9rem .6rem;
  scrollbar-width: none;
}
.summary::-webkit-scrollbar { display: none; }
.stat {
  flex: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .5rem .7rem;
  min-width: 132px;
  box-shadow: var(--shadow-sm);
}
.stat__label { font-size: .72rem; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: .35rem; }
.stat__dot { width: .5rem; height: .5rem; border-radius: 50%; }
.stat__prices { display: flex; align-items: baseline; gap: .4rem; margin-top: .15rem; }
.stat__min { font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; }
.stat__avg { font-size: .74rem; color: var(--muted); }
.stat__count { font-size: .7rem; color: var(--muted); }

/* ------------------------------------------------------------------ layout */

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: .6rem;
  padding: 0 .9rem 1rem;
}

.map-wrap { position: relative; }
.map {
  height: 42vh;
  min-height: 260px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  background: var(--surface-2);
}

.results { min-width: 0; }

.station-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}

/* ------------------------------------------------------------- station card */

.station-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem .85rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s, transform .06s;
}
.station-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.station-card:active { transform: scale(.995); }
.station-card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft), var(--shadow-md); }
.station-card.is-cheapest::before {
  content: "Meilleur prix";
  position: absolute;
  top: -.55rem;
  left: .8rem;
  background: var(--ok);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  padding: .12rem .5rem;
  border-radius: 999px;
  letter-spacing: .02em;
}

.station-card__title { font-weight: 700; font-size: .96rem; }
.station-card__addr { font-size: .82rem; color: var(--muted); margin-top: .05rem; }
.station-card__meta { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .45rem; }

.pill {
  font-size: .7rem;
  font-weight: 700;
  padding: .14rem .5rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}
.pill--open { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.pill--closed { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.pill--warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }

.station-card__price { text-align: right; display: flex; flex-direction: column; justify-content: center; flex: none; }
.price { font-size: 1.32rem; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.price--na { font-size: .8rem; color: var(--muted); font-weight: 600; }
.price__label { font-size: .7rem; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.price__maj { font-size: .66rem; color: var(--muted); }

.fuel-badges { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .5rem; }
.fuel-badge {
  font-size: .72rem;
  font-weight: 700;
  padding: .16rem .45rem;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid transparent;
  white-space: nowrap;
}
.fuel-badge--off { color: var(--muted); text-decoration: line-through; opacity: .7; }
.fuel-badge--ref { border-color: var(--accent); }
.fuel-badge--rupture { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.fuel-badge--indispo { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }

/* skeletons */
.skeleton {
  height: 84px;
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--surface-2) 30%, var(--bg-elev) 50%, var(--surface-2) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.empty {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}
.empty strong { color: var(--text); display: block; margin-bottom: .25rem; }

/* ------------------------------------------------------- marqueurs Leaflet */

.pin {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  transform: translate(-50%, -100%);
  background: var(--pin-color, var(--accent));
  color: #fff;
  font-family: var(--font);
  font-size: .74rem;
  font-weight: 800;
  padding: .18rem .42rem;
  border-radius: 999px 999px 999px 3px;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
  white-space: nowrap;
  letter-spacing: -.02em;
}
.pin--selected { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); z-index: 5; }
.pin--cheapest { border-color: #fde68a; box-shadow: 0 0 0 3px rgba(250, 204, 21, .6), 0 2px 8px rgba(0,0,0,.4); }
.pin--na { background: #64748b; }

.leaflet-container { background: var(--surface-2); font-family: var(--font); }
.leaflet-popup-content { margin: .7rem .8rem; font-size: .85rem; }
.leaflet-popup-content h3 { margin: 0 0 .2rem; font-size: .92rem; }
.leaflet-popup-content p { margin: .1rem 0; color: var(--muted); }
.leaflet-bar a { color: var(--text); }

.user-dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: #2563eb; border: 3px solid #fff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .5);
}

/* ------------------------------------------------------------------- sheet */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet[hidden] { display: none; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(2, 6, 23, .55); backdrop-filter: blur(2px); animation: fade .15s ease; }
.sheet__panel {
  position: relative;
  width: min(680px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-lg);
  padding: 1.1rem 1.1rem calc(1.4rem + var(--safe-bottom));
  animation: slideup .22s cubic-bezier(.2, .8, .2, 1);
}
.sheet__close { position: absolute; top: .7rem; right: .7rem; }
@keyframes slideup { from { transform: translateY(4%); opacity: .4; } to { transform: translateY(0); opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.sheet h2 { margin: 0 1.9rem .15rem 0; font-size: 1.15rem; }
.sheet__addr { color: var(--muted); font-size: .88rem; margin: 0 0 .8rem; }
.sheet__section { margin-top: 1rem; }
.sheet__section h3 { margin: 0 0 .5rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

.price-table { display: grid; gap: .35rem; }
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .45rem .6rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.price-row__name { font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: .4rem; }
.price-row__dot { width: .55rem; height: .55rem; border-radius: 50%; }
.price-row__value { font-weight: 800; font-size: .95rem; }
.price-row__right { text-align: right; }
.price-row__maj { font-size: .68rem; color: var(--muted); display: block; }
.price-row--ref { outline: 1.5px solid var(--accent); }

.tag-status { font-size: .68rem; font-weight: 800; padding: .1rem .4rem; border-radius: 999px; }
.tag-status--ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.tag-status--rupture { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.tag-status--indispo { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }

.hours { display: grid; gap: .2rem; }
.hours__row { display: flex; justify-content: space-between; font-size: .84rem; padding: .18rem 0; border-bottom: 1px solid var(--border); }
.hours__row:last-child { border-bottom: 0; }
.hours__row.is-today { font-weight: 800; color: var(--accent-strong); }
.hours__closed { color: var(--danger); font-weight: 700; }

.service-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.service-tag { font-size: .74rem; padding: .2rem .55rem; border-radius: 999px; background: var(--surface-2); color: var(--text); }

.sheet__actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.1rem; }
.sheet__actions .btn { flex: 1; justify-content: center; }

/* ------------------------------------------------------------------ footer */

.app-footer {
  padding: .8rem 1rem calc(1.2rem + var(--safe-bottom));
  font-size: .74rem;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--border);
}
.app-footer p { margin: .2rem 0; }
.app-footer__age { opacity: .85; }

/* ------------------------------------------------------------- responsive */

@media (min-width: 900px) {
  .layout {
    grid-template-columns: minmax(360px, 46%) 1fr;
    align-items: start;
  }
  .map { height: calc(100vh - 300px); min-height: 460px; position: sticky; top: calc(var(--header-h) + 8px); }
  .results { max-height: calc(100vh - 300px); overflow: auto; padding-right: .2rem; }
  .brand__sub { max-width: none; }
}

@media (max-width: 560px) {
  .station-card__price .price { font-size: 1.18rem; }
  .brand__sub { max-width: 48vw; }
  .btn--accent span { display: none; }
  /* Sur petit ecran, la touche "Rechercher" du clavier suffit : on libere la place. */
  .search .btn--primary { display: none; }
  .search { padding-right: .8rem; }
}

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

/* =========================================================================
   Favoris, alertes de prix, notifications et carte plein écran
   ========================================================================= */

/* --- badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 .32rem;
  border-radius: 999px;
  background: var(--accent);
  color: #04211d;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
}
.badge--dot {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: .62rem;
  height: .62rem;
  padding: 0;
  background: var(--danger);
  box-shadow: 0 0 0 2px var(--bg-elev);
}
#alerts-btn { position: relative; }
#alerts-btn.has-alerts { color: var(--accent-strong); }

/* --- sélecteur de vue (Toutes / Favoris) --- */
.views {
  display: flex;
  width: fit-content;
  gap: .25rem;
  margin: 0 .9rem .55rem;
  padding: .22rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.views__btn {
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: .38rem .8rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .38rem;
}
.views__btn:hover { color: var(--text); }
.views__btn.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.views__btn .badge { background: var(--accent-soft); color: var(--accent-strong); }
.views__btn.is-active .badge { background: var(--accent); color: #04211d; }

/* --- bouton favori --- */
.station-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.fav-btn {
  flex: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: .25rem;
  border-radius: 9px;
  line-height: 0;
  transition: color .15s, background .15s, transform .1s;
}
.fav-btn:hover { background: var(--surface-2); color: var(--warn); }
.fav-btn:active { transform: scale(.9); }
.fav-btn.is-on { color: #f59e0b; }
.fav-btn--wide { gap: .4rem; }
.fav-btn--wide.is-on { color: #f59e0b; border-color: #f59e0b; }

.station-card.is-outside { opacity: .92; }

/* --- pastille d'alerte sur une carte --- */
.alert-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .45rem;
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: .16rem .55rem;
}

/* --- formulaire d'alerte dans la fiche --- */
.alert-controls { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; }
.alert-controls .field { flex: 1 1 140px; }
.input {
  font: inherit;
  font-size: .9rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .45rem .6rem;
  width: 100%;
}
.input:focus { outline: none; border-color: var(--accent); }
.hint { font-size: .74rem; color: var(--muted); margin: .5rem 0 0; }

/* --- liste des alertes --- */
.alert-list { display: grid; gap: .45rem; }
.alert-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .65rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.alert-item__main { flex: 1; min-width: 0; }
.alert-item__title { font-weight: 700; font-size: .9rem; }
.alert-item__sub { font-size: .74rem; color: var(--muted); }

/* --- toasts --- */
.toasts {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(1rem + var(--safe-bottom));
  z-index: 950;
  display: grid;
  gap: .5rem;
  width: min(460px, calc(100vw - 2rem));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: .6rem .7rem;
  font-size: .86rem;
  animation: slideup .2s cubic-bezier(.2, .8, .2, 1);
}
.toast--price { border-left-color: var(--ok); }
.toast--error { border-left-color: var(--danger); }
.toast__main { flex: 1; min-width: 0; }
.toast__title { font-weight: 800; }
.toast__body { color: var(--muted); font-size: .8rem; }
.toast__close {
  flex: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: .1rem .2rem;
}
.toast__action {
  flex: none;
  align-self: center;
  padding: .35rem .75rem;
  font-size: .8rem;
}

/* --- barre en plein écran --- */
.fs-bar {
  position: absolute;
  top: .6rem;
  left: .6rem;
  right: .6rem;
  z-index: 430;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.fs-bar[hidden] { display: none; }
.btn--solid {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.chips--fs {
  flex: 1;
  margin: 0;
  padding: .3rem .35rem;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(10px) saturate(1.3);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}

/* --- mode carte plein écran --- */
body.is-map-fullscreen { overflow: hidden; }
body.is-map-fullscreen .toolbar,
body.is-map-fullscreen .status,
body.is-map-fullscreen .controls,
body.is-map-fullscreen .summary,
body.is-map-fullscreen .views,
body.is-map-fullscreen .results,
body.is-map-fullscreen .app-footer,
body.is-map-fullscreen .banner,
body.is-map-fullscreen .chips:not(.chips--fs) { display: none !important; }
body.is-map-fullscreen .layout { display: block; padding: 0; gap: 0; }
body.is-map-fullscreen .map-wrap { position: relative; }
body.is-map-fullscreen .map {
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  min-height: 0;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  position: static;
  top: auto;
}
body.is-map-fullscreen .pin-wrap { z-index: 420; }
