which mountains is the city that was the capital of the almoravid dynasty from 1071 to 1244 at the foothills of ?
atlas mountains