What is actually in there
Closing costs fall into three broad groups. First, lender fees for originating and processing the loan. Second, third-party costs such as title work, the appraisal, and recording. Third, prepaid items — the first portion of property taxes and homeowners insurance that gets collected up front so the escrow account starts funded.
None of those is a surprise fee. They are the ordinary cost of getting a loan and a purchase done, and each one appears as its own line item.