This place is pretty nice, and not that far from the trails. Just about 20 minutes from the trailhead at Jericho Motorsports. Little bit of a drive, but imo one of the best places to stay while your up that way.
I stayed at the Town and Country Inn in Gorham for the Zombie ATV Poker Run in Oct 2013. You can legally drive ATV's to Jericho from Gorham. I chose not too because I was with my kids. But the facilities were pretty good, very good restaurant at the Inn. Probably the nicest hotel/motel in Gorham.