Sintra is very close to the ocean. It's basically about 8519 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 Colares.
How far is Fort Bragg from the ocean
How far is Princeville from the ocean
How far is Hana from the ocean
How far is Scottsdale from the ocean
How far is Moab from the ocean
How far is Austin from the ocean
How far is Omaha from the ocean
How far is Fairbanks from the ocean
How far is Hartford from the ocean
How far is Rovinj from the ocean