body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

#pool-map-page {
    position: relative;
    height: 100vh;
    width: 100vw;
}

/* --- Map Container --- */
#map-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10; 
}

/* Invert Map Controls so they look good on the Dark Map */
.gmnoprint, .gm-control-active {
    filter: invert(1) grayscale(100%) brightness(200%); 
}

/* --- Sidebar Container (Right Side) --- */
#pool-list-sidebar {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 350px; 
    max-width: 85vw;
    background-color: #f7f7f7;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    z-index: 20;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

#pool-list-sidebar.open {
    transform: translateX(0);
}

#pool-list-sidebar header {
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
}

#pool-list-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
}

#sidebar-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

/* --- Toggle Button (Bottom Left) --- */
#sidebar-toggle-btn {
    position: absolute;
    bottom: 30px;
    left: 30px; /* Adjusted position due to new map controls */
    z-index: 30;
    background-color: #8A2BE2; /* Matches your Neon Theme */
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: bold;
}

/* --- NEW: Navigation Controls (Top Left) --- */
#map-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 30; /* Above the map */
    display: flex;
    gap: 10px;
}

.nav-btn {
    background-color: #191970; /* Midnight Blue */
    color: #00FFFF; /* Cyan Text */
    border: 1px solid #00FFFF;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-btn:hover {
    background-color: #8A2BE2; /* Purple on hover */
    color: white;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
    transform: scale(1.05);
}

/* Responsive adjustment for mobile */
@media (max-width: 600px) {
    #map-controls {
        top: 10px;
        left: 10px;
        flex-direction: column; /* Stack buttons vertically on phone */
    }
    .nav-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
}
