/* Reseteo general */
body,
html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Tipografía global */
body {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Botón general */
input[type="submit"] {
    background-color: #54B435;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="submit"]:hover {
    background-color: white;
    color: #54B435;
    border: 2px solid #54B435;
}

/* --- ESTILOS GENERALES PARA FORMULARIOS --- */
.tarjeta-formulario {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tarjeta-formulario h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-container label {
    font-size: 16px;
    margin-bottom: 5px;
    color: #555;
}

.form-container select,
.form-container input[type="text"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.form-container input[type="submit"] {
    background-color: #54B435;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-container input[type="submit"]:hover {
    background-color: white;
    color: #54B435;
    border: 2px solid #54B435;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.leaflet-container {
    background: #f0f0f0; /* Fondo para evitar bordes blancos */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content-wrapper {
    border-radius: 8px !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #ffffff !important;
    color: #333;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.leaflet-popup-content {
    margin: 5px 10px;
}

.leaflet-popup-tip {
    background-color: #ffffff !important;
}

/* === Separación de botones de zoom === */
.leaflet-control-zoom a {
    margin: 5px !important; /* Espaciado entre botones */
    background: #54B435 !important; /* Color de fondo */
    color: white !important; /* Color del texto */
    border: none !important; /* Sin borde */
    font-weight: bold;
    border-radius: 4px; /* Borde redondeado */
    width: 36px; /* Ajusta el ancho de los botones */
    height: 36px; /* Ajusta la altura de los botones */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra */
}

.leaflet-control-zoom a:hover {
    background: #28a745 !important; /* Color de hover */
    color: white !important; /* Color del texto al pasar el ratón */
}

/* Ajustar la posición general del contenedor */
.leaflet-control-zoom {
    position: absolute;
    bottom: -80px; /* Ajusta la distancia desde la parte inferior */
    left: 5px;   /* Ajusta la distancia desde la izquierda */
    flex-direction: column; /* Mantiene los botones en columna */
    gap: 5px; /* Espaciado entre botones */
    z-index: 1000; /* Asegura que esté por encima del contenido del mapa */
}
