.custom-mouse-position {
    display: contents;
    width: 400px;
    max-width: 200px; /* Ajusta según sea necesario */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem; /* Tamaño de fuente más manejable */
}

.footer-center-text {
    pointer-events: none; /* evita solapamientos de eventos si quieres */
}

.scale {
    position: fixed;
    bottom: 4vh;
    left: 50%;
    transform: translateX(-125px); /* resta fija */
    z-index: 1050;
}

.scale .ol-scale-line {
    margin: 0;
    padding: 0;
}

.scale .ol-scale-line-inner {
    max-width: 250px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ol-zoom {
	visibility: hidden;
}

/* Leyenda de la capa */
.draggable_legend {
    position: absolute;
    z-index: 1000;
    bottom: 5%;
	left: 1%;
	backdrop-filter: blur(2px);
	border-radius: 10px;
    box-shadow: 10px 20px 30px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.7);
}

#menu_config {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8); /* Blanco con transparencia */
    backdrop-filter: blur(5px); /* (opcional) para desenfocar detrás */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

input[type="range"] {
    appearance: none;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #0d6efd 0%, #0d6efd 50%, #dee2e6 50%, #dee2e6 100%);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    border-radius: 5px;
    outline: none;
    transition: background 450ms ease-in;
}

/* Barra (pista) */
input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: transparent;
    border-radius: 5px;
}

/* Botón (pulgar) */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    margin-top: -6px;
    width: 18px;
    height: 18px;
    background: #0d6efd;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
    transition: background 0.3s ease;
}

/* Firefox */
input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #0d6efd;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
}
input[type="range"]::-moz-range-track {
    height: 6px;
    background: transparent;
    border-radius: 5px;
}

/* IE (por compatibilidad) */
input[type="range"]::-ms-thumb {
    width: 18px;
    height: 18px;
    background: #0d6efd;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
}
input[type="range"]::-ms-track {
    height: 6px;
    background: transparent;
    border-radius: 5px;
    border-color: transparent;
    color: transparent;
}

.badge {
    --bs-badge-font-weight: normal;
    font-weight: normal !important;
}

.range-tooltip-transparencia {
    position: absolute;
    top: 20px; /* debajo del input */
    transform: translateX(-50%);
    background-color: #0d6efd;
    color: #fff;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    pointer-events: none;
    transition: left 0.1s ease;
    z-index: 10;
}

.range-tooltip-transparencia::after {
    content: none;
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: #0d6efd transparent transparent transparent;
}

/*
    Pop con los grados
*/

/*
.ol-popup {
	position: absolute;
	background-color: #fff;
	color: #333;
	padding: 12px 16px;
	border-radius: 12px;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
	border: 1px solid #ccc;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	font-size: 14px;
    font-weight: bold;
	z-index: 1000;

    width: fit-content; 
	min-width: 120px;          
	max-width: 300px;       
	transition: all 0.2s ease-in-out;
}
.ol-popup-content {
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	min-width: 100px;
	word-wrap: break-word;
}
*/

.ol-popup {
	position: absolute;

	background: rgba(255,255,255,0.92);
	color: #222;

	padding: 8px 28px 8px 12px;

	border-radius: 8px;
	border: 1px solid #bdbdbd;

	box-shadow: 0 3px 10px rgba(0,0,0,0.25);

	font-size: 14px;
	font-weight: 600;
	font-family: 'Segoe UI', sans-serif;

	/* ancho exacto al contenido */
	display: inline-flex;
	align-items: center;

	width: auto;
	min-width: unset;
	max-width: 90vw;

	white-space: nowrap;
}

.ol-popup-content {
    min-width: 0;
	padding: 0;
	margin: 0;
	line-height: 1.2;
}

/* X pequeña */
.ol-popup-closer {
	position: absolute;

	top: 4px;
	right: 7px;

	font-size: 12px;
	font-weight: bold;

	color: #666;
	text-decoration: none;
	line-height: 1;
}

.ol-popup-closer:hover {
	color: #000;
}