It is possible that
Trip has an allergy to something from your
hike also a foreign body picked up and lodged in his airway may cause the same symptoms; if he is struggling to breathe I would recommend visiting your Veterinarian immediately, but
until then you can give him Benadryl at a dose of 1mg / lb every 12 hours to see if that improves his symptoms.