/* ===============================
   Control Leaflet
   =============================== */

.leaflet-control-rnpf {
    width: 32px;
    height: 32px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 0 4px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    pointer-events: auto;
}

    .leaflet-control-rnpf.active {
        transform: scale(0.92);
        box-shadow: 0 0 6px rgba(0,0,0,0.6);
    }


/* ===============================
   Modal
   =============================== */

.rnpf-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

    .rnpf-modal.open {
        display: flex;
    }

.rnpf-content {
    width: 90vw;
    height: 90vh;
    background: #000;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}


/* ===============================
   Iframe (debajo de todo)
   =============================== */

.rnpf-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 1;
}


/* ===============================
   Loader
   =============================== */

.rnpf-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    margin-left: -24px;
    margin-top: -24px;
    border: 5px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 2;
}

    .rnpf-loader.show {
        opacity: 1;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* ===============================
   Botón de cierre
   =============================== */

.rnpf-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: rgba(0,0,0,0.4);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 9999;
}
.leaflet-control-rnpf svg {
    pointer-events: none;
}
.rnpf-cursor-target {
    cursor: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'>\
  <circle cx='16' cy='16' r='6' fill='none' stroke='black' stroke-width='2'/>\
  <line x1='16' y1='2' x2='16' y2='10' stroke='black' stroke-width='2'/>\
  <line x1='16' y1='22' x2='16' y2='30' stroke='black' stroke-width='2'/>\
  <line x1='2' y1='16' x2='10' y2='16' stroke='black' stroke-width='2'/>\
  <line x1='22' y1='16' x2='30' y2='16' stroke='black' stroke-width='2'/>\
  <circle cx='16' cy='16' r='2' fill='black'/>\
</svg>") 16 16, crosshair;
}
