body {
    margin: 0;
}

canvas {
    display: block;
}

#scene-container {
    display: inline-block;
    position: relative;
}

.scene-container {
    position: relative;
}

.scene-container .earth-loading {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.scene-container .earth-loading .earth-loading-content {
    background: rgba(0, 0, 0, 0.1);
    width: 85%;
    text-align: center;
    padding: 3px;
    font-size: 12px;
    border-radius: 10px;
}

.point-node {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 37px;
    background: white;
    border-radius: 50px;
    padding: 0 5px 0 20px;
    box-sizing: border-box;
    gap: 10px;
    box-shadow: 0 0 16px 2px rgba(0, 0, 0, 0.15);
    top: 0;
    left: 0;
    cursor: pointer;
    transition: background 400ms, box-shadow 400ms;
}

.point-node:hover {
    background-color: #cbe2be;
    box-shadow: 0 0 16px 4px rgba(0, 0, 0, 0.3);
}

.point-node .title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    font-size: 12px;
}

.point-node .count {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #87d55d;
    width: 30px;
    height: 30px;
    border-radius: 30px;
    font-size: 12px;
}

.map-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 10000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.map-dialog .content {
    position: relative;
    background-color: white;
    border-radius: 4px;
    width: 80vw;
    height: 80vh;
    box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.15);
}

.map-dialog.open {
    display: flex;
    animation: open-dialog-bg 400ms;
}

.map-dialog.open .content {
    display: block;
    animation: open-dialog 400ms;
    border-radius: 0;
}

.map-dialog.close {
    display: flex;
    animation: close-dialog-bg 400ms;
}

.map-dialog.close .content {
    display: block;
    animation: close-dialog 400ms;
}

@keyframes open-dialog-bg {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes open-dialog {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes close-dialog-bg {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes close-dialog {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

.map-dialog .close-button {
    position: absolute;
    top: -36px;
    right: 0;
    width: 24px;
    height: 24px;
    cursor: pointer;
    /* background-color: red; */
}

.map-dialog .close-button path {
    fill: white;
}





/***   **/

.top-nav-layout {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    margin: 50px;
    z-index: 20;
    pointer-events: none;
}

.search-layout {
    display: flex;
    flex-direction: row;
    width: 100%;
    pointer-events: auto;
}

.list-layout {
    background: white;
    border-radius: 4px;
    width: 300px;
    margin-top: 50px;
    height: calc(80vh - 260px);
    overflow: auto;
    pointer-events: auto;
    display: none;
}

.list-item-select {
    display: flex;
    flex-direction: row;
    padding: 20px 30px;
    background-color: #efefef;
}

.list-item-select:hover {
    background-color: #e6e6e6;
}

.list-item {
    display: flex;
    flex-direction: row;
    padding: 20px 30px;
    cursor: pointer;
}

.list-item:hover {
    background-color: #e6e6e6;
}

.list-item-transition {
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* å¯ä»¥åªæŒ‡å®šä¸€ä¸ªå±žæ€§ï¼Œè¿™é‡ŒåŒæ—¶è®¾ç½®äº†èƒŒæ™¯è‰²å’Œæ–‡å­—é¢œè‰²çš„è¿‡æ¸¡ */
}

.list-item-transition::before {
    content: "\00a0";
    height: 1px;
    background: #c2c6c5;
    position: absolute;
    bottom: 0;
    width: 240px;
}

.list-item-transition:last-child::before {
    display: none;
}

.item-id {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px #33b5cb solid;
    border-radius: 100px;
    width: 18px;
    height: 18px;
    color: #33b5cb;
    font-size: 12px;
    margin-right: 10px;
}

.item-title {
    color: #8393a2;
    font-weight: bold;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    /* font-size: 14px; */
}

.item-division-line {
    height: 1px;
    /* width: 100%; */
    background: #c2c6c5;
    margin: 0 20px;
}

.input-nav {
    background-color: white;
    padding: 0 10px;
    border-radius: 4px;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-right: 10px;
}

input {
    background-color: transparent;
    border: 0px;
    width: 100%;
}

input:focus {
    outline: none;
}

select {
    background-color: transparent;
    border: 0px;
    width: 100%;
    height: 36px;
    border-radius: 4px;
}

select:focus {
    outline: none;
}

select option {
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 14px;
}

.input-nav input,
.input-nav input {
    height: 36px;
}

.search-btn {
    background-color: #87d55d;
    color: white;
    border: 1px white solid;
    border-radius: 4px;
    width: 120px;
    cursor: pointer;
}

.dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    /* åŠé€æ˜Žçš„é»‘è‰²èƒŒæ™¯ */
    pointer-events: none;
    /* è®©ç‚¹å‡»äº‹ä»¶ç©¿é€å åŠ å±‚ */
}

.custom-marker {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    z-index: 10;
}

.custom-marker::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #87d55d;
    border-radius: 50%;
    z-index: 10;
}

.marker-info {
    background-color: white;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 4px;
    z-index: 11;
}

/* mapbox popup */
.mapboxgl-popup {
    z-index: 100 !important;
}

.mapboxgl-popup-title {
    display: block;
    color: white;
    text-decoration: none;
    outline: none;
}
.mapboxgl-popup-title:hover {
    text-decoration: underline;
}

.mapboxgl-popup-content {
    background-color: #33b5cb !important;
    color: white;
    border-radius: 30px !important;
    padding: 20px !important;
    font-size: 14px !important;
    font-weight: bold;
}

.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {
    display: none !important;
}

.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip {
    display: none !important;
}

.mask-map-container {
    position: relative;
    width: 80vw;
    height: 80vh;
    overflow: hidden;
    border-radius: 4px;
}

@media (max-width: 767px) {
    .top-nav-layout {
         margin: 10px;
    }
    .search-layout {
        display: flex;
        /* flex-wrap: wrap; */
    }

    .list-layout {
        margin-top: 10px;
        width: 100%;
    }

    .map-dialog .content {
        width: 100vw;
    }
    
    .mask-map-container {
        width: 100vw;
    }

    .mapboxgl-map {
        width: 100vw!important;
    }

    .search-layout {
        display: flex;
        flex-wrap: wrap;
    }

    .search-layout .input-nav:first-child {
        width: 50% !important;
    }
    .search-layout .input-nav:nth-child(2) {
        width: calc(50% - 10px) !important;
        margin-right: 0;
    }
    .search-layout .input-nav:nth-child(3) {
        width: 50% !important;
        margin-top: 10px;
    }
    .search-layout .search-btn {
        width: calc(50% - 10px) !important;
        margin-right: 0;
        margin-top: 10px;
    }

    .list-layout {
        width: 50%;
        max-height: calc(80vh - 260px);
        height: auto !important;
    }

    .list-item-transition {
        padding: 10px;
    }
}