It grows on beaches in coastal strand habitats and on bluffs and lower slopes of the Western Transverse Ranges, including the Santa Monica Mountains, in chaparral coastal sage scrub habitats below 400 meters .