/* Trajets : menus et carte interactive */
.trips-nav { display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.trips-nav svg { width: 18px; height: 18px; }
.trips-select-wrap { position: relative; flex: 1; min-width: 0; display: flex; }
.trips-select-wrap .trips-select {
  width: 100%;
  min-width: 0;
  padding: 0 42px;
  appearance: none;
  -webkit-appearance: none;
  background-image: none;
  text-align: center;
  text-align-last: center;
  text-overflow: ellipsis;
  cursor: pointer;
}
.trips-select-chevron {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--cobalt) 9%, transparent);
  color: var(--cobalt);
  transform: translateY(-50%);
  pointer-events: none;
  transition: background 0.12s, color 0.12s;
}
.trips-select-chevron svg { width: 16px; height: 16px; }
:is(.trips-select-wrap, .trips-date-label):hover .trips-select-chevron { background: color-mix(in srgb, var(--cobalt) 16%, transparent); }
:is(.trips-select-wrap, .trips-date-label):focus-within .trips-select-chevron { background: var(--cobalt); color: #fff; }
.trips-date-label { padding: 0 42px; }
.trips-date-label:focus-within { border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(70, 97, 240, 0.12); }
button.trip-stop-marker { padding: 0; appearance: none; }
button.trip-stop-marker:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.legend-item[hidden] { display: none; }
.legend-line-rest { background: #B4ADA1; }

/* Trajets : point du tracé, arrêt ou portion grise désignés sur la carte */
.trip-pick-popup .maplibregl-popup-content { padding: 12px 30px 12px 14px; }
.trip-pick-popup .maplibregl-popup-close-button { width: 28px; height: 28px; font-size: 18px; color: var(--ink2); }
.trip-pick { display: grid; gap: 6px; min-width: 210px; font-size: 13px; line-height: 1.35; }
.trip-pick p { margin: 0; }
.trip-pick-kicker { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink3); }
.trip-pick-time { font-size: 20px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--ink); }
.trip-pick-address { font-weight: 600; color: var(--ink); }
.trip-pick-address.is-coordinate { font: 500 12px/1.35 var(--font-mono); color: var(--ink2); }
.trip-pick-text { color: var(--ink2); }
.trip-pick-facts { display: grid; margin: 2px 0 0; }
.trip-pick-facts div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 5px 0; border-top: 1px solid var(--line-soft); }
.trip-pick-facts dt { color: var(--ink2); }
.trip-pick-facts dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.trip-pick-source { font-size: 11.5px; color: var(--ink2); }
.trip-pick-action { justify-self: start; min-height: 36px; }

/* Nouvelle interface */
html:root[data-interface=nouvelle]:not(#sim) body .trips-screen .trips-select-chevron { width: 30px; height: 30px; border-radius: 9px; background: var(--sim-primary-soft); color: var(--sim-primary-strong); }
html:root[data-interface=nouvelle]:not(#sim) body .trips-screen :is(.trips-select-wrap, .trips-date-label):hover .trips-select-chevron { background: color-mix(in srgb, var(--sim-primary) 20%, var(--sim-paper)); }
html:root[data-interface=nouvelle]:not(#sim) body .trips-screen :is(.trips-select-wrap, .trips-date-label):focus-within .trips-select-chevron { background: var(--sim-primary); color: #fff; }
html:root[data-interface=nouvelle]:not(#sim) body .trips-screen :is(.trips-select:focus, .trips-date-label:focus-within) { border-color: var(--sim-primary); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--sim-primary) 22%, transparent); }
html:root[data-interface=nouvelle]:not(#sim) body .trips-screen .trips-nav:hover:not(:disabled) { background: var(--sim-pale); }
html:root[data-interface=nouvelle]:not(#sim) body .trips-screen .trip-pick-action { border: 0; border-radius: 10px; background: var(--sim-primary-soft); color: var(--sim-primary-strong); font-weight: 800; }
