// Auto-detect API base URL from current domain const API_BASE_URL = window.location.protocol + '//' + window.location.host; //const API_BASE_URL = 'http://localhost:5000'; //used for development // Application state const AppState = { map: null, markers: [], allListings: [], selectedListingId: null, currentSessionId: null, scrapeStartTime: null, isScrapingActive: false };