When selecting an apartment/home, minimize the obstacles and distance between bedrooms and bathrooms so that you can stay mostly asleep if you need to pee in the middle of the night. Especially avoid stairs — which is also key to being able to age-in-place (or be able to bring an aging parent into your home for even short stints).
Loft beds and bunk beds are great (I personally recommend a twin over a full or a full xl over a queen), but if you need to pee in the night, ladders are even worse than stairs.
(Note: if you’re a dude, it might make sense to pee in a bottle during the night. But you should still keep the ladies in your life in mind.)
Also make sure you have a nightlight in the bathroom and hallway that’s just bright enough to help you navigate without needing to turn on any real lights. e.g. Rainbow motion-activated toilet nightlight
(my current favorite nightlight for general use is so great that I keep a spare in my toiletry bag for travel: it’s small enough to leave the other outlet available, it’s backlit in a lovely warm amber with almost no blue light, you can set how bright you prefer it, and it has three modes: you can set it to come on anytime it’s dark (e.g. around a corner in the bathroom), only when it’s dark and it detects motion (e.g. hallway), or off (e.g. if it’s only necessary for guests). Two areas for improvement: 1. the 60 second motion detection setting is perfect for navigating a hallway, but doesn’t always stay on long enough to prevent someone needing to wave around while on the toilet and 2. the unit itself is glossy and has the logo embossed on it, so isn’t particularly attractive in the daylight)
I say more about all this in the Health & Wellness - Sleep section, e.g. Ways to help you get sleepy & stay asleep.