﻿/* RESET SELECT */

/* configuracion para leyendas de Clientes Por Ruta 06/05/2026 */
.leyenda {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    font-size: 14px;
}

.panel {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-container-web {
    position: relative;
    width: 100%;
    height: 100vh;
}

.panel button {
    background: #1677ff;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: 0.3s;
}

    .panel button:hover {
        background: #0056d6;
        transform: scale(1.05);
    }

.item-leyenda {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.color-box {
    width: 15px;
    height: 15px;
    margin-right: 8px;
    border-radius: 3px;
}
/* configuracion para leyendas de Clientes Por Ruta */
.filtros {
    backdrop-filter: blur(6px);
}

.filtros {
    position: absolute;
    top: 15px;
    left: 70px; /* 👈 evita chocar con botones + - */
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    padding: 12px 15px;
    border-radius: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

    .filtros select,
    .filtros button {
        padding: 6px 10px;
        border-radius: 6px;
        border: 1px solid #ccc;
        font-size: 14px;
    }

    .filtros button {
        background: #007bff;
        color: white;
        border: none;
        cursor: pointer;
    }

        .filtros button:hover {
            background: #0056b3;
        }

select {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 18px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23555' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><polygon points='0,0 20,0 10,10'/></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
}
    /* FOCUS */

    select:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 5px rgba(0,123,255,0.5);
    }


/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* GENERAL */
body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    padding: 20px;
}

/* CONTENEDOR PRINCIPAL */
.container {
    max-width: 500px;
    margin: auto;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0,0,0,0.15);
}

/* TITULOS */
h1, h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* INPUTS */
input, select {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 18px;
    box-sizing: border-box;
    background: white;
}
    /* EFECTO FOCUS */ 
    input:focus, select:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 5px rgba(0,123,255,0.5);
    }

.select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* CONTENEDOR CON FLECHA */
.select-container {
    position: relative;
}

    /* FLECHA PERSONALIZADA */
    .select-container::after {
        content: "▼";
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        color: #555;
        font-size: 14px;
    }
    select option[value=""] {
        color: #999;
    }

    
/* BOTONES */
button {
    width: 100%;
    padding: 15px;
    margin-top: 12px;
    border: none;
    border-radius: 8px;
    background: #007bff;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

    button:hover {
        opacity: 0.9;
    }

/* MAPA */
#map {
    width: 100%;
    height: 70vh;
    border-radius: 12px;
    margin-top: 15px;
}

/* TEXTO GPS */
#gps {
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
}

/* TABLET */
@media (max-width:1024px) {
    .container {
        max-width: 700px;
    }

    button, input {
        font-size: 20px;
    }
}

/* MOVIL */
@media (max-width:768px) {

    select {
        font-size: 20px;
        padding: 18px;
    }
    body {
        padding: 10px;
    }

    .container {
        width: 100%;
        padding: 20px;
    }

    h1, h2 {
        font-size: 24px;
    }

    input {
        font-size: 20px;
        padding: 18px;
    }

    button {
        font-size: 20px;
        padding: 18px;
    }

    #map {
        height: 60vh;
    }

    .filtros {
        top: 10px;
        left: 10px;
        right: 10px;
        flex-direction: column;
        align-items: stretch;
    }

        .filtros select,
        .filtros button {
            width: 100%;
        }

    .panel {
        top: 10px;
        right: 10px;
    }

        .panel button {
            padding: 10px 14px;
            font-size: 13px;
        }

}
