Whenever any person unlawfully closes any public trail, any person who uses such trail or would use such trail, and any association, corporation or other entity whose membership as a whole is adversely affected by such closure may bring an action to enjoin such closure.
The prevailing party in such action shall be entitled to recover reasonable attorney's fees, in addition to court costs.
As used in this section, a public trail is any trail to which the public in general has a right of access, which right is established pursuant to a recorded document conveying to a political corporation or governmental agency, specifying the nature of such public trail, specifically describing the location thereof, and naming the record owners of the real property over which such trail exists if created by a license, permit or easement. It includes, but is not limited to, pedestrian, equestrian, and boating trails, but does not include any public street, road, or highway.
Ca. Civ. Proc. Code § 731.5