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 Marina Del Rey from the ocean
How far is Mystic from the ocean
How far is Mendocino from the ocean
How far is Salt Lake City from the ocean
How far is Burlington, VT from the ocean
How far is Las Cruces from the ocean
How far is Valdosta from the ocean
How far is Fresno from the ocean
How far is Columbus from the ocean
How far is Taupo from the ocean