HOAs can be very tricky, the money comes to maintain some shared amenities. Usually it is not too bad, but in case of condos HOAs maintain much more and sometimes the board makes very questionable decisions and can end up short on cash when big things are required, and that can hike the payments a lot.
As for the insurance, the best advice is just to avoid high-risk areas like flooding zones.