#preloader{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}


#preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #28a745;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-content p {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}


#map{
    z-index: 0;
    height: 100vh;
    position: relative;
    top: 0;
    left: 0;

}

#countrySelect{
    width: 200px;
    position: absolute;
    top: 20px;
    z-index: 3;
    left: 40%;
    padding: 6px 5px;
}

#countrySelect:focus {
    box-shadow: none;
}

.modal-content{
    border-radius: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

}

.modal-body img{
    width: 80px;
    margin-bottom: 10px;
}

#weatherModal .row h6{
    font-weight: bold;
    margin-bottom: 5px;
}

#weatherModal .row p{
    margin: 0;
    font-size: 0.95rem;
}

#currencyModal input{
    font-size: 12px;
    padding: 0.5rem;
}

.modal_wrapper button{
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    border-radius: 50%;
    color: #fff;
    margin-bottom: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    border: none;
}

.modal_wrapper button:hover{
    background-color: rgba(255, 255, 255, 0.8);
    color: black;
}

.modal_wrapper{
    top: 200px;
    left: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.modal span{
    font-weight: 200;
}

#weatherModal .row{
    font-size: 0.95rem;
}

#weatherModal .row strong{
    font-weight: 600;
}

@media screen and (max-width:540px) {
    #countrySelect{
        left: 20%;
        width: 140px;
    }
}


@media screen and (max-width:400px) {
    #countrySelect{
        left: 18%;
        width: 114px;
        padding: 6px 4px;
        font-size: 13px;
    }
}



.leaflet-control-layers {
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border-radius: 6px;
    background-color: white;
}


.leaflet-control-layers-toggle{
    background-image: none !important;
    width: 36px;
    height: 36px;
    position: relative;
    display: block;
}

.leaflet-control-layers-toggle::before {
    content: "\f5fd";
    font-family: "Font Awesome 6 Free", "Font Awesome 7 Free";
    font-weight: 900;
    font-size: 18px;
    color: #9b9797;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.leaflet-retina .leaflet-control-layers-toggle {
    background-image: none !important;
}


.leaflet-control-layers-list {
    padding: 5px;
}
.leaflet-control-layers label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    cursor: pointer;
}
.leaflet-control-layers input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
}

.leaflet-control-attribution {
    display: none;
}

.marker-cluster {
    background-clip: padding-box;
    border-radius: 40px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}
.marker-cluster div {
    width: 30px;
    height: 30px;
    margin-left: 5px;
    margin-top: 5px;
    text-align: center;
    border-radius: 14px;
    font-weight: bold;
    line-height: 31px;
}
.marker-cluster-small {
    background-color: #6496ff;
}
.marker-cluster-small div {
    background-color: #3c78ff;
    color: #ffffff;
}
.marker-cluster-medium {
    background-color: #64c864;
}
.marker-cluster-medium div {
    background-color: #3ca03c;
    color: white;
}
.marker-cluster-large {
    background-color: #ff9664;
}
.marker-cluster-large div {
    background-color: #dc6423;
    color: white;
}

.extra-marker {
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
}

.leaflet-top {
    z-index: 999;
}

.custom-marker-icon {
    background: transparent !important;
    border: none !important;
}

.custom-marker-icon i {
    display: block;
}