We're ending our Morocco trip in Essaouira, and will have an early flight back from Casablanca leaving at 7 a.m. the following day. We plan to go to Casablanca in the evening, stay overnight in an airport hotel and then get on the plane. We'll probably take a bus or grand taxi from Essaouira to Marrakech, and then a train from Marrakech to Casablanca.
Our question -- how late can we stay in Essaouira? We don't mind getting to Casablanca late in the evening, but we also don't want to risk missing our plane.