.departure-filter-panel {
  position: sticky;
  z-index: 20;
  top: -20px;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid #dce8e3;
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 28px rgba(16, 42, 67, .09);
  backdrop-filter: blur(14px);
}

.departure-filter-heading {
  display: flex;
  margin-bottom: 11px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.departure-filter-heading > div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 8px;
}

.departure-filter-heading strong {
  font-size: .82rem;
}

.departure-filter-kicker {
  color: #087f72;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.departure-filter-toggle {
  display: inline-flex;
  padding: 6px 9px;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  color: #087f72;
  font-size: .68rem;
  font-weight: 800;
  border: 1px solid #cce5df;
  border-radius: 9px;
  background: #eaf8f4;
  transition: transform .2s ease, background .2s ease;
}

.departure-filter-toggle:hover {
  background: #d9f2ec;
  transform: translateY(-1px);
}

.departure-filter-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.departure-line-filter {
  display: inline-flex;
  min-height: 34px;
  padding: 4px 7px;
  align-items: center;
  gap: 6px;
  color: #486581;
  border: 1px solid #e0e9e5;
  border-radius: 10px;
  background: #f7faf8;
  cursor: pointer;
  opacity: .68;
  transition: opacity .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.departure-line-filter:hover {
  opacity: 1;
  border-color: #bcdad3;
  transform: translateY(-1px);
}

.departure-line-filter.is-checked {
  opacity: 1;
  border-color: #c4e1da;
  background: #eff9f6;
}

.departure-line-filter .form-check-input {
  width: .95rem;
  height: .95rem;
  margin: 0;
  border-color: #9cb8af;
  box-shadow: none;
}

.departure-line-filter .form-check-input:checked {
  border-color: #00a896;
  background-color: #00a896;
}

.departure-filter-line-badge {
  display: inline-flex;
  min-width: 28px;
  min-height: 23px;
  padding: 3px 6px;
  align-items: center;
  justify-content: center;
  font-size: .67rem;
  font-weight: 800;
  border-radius: 6px;
}

.departure-filter-mode {
  font-size: .67rem;
  font-weight: 700;
}

.departure-filter-number {
  display: grid;
  min-width: 19px;
  height: 19px;
  padding-inline: 4px;
  place-items: center;
  color: #627d72;
  font-size: .6rem;
  font-weight: 800;
  border-radius: 999px;
  background: #e2ece8;
}

.departure-filter-count {
  display: block;
  margin-top: 8px;
  color: #627d72;
  font-size: .64rem;
}

.departure-filter-empty {
  display: flex;
  min-height: 220px;
  padding: 28px;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  color: #486581;
  border: 1px dashed #cbdcd5;
  border-radius: 16px;
  background: rgba(255, 255, 255, .55);
}

.departure-filter-empty > i {
  margin-bottom: 10px;
  color: #00a896;
  font-size: 1.8rem;
}

.departure-filter-empty strong,
.departure-filter-empty span {
  display: block;
}

.departure-filter-empty strong {
  color: #102a43;
}

.departure-filter-empty span {
  margin-top: 4px;
  font-size: .78rem;
}

.departure-filter-empty button {
  margin-top: 14px;
  padding: 7px 12px;
  color: #087f72;
  font-size: .72rem;
  font-weight: 800;
  border: 1px solid #c4e1da;
  border-radius: 9px;
  background: #e5f7f2;
}

@media (max-width: 600px) {
  .departure-filter-panel {
    top: 0;
    margin-inline: -5px;
    padding: 11px;
  }

  .departure-filter-heading {
    align-items: flex-start;
  }

  .departure-filter-heading > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
  }

  .departure-filter-mode {
    display: none;
  }
}


/* Une case représente désormais une ligne dans une direction précise. */
.departure-filter-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  align-items: stretch;
}

.departure-line-filter {
  width: 100%;
  min-width: 0;
  padding: 7px 9px;
  align-items: center;
}

.departure-filter-direction {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  line-height: 1.15;
}

.departure-filter-direction strong {
  overflow: hidden;
  color: #294d5e;
  font-size: .69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.departure-filter-direction small {
  margin-top: 3px;
  color: #728b94;
  font-size: .57rem;
  font-weight: 700;
}

.departure-line-filter.is-checked .departure-filter-direction strong {
  color: #075f57;
}

@media (max-width: 600px) {
  .departure-filter-list {
    grid-template-columns: 1fr;
  }
}
.departure-load-more {
  display: flex;
  margin-top: 14px;
  justify-content: center;
}

.departure-load-more button {
  display: inline-flex;
  min-height: 40px;
  padding: 8px 16px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #087f72;
  font-size: .68rem;
  font-weight: 800;
  border: 1px solid #c8e2dc;
  border-radius: 11px;
  background: #edf9f6;
}

.departure-load-more.is-loading {
  opacity: .65;
  pointer-events: none;
}
.departure-page-loading {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #587682;
  font-size: .75rem;
  font-weight: 700;
}
