Running shorts are generally the lightest, but they have minimal features, trekking shorts generally have longer legs and a range of pockets. Also, do you need a mesh lining?
Length of shorts is important, for running, or even fast walking, you need short leg length so there's no fabric to get in the way. Trekking shorts are genrally long, providing protection for your thighs.