:root {
    --swp-border-color: var(--bs-gray);
    --swp-border-size: 1px;
    --swp-border-radius: 5px;
    --swp-control-bg-color: #FFF;
}


.route-label {
    font-weight: bold;
}
.route-label-0 {
    color: white;
    background: orange;
    border-color: white;
}
.route-label-1 {
    color: white;
    background: blue;
    border-color: white;
}


.leaflet-bar a.leaflet-disabled {
    background: transparent;
}


.leaflet-center {
    left: 50%;
    transform: translate(-50%, 0%);
}
.leaflet-middle {
    top: 50%;
    position: absolute;
    z-index: 1000;
    pointer-events: none;
    transform: translate(0%, -50%);
}
.leaflet-center.leaflet-middle {
  transform: translate(-50%, -50%);
}
.leaflet-control-button .icon {
    max-width: calc(100% - 8px);
    max-height: calc(100% - 8px);
}
.leaflet-top.leaflet-center {
    left: 50%;
    transform: translate(-50%, 0%);
    width: 60%;
    max-width: 500px;
    display: flex;
    margin: 10px;
}
.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar, .leaflet-control-container .leaflet-control-simpleMapScreenshoter, .leaflet-container .leaflet-control-gps {
    border: var(--swp-border-size) solid var(--swp-border-color);
    border-radius: var(--swp-border-radius);
    background-color: var(--swp-control-bg-color);
}
.leaflet-control-layers-list {
    padding-left: 8px;
}
.leaflet-control-layers-base label {
    display: flex;
    cursor: pointer;
}
.leaflet-control-layers-base > div:not(:last-child) {
    margin-bottom: 8px;
}
.leaflet-control-layers-base input:checked ~ label, .leaflet-control-layers-base label:hover {
    background: #999;
    color: #fff;
}
.leaflet-control-layers-base label input {
    display: none;
}
.leaflet-control-layers-base label span {
    flex: 1;
}
.leaflet-control-layers-base label > span {
    display: none;
    justify-content: center;
    flex-direction: column;
    padding: 8px;
}
.leaflet-control-layers-base label:hover > span {
    display: flex;
}
.leaflet-control-layers-base label img {
    width: 64px;
}
.leaflet-top.leaflet-right {
    z-index: 1001;
}
.leaflet-control-layers-toggle {
    padding: 4px;
    width: 48px;
    height: 48px;
}
.leaflet-control-layers-toggle img {
    max-width: 100%;
}
.leaflet-control-layers-base span {
    display: none;
}
.leaflet-control-layers:hover span {
    display: flex;
}
.leaflet-control-layers-base label > span {
    padding-left: 0;
}
.leaflet-control-layers:hover .leaflet-control-layers-base label > span {
    padding-left: 8px;
}
.leaflet-top.leaflet-right label img {
    border: 1px solid transparent;
    opacity: .5;
}
.leaflet-top.leaflet-right label:hover img, .leaflet-top.leaflet-right input:checked ~ label img {
    border: 1px solid #999;
    opacity: 1;
}
.leaflet-top.leaflet-right input {
    display: none;
}
.leaflet-control-layers-list {
    padding: 0;
}

.leaflet-control-gps {
    width: 30px !important;
    box-sizing: content-box;
    min-height: 30px;
}

.gps-button {
    width: 22px;
    height: 22px;
    outline-style: none;
    box-sizing: content-box;
    position: relative;
    top: -1px;
    left: 0px;
}
.leaflet-overlay-pane {
    /* gps pointer */
    z-index: 700;
}
.leaflet-top.leaflet-left .leaflet-control {
    width: 30px;
    min-height: 30px;
    box-sizing: content-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.school-label {
    display: none;
    opacity: 1;
    padding: 2px;
    border: 1px solid black;
    box-shadow: unset;
    font-weight: bold;
    font-size: 10px;
    margin-top: 8px;
}

.blinking {
    animation: blink 1s infinite;
}
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.print .school-label, [data-zoom="14"] .school-label, [data-zoom="15"] .school-label, [data-zoom="16"] .school-label, [data-zoom="17"] .school-label, [data-zoom="18"] .school-label, [data-zoom="19"] .school-label, [data-zoom="20"] .school-label {
    display: block;
}

.leaflet-container a.leaflet-popup-close-button {
    top: .75rem;
    right: .75rem;
    font-size: 24px;
}

/* sreenshoter */
.leaflet-control-simpleMapScreenshoter a {
    background-color: transparent !important;
    border: 0 !important;
}


/* leaflet cluster */
.mycluster {
    color: white;
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    font-weight: 700;
    font-size: .75rem;
}
.mycluster .circle {
    position: relative;
    left: -3px;
    top: 2px;
}

/* overlay control */ 

.leaflet-legend-item span {
    line-height: 20px;
    font-size: 14px;
}
.leaflet-legend-item i {
    width: 20px;
    height: 20px;
    padding:0;
}
.leaflet-legend-item i img {
    max-width: 100%;
    max-height: 100%;
}
.leaflet-legend-item.inactive > * {
    opacity: .5;
}

/* overlay modal */
.filter-modal h4 {
    margin-bottom: 0;
}



@media (min-height: 640px) and (min-width: 720px) {
    .leaflet-control-layers {
        padding: 8px;
        color: #333;
        background: #fff;
    }
    .leaflet-control-layers:hover {
        padding: 8px;
    }
    .leaflet-control-layers-toggle {
        display: none;
    }
    .leaflet-control-layers-list {
        display: block !important;
    }
}
@media (min-height: 720px) and (min-width: 1024px) {
    .leaflet-top.leaflet-left .leaflet-control {
        width: 40px !important;
        min-height: 40px;
    }
    .leaflet-control-layers-base label img {
        width: 80px;
    }
}
