How much does it cost to buy a house?

We’re getting our ducks in a row to buy and house and want to make sure we’ve budgeted for as many things as possible. Aside from the obvious (the house itself…!) what do you end up paying for, and is there an average cost? I’m thinking solicitors, LIM reports etc.

TIA!