@media screen and (max-width: 1700px) {
  html {
    font-size: 14px;
  }
}

@media screen and (max-width: 1441px) {
  html {
    font-size: 12px;
  }
}
.page-wrapper>.container-fluid, .page-wrapper>.container-lg, .page-wrapper>.container-md, .page-wrapper>.container-sm, .page-wrapper>.container-xl, .page-wrapper>.container-xxl{
    height: calc(100vh - 4rem) !important;
    padding: 0px !important;
}
header{
    max-height: 4rem !important;
}
.topbar .top-navbar{
    min-height: 4rem !important;
    max-height: 4rem !important;
}
.form-floating input {
    font-weight: bold;
}
.loader{
    width: 100%;
    height: 100%;
    top: 0;
    position: fixed;
    z-index: 99999;
    background: #fff;
    justify-content: center!important;
}
.loader .spinner-border{
    top: calc(50% - 1.1rem);
    width: 8rem;
    height: 8rem;
    position: absolute;
    margin: 0 auto;
    left: 0;
    right: 0;
    border: 0.4em solid #2962ff;
    border-right-color: transparent;
}
#map{
    height: 100%;
    width: 100%;
}
.map {
    height: 100%;
    width: 100%;
}
.map-attributions{
    position: absolute;
    pointer-events: auto;
    bottom: 0;
    right: 0;
    color: #000;
    font-size: 0.75rem;
    padding: 0px 0.25rem;
    width: fit-content;
    border-radius: 0.25rem 0 0;
    background: rgba(255,255,255,.8);
}

.mapbtn{
    display: flex!important;
    background-color: white;
    border-radius: 0.25rem;
    color: #2962ff;
    border: none;
    border-bottom: 0.063rem solid #ececec;
    padding: 0.375rem 0.75rem;
    width: 2.188rem;
    height: 2.188rem;
    font-size: 1.2rem !important;
    padding-bottom: 0!important;
    padding-top: 0!important;
    align-items: center!important;
    justify-content: center!important;
}
.mapbtn:focus{
    outline:none;
    box-shadow: none;
}
.mapbtn:hover , .mnbtn:hover{
    background-color: #2962ff !important;
    border-bottom: none;
    color: white !important;
}
.mapbtn.active{
    background-color: #2962ff !important;
    color: white !important;
    border-bottom: none;
}

/* Distance tool style */
.additional-tools{
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
    height: fit-content;
    position: absolute;
    top: 1.563rem;
    left: 1.563rem; 
}

.distance-tool{
    display: none;
    position:absolute;
    left: 4.375rem;
    top: 1.563rem;
    width: 18.75rem;
    height: auto;
    background: #fff;
    border-radius: .3rem;
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}
.distance-tool .feather-sm{
    width: 1.125rem;
    height: 1.125rem;
}
.distance-tool .card-body{
    padding: .6rem;
}
/* Legend Style */

#legend-btn{
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
    position: absolute;
    right: 1.563rem;
    bottom: 1.563rem;
    background-color: white;
    border-radius: 0.25rem;
}
.legend-list{
    position:absolute;
    overflow: auto;
    right: 4.375rem;
    bottom: 1.563rem;
    width: auto;
    max-height: 18.75rem;
    height: auto;
    padding: 0.625rem;
    background: #fff;
    border-radius: .3rem;
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}
/* Layer List Style  */
#layerlist-btn{
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
    position: absolute;
    z-index: 100;
    left: 1.563rem;
    bottom: 1.563rem;
    background-color: white;
    border-radius: 0.25rem;
} 
.layer-list{
    position:absolute;
    overflow: auto;
    z-index: 100;
    left: 4.375rem;
    bottom: 1.563rem;
    width: fit-content;
    max-height: 25rem;
    height: auto;
    padding: 0.625rem;
    background: #fff;
    border-radius: .3rem;
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}

.layer-list .list-group-item, .basemap-list .list-group-item{
    font-weight: bold;
    padding: 0.4rem 1rem;
}
.layer-list .list-group-item{
    display: flex;
    align-items: center;
    padding: 0rem 0.5rem 0rem 0rem;
}

.layer-list .list-group-item button:hover{
    background: #e7e7e7 !important;
}
.dropdown-toggle::after{
    content: none !important;
}
.layer-list .dropdown-menu{
    border: 0.063rem solid rgba(0,0,0,.125);
    box-shadow: 0.063rem 0.063rem 0.938rem rgb(0 0 0 / 10%);
}

/*.list-group .list-group-item:hover{
    cursor: pointer;
    background: #e7e7e7 !important;
}*/
/* Basemap List Style */
.basemap-list{
    position:absolute;
    z-index: 101;
    left: 4.375rem;
    top: calc(50% + 5.438rem);
    width: auto;
    height: auto;
    padding: 0.625rem;
    background: #fff;
    border-radius: .3rem;
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}

.btn-groupe {
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
    display: flex;
    flex-direction: column !important;
    position: absolute;
    left: 1.563rem;
    top: calc(50% - 7.688rem);
    background-color: white;
    border-radius: 0.25rem;
    z-index: 100;
}
/* Measure button's style */
.distance-btn , .area-btn{
    display: none;
    width: auto;
    position: absolute;
    left: 3.75rem;
    z-index: 100;
}
.distance-btn{
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
    border-radius: 0.25rem;
    background: white;
    display: none;
    top: calc(50% + 1rem)
}
.distance-btn.active{
    display: flex;
    flex-direction: row;
    z-index: 101;
}
.area-btn{
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
    border-radius: 0.25rem;
    background: white;
    display: none;
    top: calc(50% + 3.188rem);
}
.area-btn.active{
    display: flex;
    flex-direction: row;
    z-index: 101;
}
.measure-btn{
    background-color: white;
    text-align: center;
    border-radius: 0.25rem;
    color: #2962ff;
    border: none;
    border-left: 0.063rem solid #ececec;
    width: 2.188rem;
    height: 2.188rem;
    font-size: .9rem !important;
    padding-bottom: 0!important;
    padding-top: 0!important;
}
.measure-btn:focus{
    outline:none;
    box-shadow: none;
}
.measure-btn:hover{
    background-color: #2962ff !important;
    border-bottom: none;
    color: white !important;
}
/* POPUP STYLE */

#popup{
    position:absolute;
    z-index: 100;
    right: 1.563rem;
    top: 1.563rem;
    width: auto;
    min-width: 18.75rem;
    max-width: 31.25rem;
    height: auto;
    max-height: 37.5rem;
    background: #fff;
    border-radius: .3rem;
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}
#popup .popup-tools{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
#popup .pop-btn-zoom{
    height: fit-content;
}
#popup .pop-btn-zoom:hover, #popup .popup-close:hover{
    background: #e7e7e7 !important;
}
#popup .feather{
    width: 1.5rem;
    height: 1.5rem;
}
#popup .feather-sm{
    width: 1.125rem;
    height: 1.125rem;
}
#popup .pop-pagination{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: #e7e7e7;
}
#popup .pop-pagination i{
   cursor: pointer; 
}
#popup .popup-header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem!important;
}
#popup .popup-content{
    padding: 0px 1rem
}
#popup .popup-content td{
    width: 50%;
    padding: 0.125rem 0.313rem;
    font-size: 0.75rem;
    font-weight: 600;
}
#popup .inpBar{
    border-right: 0.125rem solid #e7e7e7;
    font-weight: 900 !important;
}

#popup .table-striped>tbody>tr:nth-of-type(odd),  #attributes-table .table-striped>tbody>tr:nth-of-type(odd){
    --bs-table-accent-bg: rgba(76,76,76,.1);;
}

/* Attributes TABLE STYLE */

#attributes-table{
    position: absolute;
    z-index: 1;
    padding: 0px 0.938rem 0px 24.375rem;
    bottom: 1.563rem;
    width: auto;
    width: 100%;
    height: auto;
}
#attributes-table .card{
    margin-bottom: 0px;
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}
#attributes-table .attributes-header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem!important;
}
#attributes-table .attributes-content{
    padding: 0px 1rem;
    max-height: 18.75rem;
    overflow: auto;
}
#attributes-table .attributes-content td{
    padding: 0.125rem 0.313rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: start;
}

#attributes-table tr td:not(:last-child), #attributes-table tr th:not(:last-child){
    border-right: 0.125rem solid #e7e7e7;
}
#attributes-table thead{
    position: sticky;
}
#attributes-table th{
    text-align: center;
    padding-top: 0;
    padding-bottom: 0;
    background: white;
    position: sticky;
    top: 0;
    font-weight: bold;
}
#attributes-table tbody tr{
    cursor: pointer;
}



.ol-popup {
    position: absolute;
    background-color: white;
    pointer-events: none;
    box-shadow: 0 0.063rem 0.25rem rgba(0,0,0,0.2);
    border-radius: .3rem;
    bottom: 0.75rem;
    left: -8rem;
    bottom: 4rem;
    min-width: 15.5rem;
    padding: .5rem;
}
.ol-popup:after, .ol-popup:before {
    top: 100%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}
.ol-popup-closer {
    color: #000000 !important;
    pointer-events: auto;
    text-decoration: none;
    position: absolute;
    top: 0.188rem;
    right: 0.5rem;
}
.ol-popup-closer:after {
    pointer-events: auto;
    content: "✖";
}
#hov-popup{
    box-shadow: 0 0.063rem 0.063rem rgb(0 0 0 / 20%);
    bottom: 1.625rem;
}
.popover-body{
    padding: .5rem .5rem !important;
}
.popover-header{
    padding: .5rem .5rem !important;
    text-align: center;
}
.popover{
    max-width: fit-content !important;
    width: fit-content !important;
}
.minwidth-3{
    min-width: 18.75rem;
}
.tt-cursor{
    color: #fff;
    text-decoration: none;
    background-color: #7460ee;
}
.map-tooltip {
    position: relative;
    background: #2962ff;
    border-radius: 0.25rem;
    color: white;
    padding: 0.25rem 0.5rem;
    opacity: 0.7;
    white-space: nowrap;
}

.map-tooltip-measure {
    opacity: 1;
    font-weight: bold;
}

.map-tooltip-static {
    font-weight: bold;
    background-color: #2962ff;
    color: white;
    border: 0.063rem solid white;
}

.map-tooltip-measure:before, .map-tooltip-static:before {
    border-top: 0.375rem solid #2962ff;
    border-right: 0.375rem solid transparent;
    border-left: 0.375rem solid transparent;
    content: "";
    position: absolute;
    bottom: -0.375rem;
    margin-left: -0.438rem;
    left: 50%;
}

.map-tooltip-static:before {
    border-top-color: #2962ff;
}


.INPpanglica {
    position: absolute;
    z-index: 1;
    background: rgb(82, 57, 50);
    width: calc(100% - 1.5rem);
    height: 1.438rem;
    margin-top: 1.063rem;
    border: 1px solid black;
}
.TraseuNumero {
    font-weight: bold;
    font-size: 1.5em;
    color: black;
    position: absolute;
    top: 41%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99;
}
.whiteText {
    color: white;
}
.blackText{
        color: black;
      }
.nrTraseuSimbol {
    position: relative;
    text-align: center;
    z-index: 99;
}
.roadfinder-table table, #road-popup table {
    margin-left: auto;
    margin-right: auto;
    display: table;
    margin-top:0.313rem;
    border-collapse: collapse;
    font-weight: bold !important;
}
.roadfinder-table tr, #road-popup tr{
    margin-bottom: 0.125rem !important;
}
.inpBar{
    border-right: 0.063rem solid gray;
}

#accidents-disclaimer{
    display: none;
    position: absolute;
    flex-direction: row;
    min-width: 37.5rem;
    max-width: 46%;
    bottom: -2.063rem;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: .5rem;
    border-radius: 0.25rem;
    font-weight: bold;
    background-color: #fff;
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
    algin-items: center;
    justify-content: center;
}
#accidents-disclaimer span{
    text-align: center;
    align-items:center;
    display: flex;
}
#accidents-disclaimer img{
    height: 6.25rem;
}
#accidents-disclaimer.show{
    display: flex;
}
@media screen and (max-width: 1060px) {
  #accidents-disclaimer.show {
    display: none;
  }
}


#accidents-stats{
    display: none;
    flex-direction: column;
    position: absolute;
    top: 1.563rem;
    left: 5rem;
    border-radius: 0.25rem;
    background: #fff;
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175);
    padding: 1rem;
    gap: .35rem;
}

#accidents-stats .stat{
    display: flex;
    gap: 2rem;
    justify-content: space-between;
}
#accidents-stats .stat h5{
    margin:0 !important;
    font-size: .875rem !important;
}

.light-logo{
    height: 3.125rem;
}

.page-wrapper{
    height:fit-content;
    min-height: calc(100vh - 4rem);
}

.point-image{
    width: 3.125rem;
}

.search-element{
    position: relative;
    width: 320px;
    max-width: 320px;
}
.search-element .input-group{
    width: 100%;
    display: flex;
    align-items: center;
}

.location-search{
    color: #3e5569;
    font-weight: 400;
    font-family: inherit;
    width: 100%;
    height: 2.2rem;
    padding-left: 45px;
    padding-right: 20px;
    border: none;
    border-radius: 5px !important;
}
.search-element .input-group-text{
    background-color: #fff;
    width: auto;
    border: none;
    position: absolute;
    display: flex;
    align-items: center;
}
.search-tools{
    position: absolute;
    right: 10px;
    display: flex;
    align-items: center;
}
.search-tools .spinner-border{
    display: none;
    width: 1.2rem;
    height: 1.2rem;
}
.search-clear{
    cursor:pointer;
    display: none;
}
.search-list::-webkit-scrollbar {
  width: 5px;
  height: 5px;
  
}

/* Track */
.search-list::-webkit-scrollbar-track {
  background: transparent;
}
 
/* Handle */
.search-list::-webkit-scrollbar-thumb {
  background: var(--primary-bg-color);
  border-radius: 10em !important;
}
.search-list{
    position: absolute;
    margin-top: 1rem;
    color: #3e5569;
    font-weight: 400;
    font-family: inherit;
    border-radius: 5px;
    display: none;
    box-shadow: 0px 10px 24px 0px rgba(14, 15, 30, 0.20);
    float: left;
    width: 100%;
    height: fit-content;
    max-height: 220px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    background-color: #ffffff;
    outline: none;
    cursor: pointer;
}
.search-item{
    color: #3e5569;
    font-weight: 400;
    font-size: 15px;
    font-family: inherit;
    padding-left: 11px;
    padding-block: 10px;
    width: 100%;
    height: fit-content;
    min-height: 30px;
    border-radius: .3rem;
    /*border-top: 1px solid #babfc7;*/
}
.search-item:hover{
    background-color: #f3f3f3;
}
.search-wait{
    display: none;
    height: fit-content;
    overflow-y: hidden;
    background-color: #ffffff;
}