     allTags = Object.keys(tagCounts)
                    .sort((a, b) => tagCounts[b] - tagCounts[a])
                    .slice(0, 20); // Get top 20 tags
            }

            function populateFilterPanel() {
                // Clear existing filters
                thematicFilters.innerHTML = '';
                tagFilters.innerHTML = '';

                // Add thematic group checkboxes
                allThematicGroups.forEach(group => {
                    const checkbox = document.createElement