/* =============================================================
   FILTRES DE ROUTES - STYLES
   ============================================================= */

.roads-filter-panel {
  position: fixed;
  top: 20px;
  right: 80px;
  width: 300px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 900;
  overflow: hidden;
  display: none;
}

.roads-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  user-select: none;
}

.roads-filter-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.roads-filter-header-buttons {
  display: flex;
  gap: 8px;
}

.roads-filter-toggle,
.roads-filter-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.roads-filter-close {
  font-size: 24px;
  font-weight: bold;
}

.roads-filter-toggle:hover,
.roads-filter-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.toggle-icon {
  display: inline-block;
  transition: transform 0.3s;
}

.roads-filter-content {
  max-height: 400px;
  overflow-y: auto;
}

.roads-filter-list {
  padding: 8px;
}

.roads-filter-item {
  padding: 12px;
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.2s;
}

.roads-filter-item:last-child {
  border-bottom: none;
}

.roads-filter-item:hover {
  background: #f5f5f5;
}

.roads-filter-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.roads-filter-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  margin-top: 2px;
  flex-shrink: 0;
}

.filter-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-text strong {
  font-size: 14px;
  color: #333;
}

.filter-text small {
  font-size: 12px;
  color: #666;
  line-height: 1.3;
}

/* Scrollbar personnalisé */
.roads-filter-content::-webkit-scrollbar {
  width: 8px;
}

.roads-filter-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.roads-filter-content::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.roads-filter-content::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Responsive */
@media (max-width: 768px) {
  .roads-filter-panel {
    width: 260px;
    top: 60px;
    right: 10px;
  }

  .roads-filter-header h3 {
    font-size: 14px;
  }

  .filter-text strong {
    font-size: 13px;
  }

  .filter-text small {
    font-size: 11px;
  }
}
