After months of heated debate and the threat of a lawsuit from the state's attorney general, this small mining town-turned-artist-community approved a civil-union ordinance that's the first of its kind in Arizona.

The new version passed this week falls short of the original ordinance that the Bisbee City Council passed in March - a move met with swift opposition from state Attorney General Tom Horne, who argued that the ordinance violated state law by allowing same-sex couples the same rights afforded to married couples, a privilege reserved for the state.

In response, the Bisbee City Council decided to revise its original ordinance to address Horne's concerns but to still recognize a union between same-sex couples in the city.

A line in the original ordinance, which has since been omitted, said couples in a civil union would have the same responsibilities and benefits as married couples.

Under the new version, people who are in civil unions recognized only within the city of Bisbee could file contractual statements spelling out their agreed-upon "rights, obligations and expectations" in matters such as inheritances, property ownership and children.

Some of those agreements "may require additional documentation and other formalities" to make them effective under state law, the revised ordinance states.

Bob Klein and Jeff Trujillo have been together for 14 years.

They live and run a business together, the Doublejack Guesthouse, described as "a gay-friendly, gay-operated business" - the "only one of its kind" in Bisbee, Klein said.

Trujillo said the ordinance would legitimize their relationship in a cultural way.

"Having this in place is an acknowledgment by the straight community of our relationship," he said. "It puts us on the same level as everybody else in an overt way."

In essence, Bisbee's civil unions are no different from a contract drafted by a private attorney.

Eugene Conners, the city councilman who proposed the ordinance, said, "The city is simply making a statement by providing it for you."

But for the Bisbee residents like Andrew Nelson, the ordinance is about taking a stand for what they believe is a civil-rights issue. "It's just about doing the right thing," he said. "It's kind of surprising that it's blown up into this."

But not everyone in town is in favor of the ordinance.

The "call to the public" section of the March meeting where the ordinance was first discussed lasted three hours, and two City Council members out of seven voted against the proposal.

Conners said he estimated that about three-fourths of the town was in favor of civil unions, but added that opponents have been vocal.

Residents call their town "a blue dot in a sea of red" in reference to the city's divergence from the state's Republican leanings.

The publicity the ordinance has generated could help the small town boost its economy.

Bisbee is tucked into the hills of Southeastern Arizona within sight of the U.S.-Mexico border. The former copper mining town of about 5,000 residents has evolved into a blend of artist spaces, shops, and bed-and-breakfasts that attracts about 60,000 visitors annually.

Before the vote, as Conners walked around town, people asked for updates on the ordinance. Conners replied that it's moving along, peppering his language with "dude" and "groovy."

"The civil-union ordinance, even though its scope is limited and it's a far cry from granting equal marriage rights to the GLBT community, is likely to draw people to the city to show their support, attend civil-union ceremonies, and perhaps even move here to take advantage of our welcoming atmosphere," he said.

In 2000, when Vermont became the first state in the nation to allow civil unions, the state awarded 1,704 civil-union certificates. The following year, that number continued to grow; most of the unions were celebrated by couples who did not reside within the state.

At that time, same-sex couples did not have many options, and Vermont was the only state that allowed civil unions, said Lee Badgett, executive director of the Williams Institute at UCLA, which researches sexual orientation, gender identity law and public policy.

Now that same-sex couples can legally marry in nearly 25 percent of the states, not many people will travel somewhere for a civil union.

But for Bisbee the tourist draw is not the main concern.

Kathy Sowden, a business owner who lives in town with her partner, said the ordinance could encourage more people to move to Bisbee.

Klein, who runs the business side of the Doublejack Guesthouse, said he has already received reservations from people across the country that specifically point to the ordinance as their reason for visiting.

"It stands to draw more retiring LGBTs to the community," Sowden said. "Somebody gay in Tucson might prefer to retire in a more accepting place."

And that matters more to Sowden than an influx of tourists because an increase of residents could help the small city pay for public services.

Even if the ordinance helps the economy, its proponents say the matter is first and foremost an equal-rights issue. The ordinance takes effect July 4.

Supporters, like Trujillo, hope it will be an example for the rest of the nation.

"If a small town like Bisbee in a red state like Arizona can do this, then maybe a bigger city in a bigger place can take the lead of 5,100 people."

The Associated Press contributed to this story, which was produced as part of The New York Times Student Journalism Institute, held in May at the University of Arizona School of Journalism. Find more articles at tucson13.nytimes-institute.com