The prevailing party in any civil action by a recreational user for damages against a landowner who allows the use of the landowner's property for public recreational purposes shall recover the costs of the action together with reasonable attorney fees as determined by the court.