 (e) => {
    if (e.target.classList.contains('filter-badge-remove')) {
      const id = parseInt(e.target.dataset.id);
      removeFilter(id);
    }
  });
  
  // Filter badge remove keyboard
  document.addEventListener('keydown', (e) => {
    if ((e.key === 'Enter' || e.key === ' ') && e.target.classList.contains('filter-badge-remove')) {
      e.preventDefault();
      const id = parseInt(e.target.dataset.id);
      removeFilter(id);
    }
  });
  
  // Apply value button
  document.getElementById('apply