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 Hollywood from the ocean
How far is Paso Robles from the ocean
How far is Clearwater from the ocean
How far is Tampa from the ocean
How far is Kailua from the ocean
How far is Yuma from the ocean
How far is Santa Monica from the ocean
How far is Berkeley from the ocean
How far is Hanalei from the ocean
How far is Dublin from the ocean