       this.filter(e.target.value);
                });
                
                // Close on outside click
                document.addEventListener('click', (e) => {
                    if (!this.element.contains(e.target)) {
                        this.close();
                    }
                });
                
                // Prevent search input from closing dropdown
                this.searchInput.addEventListener('click', (e) => {
                    e.stopPropagation();
         