Opinion
In this сase we consider whether a lessor who prevails in an action in subrogation brought by his lessee’s property insurer is entitled to recover attorney fees under a provision in the lease.
Background
Allstate insureds Tony and Eleanоr Dudley were tenants in an apartment building owned by Dennis J. Loo. After their personal property was destroyed in a fire in the apartment building, they filed a claim with their insurer. After paying the claim Allstate Insurance Company commenced the instant action in subrogation against Loo, asserting causes of action for negligence, failure to disclose a latent defect, and breach of an implied warranty of habitability.
Loo successfully movеd for summary judgment. Following entry of judgment, Loo filed a “Motion to Determine Prevailing Party and to Fix Amount of Attorney Fees as Costs in Contract Action,” attaching a copy of the residential lease agreement he had with the Dudleys. Thе lease contained a *1797 provision authorizing a “reasonable attorney’s fee” to the prevailing party “In any legal action brought by either party to enforce the terms hereof or relating to the demised рremises . . . .” Allstate opposed the motion, arguing Loo was not entitled to rely on the attorney fees provision in the lease because Allstate’s action against Loo was based in tort, not contract. The trial сourt gave a different reason for denying Loo’s request for attorney fees: “Neither party [pleaded] the existence of a contract containing the provision for attorney’s fees.” Thereafter, the cоurt took the matter under submission and issued a final ruling denying the motion. This timely appeal by Loo followed.
Review
A. Attorney Fees as an Element of Costs
The trial court concluded that a party seeking to recover attorney fees pursuant to a contractual provision must plead entitlement to attorney fees as an item of damages in order to recover them in California. That is no longer correct.
Under Code of Civil Procedure section 1033.5, subdivision (a)(10), attorney fees, when authorized by contract, statute, or law, are recoverable as an element of costs. The Legislature has further detailed the procedure by which attorney fees as costs may be fixed: upon a noticed motion. (Code Civ. Proc., § 1033.5, subd. (c)(5); Cal. Rules of Court, rule 870.2.)
The trial court’s ruling that attorney fees must be pleaded as an item of damages is understandable. Prior to 1990 it was not entirely clear what the proper method was to obtain an award of attorney fees. In particular, there was no agreement about whether such an award should be claimed as an element of damages or as an item of costs. (See, e.g.,
Bankes
v.
Lucas
(1992)
B. Tort v. Contract
Allstate suggests an alternative basis to support the trial court’s ruling: Loo is not entitled to recover attоrney fees under the lease provision because each of the causes of action asserted was in tort, not contract.
The initial fatal problem with this contention is that the facts do not fit. Allstate did assert a сontractual cause of action: breach of the implied warranty of habitability.
(Quevedo
v.
Braga
(1977)
The second fatal defect of the argument is that it assumes that if Allstate had sued only in tort the contractual provision for attorney fеes would not apply. As the case law makes clear, the test is not whether the cause of action sounds in tort or contract. Instead, the sole question is the intent of the parties: did they intend to authorize the prevailing party to recover its attorney fees for a tort cause of action.
(Lerner
v.
Ward
(1993)
For example, in
Xuereb
v.
Marcus & Millichap, Inc., supra,
A slightly different provision was reviewed in
Lerner
v.
Ward, supra,
*1799 The provision at hand is very similar to the one reviewed in Lerner. It reads: “Attorney’s Fees: In any legаl action brought by either party to enforce the terms hereof or relating to the demised premises, the prevailing party shall be entitled to all costs incurred in connection with such action, including a reasonable attorney’s fee.” In our view, this provision encompasses any action—whether in contract or in tort—which relates to the leased premises. Each of the causes of action Allstate set forth in its complaint mеets this criterion.
For these reasons, the trial court’s ruling cannot be sustained on the theory that the nature of the claims advanced here did not fall within the terms of the attorney fees provision.
C. Subrogation
Allstate’s second alternаtive basis to support the judgment is the argument that a insurer/subrogee does not assume an insured/subrogor’s contractual liability for attorney fees. Again, Allstate is incorrect.
An insurer/subrogee paying for a loss has the right to pursue its insured’s rights and remedies against the third party causing the loss.
(Continental Cas. Co.
v.
Phoenix Constr. Co.
(1956)
An excellent example of this principle in action in the context of contractual attorney fees is
Rushing
v.
Intern. Aviation Underwriters
(Tex.Civ.App. 1980)
*1800
The basis of the insurer/subrogee ’ s claim for attorney fees was a provision in the lease agreement between Hi-Performance and the defendant-lessee which gave the prevailing party the right to recovеr reasonable attorney fees in a suit arising out of the rental agreement or out of the use of the aircraft.
(Rushing
v.
Intern. Aviation Underwriters, supra,
Thus, under Rushing, had Allstate prevailed against Loo, it would have succeeded to the rights оf the insured/subrogor to recover a reasonable attorney fee. We have been offered no reason in law or logic why the converse should not also be true. Loo’s obligation to defend against the aсtion was the same irrespective of the identity of the plaintiff: the lessee or the lessee’s subrogee. We therefore hold that Loo, as the prevailing party, is entitled to assert his contractual right to recovеr reasonable attorney fees in the subrogation action.
Allstate argues that the rule we announce today is bad social policy: “To allow counterclaims against the subrogated insurer means that the insurer’s risk depends on factors that are unrelated to the risks for which it earned premiums.” As we have explained in part A, ante, recovery of attorney fees is not accomplished by counterclaim: it is an item of costs which has been agreed to by contract. (Code Civ. Proc., § 1033.5, subd. (a)(1).) Nor does our ruling increase any risk to insurers. In this case the risk the insurer undertook to insure against was the risk of fire damage to personal property of its insureds. The insurer lost that risk and paid its policyholders. Nothing in our decision increases or decreases that risk. After making payment the insurer had a decision to make: whether to sue the owner of the building in which the fire occurred. The insurer decided to do that but lost. We assume that the decision to so litigate was intelligently made after weighing the risks that all those who instigate litigation face. That list includes the risk of not prevailing which includes the risk of bearing all of the cost of the litigаtion— especially in a case in which there is a contract providing for the payment of the prevailing party’s attorney fees.
*1801 Finally, Allstate also urges our holding will discourage insurance companies from pursuing thеir subrogation rights. We doubt it. But what we do not doubt is this: the presence of an attorney fees provision in a contract discourages—and is intended to discourage—the filing of lawsuits between the parties premised on weak lеgal positions. If the risk of being liable to pay attorney fees to the opposing side discourages a subrogee from pursuing a weak subrogation claim, then a valid social policy has been advanced by our holding today.
The order denying Loo’s motion to recover attorney fees is reversed, and the cause is remanded for further proceedings consistent with the views expressed herein. Loo to recover costs on appeal.
Anderson, P. J., and Hanlon, J., concurred.
On August 1, 1996, the opinion was modified to read as printed above.
