Spain's cherished tourist hotspot of Granada was in shock on Saturday after a rare 5.0-magnitude earthquake woke residents in the middle of the night and damaged buildings in the southern city.