ahh... the ever present idling problem of the mazda familia...

i've used to experience the same problems but was later cured by a fuel pressure regulator. caloyski also suffered the same problem was it magically disappeared one day.

even the service mechanics are at a loss on how to cure this permanently. they can fix this but after a few days it'll come back.

you can try these quick fixes:
- computer reset
- clean the throttle body
- change your spark plugs to cold ones
- tune up