) {
            const container = document.getElementById('dailyForecast');
            container.innerHTML = '';
            const visibleItems = calculateVisibleItems();
            
            const prevBtn = document.querySelector('.back .nav-btn.prev');
            const nextBtn = document.querySelector('.back .nav-btn.next');
            if (prevBtn) prevBtn.style.display = currentDayIndex > 0 ? 'flex' : 'none';
            if (nextBtn) nextBtn.style.display = currentDayIndex + visibleItems < daysDat