A man crawled through the mountains for more than 11 hours with broken bones — guided only by the light on his dog’s collar.