/* CSS SOLO PARA LA VISTA PÚBLICA DEL MAPA */
body { margin-top: 0 !important; padding-top: 0 !important; }

.container {
    max-width: 1100px;
    width: 95%;
    margin: 0 auto;
    padding: 32px 16px 32px 16px;
    background: none;
    border-radius: 0;
    box-shadow: none;
}

h1, h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.map-container {
  width: 800px;
  max-width: 95vw;
  height: 500px;
  margin: 40px auto;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #ccc;
  background: #eaeaea;
  box-shadow: 0 4px 15px rgba(0,0,0,0.10);
  position: relative;
}

#map {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    z-index: 1;
    position: relative;
}

/* Solo para el formulario de registro: forzar tamaño del mapa */
.registro-mapa {
    width: 100%;
    height: 400px;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    z-index: 1;
    position: relative;
    border-radius: 8px;
}

/* Forzar visibilidad de controles Leaflet */
.leaflet-control {
    z-index: 1000 !important;
}

@media (max-width: 900px) {
    .container {
        width: 95%;
        padding: 15px;
    }
    .map-container {
        height: 300px;
    }
}

.leaflet-container {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 auto;
    border-radius: 8px;
    z-index: 2;
    overflow: hidden;
}

.leaflet-pane, .leaflet-tile, .leaflet-marker-icon, .leaflet-marker-shadow {
    image-rendering: auto;
}

#buscador {
    display: block;
    margin: 0 auto 1em auto;
    padding: 0.5em;
    width: 100%;
    max-width: 400px;
    font-size: 1em;
    border-radius: 4px;
    border: 1px solid #bbb;
}

form {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    padding: 24px 20px 20px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
form label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
}
form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="number"],
form textarea,
form select {
    width: 100%;
    padding: 8px 10px;
    margin-top: 4px;
    border: 1px solid #bbb;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    background: #f8f8f8;
}
form textarea {
    min-height: 60px;
    resize: vertical;
}
form button[type="submit"] {
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 24px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}
form button[type="submit"]:hover {
    background: #217dbb;
}
