Did the piston move freely in the master cylinder?

Do the three rubber hoses in the brake lines look OK?

Sounds like it is time to rebuild/replace the master cylinder and maybe the wheel cylinders.

Maybe someone else will post better advice.