#map-mapa {
    height: 600px;
    width: 68%; /* 70% de ancho */
    margin: 0 auto; /* Centrado horizontal */
    border: 2px solid #d3d3d3; /* Borde gris */
    border-radius: 8px; /* Esquinas redondeadas */
    z-index: 2;
}

.map-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo semi-transparente */
    z-index: 1000;
    overflow: auto;
}

.map-modal-content {
    position: relative;
    background-color: white;
    margin: 10% auto; /* 10% desde el top y centrado horizontalmente */
    padding: 20px;
    border: 1px solid #888;
    width: 70%; /* Podría ajustarse según sea necesario */
    height: auto;
    border-radius: 8px; /* Esquinas redondeadas */
}

.map-cerrar {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

/* 
.map-modal-body {
    display: flex;
    height: 100%;
}

.map-modal-image {
    flex: 1;
    padding: 10px;
    background-color: #d3d3d3;
}

.map-modal-image img {
    width: 100%;
    height: auto;
    display: block;
}

.map-modal-info {
    flex: 2;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.map-modal-info p, .modal-info h3 {
    margin: 10px 0;
}

.map-modal-info .centrado-justificado {
    text-align: justify;
    text-align-last: center;
}

*/

.map-botones {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.map-modal-info button {
    width: 48%;
    padding: 20px; /* Tamaño doble */
    font-size: 18px; /* Tamaño de texto más grande */
    cursor: pointer;
    border: 1px solid #000; /* Borde negro claro */
    border-radius: 4px;
    transition: transform 0.2s ease; /* Transición para el hover */
}

.map-modal-info button:hover {
    transform: translateY(-5px); /* Sobresalir al hacer hover */
}

.map-btn-celeste {
    background-color: #00BFFF;
    color: white;
}

.map-btn-amarillo {
    background-color: #FFD700;
    color: black;
}

@media (max-width: 1044px) {
    .map-modal-content {
        width: 85%; /* Ajustar el ancho para pantallas pequeñas */
        height: 75%; /* Ajustar la altura a 50% */
        margin: 25% auto; /* Centrar con más margen superior */
        overflow: scroll; /* Hacer que el contenido sea desplazable */
    }

    .map-modal-body {
        flex-direction: column;
        width: 90%;
        padding-left: 1%;
    }

    .map-modal-image {
        order: 1; /* Posiciona la imagen arriba */
        width: 100%;
    }

    .map-modal-info {
        order: 2;
        width: 100%;
        text-align: left; /* Alinear a la izquierda */
    }

    .map-botones {
        flex-direction: row; /* Cambiar a fila */
        justify-content: space-between; /* Separar los botones */
        align-items: center; /* Alinear los botones en el centro */
    }

    .map-modal-info button {
        width: 48%; /* Mantener los botones uno al lado del otro */
        margin-bottom: 10px;
    }
    #map-mapa {
        height: 400px;
        width: 90%;
        margin: 30% auto;
        border: 2px solid #d3d3d3;
        border-radius: 8px;
    }
}


/* Estilos adicionales para el icono del mapa */
.leaflet-marker-icon {
    border: 2px solid black; /* Borde negro */
    border-radius: 50%; /* Borde circular */
    background-color: rgba(255, 255, 255, 0.8); /* Fondo con 80% de transparencia */
}


.map-toggle-button {
    background: rgba(255, 255, 255, 0.85);
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.map-btn-bloquear {
    border: none;
    background: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

.map-btn-bloquear:hover {
    color: #007bff;
}
