

/* Contenedor de paradas cercanas */
#location-container {
    position: fixed;
    left: 50%;
    top: 10%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 10000;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#location-container.show {
    display: block;
    opacity: 1;
    transform: scale(1) translate(-50%, -50%);
}

/* Estilo para las paradas dentro del contenedor */
#location-content .location-result-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 12px;
    background-color: rgba(249, 249, 249, 0.85);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Alineación de los íconos y textos */
#location-content .location-result-item i,
#location-content .location-result-item img {
    margin-right: 10px;
}

.location-result-item span {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    flex-grow: 1;
    display: block;
    white-space: nowrap; /* Evita que el nombre de la parada se divida en varias líneas */
    overflow: hidden;
    text-overflow: ellipsis; /* Muestra puntos suspensivos si el nombre es muy largo */
}

/* Contenedor para detalles (distancia y tiempo) */
.location-result-item .location-details {
    display: flex;
    flex-direction: column;
    margin-left: auto;
    max-width: 70px; /* Reducir más el ancho disponible para la distancia y tiempo */
    text-align: right; /* Alinear todo el texto a la derecha */
}

/* Filas para distancia y tiempo */
.location-result-item .location-details div {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2px;
}

/* Asegura que los íconos y el texto estén alineados correctamente */
.location-result-item .location-details i {
    font-size: 14px; /* Reducir el tamaño de los íconos */
    margin-right: 0;
}

/* Reduce el tamaño de los textos para que quepan bien */
.location-result-item .location-details span {
    font-size: 14px;
    font-weight: 500;
}

/* Estilo para el título de "Paradas Cercanas" */
#location-container h3 {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

#location-container h3 i {
    margin-right: 10px;
    font-size: 28px;
    vertical-align: middle;
}

/* Estilo para el ícono de los pasos */
.location-result-item .fa-shoe-prints {
    font-size: 20px;
    margin-right: 8px;
}

/* Estilo para el botón de cerrar en la esquina superior derecha */
#close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
}

#close-button:hover {
    color: #ff0000;
}
