The calculated distance (air line) between Maşyāf and Idlib is approximately 62 miles respectively 100 kilometers.
By car or train, the actual journey to Idlib is certainly longer, as only the direct route (as the crow flies) between Maşyāf and Idlib has been calculated here.