Reverie -
A mental state where a person is lost in thoughts, often pleasant or imaginative, disconnected from the immediate surroundings.
She was lost in a reverie, staring out the window and remembering all the places she had travelled to on previous trips.