/* =======================================
   ESTILOS DEL FILTRO
======================================= */
.ipacoop-filtro-container {
    background-color: rgba(14, 28, 64, 0.95); /* Azul oscuro con transparencia */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    color: #fff;
    font-family: 'Plus Jakarta Sans', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ipacoop-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.ipacoop-row.dos-columnas {
    flex-wrap: wrap;
}

.ipacoop-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ipacoop-field.full-width {
    width: 100%;
}

.ipacoop-field label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #a0aec0;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.input-icon {
    position: relative;
}

.input-icon svg {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.ipacoop-filtro-container input[type="text"],
.ipacoop-filtro-container select {
    width: 100%;
    background-color: rgba(10, 20, 50, 0.5);
    border: 1px solid rgba(66, 153, 225, 0.3);
    border-radius: 8px;
    /*padding: 0px 15px;*/
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
}

.input-icon input[type="text"] {
    padding-left: 40px;
}

.ipacoop-filtro-container input:focus,
.ipacoop-filtro-container select:focus {
    border-color: #f9c636;
}

.ipacoop-filtro-container select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right .7em top 50%;
    background-size: .65em auto;
}

.ipacoop-filtro-container select option {
    background: #0d1f46;
    color: #fff;
}

.ipacoop-row.actions {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
}

.ipacoop-row.actions button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: #f9c636;
    color: #0e1c40;
}

.btn-primary:hover {
    background-color: #e0b02a;
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* =======================================
   ESTILOS DEL MAPA
======================================= */
.ipacoop-mapa-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    background: #0d1f46; /* Borde interior del contorno si falla carga */
}

.mapa-header {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #0e1c40;
    color: #fff;
    padding: 8px 15px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 6px;
    z-index: 1000; /* Por encima de leaflet */
    border: 1px solid rgba(255,255,255,0.1);
}

#ipacoop-map {
    height: 500px;
    width: 100%;
    z-index: 1;
}

/* Pines (Dots amarillos) */
.custom-coop-marker {
    background: transparent;
    border: none;
}

.coop-dot {
    background-color: #f9c636;
    border: 3px solid #0e1c40; /* Borde oscuro */
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.2s ease;
}

.coop-dot:hover {
    transform: scale(1.2);
    cursor: pointer;
}

/* Tooltip "Colón - 96" */
.coop-tooltip {
    background-color: #0e1c40;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    padding: 5px 10px;
    font-size: 14px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}
.coop-tooltip::before {
    border-top-color: #0e1c40 !important;
}

.mapa-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0e1c40;
    padding: 15px 25px;
    color: #fff;
}

.footer-info h3 {
    margin: 0;
    color: #f9c636;
    font-size: 18px;
    text-transform: uppercase;
}

.footer-info p {
    margin: 3px 0 0 0;
    font-size: 14px;
    color: #e2e8f0;
}

.footer-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #a0aec0;
}

.legend-dot {
    width: 12px;
    height: 12px;
    background-color: #f9c636;
    border-radius: 50%;
    display: inline-block;
}

/* Responsividad */
@media (max-width: 600px) {
    .ipacoop-row.actions {
        flex-direction: column;
    }
}