/* Dosya Yolu: /modules/mod_maplibre/assets/css/maplibre-rota.css */
/* Güncelleme: 30.04.2026 09:21 (Europe/Istanbul) */

.sp-module:has(.mod-maplibre-rota) > .sp-module-title {
    display: none;
}
.maplibregl-ctrl-bottom-right {
    display: none;
}

.mod-maplibre-rota.mlr-maplibre-shell {
    display: grid;
    grid-template-columns: 1fr;
    position: relative;
    width: 100%;
    overflow: hidden;
    background: transparent !important;
}

.mod-maplibre-rota .mlr-info {
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    right: 0;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px 8px 14px;
    color: #fff;
    background: rgb(5 5 5);
    border-radius: 0;
    box-shadow: #000000 0 0px 15px -5px;
    pointer-events: none;
}

.mod-maplibre-rota .mlr-info-text {
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
    text-shadow: 0 1px 0 rgba(0,0,0,.15);
    overflow: hidden;
}

.mod-maplibre-rota .mlr-route-line {
    display: flex;
    align-items: center;
    gap: 7px;
}

.mod-maplibre-rota .mlr-route-line strong {
    display: inline;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.35;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-weight: normal;
}


.mod-maplibre-rota .mlr-arrow {
    opacity: .72;
}

.mod-maplibre-rota .mlr-route-detail,
.mod-maplibre-rota .mlr-muted {
    font-size: 12px;
    font-weight: 500;
    opacity: .88;
}

.mod-maplibre-rota .mlr-warning {
    color: #ffdf7e;
    font-weight: 600;
}

.mod-maplibre-rota .mlr-info-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: auto;
}

.mod-maplibre-rota .mlr-info-btn,
.mod-maplibre-rota .mlr-toggle-zoom {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgb(0 0 0);
    color: #fff;
    cursor: pointer;
    padding: 0;
    box-shadow: #ffffff 0 0px 10px -2px;
}

.mod-maplibre-rota .mlr-info-btn:hover,
.mod-maplibre-rota .mlr-toggle-zoom:hover {
    background: rgb(255 255 255 / 14%);
}

.mod-maplibre-rota .mlr-map-wrap {
    position: relative;
    overflow: hidden;
    z-index: 2;
    background: transparent !important;
    mask-image: linear-gradient(to bottom, #000000 60px, #000000db 70%, transparent 100%);
    width: 100%;
    height: var(--mlr-map-height, 450px);
}

.mod-maplibre-rota .mlr-map-wrap.locked {
    transition: mask-image 10s ease-in-out;
}

.mod-maplibre-rota .mlr-map-wrap.locked:hover {
    mask-image: linear-gradient(to bottom, black 60%, transparent 95%);
    transition: mask-image 10s ease-in-out;
}

.mod-maplibre-rota .mlr-map-wrap.unlocked,
.mod-maplibre-rota .mlr-map-wrap:not(.locked) {
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    transition: mask-image 10s ease-in-out;
}

.mod-maplibre-rota .mlr-map,
.mod-maplibre-rota .maplibregl-map,
.mod-maplibre-rota .maplibregl-canvas-container,
.mod-maplibre-rota .maplibregl-canvas {
    background: transparent !important;
}

.mod-maplibre-rota .mlr-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: mlrFadeInSlow 1.5s ease .35s forwards;
}

@keyframes mlrFadeInSlow {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mod-maplibre-rota .mlr-toggle-zoom {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 4;
    cursor: pointer;
    border: none;
    background: none;
    opacity: 0;
    visibility: hidden;
    transition: all 1s ease;
    border-radius: 0;
}

.mod-maplibre-rota .mlr-toggle-zoom:hover {
    background: none;
}

.mod-maplibre-rota .mlr-toggle-zoom .fa-solid {
    font-size: xx-large;
    color: #ffffff;
    background: #00b0ffc7;
    box-shadow: 0 0 25px 25px #00b0ffc7;
    border-radius: 25px;
}

.mod-maplibre-rota .mlr-map-wrap.locked:hover .mlr-toggle-zoom {
    opacity: 1;
    visibility: visible;
    transition: all 1s ease;
}

.mod-maplibre-rota .mlr-map-wrap:not(.locked) .mlr-toggle-zoom {
    opacity: 0;
    visibility: hidden;
    transition: all 1s ease;
}

.mod-maplibre-rota .maplibregl-ctrl-top-right {
    top: 60px;
}

.mod-maplibre-rota .mlr-leaflet-like-marker {
    position: relative;
    width: 25px;
    height: 0;
    top: -42px;
    filter: drop-shadow(0 4px 7px rgba(0,0,0,.22));
    transform-origin: 50% 100%;
    z-index: 50;
}

.mod-maplibre-rota .mlr-leaflet-like-marker.mlr-location-pin {
    pointer-events: auto;
}

.mod-maplibre-rota .mlr-pin-img {
    display: block;
    width: 25px;
    height: 41px;
    user-select: none;
    pointer-events: auto;
}

.mod-maplibre-rota .mlr-pin-is-blue .mlr-pin-img,
.mod-maplibre-rota .mlr-pin-is-green .mlr-pin-img {
    filter: none;
}


.mod-maplibre-rota .mlr-point-label {
    position: absolute;
    left: 50%;
    bottom: 5px;
    transform: translateX(-50%);
    max-width: 170px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(255, 255, 255, .96);
    color: #172033;
    border-left: 4px solid rgb(0, 123, 255);
    border-radius: 6px;
    padding: 3px 7px 4px;
    box-shadow: 0 5px 14px rgba(0,0,0,.16);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    pointer-events: none;
}
.mod-maplibre-rota .mlr-circle-marker {
    border: 2px solid rgb(0, 176, 255);
    border-radius: 50%;
    opacity: .88;
    box-shadow: 0 2px 7px rgba(0,0,0,.25);
    cursor: pointer;
}

.mod-maplibre-rota .mlr-hotel-dot,
.mod-maplibre-rota .mlr-region-dot {
    opacity: .88;
    box-shadow: 0 2px 7px rgba(0,0,0,.25);
}

.mod-maplibre-rota .mlr-hotel-dot {
    z-index: 20;
}

.mod-maplibre-rota .mlr-region-dot {
    z-index: 30;
}

.mod-maplibre-rota .mlr-hotel-dot.is-selected {
    opacity: .95;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, .20), 0 2px 8px rgba(0,0,0,.25);
}

.mod-maplibre-rota .maplibregl-popup {
    z-index: 9999 !important;
}

.mod-maplibre-rota .maplibregl-popup-content {
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    box-shadow: 0 8px 22px rgba(0,0,0,.18);
}

.mod-maplibre-rota .maplibregl-popup-tip {
    display: none;
}

.mod-maplibre-rota .mlr-hotel-link {
    color: #111827;
    text-decoration: none;
    display: inline-block;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mod-maplibre-rota .mlr-hotel-link:hover {
    color: #007bff;
    text-decoration: none;
}

@media (max-width: 575px) {
    .mod-maplibre-rota .mlr-map-wrap {
        height: min(var(--mlr-map-height, 420px), 72vh);
    }

    .mod-maplibre-rota .mlr-info {
        left: 0;
        right: 0;
        top: 0;
        padding: 7px 8px 7px 10px;
    }

    .mod-maplibre-rota .mlr-info-text {
        font-size: 12px;
    }

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

    .mod-maplibre-rota .maplibregl-ctrl-top-right {
        top: 54px;
    }
}

.mod-maplibre-rota .mlr-location-dot {
    position: relative;
    border-width: 3px !important;
    border-color: #ffffff !important;
    opacity: .96;
    box-shadow: 0 3px 10px rgba(0,0,0,.34);
}

.mod-maplibre-rota .mlr-location-green {
    background-color: #38b245 !important;
}

.mod-maplibre-rota .mlr-location-blue {
    background-color: rgb(0, 176, 255) !important;
}

.mod-maplibre-rota .mlr-location-label {
    bottom: 46px;
}

