Gain on contributions to unconsolidated joint ventures for 2022, includes a gain of $1.4 million on land contributed to our unconsolidated Pier Park RI JV and a gain of $0.4 million on land contributed to our unconsolidated Electric Cart Watersound JV. See Note 4. Joint Ventures included in Item 15 of this Form 10-K for additional information.
Equity in (loss) income from unconsolidated joint ventures includes our proportionate share of earnings or losses of unconsolidated JVs accounted for by the equity method. Equity in (loss) income from unconsolidated joint ventures during 2023 had a loss of $0.9 million, primarily related to start-up expenses for the Watersound Fountains Independent Living JV. In November 2022, the Sea Sound JV sold its assets to an unrelated third party for $92.5 million, resulting in a total gain on sale of $36.1 million. Equity in (loss) income during 2022 included $21.7 million related to our proportionate share of the gain on sale. See Note 4. Joint Ventures included in Item 15 of this Form 10-K for additional information.
Liquidity and Capital Resources
As of December 31, 2023, we had cash and cash equivalents of $86.1 million, compared to cash and cash equivalents and U.S. Treasury Bills classified as investments – debt securities of $78.3 million as of December 31, 2022. Although we do not currently hold any Securities, we did hold Securities as of December 31, 2022. See Note 5. Investments included in Item 15 of this Form 10-K for additional information regarding our previous investments.
We believe that our current cash position, financing arrangements and cash generated from operations will provide us with sufficient liquidity to satisfy our anticipated working capital needs, expected capital expenditures, principal and interest payments on our long-term debt, capital contributions to JVs, Latitude Margaritaville Watersound JV note commitment, authorized stock repurchases and authorized dividends for the next twelve months. See Part I. Item 1A. Risk Factors.
During 2023, we invested a total of $217.8 million in capital expenditures, which includes $74.4 million for our residential segment, $70.1 million for our commercial segment, $72.3 million for our hospitality segment and $1.0 million for corporate expenditures. The $217.8 million in capital expenditures included $209.8 million for new operating assets or for residential development and $8.0 million for sustaining capital on existing operating properties. We anticipate that future capital commitments will be funded through cash generated from operations, new financing arrangements, cash on hand and cash equivalents. As of December 31, 2023, we had a total of $48.6 million primarily in construction and development related contractual obligations. Capital expenditures and contractual obligations exclude amounts related to unconsolidated JVs. See Note 4. Joint Ventures included in Item 15 of this Form 10-K for additional information.
As of December 31, 2023 and 2022, we had various loans outstanding totaling $459.2 million and $391.4 million, respectively, with maturities from May 2024 through March 2064. As of December 31, 2023, the weighted average effective interest rate of total outstanding debt was 5.3%, of which 66.2% of the debt outstanding includes fixed or swapped interest rates, and the average remaining life of debt outstanding was 17.2 years. As of December 31, 2023, the weighted average rate on our variable rate loans, excluding the swapped portion, was 7.6%. See Note 10. Debt, Net included in Item 15 of this Form 10-K for additional information.
Our indebtedness consists of various loans on real and leasehold property. These loans are typically secured by various interests in the property such as assignment of rents, leases, deposits, permits, plans, specifications, fees, agreements, approvals, contracts, licenses, construction contracts, development contracts, service contracts, franchise agreements, the borrower’s assets, improvements, and security interests in the rents, personal property, management agreements, construction agreements, improvements, accounts, profits, leases and fixtures (collectively, “Security Interests”). The specific Security Interests vary from loan to loan.
In 2015, the Pier Park North JV (the “Pier Park North JV”) entered into a $48.2 million loan (the “PPN JV Loan”). As of December 31, 2023 and 2022, $41.5 million and $42.6 million, respectively, was outstanding on the PPN JV Loan. The loan accrues interest at a rate of 4.1% per annum and matures in November 2025. In connection with the loan, we entered into a limited guarantee in favor of the lender, based on our percentage ownership of the JV. In addition, the