/* Barra de estado independiente */
#map-statusbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    font-size: 12px;  /* Reducir tamaño de fuente para ahorrar espacio */
    font-family: "Segoe UI", Arial, sans-serif;
    padding: 4px 14px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 99999;
    pointer-events: none;
    flex-wrap: wrap;
    height: 30px;  /* Reducir el alto de la barra */
}

#map-statusbar .sb-label {
    font-weight: bold;
    color: #a1cfff;
    font-size: 12px; /* Reducir tamaño de las etiquetas */
}

/* Barra gráfica de escala con marcas */
#map-statusbar .scale-bar-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 2px;
}

#map-statusbar .scale-bar {
    position: relative;
    height: 6px;  /* Reducir grosor de la barra */
    background: #ddd;
    width: 200px; /* ancho máximo de la barra */
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

/* Segmentos de la barra, 4 partes con colores alternos */
#map-statusbar .scale-bar-segment {
    height: 100%;
    float: left;
    width: 25%; /* 4 segmentos iguales */
}

/* Colores alternos */
#map-statusbar .scale-bar-segment:nth-child(odd) {
    background: #4a90e2; /* azul */
}

#map-statusbar .scale-bar-segment:nth-child(even) {
    background: #a8c5f7; /* azul más claro */
}

/* Barra rellena con máscara para mostrar solo hasta la distancia */
#map-statusbar .scale-bar-fill-mask {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: white;
    opacity: 0.3;
    pointer-events: none;
}

/* Marcas verticales */
#map-statusbar .scale-bar-mark {
    position: absolute;
    top: -2px;
    width: 2px;
    height: 14px;
    background: #fff;
}

/* Contenedor etiquetas bajo barra */
#map-statusbar .scale-bar-label {
    font-size: 10px; /* Reducir tamaño de la etiqueta para que encaje mejor */
    color: #fff;  /* blanco puro para mejor visibilidad */
    margin-top: 4px;
    width: 200px; /* igual que scale-bar */
    display: flex;
    justify-content: space-between;
    font-family: monospace;
    user-select: none;
    letter-spacing: 0.3px;
}
