/* webroot/css/menu-style.css */
#bottom-menu-container {
    position: fixed !important;
    bottom: 0 !important;
    left: 0;
    width: 100%;
    background: #808080;
    height: 50px;
    z-index: 9999;
    transition: height 0.4s ease-in-out;
    overflow: hidden; 
}

#menu-border {
    height: 10px;
    background: #d3d3d3; /* The light gray strip */
    width: 100%;
    cursor: pointer;
outline: none !important;
    -webkit-tap-highlight-color: transparent; 
}

#menu-toggle {
    float: right;
    margin-right: 20px;
    margin-top: 25px; 
    width: 25px;      
    height: 25px;
    background: white !important;
    border: none;
    cursor: pointer;
    
    transition: all 0.4s ease-in-out;
outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

#bottom-menu-container.expanded {
    height: 80% !important;
}

#bottom-menu-container.expanded #menu-border {
    height: 50px !important;
}


#bottom-menu-container.expanded #menu-toggle {
    margin-top: 60px; /* Adjust this number to increase the "wide" feel */
    width: 35px;   
    height: 35px;
}


#bottom-menu-container.expanded #menu-border {
    height: 20px !important; /* Shrank this back down so the dark area is the focus */
}

#menu-toggle:focus, #menu-border:focus {
    outline: none !important;
    box-shadow: none !important;
}

#map-preview {
    position: absolute; 
    bottom: 5px;      
    left: 20px;
    width: 30px;      
    height: 40px;
    background: #d6b280; 
    border: 1px solid #5e431d;
    border-radius: 2px;
    transition: all 0.4s ease-in-out;
    z-index: 10;      
}

#bottom-menu-container.expanded #map-preview {
    left: 5;   
    bottom: 0;          
    width: 40%;       
    height: 250px;      
    border-radius: 4px;   
    border: 3px solid #5e431d;
    overflow: hidden;
    
}

/* Ensure the border doesn't hide our new map when expanded */
#bottom-menu-container.expanded #menu-border {
    height: 20px !important;
}

#map-inner {
    width: 80%;           /* Stays 80% of the map container's width */
    height: 60%;          /* Stays 60% of the map container's height */
    background: white;    /* Yer white rectangle */
    margin: 10% auto;     /* Centers it within the gray map area */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    transition: all 0.4s ease-in-out; /* Keeps pace with the main menu */
}

#bottom-menu-container.expanded #map-text {
    font-size: 24px;      /* Grows for the expanded view */
}

#map-text {
    color: #555;
    font-size: 8px;       /* Small for the collapsed view */
    font-weight: bold;
    transition: font-size 0.4s ease-in-out;
}


.menu-row {
    display: flex;
    width: 100%;
    gap: 15px;
    margin-bottom: 15px;
    box-sizing: border-box;
}


.row-right {
    justify-content: flex-end;
}


.menu-box {
    background: white;
    color: black;
    padding: 15px;
    text-align: center;
    font-weight: bold;
 
    flex: 1;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box; /* This ensures the 3px border doesn't add to the width */
}


.row-right .menu-box {
    flex: 0 0 45%; 
}



#menu-content {
    display: none;    
    padding: 50px 15px 15px 15px; /* Top, Right, Bottom, Left */
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box; 
flex-direction: column;
}

#bottom-menu-container.expanded #menu-content {
display: flex; 
}

.menu-row:nth-child(3) {
    margin-top: auto; 
}

/* Centering the Overlay on the Home Map */
#login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Dims the map for focus */
    display: flex; /* This is the secret to centering! */
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Keeps it above the map tiles */
}

.overlay-hidden {
    display: none !important;
}

.overlay-content {
    background: white;
    padding: 40px;
    border-radius: 15px; /* Cozy chic rounded corners */
    max-width: 400px;
    width: 85%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-align: center;
}

#close-login {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #333;
}