There are 2 nice rail trails near my hometown. One is 57 miles the other is 36 miles. In my experience, the ultimate bike for rail trail riding is a gravel bike. My gravel has 105 components, 40c tires and it will absolutely fly on these types of trails. Hard tail 29er mountain bike with lockout fork would be the next best bike for rail trails.