adverse party prevails in the civil action or the notice of assessment is reversed by a reviewing court, the adverse party shall pay all costs of either action, including attorney's fees, investigation costs, service costs, court costs, and other applicable costs.