The city’s most distinctive building, the 11th century Alcazaba sits in majestic splendour on the hillside overlooking the African coast.