/* Mapa de puntos de depósito (pago-servicios.jsp). Todo bajo .mapa-wrap para no chocar con estilos globales. */
.mapa-wrap {
    margin: 40px auto;
    background: #fff;
    border: 1px solid #ddeaf5;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(5, 116, 175, 0.08);
    max-width: 1100px;
}

.mapa-wrap .mapa-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 28px;
    border-bottom: 1px solid #ddeaf5;
    background: #f8fbff;
}

.mapa-wrap .mapa-eyebrow {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #7AB83F;
}

.mapa-wrap .mapa-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #034d7a;
}

.mapa-wrap .mapa-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 280px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ddeaf5;
    border-radius: 100px;
}

.mapa-wrap .mapa-search input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: #034d7a;
}

.mapa-wrap .mapa-container {
    display: grid;
    grid-template-columns: 300px 1fr;
}

.mapa-wrap .mapa-map {
    min-width: 0;
    height: 460px;
}

.mapa-wrap .mapa-sidebar {
    max-height: 460px;
    overflow-y: auto;
    padding: 16px;
    background: #fff;
    border-right: 1px solid #ddeaf5;
}

.mapa-wrap .mapa-sidebar-label {
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #9D9FA2;
}

.mapa-wrap .punto-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mapa-wrap .punto-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s;
}

.mapa-wrap .punto-item:hover {
    background: #f0f7fc;
    border-color: #b8d4e8;
}

.mapa-wrap .punto-item.active {
    background: #eef6fc;
    border-color: #0574AF;
}

.mapa-wrap .punto-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 14px;
    background: rgba(5, 116, 175, 0.12);
}

.mapa-wrap .punto-name {
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 600;
    color: #034d7a;
}

.mapa-wrap .punto-addr {
    font-size: 11px;
    color: #9D9FA2;
}

.mapa-wrap .punto-dist {
    margin-top: 2px;
    font-size: 11px;
    font-weight: 600;
    color: #7AB83F;
}

.mapa-wrap .punto-count {
    margin-bottom: 4px;
    font-size: 11px;
    color: #9D9FA2;
}

@keyframes punto-aparece {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.mapa-wrap .punto-item-nuevo {
    animation: punto-aparece .8s ease-in-out both;
}

.mapa-wrap .punto-sentinela {
    flex-shrink: 0;
    height: 1px;
}

@media (prefers-reduced-motion: reduce) {
    .mapa-wrap .punto-item-nuevo {
        animation: none;
    }
}

.mapa-wrap .punto-empty {
    font-size: 12px;
    color: #9D9FA2;
}

/* Marcador de punto (L.divIcon) */
.mapa-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0574AF;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    font-size: 13px;
}

/* Leyenda (L.control) */
.mapa-leyenda {
    padding: 8px 12px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
    font-size: 11px;
    line-height: 1.8;
    color: #034d7a;
}

.mapa-leyenda .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    border-radius: 50%;
    vertical-align: middle;
}

.mapa-leyenda .dot.punto {
    background: #0574AF;
}

.mapa-leyenda .dot.ubicacion {
    background: #E53935;
}

@media (max-width: 991px) {
    .mapa-wrap .mapa-container {
        grid-template-columns: 1fr;
    }

    .mapa-wrap .mapa-map {
        height: 360px;
    }

    .mapa-wrap .mapa-sidebar {
        max-height: 260px;
        border-right: none;
        border-bottom: 1px solid #ddeaf5;
    }
}

.mapa-wrap .leaflet-popup-content {
    font-size: 13px;
}

.mapa-wrap .mapa-ubicacion-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mapa-wrap .mapa-ubicacion-btn svg {
    display: block;
}

.mapa-wrap .mapa-ubicacion-tip {
    font-weight: 700;
    font-size: 13px;
    padding: 6px 10px;
}