My question involves landlord-tenant law in the State of: California

Recently a few friends and I rented a house in Big Bear for the weekend. The rental allowed us to bring pets and I brought my dog. I had to leave the dog unattended in the house on one occasion for a few hours and closed him in the bathroom, as I do when home at my apartment in Los Angeles. The dog had an episode while we were gone and scratched at the carpet along the door. The house is entirely floored in carpet, including all of the bathrooms. It just so happened that there was a seam in the carpet along the door to the room I closed him in and thus he was able to open the carpet at the seam. It does not appear that there was a tack strip or any method of securing the carpet to the floor in that spot. He pulled up a noticeable amount of the fibers and tore the carpet no more than 3 inches in one spot. The carpet was very clean when we arrived, but it was in no way new. It was well maintained, but you could clearly tell that it had been installed some time ago as it was nowhere near as fluffy as newer carpet is and is well more worn that the carpet in my apartment which I have occupied for the last 3.5 years (3 of which I have had the dog). I understand that I am liable for the damage my dog caused and am fully prepared to pay for it. The cabin was rented in my friends name and she paid for the security deposit on her own. I have already discussed with her my repayment of the deposit that is lost because of my dog's damage. However she is worried that the owners have the right to decide to replace the carpet in the entire home since it is all the same color and charge her for the full amount. Can they charge to replace the carpet in the entire house or only in the one room where the carpet is damaged? I have found plenty of information that says they can only charge for the remaining useful life of the carpet because of depreciation, but nothing about the total square footage of replacement carpet compared to the square footage of the damaged carpet. Any information is greatly appreciated.