It is great that you are keeping the prior HOA fees in mind. In Florida, the new owner will be responsible for the HOA dues on a foreclosed property—however, that does not relieve the prior owner of the responsibility. Both parties are on the hook for the bill until it’s paid.
Florida also has a unique 12-month rule in regards to HOA fees. If a bank takes over the property, they must only pay the HOA the past 12 months of fees. If it is a short sale (the home sold below market value for a quick turnover) or a deed-in-lieu (the owner surrenders the home back to the bank), the total fees are still owed.
Ask the realtor how much is owned in the property because those fees can add up! The past due amount can include: