Deductions & credits

They are deductible no matter where you put them however since this was a contingent of the contract of sale I would add them to the cost of sale.  In the end the bottom line will be the same ... just keep excellent records for the next 7 years just in case you get audited.