Morocco is really cheap. unless you're buying and shipping carpets or something, it would be difficult to spend 10000DH. If it was me, I would fly in & out of spain. barcelona is a far way from morocco by land but ryanair does a pretty cheap flight from girona to grenada... bus transportation in spain is pretty cheap... hostels and food and stuff is more expensive, but what you spend in spain you will save in morocco. trains are really cheap in morocco as is everything else.
I see you have a couple of options already as far as airfare but you might even find a cheaper situation if you get creative. for example, if you find a flight from any city in europe to home for super cheap (like I just saw a flight from london to calgary for $150) then find a cheap ryanair flight from say marrakech to london (I think that flight cost me about $80) then you have just saved on airfare. think outside the box, play with dates & times, and you may find even cheaper than what you've found so far, if you don't mind hopping around a bit.
libertine. epicurean. hedonist.