Sources directly connected with Spencer tell TMZ ... he wants to move to Costa Rica for two reasons -- it's a lot cheaper than L.A., and he would be closer to Heidi and possibly salvage his marriage.
Of course, reason #2 assumes Heidi is also moving to Costa Rica. So we checked with sources in direct contact with her, and they're now telling us Heidi is indeed noodling on the idea of living in the Republica de Costa Rica.
So the question -- Is this whole divorce thing a pile? Heidi's friends are kinda hedging, saying she loves Spencer but doesn't know how to deal with all the problems.