To find out what you can afford and what kind of loan you qualify for . And in the process, you will also know if the type of loan may also restrict you as to the type of home you can buy. For example, if you're getting an FHA loan, some condos are not FHA-approved.
The first step is to talk with a lender --- either a bank mortgage lender or a mortgage broker who may have other resources than just one bank
If you don't have a lender here are three you can call/email/text. They have helped me and many of my clients. Perhaps one of them can guide you along.
Home Mortgage Consultant
(415) 860-3285 cell
Your Personal Mortgage Consultant for Life
Private Mortgage (affiliate of Wells Fargo)