.leaflet-control-scale {
    font-size: 16px;
    font-family: "Irish Grover", system-ui;
    text-align: center;
    padding-left: 25vw; /* Could be adjusted again to desktop but in mobile works well */
    padding-bottom: 2vh;
} 
.leaflet-control-scale-line{
    border: 1px solid rgb(200, 200, 200);
    border-top-color: transparent;
    color: rgb(200, 200, 200);
    background-color: transparent;
    text-shadow: none;
    line-height: 0.6;
}

.light-mode .leaflet-control-scale-line {
    border: 1px solid rgb(40, 40, 40);
    border-top-color: transparent;
    color: rgb(40, 40, 40);;
}

@media (max-width: 768px) {
    .leaflet-control-scale {
        padding-bottom: 4.5vh;
    }

    .light-mode .leaflet-control-scale {
        padding-bottom: 2vh;
    }

}

.leaflet-control-layers-toggle {
    background-image: url(icons/layer_icon.png) !important;
    background-color: #333 !important;
    background-size: 85% !important;
}

.leaflet-top.leaflet-right  .leaflet-control-layers-expanded {
    font-family: "Irish Grover", system-ui;
    font-size: 1.5em;
    background-color: #333;
    color: #fff;
    text-shadow:
      1px 1px 0 #fff,
      -1px 1px 0 #fff,
      -1px -1px 0 #fff,
      1px -1px 0 #fff;
}

.light-mode .leaflet-control-layers-toggle {
    background-color: white !important;
}
.light-mode .leaflet-top.leaflet-right .leaflet-control-layers-expanded{
    background-color: white;
}

/* POPUP-content design */

.leaflet-popup-content-wrapper{
    font-weight: 300;
    font-size: 0.9rem;
    background-color: #1b1b1b;
    color: #bbb;
    width: 360px; /* Set your desired width here */
}

.leaflet-popup-content-wrapper #mainImage{
    width: 320px;
}

@media (max-width: 768px) {
    .leaflet-popup-content-wrapper{
        font-weight: 500;
        font-size: 0.6rem;
        width: 240px; /* Set your desired width here */
    }

    .leaflet-popup-content-wrapper #mainImage{
        width: 200px;
    }
}

.light-mode .leaflet-popup-content-wrapper{
    background-color: #dddddd;
    color: black;
}

/* To HIDE the X-button from the left corner */
.leaflet-container a.leaflet-popup-close-button {
    display: none;
}
.leaflet-popup-content{
    /* center the element */
    /*
    margin-right: auto;
    margin-left: auto;
     give it dimensions */
}

.leaflet-popup-tip-container {
    width: 100%;
    display: flex;
    justify-content: center;
}
.leaflet-popup-tip {
    margin-left: 12px; /* Center the tip by resetting margin */
    background-color: #1b1b1b;
}

.light-mode .leaflet-popup-tip{
    background-color: #dddddd;
}

.leaflet-popup-content-wrapper h2{
    font-family: "Irish Grover", system-ui;
    text-align: center;
    margin: 0px;    
}

.leaflet-popup-content-wrapper img{
    border-radius: 10px;
}

/* Star evaluation */

.fa-star {
    font-size: 20px;
    color: gray; /* Väri tyhjille tähdille */
}

.fa-star.checked {
    color: gold; /* Väri täytetyille tähdille */
}


/* Recommendation meter */
.recommendation-meter-container {
    display: flex;
    align-items: center;
    padding-bottom: 10px;
    width: 320px;
}

.recommendation-meter {
    height: 10px;
    width: 100%; /* Now uses 100% of the available width */
    background-color: #555; /* Dark gray */
    border-radius: 4px 4px 4px 4px; /* Rounded corners */
    position: relative;
    overflow: hidden;
    margin: 0 10px; /* Space between icons and meter */
    flex-grow: 1; /* Ensures the meter takes up remaining space */
}

.recommendation-fill {
    height: 100%;
    /* background: linear-gradient(to right, red, orange, yellow, green); */
     background-color: rgb(76, 175, 80); /* Green */
    border-radius: 4px 0 0 4px; /* Rounded corners, except middle */
    width: calc(75%); /* Adjust this value based on rating (0.75 in this example) */
}

.icon-left, .icon-right {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .recommendation-meter-container {
        padding-bottom: 6px;
        width: 200px;
    }
    .icon-left, .icon-right {
        width: 18px;
        height: 18px;
    }
}



/* END Recommendation meter*/



/* KARUSELLI */ 
.carousel-container {
    position: relative;
    max-width: 300px;
    margin: auto;
}

.carousel-item {
    display: none;
    text-align: center;
}

.active {
    display: block;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}
/* Indicators */
.carousel-indicators {
    text-align: center;
    position: absolute;
    bottom: 10px;
    width: 100%;
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active-dot, .dot:hover {
    background-color: #2629c2;
}

/* Piilota zoom-nappulat oletuksena */
.leaflet-control-zoom {
    display: block;
}

/* Näytä zoom-nappulat mobiililaitteilla */
@media (max-width: 768px) {
    .leaflet-control-zoom {
        display: none;
    }
}