Flirting (and affairs) is a art form in Costa Rica, and goes both ways, men hitting on women and women hitting on me, married, single does not matter, also they could careless if your a local or a foreigner, everyone is fair game...Costa Rica is rather liberal when it comes sexuality and interaction between the sexes. They like to smile a lot, and and engage a stranger, unlike many other parts of the region, I think it has something to do with why its so popular with tourist, as Ticos and Ticas are are very friendly and sweet generally, and open and good hearted...
Turkey has to have the most flirtatious men in the world, and engaging, talk about salesman, they can sell you the shoes you walked in on...a single woman walking alone at night, watch out...haha
But, everyone and everywhere is different, not fair to judge a country or its people by a few attitudes.
Two guys traveling together requesting a queen bed in Nicaragua could raise eyebrows...depending where you are...
