﻿.leaflet-container {
    font-family: "Lexend", sans-serif !important;
}

#mapSite {
    width: 100%;
    height: calc(100vh - 170px);
    border-radius: 10px;
    overflow: hidden;
}

.block-map {
    position: relative;
    z-index: 0;
}

.block-dashboard {
    position: absolute;
    top: 10px;
    left: -360px;
    width: 360px;
    z-index: 99999;
    cursor: default;
    transition: all 0.5s;
}

.block-dashboard-close {
    left: 10px;
}

/*.btn-handle-dashboard {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 9;
}*/

/*.block-dashboard-close .btn-handle-dashboard {
    transform: translate(0, -50%);
}*/

/*.btn-handle-dashboard a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #5d87ff;
    display: inline-block;
    display: flex;
    justify-content: center;
    align-items: center;
}*/

        .btn-handle-dashboard a i {
            font-size: 16px !important;
            color: #fff;
        }

.block-search {
    position: absolute;
    top: 10px;
    left: -300px;
    width: 300px;
    background: white;
    z-index: 99999;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
    transition: all 0.5s;
    border-radius: 6px;
}

.block-search-close {
    left: 10px;
}

.block-search #searchInput {
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 2px;
}

.block-search .search-results {
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
    padding: 0;
    margin: 0;
}

.block-search .search-results li {
    padding: 9px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.block-search .search-results li:hover {
    background: #f1f1f1;
}

.block-dashboard .overflow-auto {
    height: calc(100vh - 200px);
    overflow-y: scroll;
}

    #searchBox {
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 1000;
        width: 300px;
        padding: 8px;
        border-radius: 4px;
        border: 1px solid #ccc;
    }

.marker-cluster-small {
    background-color: rgba(70, 24, 255, 0.6);
}

    .marker-cluster-small div {
        background-color: rgba(70, 24, 255, 0.6);
    }

.marker-cluster-medium {
    background-color: rgba(247, 91, 0, 0.6);
}

    .marker-cluster-medium div {
        background-color: rgba(247, 91, 0, 0.6);
    }

.marker-cluster-large {
    background-color: rgba(220, 53, 69, 0.6);
}

    .marker-cluster-large div {
        background-color: rgba(220, 53, 69, 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;
    }

    .marker-cluster span {
        line-height: 30px;
        /*color: #212529;*/
        color: #fff;
    }

.block-filter {
    max-width: 300px;
    position: absolute;
    top: 10px;
    left: -360px;
    z-index: 1000;
    background-color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    cursor: default;
    transition: all 0.5s;
}

.block-filter-600 {
    width: 600px;
    position: absolute;
    top: 10px;
    left: -660px;
    z-index: 1000;
    background-color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    cursor: default;
    transition: all 0.5s;
}

.block-insertmarker {
    max-width: 320px;
    position: absolute;
    top: 10px;
    left: -360px;
    z-index: 1000;
    background-color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    cursor: default;
    transition: all 0.5s;
}

.btn-close-block{
    margin-left: 10px;
}

/*.block-filter a {
   padding: 10px 0;
}*/
/*.block-filter a.active-btn {
            background-color: #dee7ff;
            color: #000;
            font-weight: bold;
        }*/
.block-filter .option-point {
    display: flex;
    align-items: center;
    padding-left: 18px;
}

.block-filter .option-point .form-check-input{
    width: 15px;
    height: 15px;
}

.block-filter .bstreeview .item-icon{
    margin-right: 8px;
}

.block-filter .bstreeview .state-icon{
    display: none;
}

.block-filter #btnAll {
    padding-left: 0;
}

.icon-marker img {
    width: 20px;
    height: 20px;
    margin: 0 10px 0 10px;
}

.icon-marker span {
    font-size: 13px;
    color: #003870;
    font-weight: 400;
}

.block-filter a.active-btn span {
    color: #212529;
}

.leaflet-popup-content {
    min-width: 280px;
    width: unset;
    margin: 0;
    padding: 24px;
}

    .leaflet-popup-content .iw-header {
        display: flex;
        align-items: center;
        margin-right: 10px;
    }

        .leaflet-popup-content .iw-header img {
            margin-right: 6px;
            max-width: 20px;
        }

        .leaflet-popup-content .iw-header span {
            font-size: 14px;
            font-weight: 500;
            line-height: 17.5px;
        }

.popup-header-wrap {
    position: relative;
    border-bottom: 1px solid #D9E1E2;
    width: 100%;
    padding-bottom: 16px;
}

.leaflet-container a.leaflet-popup-close-button {
    top: 22px;
    right: 10px;
    font-size: 22px;
}

.custom-popup-leaflet .iw-name {
    font-family: 'Lexend';
    font-weight: 400;
    font-size: 18px;
    line-height: 22.5px;
    color: rgba(7, 42, 9, 1);
    margin: 16px 0 20px;
}

.iw-charging-status.active {
    font-style: normal;
    font-weight: 600;
    font-size: 12px;
    color: #28A745;
    margin-top: -15px;
    margin-bottom: 15px;
}

.iw-address .label {
    display: flex;
    width: 100%;
    align-content: center;
    justify-content: space-between;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 17.5px;
    margin-bottom: 8px;
    color: rgba(7, 42, 9, 0.6);
}

    .iw-address .label a {
        display: inline-block;
        text-indent: -9999px;
        width: 78px;
        height: 19px;
        background: url(../../images/icons/icon-address.svg) no-repeat center center;
        font-size: 12px;
        font-weight: 400;
        line-height: 15px;
        font-style: normal;
    }

.iw-address .data {
    font-size: 12px;
    font-weight: 400;
    line-height: 15px;
    font-style: normal;
    color: rgba(7, 42, 9, 1);
}

.text-heading {
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 17.5px;
    color: rgba(7, 42, 9, 0.6);
    margin: 8px 0;
}

.iw-main-content ul li {
    position: relative;
    padding-left: 14px;
    line-height: 22px;
}

.iw-main-content ul {
    padding-left: 0;
    list-style: none;
    font-size: 12px;
    font-weight: 400;
    color: rgba(7, 42, 9, 1);
}

    .iw-main-content ul li:before {
        content: '';
        position: absolute;
        top: 8px;
        left: 0;
        display: block;
        width: 6px;
        height: 6px;
        background: #000;
        border-radius: 50%;
    }

@keyframes bounce {
    0%, 100% {
        margin-top: -30px; /* Không di chuyển */
    }

    50% {
        margin-top: -20px; /* Di chuyển lên */
    }
}

.marker-animated {
    position: relative; /* Đảm bảo không làm thay đổi vị trí của phần tử */
    animation: bounce 0.6s ease infinite; /* Lặp vô hạn */
}

.block-filter .bstreeview .list-group-item{
    border: unset;
    font-size: 13.6px;
    font-weight: 500;
    padding-left: 0!important;
    color: #003870;
}

.block-filter .bstreeview {
    border: unset;
}

.block-filter-close {
    left: 10px;
}

.block-button {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 99999;
}

.leaflet-container a{
    color: unset;
}

.active-btn-block {
    background-color: rgb(93, 135, 255);
    color: #fff;
    border-color: rgb(93, 135, 255);
}

.active-btn-block i{
    color: #fff;
}

.btn-option-show{
    transition: all 0.5s;
}

.btn-option-show:hover {
    background-color: rgb(93, 135, 255);
    color: #fff;
}

.block-option-active{
    left: 10px;
}

/*.leaflet-marker-icon {
    width: 26px !important;
    height: 26px !important;
}*/

.leaflet-touch .leaflet-control-layers-toggle {
    width: 30px;
    height: 30px;
}

.leaflet-tooltip.tooltip-custom {
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid #ccc;
    width: 220px;
    max-width: 220px;
    white-space: normal; /* Cho phép xuống dòng */
}

.leaflet-tooltip.polygon-label {
    background: transparent;
    border: none;
    box-shadow: none;
    color: #fff;
    font-weight: 500;
    text-align: center;
    pointer-events: none;
    font-size: 12px;
}

.leaflet-div-icon {
    width: 8px !important;
    height: 8px !important;
    border-radius: 2px !important;
    margin-left: -4px !important;
    margin-top: -4px !important;
    background-color: white !important;
    border: 1px solid #555 !important;
}

.leaflet-draw-tooltip {
    pointer-events: none !important;
    z-index: 1000 !important;
}

.leaflet-draw-actions a{
    color: #fff;
}

.select2-container--default .select2-results__group{
    font-weight: 500;
}

.block-filter .list-group-item{
    background-color: unset;
}

.block-map .bstreeview .list-group-item:hover {
    background-color: unset;
}




.round {
    width: 45px;
    height: 45px;
}
.fs-3 {
    font-size: .875rem !important;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--bs-heading-color);
}

.warning-banner {
    z-index: 999;
    background: linear-gradient(90deg, #e10000, #ff8c00);
    padding: 10px 25px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-bottom: 10px;
}

#totalCasesText {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.banner-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
}

/* Hiệu ứng chạy chữ */
@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    /* Bắt đầu từ bên phải */
    100% {
        transform: translateX(-100%);
    }
    /* Kết thúc bên trái */
}
#mapSite:not(.fullscreen) .btn-exit-fullscreen,
#mapSite.fullscreen .btn-fullscreen {
    display: none !important;
}

.toggle-districts {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

    .toggle-districts:hover {
        text-decoration: underline;
    }