My wife and I lived in Costa Rica for four years, left for England, saved some money, came back and spent a long time talking before we finally decided to build a house in Costa Rica.
Our son was born in Costa Rica in mid 2010 and this is what enabled us to feel confident about building a house despite not being Costa Rican citizens and not having the residency papers - having a Costa Rican child is one of the ways that you can currently qualify for Costa Rican residency.