I understand that some people would not consider this approach for a variety of reasons, but it has served me very well...
The headboard of my bed is only about 3 1/2 feet from a corner of 2 walls in my bedroom. I am by no means a woodworker or skilled in carpentry, but I have removed the stapling from the carpet in that corner. I took a JigSaw and cut out a 10" X 10" section of the flooring beneath. There is sub-flooring a few inches below the section I cut out, so I laid my handgun in the recessed area. I drilled a tiny hole through the original piece of flooring I used and thru the bottom, attached a tiny pc. of fishing line (b/c of it's inherent strength) and tied it to a spare key chain ring. I placed the original flooring directly where it had been prior to cutting it out. And it is supported (to ensure it does not become misaligned and fall down) by a couple makeshift stubs of 2X4 I placed in the hole with my weapon. Therefore, when the top piece of flooring was placed back in its' original position, and after the carpeting was laid back on top, you cannot tell anything has been done at all. I have a bed side table adjacent to the bed, preventing anyone from stepping on the exact spot I have the weapon hidden at. But due to the studs I placed inside, even if I try to step on the area, it feels just as secure as walking on the floor beside it that is 100% intact.
Unless someone tries to get down and lift that 1 section of carpeting up, you cannot see or feel any difference in the flooring at all. The best part of this is that it only takes me about 5 seconds to jump out of bed, (even in the dark) lift up the area of carpeting, pull on the ring/fishing line to pull up the 10 x 10 in. pc. of flooring, and remove the weapon for immediate use.
As long as you keep methods like this one to yourself (or just you and your spouse), you should have no worries about anyone else accidentally running across your handiwork.
I hope this helps. (Just be careful if you decide to go with some of those safes that require entering a pin number. I wouldn't want people busting into my house hearing me entering in the "Beep Beep Beep Beep" pin or seeing a light come on in my room so I could see the pin). They might hear me roll out of bed quickly, but within a couple seconds they will hear a loud ass boom to go with it.