/* ═══════════════════════════════════════════════════════════════
   MUNDO GLOBALINK — Mapa real de una zona (estilos)
   ═══════════════════════════════════════════════════════════════ */

.glbmap-screen {
    position: fixed;
    inset: 0;
    z-index: 8100;              /* por encima del globo (8000) */
    background: #0a1020;
    display: flex;
    flex-direction: column;
    animation: glbMapIn .3s ease;
}
@keyframes glbMapIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Cabecera ──────────────────────────────────────────────── */
.glbmap-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 12px;
    background: linear-gradient(180deg, rgba(10,16,32,.95), rgba(10,16,32,0));
    flex-shrink: 0;
}
.glbmap-back {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
    touch-action: manipulation;
    transition: background .2s;
}
.glbmap-back:hover { background: rgba(255,255,255,.18); }
.glbmap-title {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 8px rgba(0,0,0,.6);
}

/* ── El mapa ───────────────────────────────────────────────── */
.glbmap-canvas {
    flex: 1;
    min-height: 0;
    margin-top: -62px;         /* que el mapa quede bajo la cabecera translúcida */
    z-index: 1;
}
/* Ajustes del tema oscuro para los controles de Leaflet */
.glbmap-canvas .leaflet-control-zoom a {
    background: rgba(14,20,40,.92);
    color: #fff;
    border-color: rgba(255,255,255,.12);
}
.glbmap-canvas .leaflet-control-zoom a:hover { background: rgba(30,40,70,.95); }
.glbmap-canvas .leaflet-control-attribution {
    background: rgba(10,16,32,.7);
    color: rgba(255,255,255,.6);
    font-size: 10px;
}
.glbmap-canvas .leaflet-control-attribution a { color: rgba(120,180,255,.8); }

/* ── Marcador del usuario ──────────────────────────────────── */
.glbmap-pin-dot {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff, #c639b8);
    border: 2.5px solid #fff;
    box-shadow: 0 0 12px rgba(0,212,255,.6), 0 2px 6px rgba(0,0,0,.4);
    animation: glbMapPulse 2s ease-in-out infinite;
}
@keyframes glbMapPulse {
    0%,100% { transform: scale(1);   box-shadow: 0 0 10px rgba(0,212,255,.5), 0 2px 6px rgba(0,0,0,.4); }
    50%     { transform: scale(1.15); box-shadow: 0 0 18px rgba(0,212,255,.8), 0 2px 6px rgba(0,0,0,.4); }
}

/* ── Pista de uso ──────────────────────────────────────────── */
.glbmap-hint {
    position: absolute;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(10,16,32,.82);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 99px;
    padding: 9px 18px;
    backdrop-filter: blur(8px);
    font-size: 12px;
    color: rgba(255,255,255,.75);
    white-space: nowrap;
    pointer-events: none;
    animation: glbMapHintIn .5s ease .3s both;
}
@keyframes glbMapHintIn {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.glbmap-hint i { color: #00d4ff; }

/* ── Cargando ──────────────────────────────────────────────── */
.glbmap-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    z-index: 8;
    background: #0a1020;
}
.glbmap-spinner {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 2.5px solid rgba(0,212,255,.15);
    border-top-color: #00d4ff;
    border-right-color: #c639b8;
    animation: glbMapSpin .9s linear infinite;
}
@keyframes glbMapSpin { to { transform: rotate(360deg); } }
.glbmap-loading p { font-size: 13px; color: rgba(255,255,255,.55); margin: 0; }
