perhaps a long shot but worth a look if you cant pinpoint it. are the fans working at the right temp? sometimes the temperature sensors get corroded or gunked up and dont activate the fans causing the car to overheat when stuck in traffic, you can normally clean them up with a wire brush. sometimes they can be intermittant like how you are experiencing