There really are no "hidden fees" associated with purchasing a home. If you are working with a good real estate professional and mortgage broker, they will be able to tell you all of the costs and explain what they are.
Here are some of the fees that you will need to know about, which are negotiable as to who pays for them...the Buyer or Seller:
Any repairs not being paid for by the Seller
Termite report and clearance
Minimum Mandatory Government Retrofit (depending on where the house is, it varies but usually is smoke/carbon monoxide detectors, low flow toilets and shower heads, seismic gas shut off valve, water heater strapping, etc.)
Wiring and Messenger Fees
City and County transfer tax
Property Tax prorations
Broker Fees if any (for Prudential, it's a $250 charge and many real estate companies charge them)
And there may be a few more...but this is the brunt of them.
Hope this helps.
All the best,
Kat Becker, Realtor
Estates, Residential, Commercial
Prudential California Realty
Any local city reports