/* =====================================================================
   Lade-Ampel – Ladestationen-Suche (Liste, Filter, Karte)
   Baut auf lade-ampel.css auf (.la-root, .la-card, .la-search, .la-fs …).
   ===================================================================== */

.la-stations .la-calc-wrap > *, .la-st-grid > *, .la-st-items > * { min-width: 0; }
.la-st-searchwrap { display: grid; gap: 8px; justify-items: center; }
.la-st-searchwrap .la-search { width: 100%; max-width: 720px; }
.la-st-follow { font-size: .875rem; color: var(--la-ink-2); }

/* Filter */
.la-st-fbody { display: grid; gap: 14px; }
.la-st-frow { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.la-st-field { display: grid; gap: 4px; font-size: .875rem; color: var(--la-ink-2); }
.la-root .la-st-field select, .la-root .la-st-field input {
  font: inherit; font-size: 1rem; color: var(--la-ink); width: 100%; margin: 0; box-shadow: none;
  border: 1px solid var(--la-line); border-radius: 12px; background: var(--la-page); padding: 9px 10px;
}
.la-root .la-st-field select:focus-visible, .la-root .la-st-field input:focus-visible { outline: 3px solid var(--la-focus); outline-offset: 1px; }
.la-st-chips { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* Raster Liste/Karte */
.la-st-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.la-st-map { order: -1; }                     /* auf dem Handy: Karte über der Liste */
.la-st-head { padding: 0 4px; }
.la-st-count { margin: 0 !important; font-weight: 650; }
.la-st-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.la-st-item { display: grid; gap: 8px; padding: 16px 18px; }
.la-st-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.la-st-name { margin: 0 !important; font-size: 1.0625rem !important; font-weight: 680; line-height: 1.3; }
.la-st-dist { flex: none; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--la-ink-2); }
.la-st-addr { margin: 0 !important; color: var(--la-ink-2); font-size: .9375rem; }
.la-st-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.la-badge { font-size: .8125rem; padding: 3px 10px; border-radius: 999px; background: var(--la-page); outline: 1px solid var(--la-line); white-space: nowrap; }
.la-badge-fast { background: var(--la-hero-from); outline-color: var(--la-green); color: var(--la-green-ink); font-weight: 650; }
.la-badge-free { color: var(--la-green-ink); }
.la-badge-warn { color: var(--la-yellow-ink); outline-color: var(--la-yellow); }
.la-st-conn { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .875rem; color: var(--la-ink-2); }
.la-st-more-info summary { cursor: pointer; font-size: .875rem; font-weight: 600; color: var(--la-ink-2); }
.la-st-dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 10px 0 0; font-size: .875rem; }
.la-st-dl dt { color: var(--la-muted); }
.la-st-dl dd { margin: 0; overflow-wrap: anywhere; }
.la-st-dl .la-na { color: var(--la-muted); font-style: italic; }
.la-st-links { margin: 10px 0 0 !important; font-size: .875rem; }
.la-st-links a { color: var(--la-ink-2); }
.la-st-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.la-root .la-st-route { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--la-ink); color: var(--la-card); font-size: .875rem; font-weight: 650; text-decoration: none; }
.la-root .la-st-route::after { content: "↗"; font-weight: 400; }
.la-root .la-st-route:focus-visible { outline: 3px solid var(--la-focus); outline-offset: 2px; }
.la-st-showmap { font-size: .875rem; }
.la-root .la-st-more { justify-self: center; margin-top: 6px; }
.la-st-source { text-align: center; }

/* Karte */
.la-st-gate { display: grid; gap: 10px; justify-items: start; }
.la-st-mapbox { padding: 8px; display: grid; gap: 6px; }
.la-st-mapel { height: 55vh; min-height: 320px; border-radius: 16px; overflow: hidden; background: var(--la-page); z-index: 0; }
.la-root .leaflet-container { font: 13px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.la-root .leaflet-control-attribution { font-size: 11px; }
.la-cluster {
  display: grid !important; place-items: center; border-radius: 50%;
  background: rgba(17, 20, 18, .85); color: #fff; font-weight: 700; font-size: 12px;
  box-shadow: 0 0 0 4px rgba(17, 20, 18, .2);
}
.la-st-pop { display: grid; gap: 3px; max-width: 240px; }

@media (min-width: 1024px) {
  .la-st-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; }
  .la-st-map { order: 0; position: sticky; top: calc(16px + env(safe-area-inset-top, 0px)); }
  .la-st-mapel { height: calc(100vh - 120px); }
}
