The dress code in Boquete varies a bit, but it is generally casual. It varies from sloppy, hippie (old hippie), cowboyish, and all the way to smart casual. My wife and I have attended funerals and other events and I very seldom see people dress up. I was surprised how casually many people dress. A lot of them say that they just never really brought formal attire with them when they came to Boquete.
A very wealthy man here recently gave a massive party and invited people from all over the world. He literally paid for their fare and toured them around Boquete. We saw every clothing style in his party. I went in highland formal; I wore my kilt. Some people wore just a clean pair of jeans, and that is partly because we had people at that party that come from different walks of life. There were also some Americans, and I mean no disrespect, who in a lot of cases, tend to dress down more than Europeans or Canadians.
Women in Boquete dress up more than men. I think that is common in North America and even in Europe. You will see women in every style of clothing here in Boquete. They wear long sun dresses, jeans, or slacks. I think there is a preponderance of slacks, and I noticed that, because I do like to see women dressed up some times. You tend to pick out who are the tourists in town or new omers, because they are wearing more of a traveling type of clothing; clothes that are easy to wash or clothes that are usually worn by people on a safari.
When we ask our friends to come to dinner, we notice that the men will be very casual, and they very seldom wear a jacket. Once in a blue moon, you will see somebody wear a tie when going to or just coming from church. You will very rarely see a man wear a cravat (dress ascot in the US) here in Boquete. Most of the gringos and locals wear long pants.
I wear shorts and still do occasionally, but shorts are not so much the norm here in Boquete, and I notice that in some of the Central American countries as well. I think shorts are more common to tourists on the beach or tourists in town.
Women in Boquete are more smartly dressed. My wife, for example, wears a shawl, a jacket, or a cardigan in the evening; covering up is useful here in Boquete because we get cooler nights. The temperature here goes down to 65 degrees Fahrenheit.