/* La Bétaillère — identité communautaire violette v1
   Violet = Voix du Bétail / information voyageurs.
   Les couleurs opérationnelles (retard, suppression, actions) restent intactes. */

html body .trip-panel:not(.station-board-mode) #lb-map-trip-community {
  --lb-community-violet: #b88cff;
  --lb-community-violet-soft: rgba(184,140,255,.34);
  --lb-community-violet-line: rgba(184,140,255,.42);
  --lb-community-violet-bg: rgba(70,38,103,.22);

  position: relative !important;
  isolation: isolate;
  border-color: var(--lb-community-violet-line) !important;
  background:
    radial-gradient(120% 140% at 0% 50%, rgba(122,72,171,.20) 0%, rgba(66,38,94,.10) 38%, transparent 67%),
    linear-gradient(90deg, rgba(22,17,38,.95), rgba(5,22,36,.90)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(210,179,255,.025),
    0 0 12px rgba(144,86,205,.07),
    0 5px 14px rgba(0,0,0,.10) !important;
}

/* Repère communautaire immédiat, sans prendre de largeur utile. */
html body .trip-panel:not(.station-board-mode) #lb-map-trip-community::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, rgba(213,179,255,.92), rgba(143,85,209,.60));
  box-shadow: 0 0 7px rgba(184,140,255,.34);
  pointer-events: none;
}

html body .trip-panel:not(.station-board-mode) #lb-map-trip-community > * {
  position: relative;
  z-index: 1;
}

html body .trip-panel:not(.station-board-mode) #lb-map-trip-community .lb-community-premium-title,
html body .trip-panel:not(.station-board-mode) #lb-map-trip-community .lb-map-trip-community-title {
  color: #d7b8ff !important;
  text-shadow: 0 0 7px rgba(184,140,255,.12);
}

/* Le petit i appartient au module communautaire : même famille violette. */
html body .trip-panel:not(.station-board-mode) #lb-map-trip-community .lb-community-help-button {
  border-color: rgba(184,140,255,.40) !important;
  background: rgba(41,27,61,.88) !important;
  color: #e1c9ff !important;
}

html body .trip-panel:not(.station-board-mode) #lb-map-trip-community .lb-community-help-button:hover,
html body .trip-panel:not(.station-board-mode) #lb-map-trip-community .lb-community-help-button:focus-visible {
  border-color: #d7b8ff !important;
  background: rgba(58,35,85,.96) !important;
  color: #fff !important;
}

/* État neutre : suffisamment violet pour identifier la source, mais pas "alerte". */
html body .trip-panel:not(.station-board-mode) #lb-map-trip-community .lb-community-empty-status {
  border-color: rgba(184,140,255,.22) !important;
  background: rgba(63,39,88,.24) !important;
  color: #bdb0ca !important;
}

/* Présence communautaire = violet doux ; l'action "À bord" reste cyan. */
html body .trip-panel:not(.station-board-mode) #lb-map-trip-community .lb-community-presence-status {
  border-color: rgba(184,140,255,.28) !important;
  background: rgba(67,40,95,.28) !important;
  color: #eee4fb !important;
}

/* Source / votes communautaires restent dans la même identité. */
html body .trip-panel:not(.station-board-mode) #lb-map-trip-community .lb-community-source-line,
html body .trip-panel:not(.station-board-mode) #lb-map-trip-community .lb-community-source-label {
  color: #cdb8e8 !important;
}

/* Si le bloc contient réellement une deuxième ligne, légère séparation violette. */
html body .trip-panel:not(.station-board-mode) #lb-map-trip-community .lb-community-source-line:not([hidden]) {
  border-top: 1px solid rgba(184,140,255,.09);
  padding-top: 3px !important;
}

/* Conserve les boutons fonctionnels dans leur code couleur :
   À bord = froid/cyan ; Signaler = jaune/orange. */
html body .trip-panel:not(.station-board-mode) #lb-map-trip-community .lb-map-trip-community-actions [data-lb-map-community-presence] {
  box-shadow: inset 0 0 0 1px rgba(184,140,255,.025) !important;
}

@media (max-width:700px), (pointer:coarse) {
  html body .trip-panel:not(.station-board-mode) #lb-map-trip-community::before {
    top: 6px;
    bottom: 6px;
    width: 2px;
  }

  html body .trip-panel:not(.station-board-mode) #lb-map-trip-community {
    box-shadow:
      inset 0 0 0 1px rgba(210,179,255,.02),
      0 0 9px rgba(144,86,205,.055),
      0 4px 10px rgba(0,0,0,.08) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body #lb-map-trip-community,
  html body .trip-panel:not(.station-board-mode) #lb-map-trip-community::before {
    transition: none !important;
  }
}
