Wildfires destroy thousands of hectares in Spain