South west tip of Nicoya Peninsula.
It's about 5 hours and like the other comments provided, the roads are not good. 5 hours driving in CR is a long day.
Depending on which map you look at, some show a road that stays fairly close to the beach. This is only for 4 wheel drive vehicles with higher clearance since you have 2 rivers to cross (no bridges), and one area closer to Santa Teresa that can only be taken at low tide as you are driving on the beach. Otherwise, take the more main route going down the east side of the peninsula. This road still has some rough areas, and you can't go fast. It would probably take about 3 to 4 hours. The beach road would take longer.
I took a shuttle from Montezuma (20 minutes from Santa Teresa) to Tamarindo and it took around 5 hours.
Driving in Costa Rica is slow and requires a lot of patience . I would plan on a full day to drive the distance.
best would be to check out the map. It's north of Santa Teresa (direction Liberia). Not sure about the distance, but I guess at least 100km. Keep in mind that driving is exhausting and takes double of your time than on US or European roads....
Hope this helps a little bit.
Have a good day, Jutta
Get quick answers from Playa Santa Teresa staff and past visitors.