CoStar stock hits near 4-month high on raised guidance, Q2 results beat