The Madrid urban agglomeration has the third-largest GDP in the European Union and its influences in politics , education , entertainment , environment , media , fashion , science , culture , and the arts all contribute to its status as one of the world's major global cities .