Updated

Denver has approved a first-in-the-nation law allowing people to use marijuana at bars, restaurants and other public spaces such as art galleries or yoga studios.

The catch: Patrons could use pot as long as it isn't smoked and the locations would have to seek the approval of neighbors.

Denver voters approved Proposition 300 as eight other states legalized marijuana for medical or recreational purposes last week. The Denver vote was so close that it took an entire week for supporters to claim victory and opponents to concede.

"It's the sensible thing to do," said Emmett Reistroffer, a Denver marijuana consultant and campaign manager for the pot-in-bars measure. "This is about personal responsibility and respecting adults who want to have a place to enjoy cannabis."

The city measure takes effect immediately, but it has a lot of caveats.

First, interested bars and restaurants would have to show they have neighborhood support before getting a license to allow marijuana use. In addition, patrons would have to bring their own weed to comply with state law banning the sale of both pot and food or drink at a single location.

Patrons at participating bars could use pot inside as long as it isn't smoked. The law does provide for the possibility of outside smoking areas under restrictive circumstances.

Mason Tvert, a spokesman for the national Marijuana Policy Project and a Denver proponent of the consumption law, said the measure would reduce instances of tourists smoking pot on sidewalks and in parks because they have nowhere private to consume weed.

A Denver billboard promoting the measure featured a large arrow pointing to a sidewalk below, telling voters that without a provision for social pot use, folks will keep smoking pot in plain view.

"We are setting up a system that is still more restrictive than what we see with alcohol consumption," Tvert said.

Supporters of the measure had no guess on how many establishments would apply for the permits or how long it would take for them to demonstrate community acceptance and receive permits. So it could take many months before Denver sees any Amsterdam-style coffee shops.

The measure sunsets in 2020, unless city officials renew the licenses or voters make the pot-in-bars measure permanent.

Current Colorado law does not allow or ban public marijuana use. The result is a hodgepodge of local ordinances related to marijuana clubs.

Denver is the first city to allow use in bars and restaurants. The state Legislature is expected to consider a bill next year to clarify that communities can allow on-site pot consumption if they wish.

Alaska is the only state that allows on-site consumption at pot retailers. However, the state doesn't allow use in bars or restaurants, and it's still working on rules for how those pot shop "tasting rooms" would operate.

California's recreational marijuana measure approved last week specifically allows pot clubs, and legalization measures approved in Massachusetts, Maine and Nevada don't rule out on-site pot consumption on private property.

Opponents of the Denver measure predicted neighborhoods would resist bars, restaurants and other venues seeking pot licenses. They warned the measure won't properly protect the public from stoned patrons leaving a bar that allows smoking and drinking at the same time.

"How can these businesses possibly monitor patrons for marijuana intoxication?" opponent Rachel O'Bryan said in a statement Tuesday.

The measure would require any interested bar or restaurant to specially train staff in marijuana use and submit an operations plan to show how it would prevent marijuana use by underage patrons. Applicants must also specify strategies and procedures for identifying and responding to the potential over-intoxication of consumers.