Use browser geolocation API (with permission) to automatically detect the user's city and display the weather without manual input.