Thousands flee homes as Greece battles wildfires