/******* map details *******/
.map {
    font-family: 'Georgia', 'Times New Roman', serif;
    max-height: 75vh;
    height: 75vh;
    position: relative;
}

.map-container {
    margin-top: -20px;
    position: relative;
}

.ctrl-zoom-popup {
    position: absolute;
    font-size: 1.7em;
    opacity: 0.8;
    top: 10px;
    left: 50px;
    background-color: white;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #333;
    display: none;
    z-index: 25;
}

.image-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    z-index: 10;
}

.image-marker.start-icon {
    z-index: 15;
}

.custom-marker {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    z-index: 5;
}

/******* Trek map toggle switch *******/
.trek-toggle {
    background-color: rgba(0, 0, 0, 0.759); /* Semi-transparent black background */
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10; /* Ensure it appears above the map */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: 'Arial', sans-serif;
    font-size: 1rem;
    color: #333;
}

.switch {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 50px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: 0.4s;
    border-radius: 20px;
    background-color: #1677c7; /* Blue when toggled */

}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    transform: translateY(-30px);
}

input:checked + .slider:before {
    transform: translateY(0px); /* Move the slider to the right */
}

input:checked + .slider {
    background-color: #f44336; /* Default red */

}

.toggle-label {
    font-size: 0.9rem;
    text-align: center;
    font-family: 'Cymbria', sans-serif;
}

.toggle-label-default {
    color: #4093d7; /* Blue when toggled */
}

.toggle-label-my {
    color: #f44336; /* Red for My Trek */
}