You're making it much more difficult and complicated than it really is. Stop in Gibraltar for the day and get a mooring
receipt at Queens Way, they will provide all the appropriate paperwork you'll need... they do it all the time.
A stop in Morocco might come back to actually haunt you since some of northern Morocco is actually part of Spain
. I believe most of the northern Moroccan marinas
are actually in Spain, but you'll need to check which ones on your own. While in Gibraltar, fill up on the cheapest diesel
in the Western Med, the savings will probably pay for you stay.