Sale of second home

We sold our second home in 2022. How do I itemize our realtor commissions and other capital improvements?  We have purchased desktop turbotax premier but cannot locate a spot to enter our capital improvements/commissions.  Do we need to itemize our deductions or complete attachment A? How do we complete form 8949 when the system states it will automatically complete it for us? Last question, do we create our own spreadsheet for tracking/auditing purposes and include the amount of commissions/capital improvements in the cost or other basis section?  Please help.