Where are Tesla’s factories based? Including Elon Musk’s gigafactories in Shanghai and Berlin

Tesla-factory-California
Tesla’s factory in Fremonta, California (Credit: Wikimedia Commons)