The US and Iran are edging toward a temporary ceasefire deal that would halt fighting and protect shipping lanes while longer-term negotiations continue, with Pakistani officials saying an interim agreement could be reached as early as this weekend and that Tehran is reviewing a US proposal.