        storage.setItem('gee_community_datasets', JSON.stringify(communityCatalogDatasets));
                        storage.setItem('gee_datasets_timestamp', Date.now().toString());

                        initializeData();
                        loadingSpinner.style.display = 'none';
                    })
                    .catch(error => {
                        console.warn('Error fetching data, using sample data instead:', error);

                        // Fallback to sample data when fetch fai