body,
html {
    display: flex;
    width: 100%;
    height: 100%;
    margin: 0;
    flex-direction: column;
    font-family: sans-serif;
}

header {
    display: flex;
    height: 60px;
    width: 100%;
    padding-left: 20px;
    box-sizing: border-box;
    align-items: center;
    background-color: #0063B2FF;
}

header h1 {
    font-size: 24px;
    font-weight: 500;
    font-family: 'Merriweather Sans', sans-serif;
}

header h1 a {
    color: white;
    text-decoration: none;
}

header nav {
    display: flex;
    flex: 1;
}

header nav a {
    color: white;
    margin-left: 20px;
    padding-top: 3px;
}

#map {
    display: flex;
    height: calc(100vh - 60px);
    width: 100%;
    transition: 0.4s;
}

#map.show-location {
    height: calc(50vh - 60px);
}

.location {
    display: flex;
    height: 0vh;
    overflow: hidden;
    position: relative;
}

.location.open {
    height: 50vh;
}

.location .image {
    display: flex;
    flex-direction: column;
    width: 50vw;
    max-width: 1000px;
    position: relative;
}

.location .image > .enlarge {
    display: flex;
    position: absolute;
    width: 24px;
    height: 24px;
    right: 0;
    padding: 10px;
    cursor: pointer;
}

.location .image > .photo {
    display: flex;
    object-fit: cover;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.location .image > .source {
    position: absolute;
    bottom: 0;
    width: 100%;
    min-height: 14px;
    font-size: 12px;
    background-color: #0063B2;
    color: #CCDDE6;
    padding: 3px;
    box-sizing: border-box;
}

.location .information {
    display: flex;
    width: 50vw;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    flex-direction: column;
    overflow: auto;
}

.location .information > h3 {
    margin: 0;
}

.location .information > h4 {
    margin-bottom: 0;
}

.location > .close {
    display: flex;
    position: absolute;
    width: 24px;
    height: 24px;
    right: 0;
    padding: 10px;
    cursor: pointer;
    background-color: white;
}

.leaflet-cluster-anim .leaflet-marker-icon,
.leaflet-cluster-anim .leaflet-marker-shadow {
    transition: transform 0.3s ease-out, opacity 0.3s ease-in;
}

.leaflet-cluster-spider-leg {
    transition: stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in;
}

.marker-cluster-small {
    background-color: rgba(181, 226, 140, 0.6);
}

.marker-cluster-small div {
    background-color: rgba(110, 204, 57, 0.6);
}

.marker-cluster-medium {
    background-color: rgba(241, 211, 87, 0.6);
}

.marker-cluster-medium div {
    background-color: rgba(240, 194, 12, 0.6);
}

.marker-cluster-large {
    background-color: rgba(253, 156, 115, 0.6);
}

.marker-cluster-large div {
    background-color: rgba(241, 128, 23, 0.6);
}

.marker-cluster {
    background-clip: padding-box;
    border-radius: 20px;
}

.marker-cluster div {
    width: 30px;
    height: 30px;
    margin-left: 5px;
    margin-top: 5px;
    text-align: center;
    border-radius: 15px;
    font: 12px "Helvetica Neue", Arial, Helvetica, sans-serif;
}

.marker-cluster span {
    line-height: 30px;
}

.leaflet-marker-icon:hover {
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    #map.show-location {
        height: calc(35vh - 60px);
    }

    .location {
        flex-direction: column;
    }

    .location.open {
        height: 65vh;
    }

    .location .image {
        width: 100vw;
        height: 55%;
    }

    .location .information {
        width: 100vw;
    }

    .location > .close {
        padding: 5px;
    }

    .location .image > .source {
        text-align: right;
    }
}