It was a funky piece of South Bay beach infrastructure.

The steep access ramp to the sand at Avenue A in Redondo Beach was just wide enough for one person, loaded down with a chair and a beach bag, to traverse.

It was also a wicked workout for anyone needing an alternative to the 72 stairs at Avenue C. And it’s been, undoubtedly, on the receiving end of many “I-dare-ya” stunts of skateboarding youths over the years.

But the 267 feet of the Avenue A ramp that connects Esplanade to the sand is closed for good.

And replacing the ramp with ADA-compliant access could cost Los Angeles County $2 to 2.5 million, according to Nicole Mooradian, spokeswoman for the county’s Beaches and Harbors Department.

It will also be awhile before work on the new ramp begins.

Determining the new ramp’s design and getting construction approvals will take at least two years, according to Supervisor Janice Hahn’s office, who first announced the ramp’s closure on Twitter just before the Thanksgiving holiday weekend.

“The current ramp is already steep and very narrow,” Hahn spokeswoman Liz Odendahl wrote in an email, “and the department is looking to replace it with an ADA-compliant ramp to improve access for disabled beachgoers.”

Beaches and Harbors decided to close the Avenue A ramp to the public after an October draft engineering report recommended “closure, complete removal and replacement.”

That report called the ramp a “public safety hazard.”

The Avenue A ramp, based on the construction style, was built sometime in the 1960s, Mooradian said. At the time, the beach there was owned by the state, as LA County didn’t get control of Redondo Beach until more than 30 years later, in 1995.

Because of its advanced age, according to the engineer’s report, the type and size of the foundation supporting the 36-to-60 foot retaining wall, which holds back tons of dirt, is unknown. That made coming up with an interim solution to shore up the dirt and stabilize the wall nearly impossible, Mooradian said.

Rain could cause the wall to fail, according to the engineering report.