Panama hats, as any Ecuadorian worth their salt will tell you, don’t come from Panama. Authentic Panamas – or sombreros de paja toquilla, as they call them locally – are only woven in the Andean country, from the straw of the toquilla plant, which grows in the swamps near Ecuador’s central coast. The origin of the misnomer comes from the hat’s widespread use by the workers who built the Panama Canal from 1904 to 1914. Toquilla hats have been woven in Ecuador for at least five hundred years, but in the face of cheap Chinese competition, lower demand and the massive emigration of young Ecuadoreans, the traditionally woven Panama is now an endangered species.

It’s well worth seeking out the last few artisans who create the very best superfinos. Most tourists on the trail go to Cuenca, a weaving centre in the southern highlands. A better option is to head west to Montecristi, which is to Panama-hat lovers what Havana is to cigar aficionados. It’s no showroom: the dust-and-concrete town is an inauspicious centre for the production of some of the most expensive headgear in the world. But ask around for a local comisionista (middlemen who travel around villages and buy hats from weavers) and arrange a trip to meet the weavers in nearby villages such as Pile.

The time to arrive is just after dawn, when the light is atmospheric and the heat and humidity are perfect for weaving. The contrast between the beautiful hats – the finest of which are woven so tightly they look like off-white cotton – and the conditions in which they are produced is stark. The weavers, who spend up to four months weaving each hat, live in ragged redbrick dwellings with rusting corrugated-iron roofs, linked by degraded dirt streets patrolled by strutting chickens and shuffling pigs. Be sure to visit the straw-cutters, too, and accompany them on a hike to see the plants growing. The more you see of the hats and the weavers, the better equipped you’ll be to buy your own.

Montecristi is about 3hr by road from Guayaquil, Ecuador’s biggest city.