/* disruptions.html: geladen via <link> zodat de browser het cachet. */
  main {
    --disruptions-panel-width: 440px;
    overflow: hidden !important;
  }

  #disruptions-map {
    height: 100%;
  }

  #disruptions-panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--disruptions-panel-width);
    max-width: min(760px, 85vw);
    z-index: 50;
    display: flex;
    flex-direction: column;
  }

  #disruptions-legend {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    /* Matcht de stijl van Leaflet-controls (bv. zoom-knoppen) */
    background: #fff;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    background-clip: padding-box;
  }

  @media (max-width: 767px) {
    #disruptions-panel {
      top: auto !important;
      left: 0 !important;
      right: 0;
      bottom: env(safe-area-inset-bottom);
      width: 100% !important;
      max-width: 100% !important;
      height: calc(100dvh - 58px - env(safe-area-inset-bottom));
      border-radius: 20px 20px 0 0;
      transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
    }
    #disruptions-panel.panel-peek {
      transform: translateY(calc(100% - 4rem));
    }
    .disruptions-panel-resize-handle {
      display: none !important;
    }
    .mobile-panel-grip {
      display: flex !important;
    }
    #disruptions-legend {
      right: 0.75rem;
      bottom: 4.5rem;
      max-width: none;
      display: none;
    }
    #disruptions-panel.panel-peek ~ #disruptions-legend {
      display: flex;
    }
  }

  .disruptions-panel-resize-handle {
    position: absolute;
    top: 0;
    right: -5px;
    bottom: 0;
    width: 10px;
    cursor: col-resize;
    touch-action: none;
    z-index: 1;
  }
  .disruptions-panel-resize-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 4px;
    width: 2px;
    height: 48px;
    border-radius: 999px;
    background: rgba(0,48,130,0.22);
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 150ms ease, background 150ms ease;
  }
  .disruptions-panel-resize-handle:hover::after,
  .disruptions-panel-resize-handle:focus-visible::after,
  body.disruptions-panel-resizing .disruptions-panel-resize-handle::after {
    opacity: 1;
    background: rgba(0,48,130,0.5);
  }
  body.disruptions-panel-resizing {
    cursor: col-resize;
    user-select: none;
  }

  /* Filter balk semi-transparant zodat glass-panel doorschijnt */
  #disruptions-panel > div.bg-white {
    background: rgba(255, 255, 255, 0.6) !important;
  }
  /* Disruption cards semi-transparant */
  #disruptions-content .disruption-card {
    background: rgba(255, 255, 255, 0.6) !important;
  }

  /* Actieve kaart highlight wanneer omreis getoond wordt */
  #disruptions-content [data-disruption-id].omreis-active {
    box-shadow: 0 0 0 2px #16a34a !important;
  }

  /* Disruptions-pagina: verberg de live-trains toggle, behoud stations-toggle */
  .lm-trains-toggle {
    display: none !important;
  }

  /* Marching-ants animatie op de omreislijn */
  @keyframes omreis-march {
    to { stroke-dashoffset: -36; }
  }
  .omreis-stroke {
    animation: omreis-march 1.2s linear infinite;
  }
