﻿
body {
}

.map-shell {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}

.map-overlay-cargando {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Por encima de los markers/popups de Mapbox, que usan hasta z-index 10000 aca mismo. */
    z-index: 20000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.1rem 1.6rem;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.75);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.35);
    pointer-events: none;
}

.map-overlay-controls {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
}

.map-overlay-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-fullscreen-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.map-fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.04);
}

.map-fullscreen-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 2px;
}

.map-fullscreen-label {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.map-last-update {
    margin: 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

:fullscreen .map-shell {
    border-radius: 0;
}

/*as*/

.marker-labelVD {
    position: absolute;
    left: 48%;
    transform: translateX(-50%);
    font-size: 12px;
    color: black;
    font-weight: bold;
    padding: 0px 1px;
    bottom: -10px;
    background-color: #ffffff96;
}


.marker-Vendedor {
    background-image: var(--marker-vendedor-url) !important;
    background-size: contain;
    width: var(--marker-vendedor-size) !important;
    height: var(--marker-vendedor-size) !important;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
}

.marker-Vendedor-Amarillo.mapboxgl-marker.mapboxgl-marker-anchor-center {
    z-index: 10000;
}
.marker-Vendedor-Rojo.mapboxgl-marker.mapboxgl-marker-anchor-center {
    z-index: 10000;
}
.marker-Vendedor-Azul.mapboxgl-marker.mapboxgl-marker-anchor-center {
    z-index: 10000;
}



.marker-Vendedor-Amarillo {
    background-image: var(--marker-vendedor-amarillo-url) !important;
    background-size: contain;
    width: var(--marker-vendedor-size) !important;
    height: var(--marker-vendedor-size) !important;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
}

.marker-Vendedor-Rojo {
    background-image: var(--marker-vendedor-rojo-url) !important;
    background-size: contain;
    width: var(--marker-vendedor-size) !important;
    height: var(--marker-vendedor-size) !important;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
}

.marker-Vendedor-Azul {
    background-image: var(--marker-vendedor-azul-url) !important;
    background-size: contain;
    width: var(--marker-vendedor-size) !important;
    height: var(--marker-vendedor-size) !important;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
}



#marker-VendedorID {
    background-image: var(--marker-vendedor-url) !important;
    background-size: contain;
    width: var(--marker-vendedor-size) !important;
    height: var(--marker-vendedor-size) !important;
    border-radius: 50%;
    cursor: pointer;
}
/* Clase para el marker personalizado */
.marker-Fletero_CD {
    /* background-image: url(https://cdn-icons-png.flaticon.com/512/2555/2555001.png) !important; */
    background-image: var(--marker-fletero-cd-url) !important;
    background-size: contain;
    width: var(--marker-fletero-cd-width) !important;
    height: var(--marker-fletero-cd-height) !important;
    /*border-radius: 50%;*/
    cursor: pointer;
    z-index: 10000;
}

/* Clase para el label/texto */
.marker-label {
    position: absolute;
    top: 12px;
    left: 61%;
    transform: translateX(-50%);
    font-size: 12px;
    color: white;
    font-weight: bold;
    background-color: rgb(0 0 0 / 35%);
    padding: 0px 1px;
}




/*-ñ-----*/

#verHojaDeControl {
    color: snow;
    text-align: center;
    font-size: large;
    font-weight: 600;
    background-color: cornflowerblue;
}

.marker-Fletero_CD.mapboxgl-marker.mapboxgl-marker-anchor-center {
    z-index: 10000;
}

.mapboxgl-popup.mapboxgl-popup-anchor-bottom {
    z-index: 10000;
}

.mapboxgl-popup.mapboxgl-popup-anchor-top {
    z-index: 10000;
}

.mapboxgl-popup mapboxgl-popup-anchor-top-left {
    z-index: 10000;
}

.mapboxgl-popup.mapboxgl-popup-anchor-top {
    z-index: 10000;
}

.mapboxgl-popup.mapboxgl-popup-anchor-right {
    z-index: 10000;
}

.mapboxgl-popup.mapboxgl-popup-anchor-left {
    z-index: 10000;
}

.mapboxgl-popup mapboxgl-popup-anchor-top-left {
    z-index: 10000;
}

.mapboxgl-popup mapboxgl-popup-anchor-bottom-left {
    z-index: 10000;
}

.marker-Distrisur {
    background-image: url(https://distrisuronline.com/images/favicon-96x96.png) !important;
    background-size: contain;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
}

svg {
    width: 21px;
    height: 19px;
    z-index: 10;
}


/*.marker-Fletero_CD {
    background-image: url(https://distrisuronline.com/images/fleteroCD01_icon.png) !important;
    background-size: contain;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
}*/

.marker-Cliente,
.marker-Cliente-lsAllClientesSinBaja {
    background-image: url("https://imgs.search.brave.com/vBsDQvrE8jyjnkbYg2YFmWZlhpe1TzsXG5T7puPgcQE/rs:fit:860:0:0:0/g:ce/aHR0cHM6Ly9wbmdp/bWcuY29tL3VwbG9h/ZHMvZ29vZ2xlX21h/cHNfcGluL3NtYWxs/L2dvb2dsZV9tYXBz/X3Bpbl9QTkcxNC5w/bmc");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: var(--marker-cliente-size) !important;
    height: var(--marker-cliente-size) !important;
    cursor: pointer;
    z-index: 100 !important;
    opacity: var(--marker-cliente-opacity);
}

.marker-Fletero {
    background-image: url(https://images.emojiterra.com/twitter/v12.1.5/512px/1f535.png) !important;
    background-size: contain;
    width: var(--marker-fletero-size) !important;
    height: var(--marker-fletero-size) !important;
    border: 1px solid white;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    /*filter: hue-rotate(100deg) brightness(100%) saturate(100%);*/
}

    .marker-Fletero::before {
        content: '';
        position: absolute;
        top: -10px;
        left: -10px;
        bottom: -10px;
        right: -10px;
        width: 30px;
        height: 30px;
        background-color: transparent;
        border-radius: 50%;
        cursor: pointer;
    }

.ultimoMarkerFletero {
    background-image: url(https://cdn-icons-png.flaticon.com/512/2555/2555001.png) !important;
    width: var(--ultimo-marker-fletero-width) !important;
    height: var(--ultimo-marker-fletero-height) !important;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    border: none;
}

.mapboxgl-popup {
    max-width: 200px;
}

.mapboxgl-popup-content {
    text-align: center;
    font-family: 'Open Sans', sans-serif;
}

.mapboxgl-marker mapboxgl-marker-anchor-center marker-Fletero marker-Flet {
    z-index: 10;
}

.mapboxgl-popup mapboxgl-popup-anchor-left {
    z-index: 100;
}




/*inputs del control directions mapbox*/
.mapboxgl-ctrl-top-left {
    left: 0;
    top: 0;
    /*color: #ffffff00;*/
    color: black;
    touch-action: none;
    height: 0px;
    width: 0px;
}

    .mapboxgl-ctrl-top-left .mapboxgl-ctrl {
        float: left;
        margin: 10px 0 0 10px;
        /*color: #ffffff00;*/
        color: black;
        height: 0px;
        width: 0px;
        touch-action: none;
    }

.mapbox-directions-step-maneuver {
    color: transparent;
    top: -10px;
    right: -100px;
    position: absolute !important;
}

.mapbox-directions-component mapbox-directions-route-summary {
    background-image: url(img/gps.png) !important;
    position: relative;
}

@keyframes moveUpDown {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px); /* Sube 10 pixeles */
    }

    100% {
        transform: translateY(0);
    }
}

.mapbox-directions-component mapbox-directions-route-summary, h1 {
    background-image: url(imgs/empleado-con-una-indicación-de-flecha-de-dirección-izquierda2.png) !important;
    /*    background-image: url(https://us.123rf.com/450wm/get4net/get4net2111/get4net211102019/176714185-empleado-con-una-indicaci%C3%B3n-de-flecha-de-direcci%C3%B3n-izquierda.jpg?ver=6) !important;*/
    background-size: contain;
    height: 70px;
    width: 71px;
    color: transparent;
    filter: saturate(150%);
    z-index: 100 !important;
    /*animation: moveUpDown 2s infinite;*/
}


.mapbox-directions-component mapbox-directions-route-summary, span {
    font-size: large;
    margin-left: 4px;
    font-weight: bold;
    /*ocultar tiempo de viaje*/
    /*display: none;*/
}



.mapbox-directions-steps {
    color: transparent;
}

.mapboxgl-marker {
    z-index: 1;
}

.mapboxgl-popup-anchor-bottom {
    z-index: 1000;
}

.mapboxgl-popup-anchor-top, .mapboxgl-popup-anchor-top-left, .mapboxgl-popup-anchor-top-right {
    z-index: 1000;
}

.mapboxgl-popup-anchor-bottom, .mapboxgl-popup-anchor-bottom-left, .mapboxgl-popup-anchor-bottom-right {
    z-index: 1000;
}

.mapboxgl-popup-anchor-left {
    z-index: 1000;
}

.mapboxgl-popup-anchor-right {
    z-index: 100;
}
