@import url("leaflet.fullscreen@1.0.1.css");

#map {
    width: 100%;
    height: 90vh;
    margin-bottom: 1rem;
    background-color: black;
}

/* Floating info panel overlaid on the map. */
.map_panel {
    position: absolute;
    width: 30%;
    height: auto;
    min-height: 2.9rem;
    overflow: hidden;
    bottom: 10px;
    left: 10px;
    padding: 0 5px 5px 5px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    z-index: 10000;
}

/* Collapse toggle button in the top-right corner of the panel. */
.collapse-button {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
    padding: 5px;
    background-color: white;
    color: black;
    font-family: var(--font-sans);
}

.map_panel h2 {
    font-size: 0.9rem;
    margin-top: 0;
    margin-bottom: 0;
    font-family: var(--font-serif);
}

.map_panel img {
    margin-top: 0;
    margin-bottom: 0;
}

.map_panel p {
    font-size: 0.76rem;
    line-height: 1rem;
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0.5rem;
    font-family: var(--font-serif);
}

#elev_profile_img {
    max-width: 100%;
    max-height: 50%;
    display: block;
}

.leaflet-control-attribution {
    max-width: 60%;
    font-family: var(--font-sans);
}

/* Tab interface within the map panel. */
.tabs {
    display: flex;
    flex-wrap: wrap;
}

.tab-header {
    cursor: pointer;
    padding: 0.1rem;
    background-color: #f1f1f1;
    font-family: var(--font-sans);
    font-size: 0.76rem;
    border-radius: 2px 2px 0 0;
    margin-left: 0.3rem;
    margin-right: 0.3rem;
}

.tab-header.active {
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

@media (max-width: 768px) {
    #map {
        margin-left: 4%;
        width: 90%;
    }

    .map_panel {
        width: 100%;
        bottom: 50px;
        left: 0;
        padding: 0;
        border-radius: 0;
    }

    .leaflet-control-attribution {
        width: 100%;
        max-width: 100%;
        height: 50px;
    }
}
