html, body, #map {
    height: 100%;
}

body {
    font-family: "Open Sans", sans-serif;
}

* {
    box-sizing: border-box;
}

.select2-container--open {
    padding-top: 10px;
    z-index: 9999;
}

.arrow {
    background-image: url("../assets/up-arrow-icon.png");
    width: 40px;
    height: 40px;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #ffffff7d;
    border-radius: 2em;
}

.arrow.left {
    transform: rotate(-90deg);
}

.arrow.right {
    transform: rotate(90deg);
}

.leaflet-control-attribution.leaflet-control {
    display: none;
}

#map nav {
    color: #fafaf8;
    background: #313232;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 10px;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 1.25rem;
}

#map nav ul {
    display: flex;
    justify-content: space-between;
}

.ellipsis {
    text-overflow: ellipsis;

    /* Required for text-overflow to do anything */
    white-space: nowrap;
    overflow: hidden;
}

.place-search + .select2 {
    width: 350px !important;
}

.panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: #ffffff;
    transform: translate(100%);
    transition-duration: 0.5s;
    transition-delay: 0s;
}

.panel.open-panel {
    transform: translate(0%);
}

.panel article {
    min-height: 100%;
    display: none;
}

.panel article.open-point {
    display: flex;
}

.panel article > div {
    width: 100%;
}

.panel article .content {
    padding: 1rem 3rem !important;
    max-height: 100vh;
    overflow: scroll;
    font-family: "Google Sans Code", monospace;
}

.panel .content h4 {
    margin: 20px 0 20px 0;
    position: relative;
}

.panel .content ul {
    list-style: square;
    margin-left: 40px;
    line-height: 1.4em;
    font-size: 10pt;
}

.panel .content strong {
    font-weight: 600;
}

.panel .content h4:before {
    content: "";
    width: 40px;
    height: 4px;
    background: black;
    display: inline-block;
    position: absolute;
    bottom: -10px;
}

.panel h3 {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}

.panel p {
    font-family: 'Times New Roman', serif;
    font-size: 14pt;
    text-align: justify;
    line-height: 1.5;
}

.panel .content p {
    font-size: 10pt;
    font-family: "Google Sans Code", monospace;
    line-height: 1.4;
    margin-top: 10px;
}

.panel .attachment {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    overflow: hidden;
    position: relative;
}

.panel .mask {
    float: left;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.panel ul.images {
    position: relative;
    top: 0;
    left: 0;
    display: flex;
}

.panel ul.images li {
    width: 100%;
}

.panel ul.images div {
    height: 100vh;
    width: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.panel ul.triggers {
    display: none;
}

.panel ul.triggers li {
    float: left;
    margin: 0 5px;
    font: bold 16px arial;
    cursor: pointer;
    background-color: #ccc;
    color: #000;
    padding: 10px;
}

.panel ul.triggers li.selected {
    background-color: red;
    color: #000;
}

.panel .control {
    position: absolute;
    top: 50%;
    color: #fff;
    cursor: pointer;
    transform: translateY(-100%);
    height: 40px;
    width: 40px;
    display: none;
}

.panel .control i {
    display: inline-block;
    position: relative;
}

.panel .slider-pagination .control {
    display: block;
}

.panel .prev {
    left: 60px;
}

.panel .next {
    right: 60px;
}

.panel nav {
    display: inline-block;
    background: #000000;
    position: fixed;
    top: 0;
    right: 0;
    cursor: pointer;
}

.panel nav:before {
    content: "";
    display: inline-block;
    width: 50px;
    height: 50px;
    background: url("../assets/cross.webp") no-repeat center center;
}

@media (max-width: 1000px) {

    .panel {
        overflow: scroll;
    }

    .panel article.open-point {
        flex-direction: column-reverse;
    }

    .panel article .content {
        overflow: auto;
    }

    #map nav ul {
        display: block;
    }
}

@media (max-width: 425px) {
    .panel article .content {
        padding: 1rem 1rem !important
    }

    /*.panel ul.images {*/
    /*    display: block;*/
    /*}*/

    /*.panel .control {*/
    /*    display: none;*/
    /*}*/
}
