/* Fullscreen map */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Sidebar */
#mobile-sidebar {
    position: fixed;
    top: 0;
    left: -250px; /* hidden by default */
    width: 250px;
    height: 100%;
    background-color: #fff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    padding: 20px;
    overflow-y: auto;
    z-index: 1100;
    transition: left 0.3s ease;
}

#mobile-sidebar button#close-sidebar {
    float: right;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* Sidebar toggle button */
#open-sidebar {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1200;
    font-size: 24px;
    background: rgba(255,255,255,0.8);
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
}

/* Map fills screen */
#map {
    width: 100vw;
    height: 100vh;
}

/* Adjust welcome modal z-index to appear above sidebar */
#welcome-overlay {
    z-index: 1300;
}


#map {
    width: 100vw;
    height: 100vh;
}

/* Welcome modal overlay */
#welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Modal box */
#welcome-modal {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Button styling */
#welcome-modal button {
    margin-top: 15px;
    padding: 8px 15px;
    cursor: pointer;
}

/* Map pins */
.map-pin {
    width: 24px;
    height: 24px;
    background-image: url("js/images/pin-icon.png");
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    cursor: pointer;
}
