The sentence uses the idiom "cost a fortune" which means to be very expensive.
Underlined idiom: cost a fortune
Meaning: very expensive