Mdina is very close to the ocean. It's basically about 3582 meters from the ocean depending on where you measure to the exact coastline.
If you're driving to a town near the beach or coastline, you could try Rabat (Malta).
How far is Cincinnati from the ocean
How far is Grand Rapids from the ocean
How far is Providence from the ocean
How far is Monterey from the ocean
How far is Honolulu from the ocean
How far is Madison, WI from the ocean
How far is Culver City from the ocean
How far is Hermosa Beach from the ocean
How far is Encinitas from the ocean
How far is Pamukkale from the ocean