The calculated distance (air line) between Castro Marim and Loures is approximately 146 miles respectively 234 kilometers.
By car or train, the actual journey to Loures is certainly longer, as only the direct route (as the crow flies) between Castro Marim and Loures has been calculated here.
Air line (approximately)
234 kilometers
126 nautical miles