While Trump rode a wave of anti-establishment, working-class white votes to the White House, California’s relatively diverse electorate, with well-established elites in Hollywood and Silicon Valley, roundly rejected him while passing liberal-favored ballot measures, including legalized recreational marijuana and a ban on plastic bags.

The presidency, House of Representatives and U.S. Senate are under Republican control. But in California, Democrats hold all statewide offices and majorities in the state’s congressional delegation and the state Legislature.

Trump takes a hard line on immigration, vowed to repeal Obamacare and has dismissed climate change as a hoax. Here, Democratic lawmakers approved drivers’ licenses for undocumented immigrants and made climate change a top priority, while Covered California is hailed as an example of the Affordable Care Act’s success.

In the wake of Trump’s stunning upset, California must find its place in his upcoming presidency and gird for what could be a series of clashes with Washington akin to GOP red state battles with Democratic President Barack Obama.

“From now on, opposition to Trump will be front and center of California Democratic strategy and tactics,” said Jack Pitney, a professor of politics at Claremont McKenna College.

Trump’s win rattled California’s Democratic leaders.

“Today, we woke up feeling like strangers in a foreign land,” began a joint statement from Assembly Speaker Anthony Rendon, D-Paramount, and state Senate President pro Tempore Kevin de León, D-Los Angeles.

They added: “We are not going to allow one election to reverse generations of progress at the height of our historic diversity, scientific advancement, economic output, and sense of global responsibility.”

However, California may not be as much of an outlier as it thinks. It was one of 10 states with 55 percent or more of its vote going to Clinton, said Renee Van Vechten, a political science professor at the University of Redlands.

News of Trump’s win led to protests on college campuses statewide. Police said at least 500 people swarmed on streets in and around UCLA, some shouting anti-Trump expletives and others chanting “Not my president!”

Smaller demonstrations were held at University of California campuses and neighborhoods in Berkeley, Irvine and Davis and at San Jose State.

In Oakland, more than 100 protesters took to downtown streets. KNTV-TV reported that protesters burned Trump in effigy, smashed windows of the Oakland Tribune newsroom and set tires and trash on fire.

Last month, Trump’s star on the Hollywood Walk of Fame was destroyed. And raucous protests greeted Trump during his California visits earlier this year.

Some in the bluest state on Hillary Clinton’s map took to social media to call for secession. The hashtags #Calexit and #Caleavefornia trended on Twitter, recalling Great Britain’s Brexit from the European Union.

“If Trump wins,” venture capitalist Shervin Pishevar wrote, “I am announcing and funding a legitimate campaign for California to become its own nation.”

FIGHT BREWING

California is more ethnically diverse than the rest of the nation. In 2014, about 38 percent of Californians were Latino compared with 17 percent of U.S. residents, according to census figures.

It’s also more Democratic. Forty-five percent of the state’s voters are registered Democrats, while 32 percent of those surveyed in a nationwide September Gallup poll said they were Democrats.

Loren Collingwood, an assistant political science professor at UC Riverside, noted that while pro-Trump pockets exist in Inland areas, the Central Valley and counties near Nevada, Orange County, long a bastion of conservative politics, went for Clinton on Tuesday.

“In many ways, California has fought these national battles based on anti-immigrant antipathy and racial group threat, and has moved on,” Collingwood said. “America as a whole will engage this in a long, protracted battle for at least the next 20 years.”

Jennifer Walsh, dean of the College of Liberal Arts and Sciences at Azusa Pacific University, said Trump did well in areas that “suffered economic decline caused by declining manufacturing sectors and a reconfiguration of the economy that prefers a college-educated workforce. These factors are not significant in California’s economy.”

Collingwood predicted that California will fight the GOP-controlled federal government like red states fought Obama on border security and Obamacare.

“Republicans will definitely go after health care (and) as a result many people will lose health care, but prices might also drop for others,” he said.

Instead of fighting climate change, “if anything the next administration will liberalize … fossil-fuel industries as it tries to grow the economy in many of the regions that backed (Trump) — regions with extraction-based economies (unlike California),” Collingwood said.

Walsh said that if Trump follows through on his promise to build a wall on the Mexican border and deport undocumented immigrants en masse, “I would expect California officials to engage in political and legal efforts to thwart those efforts.”

Mark Peterson, a professor at UCLA’s Luskin School of Public Affairs, expects the Trump administration to challenge sanctuary cities for undocumented immigrants.

“And my guess is that such places in California will push back, with potential consequences for federal funding,” he said.

Marcia Godwin, an associate professor of public administration at the University of La Verne, thinks incentives to deal with climate change and funding for environmental initiatives such as the San Gabriel Mountains National Monument are on the chopping block in the Trump White House.

Godwin said there could be “less out-and-out defiance (of Trump) in favor of efforts to establish California as an alternative model for health services, education, services for immigrants, and a technology-based economy.”

“One irony is that a Trump administration is likely to support more state-level autonomy,” Godwin said. “There will be less federal funds but more latitude for California’s political leaders to innovate.”

CHANCE TO SHINE?

While California will have little influence over national policy, “Rep. Kevin McCarthy (of Bakersfield) has been an influential part of the House Republican leadership,” Godwin said.

“California will have real leverage through its two senators (both Democrats) since the Republicans will not have a filibuster-proof majority. (Sen. Dianne Feinstein, D-Calif.) may be able to get some manufacturing incentives, for example, steered to California along with other states.”

The election’s results “may give more of a platform” to Kamala Harris, California’s new U.S. senator, Godwin said. “If she becomes an active voice in opposing Trump’s policies, she will gain a national audience and add to her reputation as a rising star.”

Rep. Duncan Hunter, R-Alpine, an early Trump supporter who represents most of Temecula, might rise to a more prominent House leadership role, Walsh said.

DEMOCRATIC DIFFERENCE

California’s political makeup is vastly different from that of Washington, D.C.

U.S. Senate: Republicans currently hold a 51-48 edge with one race outstanding.

California Senate: Going into Election Day, Democrats had 26 state Senate seats to the GOP’s 13.

U.S. House of Representatives: Republicans have 239 seats to 193 for the Democrats.

California Assembly: Prior to Tuesday, Democrats had a 52-28 edge.

The Associated Press and Staff writer Gregory J. Wilcox contributed to this report.

More in California News

Violent police encounters in California last year led to the deaths of 157 people and six officers, the state attorney general’s office said Thursday in a report that provides the first statewide tally on police use-of-force incidents.

The agency’s hiring surge is only for half of the funds generated under SB 1; the other half is going to cities and counties for transportation improvements projects, which are also expected to generate new jobs.