...... while Casablanca is the largest city in Morocco and one of the biggest in Africa, the area of most interest to tourists and visitors is small enough for a fit person to walk around, use petite city taxis, buses or the tram system.
From the railway station in the basement in of the arrivals hall at the Airport you can take a train to the city, Casa Voyageurs station might be a good start in Town, in front of the station you find trams, buses and taxis. Journey time about 30 minutes, a train every hour.
an expandable tram map... http://www.casatramway.ma/sites/default/files/pieces/plan-casa-tram-agence.png
finding the Airport railway station.... https://www.youtube.com/watch?v=W4guUsiphhA
Tahir Shah's guide to Casablanca.... https://www.theguardian.com/travel/video/2010/sep/09/casablanca-insider-guide-tahir-shah
The Medina and the Hassan ll Mosque aren't far apart, try to see both.