Spain and Portugal buckle under searing heat