﻿body {
}

.main-container {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin-bottom: 100px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    background: white;
}

@media (min-width: 1200px) {
    .main-container {
        height: 100%;
        margin-bottom: 25px;
        overflow-y: hidden;
    }
}

.shipmap-content {
    position: relative;
    height: calc(100% - 184px);
}

@media (min-width: 1200px) {
    .shipmap-content {
        height: calc(100% - 20px);
    }
}

.shipmap-content .main-container {
    margin-bottom: 0;
}

.shipmap-content .main-scroll {
    margin: 0;
    height: 100%;
}

.shipmap-wrapper {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

@media (min-width: 1200px) {
    .shipmap-container {
        height: 100%;
    }

    /* 地圖區塊撐滿 main-container 剩餘高度 (扣除 main-header) */
    .shipmap-content .main-scroll {
        flex: 1 1 auto;
        min-height: 0;
        height: auto;
    }

    .shipmap-content .mapbox,
    body.fullscreen .shipmap-content .mapbox {
        height: 100%;
    }
}

.maplibregl-popup {
    margin-bottom: 40px !important;
    max-width: none !important;
}

.maplibregl-popup-close-button {
    top: 5px !important;
    right: 10px !important;
    color: white !important;
    font-size: 20px !important;
}

.maplibregl-popup-content {
    border-radius: 20px !important;
    position: relative;
    width: fit-content;
}

/*.maplibregl-popup-content {
    margin: 13px 15px 13px 15px !important;
}
*/
.shipmap-popup {
    line-height: 1.6;
}

    .shipmap-popup div {
        position: relative;
        z-index: 1;
    }

    .shipmap-popup:after {
        position: absolute;
        z-index: 0;
        top: 0;
        left: 0;
        width: 100%;
        height: 78px;
        background: #adb5bd;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }

    .shipmap-popup .vesselTitle {
        position: relative;
        margin: -15px -16px 13px -17px !important;
        padding: 15px 15px 13px 20px;
        pointer-events: none;
        background-color: #666666;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        z-index: 0;
    }

        .shipmap-popup .vesselTitle .vesselInfo_Name_Chinese {
            color: white;
            font-family: Arial, "Noto Sans TC", sans-serif;
            font-size: 1.5em;
            padding-right: 50px;
        }

        .shipmap-popup .vesselTitle .vesselInfo_Name_English {
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            padding-right: 60px;
            color: white;
            font-family: "Microsoft Jhenghei", "微軟正黑體", "Trebuchet MS", "Helvetica Neue", Helvetica, Arial, sans-serif;
        }

        .shipmap-popup .vesselTitle .shipCate {
            position: absolute;
            bottom: 10px;
            right: 15px;
            padding: 3px 0.5rem;
            background: white;
            color: #4d4d4d;
            font-size: 0.875rem;
            border-radius: 8px;
        }

    .shipmap-popup .vesselContent .tr {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }

        .shipmap-popup .vesselContent .tr.good {
            background: #d39e71;
            color: white;
        }

            .shipmap-popup .vesselContent .tr.good + .tr.good {
                background: #dcb28e;
            }

        .shipmap-popup .vesselContent .tr:nth-child(odd) {
            background: #f1f3f5;
        }

    .shipmap-popup .vesselContent .td {
        padding: 1px 8px;
        font-size: 14px !important;
    }

        .shipmap-popup .vesselContent .td.title {
            font-weight: bold;
        }

        .shipmap-popup .vesselContent .td.subA {
            position: absolute;
            right: 2px;
            top: 2px;
            display: -webkit-inline-box;
            display: -ms-inline-flexbox;
            display: inline-flex;
            -webkit-box-align: center;
            -ms-flex-align: center;
            align-items: center;
            -webkit-box-pack: center;
            -ms-flex-pack: center;
            justify-content: center;
            justify-self: flex-end;
            padding: 4px 8px;
            background: rgba(102, 102, 102, 0.5);
            color: white;
            border-radius: 50px;
            font-size: 12px !important;
            line-height: 1;
        }

        .shipmap-popup .vesselContent .td.subB {
            color: #4d4d4d;
            font-weight: bold;
        }

    .shipmap-popup .vesselContent.B .tr:nth-child(odd) {
        background: rgba(122, 150, 237, 0.1);
    }

    .shipmap-popup .vesselContent.R .tr:nth-child(odd) {
        background: rgba(237, 107, 90, 0.07);
    }

    .shipmap-popup .vesselContent.Y .tr:nth-child(odd) {
        background: rgba(240, 193, 75, 0.1);
    }

    .shipmap-popup .vesselContent.G .tr:nth-child(odd) {
        background: rgba(77, 196, 170, 0.1);
    }


.ship-wrapper {
    /*position: relative;*/
    text-align: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
}

.ship-label {
    /*    position: absolute;
    bottom: -20px;
    left: 120%;*/
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.7);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12px;
    -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
    border-radius: 5rem;
    border-top-left-radius: 0;
    border: 1px solid #7a96ed;
}

.ship-agent {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    margin-left: 4px;
    padding: 2px 5px;
    border-radius: 5px;
    background: #7a96ed;
    color: white;
    font-size: 10px;
}

.B .vesselTitle {
    background: #7a96ed;
}

.B .shipCate, .B .subB {
    color: #7a96ed !important;
}

.B .ship-label {
    border-color: #7a96ed;
}

.B .ship-agent {
    background: #7a96ed;
}

.R .vesselTitle {
    background: #ed6b5a;
}

.R .shipCate, .R .subB {
    color: #ed6b5a !important;
}

.R .ship-label {
    border-color: #ed6b5a;
}

.R .ship-agent {
    background: #ed6b5a;
}

.Y .vesselTitle {
    background: #f0c14b;
}

.Y .shipCate, .Y .subB {
    color: #f0c14b !important;
}

.Y .ship-label {
    border-color: #f0c14b;
}

.Y .ship-agent {
    background: #f0c14b;
}

.G .vesselTitle {
    background: #4dc4aa;
}

.G .shipCate, .G .subB {
    color: #4dc4aa !important;
}

.G .ship-label {
    border-color: #4dc4aa;
}

.G .ship-agent {
    background: #4dc4aa;
}

.layer-box {
    position: absolute;
    z-index: 999;
    right: 0px;
    top: 0px;
}

    .layer-box:hover .layer-content {
        visibility: visible;
    }

.layer-toggle-btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    width: 55px;
    height: 55px;
    margin: 20px 20px 0 0;
    background: white url(../images/layer-toggle-btn.svg) no-repeat center center/contain;
    border-radius: 20px;
    cursor: pointer;
    -webkit-filter: drop-shadow(0px 0px 10px rgba(0, 40, 112, 0.15));
    filter: drop-shadow(0px 0px 10px rgba(0, 40, 112, 0.15));
}

    .layer-toggle-btn:hover {
        background-color: #f4f4f4;
    }

@media (min-width: 1200px) {
    .layer-toggle-btn {
        width: 66px;
        height: 66px;
    }
}

.layer-content {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 120px;
    padding: 0.75rem 0.5rem;
    background: white;
    border-radius: 20px;
    visibility: hidden;
    -webkit-filter: drop-shadow(0px 0px 10px rgba(0, 40, 112, 0.15));
    filter: drop-shadow(0px 0px 10px rgba(0, 40, 112, 0.15));
}

    .layer-content .item {
        position: relative;
        padding: 0.5rem 0 0.5rem 0.5rem;
    }

        .layer-content .item input[type=checkbox], .layer-content .item input[type=radio] {
            position: absolute;
            opacity: 0;
        }

            .layer-content .item input[type=checkbox] + label, .layer-content .item input[type=radio] + label {
                position: relative;
                padding: 0 0 0 1.5rem;
                color: #575d66;
                -webkit-user-select: none;
                -moz-user-select: none;
                -ms-user-select: none;
                user-select: none;
                cursor: pointer;
            }

                .layer-content .item input[type=checkbox] + label:hover, .layer-content .item input[type=radio] + label:hover {
                    color: #6696e8;
                }

                .layer-content .item input[type=checkbox] + label:before, .layer-content .item input[type=checkbox] + label:after, .layer-content .item input[type=radio] + label:before, .layer-content .item input[type=radio] + label:after {
                    content: "";
                    position: absolute;
                    border-radius: 4px;
                }

                .layer-content .item input[type=checkbox] + label:before, .layer-content .item input[type=radio] + label:before {
                    left: -2px;
                    top: -2px;
                    width: 18px;
                    height: 18px;
                    border: 1px solid #ced4da;
                }

                .layer-content .item input[type=checkbox] + label:after, .layer-content .item input[type=radio] + label:after {
                    left: 3px;
                    top: 3px;
                    width: 10px;
                    height: 10px;
                    background: white;
                }

            .layer-content .item input[type=checkbox]:checked + label:after, .layer-content .item input[type=radio]:checked + label:after {
                background: #6696e8;
            }

.shipmap-search {
    position: absolute;
    z-index: 999;
    left: 20px;
    bottom: 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 1rem;
    background: white;
    border-radius: 20px;
    -webkit-filter: drop-shadow(0px 0px 10px rgba(0, 40, 112, 0.15));
    filter: drop-shadow(0px 0px 10px rgba(0, 40, 112, 0.15));
}

.shipmap-search-btn {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: #5065a6;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .shipmap-search-btn:before {
        content: "";
        display: -webkit-inline-box;
        display: -ms-inline-flexbox;
        display: inline-flex;
        width: 36px;
        height: 36px;
        margin: 0 0 8px;
        background: #5065a6 url(../images/shipmap-search-icon.svg) no-repeat center center;
        border-radius: 8px;
    }

    .shipmap-search-btn:hover {
        color: #5689e2;
    }

        .shipmap-search-btn:hover:before {
            background-color: #5689e2;
        }

    .shipmap-search-btn.active {
        pointer-events: none;
    }

.shipmap-search-box {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 0;
    visibility: hidden;
}

    .shipmap-search-box.active {
        margin-left: 8px;
        width: 100%;
        visibility: visible;
    }

    .shipmap-search-box .item {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
        -webkit-box-pack: end;
        -ms-flex-pack: end;
        justify-content: flex-end;
        width: 100px;
        margin: 0 0 0 8px;
    }

        .shipmap-search-box .item:first-child {
            width: 60px;
        }

@media (min-width: 576px) {
    .shipmap-search-box .item:first-child {
        width: 100px;
    }
}

.shipmap-search-box .item input[type=text], .shipmap-search-box .item select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    padding: 5px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 0.9rem;
}

    .shipmap-search-box .item input[type=text]::-webkit-input-placeholder, .shipmap-search-box .item select::-webkit-input-placeholder {
        color: #a1b8dc;
    }

    .shipmap-search-box .item input[type=text]::-moz-placeholder, .shipmap-search-box .item select::-moz-placeholder {
        color: #a1b8dc;
    }

    .shipmap-search-box .item input[type=text]:-ms-input-placeholder, .shipmap-search-box .item select:-ms-input-placeholder {
        color: #a1b8dc;
    }

    .shipmap-search-box .item input[type=text]::-ms-input-placeholder, .shipmap-search-box .item select::-ms-input-placeholder {
        color: #a1b8dc;
    }

    .shipmap-search-box .item input[type=text]::placeholder, .shipmap-search-box .item select::placeholder {
        color: #a1b8dc;
    }

    .shipmap-search-box .item input[type=text]:focus, .shipmap-search-box .item select:focus {
        border: 1px solid #6696e8;
        outline: 1px solid #6696e8;
    }

.shipmap-search-box .item input[type=text] {
    margin-bottom: 5px;
}

.shipmap-search-box .item select {
    background: url(../images/select-arrow.svg) no-repeat center right 0.5rem #f7f9fc;
}

    .shipmap-search-box .item select:focus {
        background: url(../images/select-arrow-change.svg) no-repeat center right 0.5rem #f7f9fc;
    }

.shipmap-search-close {
    position: absolute;
    right: 10px;
    top: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 30px;
    height: 30px;
    font-size: 0rem;
    pointer-events: none;
    cursor: pointer;
}

    .shipmap-search-close.active {
        pointer-events: auto;
    }

        .shipmap-search-close.active:before {
            content: "－";
            font-size: 1rem;
        }

        .shipmap-search-close.active:hover {
            color: red;
        }

@media (min-width: 1200px) {
    .shipmap-search {
        bottom: 20px;
    }
}

.shipmap-notify {
    position: absolute;
    z-index: 999;
    top: 100px;
    left: 20px;
    -webkit-filter: drop-shadow(0px 0px 10px rgba(0, 40, 112, 0.15));
    filter: drop-shadow(0px 0px 10px rgba(0, 40, 112, 0.15));
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.shipmap-notify-btn {
    position: relative;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    width: 33px;
    height: 33px;
    outline: 1px solid #e6ebf5;
    background: white url(../images/notify-icon.svg) no-repeat center center/contain;
    border-radius: 10px;
    cursor: pointer;
    visibility: visible;
}

    .shipmap-notify-btn span {
        position: absolute;
        right: -8px;
        top: -8px;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        width: 20px;
        height: 20px;
        background-color: #ee574c;
        color: white;
        font-family: Arial, "Noto Sans TC", sans-serif;
        border-radius: 50%;
        font-size: 0.95rem;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        pointer-events: none;
    }

    .shipmap-notify-btn.active {
        display: none;
    }

.shipmap-notify-tit {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    padding: 0.275rem 0.5rem 0.2rem;
    font-size: 1.2rem;
    font-family: Arial, "Noto Sans TC", sans-serif;
    font-size: bold;
    border-bottom: 1px solid #ced4da;
}

    .shipmap-notify-tit:before {
        content: "";
        display: -webkit-inline-box;
        display: -ms-inline-flexbox;
        display: inline-flex;
        width: 30px;
        height: 30px;
        background: white url(../images/notify-icon.svg) no-repeat center center/contain;
    }

.shipmap-notify-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 220px;
    padding-bottom: 10px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    height: 0;
    visibility: hidden;
}

    .shipmap-notify-box.active {
        height: auto;
        visibility: visible;
    }

    .shipmap-notify-box ul {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        max-height: 300px;
        overflow-y: auto;
    }

        .shipmap-notify-box ul::-webkit-scrollbar {
            background: #f7f9fc;
            width: 10px;
        }

        .shipmap-notify-box ul::-webkit-scrollbar-thumb {
            background: #e2ebfb;
            border-radius: 20px;
        }

            .shipmap-notify-box ul::-webkit-scrollbar-thumb:hover {
                background: #7da6eb;
            }

    .shipmap-notify-box li {
        position: relative;
        padding: 0.5rem 0.5rem 0.5rem 1.75rem;
        color: #575d66;
        line-height: 1.5;
        cursor: pointer;
    }

        .shipmap-notify-box li:not(:first-child) {
            border-top: 1px solid #ced4da;
        }

        .shipmap-notify-box li:before {
            content: "";
            position: absolute;
            left: 1.1rem;
            top: 0.85rem;
            width: 10px;
            height: 10px;
            background: #ced4da;
            border-radius: 3px;
        }

        .shipmap-notify-box li:hover {
            color: #212529;
        }

            .shipmap-notify-box li:hover:before {
                background: #ee574c;
            }

.shipmap-notify-close {
    position: absolute;
    z-index: 999;
    right: 10px;
    top: 5px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 30px;
    height: 30px;
    font-size: 0rem;
    pointer-events: none;
    cursor: pointer;
}

    .shipmap-notify-close.active {
        pointer-events: auto;
    }

        .shipmap-notify-close.active:before {
            content: "－";
            font-size: 1rem;
        }

        .shipmap-notify-close.active:hover {
            color: #ee574c;
        }

.shipmap-info-box {
    position: absolute;
    z-index: 9999;
    right: 0;
    top: 0;
    visibility: hidden;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 0%;
    max-width: 320px;
    background: white;
    height: 100%;
    -webkit-filter: drop-shadow(0px 10px 10px rgba(77, 77, 77, 0.25));
    filter: drop-shadow(0px 10px 10px rgba(77, 77, 77, 0.25));
}

    .shipmap-info-box.active {
        visibility: visible;
        width: calc(100% - 45px);
        -webkit-transition: all 0.5s ease-in-out;
        transition: all 0.5s ease-in-out;
    }

@media (min-width: 1560px) {
    .shipmap-info-box {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }

        .shipmap-info-box.active {
            position: relative;
        }
}

.shipmap-info-tit {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    padding: 1.5rem;
    color: #33b5a1;
    font-size: 1.2rem;
    font-weight: bold;
    border-bottom: 1px solid #e2e2e2;
}

    .shipmap-info-tit:before {
        content: "";
        display: -webkit-inline-box;
        display: -ms-inline-flexbox;
        display: inline-flex;
        width: 30px;
        height: 30px;
        background: url(../images/shipmap-info-icon.svg) no-repeat center center/contain;
    }

.shipmap-info-data {
    height: calc(100% - 79px);
    overflow-y: auto;
}

    .shipmap-info-data li {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        padding: 1.375rem 1.5rem;
        line-height: 1.75;
        color: #33b5a1;
    }

        .shipmap-info-data li:before {
            content: "";
            display: -webkit-inline-box;
            display: -ms-inline-flexbox;
            display: inline-flex;
            width: 40px;
            height: 40px;
            margin-right: 1rem;
            background-color: rgba(51, 181, 161, 0.1);
            border-radius: 6px;
        }

        .shipmap-info-data li:not(:last-child) {
            border-bottom: 1px solid #e2e2e2;
        }

    .shipmap-info-data .item {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }

        .shipmap-info-data .item .title {
            font-size: 1.2rem;
        }

        .shipmap-info-data .item .text {
            color: #575d66;
        }

.shipmap-info-close {
    position: absolute;
    z-index: 999;
    right: 20px;
    top: 38px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 30px;
    height: 30px;
    font-size: 0rem;
    pointer-events: none;
    cursor: pointer;
}

    .shipmap-info-close.active {
        pointer-events: auto;
    }

        .shipmap-info-close.active:before, .shipmap-info-close.active:after {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            width: 20px;
            height: 2px;
            background: #575d66;
        }

        .shipmap-info-close.active:before {
            -webkit-transform: rotate(45deg);
            transform: rotate(45deg);
        }

        .shipmap-info-close.active:after {
            -webkit-transform: rotate(-45deg);
            transform: rotate(-45deg);
        }

        .shipmap-info-close.active:hover:before, .shipmap-info-close.active:hover:after {
            background: #ee574c;
        }

.shipmap-info-data li:nth-child(1):before {
    background-image: url("../images/shipmap-info-icon1.svg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
}

.shipmap-info-data li:nth-child(2):before {
    background-image: url("../images/shipmap-info-icon2.svg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
}

.shipmap-info-data li:nth-child(3):before {
    background-image: url("../images/shipmap-info-icon3.svg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
}

.shipmap-info-data li:nth-child(4):before {
    background-image: url("../images/shipmap-info-icon4.svg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
}

.shipmap-info-data li:nth-child(5):before {
    background-image: url("../images/shipmap-info-icon5.svg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
}

.shipmap-info-data li:nth-child(6):before {
    background-image: url("../images/shipmap-info-icon6.svg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
}

.shipmap-info-data li:nth-child(7):before {
    background-image: url("../images/shipmap-info-icon7.svg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
}

.shipmap-info-data li:nth-child(8):before {
    background-image: url("../images/shipmap-info-icon8.svg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
}

.shipmap-info-data li:nth-child(9):before {
    background-image: url("../images/shipmap-info-icon9.svg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
}

.shipmap-desc-box {
    position: absolute;
    z-index: 9999;
    right: 0;
    top: 0;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 0%;
    max-width: 320px;
    height: 100%;
    background: white;
    overflow: hidden;
    -webkit-filter: drop-shadow(0px 10px 10px rgba(77, 77, 77, 0.25));
    filter: drop-shadow(0px 10px 10px rgba(77, 77, 77, 0.25));
}

    .shipmap-desc-box.active {
        width: calc(100% - 45px);
        -webkit-transition: all 0.5s ease-in-out;
        transition: all 0.5s ease-in-out;
    }

@media (min-width: 1560px) {
    .shipmap-desc-box.active {
        position: relative;
    }
}

.shipmap-desc-tit {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    padding: 1.5rem;
    color: #33b5a1;
    font-weight: bold;
    border-bottom: 1px solid #e2e2e2;
    font-size: 1.2rem;
}

    .shipmap-desc-tit:before {
        content: "";
        display: -webkit-inline-box;
        display: -ms-inline-flexbox;
        display: inline-flex;
        width: 30px;
        height: 30px;
        background: url(../images/shipmap-info-icon-desc.svg) no-repeat center center/contain;
    }

.shipmap-desc-data {
    height: 100%;
    overflow: hidden;
}

.shipmap-desc-close {
    position: absolute;
    z-index: 999;
    right: 20px;
    top: 38px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 30px;
    height: 30px;
    font-size: 0rem;
    pointer-events: none;
    cursor: pointer;
}

    .shipmap-desc-close.active {
        pointer-events: auto;
    }

        .shipmap-desc-close.active:before, .shipmap-desc-close.active:after {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            width: 20px;
            height: 2px;
            background: #575d66;
        }

        .shipmap-desc-close.active:before {
            -webkit-transform: rotate(45deg);
            transform: rotate(45deg);
        }

        .shipmap-desc-close.active:after {
            -webkit-transform: rotate(-45deg);
            transform: rotate(-45deg);
        }

        .shipmap-desc-close.active:hover:before, .shipmap-desc-close.active:hover:after {
            background: #ee574c;
        }

.shipmap-tabs {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: space-evenly;
    -ms-flex-pack: space-evenly;
    justify-content: space-evenly;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e2e2;
}

.shipmap-tabs-item {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    padding: 0.5rem 0.875rem;
    color: #33b5a1;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #33b5a1;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
}

    .shipmap-tabs-item.active {
        color: white;
        background: #33b5a1;
    }

.shipmap-tabs-box {
    display: none;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    overflow-y: auto;
    height: calc(100% - 67px - 69px - 32px);
    padding: 1rem;
    line-height: 1.875;
}

    .shipmap-tabs-box::-webkit-scrollbar {
        background: #f7f9fc;
        width: 10px;
    }

    .shipmap-tabs-box::-webkit-scrollbar-thumb {
        background: #e2ebfb;
        border-radius: 20px;
    }

        .shipmap-tabs-box::-webkit-scrollbar-thumb:hover {
            background: #7da6eb;
        }

    .shipmap-tabs-box.active {
        display: -webkit-box !important;
        display: -ms-flexbox !important;
        display: flex !important;
    }

.shipmap-ins {
    margin: 1rem -1rem 0;
    border-top: 1px solid #e2e2e2;
}

    .shipmap-ins ul {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    .shipmap-ins li {
        display: -webkit-inline-box;
        display: -ms-inline-flexbox;
        display: inline-flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        width: 50%;
        padding: 1.5rem;
        border-bottom: 1px solid #e2e2e2;
    }

        .shipmap-ins li:nth-child(odd) {
            border-right: 1px solid #e2e2e2;
        }

.maplibregl-ctrl-top-left {
    left: 10px !important;
    top: 10px !important;
}

    .maplibregl-ctrl-top-left .maplibregl-ctrl {
        border-radius: 10px;
    }

    .maplibregl-ctrl-top-left .maplibregl-ctrl button {
        height: 33px;
        width: 33px;
    }

.marine-compass-ring {
    position: relative;
    width: 32px;
    height: 32px;
    margin: 0 auto;
    background: #ffffff;
    transition: transform .1s linear;
    cursor: pointer;
    border-radius: 10px;
}

    .marine-compass-ring:hover {
        background-color: rgba(0, 0, 0, .05);
    }


.marine-compass-needle {
    position: absolute;
    width: 2px;
    height: 30px;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: red;
}

.marine-compass-degree {
    text-align: center;
    margin-top: 6px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 1px 1px 2px black;
}

.marine-compass-svg {
    position: absolute;
    transform-origin: center center;
    transition: transform .1s linear;
    width: 32px;
    height: 32px;
}

    .marine-compass-svg svg {
        width: 100%;
        height: 100%;
    }


.portName {
    line-height: 1.5;
}