/* Güncelleme: 26.04.2026 15:45 (Europe/Istanbul) */

.sp-module:has(.mod-leaflet-rota) > .sp-module-title {
    display: none;
}

.mod-leaflet-rota.mlr-leaflet-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: stretch;
    width: 100%;
    /* margin: 18px 0; */
}

#map-container {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
}

#googleMap {
    display: block;
    width: 100%;
    height: 420px;
    min-height: 420px;
    border-radius: 0 0 14px 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-top: 0;
    background: #f3f4f6;
    position: relative;
    z-index: 1;
}

/* Harita zemin renk ayarı - denizleri daha canlı maviye yaklaştırır */
#googleMap .leaflet-tile-pane {
    filter: saturate(1.35) hue-rotate(8deg) brightness(1.03) contrast(1.02);
}

/* Leaflet artı/eksi zoom butonları soldan sağa alınır */
#googleMap .leaflet-top.leaflet-left {
    top: 12px;
    right: 12px;
    left: auto;
    bottom: auto;
}

#googleMap .leaflet-left .leaflet-control {
    margin-left: 0;
    margin-right: 0;
}

#googleMap .leaflet-top .leaflet-control {
    margin-top: 0;
    margin-bottom: 0;
}

#toggleZoom {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1002;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.96);
    color: #111827;
    box-shadow: 0 3px 12px rgba(0,0,0,0.20);
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

#toggleZoom:hover {
    background: #ffffff;
}

#toggleZoom i {
    font-size: 16px;
    line-height: 1;
    pointer-events: none;
}

#beyazparlama.beyazparlama {
    position: absolute;
    inset: 0;
    z-index: 1001;
    pointer-events: none;
    border-radius: 0 0 14px 14px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45);
}

#map-container.locked #beyazparlama.beyazparlama {
    pointer-events: auto;
    cursor: default;
    background: rgba(255,255,255,0.01);
}

.mod-leaflet-rota .mlr-info {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 0;
    padding: 5px 10px;
    background: #050505;
    border: 1px solid #050505;
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    box-sizing: border-box;
}

.mod-leaflet-rota .mlr-info-text {
    min-width: 0;
    padding-right: 2px;
    height: 38px;
}

.mod-leaflet-rota .mlr-info-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    flex: 0 0 auto;
    align-self: center;
}

.mod-leaflet-rota .mlr-info-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 8px;
    background: rgba(255,255,255,0.10);
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.mod-leaflet-rota .mlr-info-btn:hover {
    background: rgba(255,255,255,0.20);
    border-color: rgba(255,255,255,0.34);
}

.mod-leaflet-rota .mlr-info-btn i {
    font-size: 18px;
    line-height: 1;
    pointer-events: none;
}

.mod-leaflet-rota .mlr-route-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mod-leaflet-rota .mlr-info strong {
    display: inline;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.35;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mod-leaflet-rota .mlr-info .mlr-arrow {
    display: inline-flex;
    flex: 0 0 auto;
    color: rgba(255,255,255,0.72);
    font-weight: 700;
}

.mod-leaflet-rota .mlr-info .mlr-route-detail {
    display: block;
    margin-top: 1px;
    min-height: 18px;
    color: rgba(255,255,255,0.78);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 500;
}

.mod-leaflet-rota .mlr-warning {
    color: #fca5a5;
    font-weight: 600;
}

.mod-leaflet-rota .mlr-muted {
    color: rgba(255,255,255,0.72);
    font-weight: 500;
}

.mod-leaflet-rota .mlr-hotel-link {
    display: inline-block;
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
}

.mod-leaflet-rota .mlr-hotel-link:hover {
    text-decoration: underline;
}

/* Alma / bırakma sürekli görünen etiket */
.leaflet-tooltip.mlr-point-label {
    background: rgba(5, 5, 5, 0.88);
    color: #ffffff;
    border: 0;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    white-space: nowrap;
}

.leaflet-tooltip.mlr-point-label::before {
    display: none;
}

.leaflet-tooltip.mlr-start-label {
    border-left: 4px solid rgb(0, 123, 255);
}

.leaflet-tooltip.mlr-end-label {
    border-left: 4px solid rgb(255, 152, 0);
}

@media (max-width: 767px) {
    .mod-leaflet-rota.mlr-leaflet-shell {
        grid-template-columns: 1fr;
    }

    .mod-leaflet-rota .mlr-info {
        min-height: auto;
    }
}

@media (max-width: 575px) {
    #googleMap {
        height: 340px;
        min-height: 340px;
        border-radius: 0 0 10px 10px;
    }

    #beyazparlama.beyazparlama {
        border-radius: 0 0 10px 10px;
    }

    .mod-leaflet-rota .mlr-info {
        padding: 8px 11px 9px;
        gap: 6px;
    }

    .mod-leaflet-rota .mlr-info strong {
        font-size: 13px;
    }

    .mod-leaflet-rota .mlr-info .mlr-route-detail {
        font-size: 12px;
    }

    .mod-leaflet-rota .mlr-info-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }

    .mod-leaflet-rota .mlr-info-btn i {
        font-size: 18px;
    }

    .leaflet-tooltip.mlr-point-label {
        font-size: 11px;
        padding: 3px 7px;
    }
}