Most visitors to Costa Rica clear immigration at Juan Santamaría International Airport in minutes. But what happens at that counter is worth understanding before you fly, because the days you're allowed to stay are decided on the spot — not guaranteed in advance.

Citizens of the US, Canada, the UK, much of Europe and Australia generally don't need a tourist visa ahead of time. That doesn't mean a fixed allowance, though. An officer sets your authorised stay when stamping your passport, and while it can reach 180 days, it may be shorter. Read the stamp before you leave the counter. Travellers from countries requiring a consular visa must apply in advance, with requirements varying by nationality, so check with the relevant Costa Rican consulate well before booking.

Have a small folder ready — printed or on your phone. Officers can ask for an onward or return ticket, evidence of sufficient funds, and proof of accommodation. Travellers arriving from or transiting certain yellow-fever-risk countries may need a vaccination certificate. And check your passport's condition: airlines often enforce stricter rules than Costa Rica itself, and a damaged document can stop a trip before it starts.

Tourist status covers holidays, scouting trips and even meetings — but not local employment. Working remotely for a foreign employer is a different matter: Costa Rica's digital nomad programme grants eligible applicants roughly a year in the country, renewable once, provided they can document stable foreign-source income and health coverage. Expect apostilles, legalisation and certified Spanish translations, and start the paperwork early.

For those planning a longer stay, residency paths include pensionado (for people with qualifying pension income), rentista (independent income or deposit), investor residency and routes via a Costa Rican spouse or family tie. One common misconception: buying property does not grant residency on its own, although a qualifying investment can support an investor application.

Then there's the so-called border-run reset. Officers increasingly scrutinise repeated short entries, and a pattern that looks like living in the country without residency can cause real trouble. Overstaying risks fines and future complications. If Costa Rica has become your de facto home, the advice is simple: apply for the category that matches your life, and get proper immigration and tax advice while you're at it.