During Ramadhan, is it permissible to travel for leisure such as a hike or to visit friends when this will involve breaking fast due to distance and perhaps staying overnight? The trip is non essential and not work

It is permissible but makruh (not advised)