A court may award attorney fees and costs to any party that prevails in a civil action between a lot owner and the association or declarant based upon any provision of the declaration or bylaws; provided that the declaration or bylaws allow at least one party to recover attorney fees or costs.
NMS § 47-16-14