 }));

        allTags.forEach(tag => {
            const tagElement = document.createElement('span');
            tagElement.className = 'tag';
            tagElement.textContent = tag.label;
            tagElement.dataset.value = tag.value;

            tagElement.addEventListener('click', function () {
                const isSelected = this.classList.toggle('selected');
                const option = Array.from(hiddenSelect.options).find(opt => opt.value === tag.value);
                if (option) {
   