This picturesque coastal town cradled by mountains and sandy shores is a scene out of a Southern California postcard. Residents of Carpinteria say they feel lucky to live in what they consider a slice of paradise.
But change is in the air. And sometimes, they say, it stinks.
That's because marijuana has become a new crop of choice in the farmlands surrounding this tight-knit community of 14,000, which has long helped fuel the US cut flower industry.
Residents say a thick, skunk-like odour from the marijuana plants settles over the valley in the evenings and before dawn. To keep out the stench, they have tried stuffing pillows under doors, lighting incense and shutting windows, a reluctant choice since it also keeps out the cool ocean breezes that are part of the town's allure.
"We don't want a marijuana smell," said Xave Saragosa, a 73-year-old retired sheriff's deputy who was born and raised in the town and lives near a greenhouse that grows marijuana. "We want fresh air."
Saragosa said the odor pervades his hillside home at night and keeps his wife up coughing.
Carpinteria, about 137 kilometres from Los Angeles, is in the southeast corner of Santa Barbara County, a tourist area famous for its beaches, wine and temperate climate. It's also becoming known as a haven for cannabis growers.
The county amassed the largest number of marijuana cultivation licenses in California since broad legalisation arrived on January 1 - about 800, according to state data compiled by The Associated Press. Two-thirds of them are in Carpinteria and Lompoc, a larger agricultural city about an hour's drive to the northwest.
Virtually all of Carpinteria's licenses are for small, "mixed-light" facilities, which essentially means greenhouses.
The result is a large number of licenses but small total acreage. Only about 200 acres of the county's farmland is devoted to marijuana, compared with tens of thousands sown with strawberries and vegetables, said Dennis Bozanich, who oversees the county's marijuana planning.
The area's greenhouses have their roots in Carpinteria's cut flower industry, which was sapped after the US government granted trade preferences to South American countries in the 1990s to encourage their farmers to grow flowers instead of coca, the plant used to make cocaine.
In an ironic twist, some California flower growers weary of import competition have started trying to grow cannabis, a plant that, like coca, is deemed illicit by the federal government. Others have sold their greenhouses to marijuana investors.
"We have literally no carnation production in the United States any longer because South America grows them so cheaply," said Kasey Cronquist, chief executive of the California Cut Flower Commission. "Farmers had to move crops, and that is what we have seen happen over time - they've gone to crops that are more valuable or more difficult for Ecuador and Colombia to ship."
Domestic cut flower growers saw their share of the US market drop to 27 per cent in 2015 from 58 per cent in 1991. Sales of imported cut flowers grew to more than $US1 billion ($A1.33 billion) during the same period, according to data compiled by the commission.
Greenhouses that once produced flowers are seen as ideal for marijuana. In Carpinteria's climate, the greenhouses heat and cool easily and inexpensively, and the plants thrive. It takes only about three months to grow cannabis in pots of shredded coconut husks, so farmers can get multiple harvests each year.
In the hills of the so-called Emerald Triangle of Northern California, where most of the state's pot is grown, there is a single harvest each year.
Some residents said the stench has decreased in recent months as some growers installed systems aimed at reducing the smells. Others said the problem persists.
The county passed rules in February requiring growers to submit odour abatement plans and designate a representative to handle complaints. They are expected to take effect in some county areas this year and in Carpinteria following a review by state coastal regulators.
Californians voted to legalise marijuana in 2016, but counties and cities have a say on whether they allow cannabis production, distribution or sales.
In Carpinteria, some residents worry property values will fall if the town keeps reeking of pot. They hope the smell will fade as more growers install odor control systems and those who don't are shut down.
Toni Stuart, an 80-year-old retired Episcopal priest, said the odour doesn't creep into the area near the beach where she lives, but she worries about the community changing.
"I would not like Carpinteria to be the 'cannabis capital' of Southern California. I like it the way it is. It's a very quiet, unpretentious beach town," she said.
"If people want to grow cannabis instead of flowers or avocados or macadamia nuts - I suppose that's their right. But they've got to think about their neighbours."