/* ======= BOTÓN FLOTANTE MAPA ======= */

.mapa-toggle-btn {
    position: fixed;
    bottom: 25px;
    right: 285px;
    background: #1a120b;
    border: 2px solid #2d6a4f;
    padding: 8px;
    border-radius: 100px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    font-size: 1.4rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mapa-toggle-btn:hover {
    transform: scale(1.1);
    border-color: #52b788;
    box-shadow: 0 0 12px rgba(82, 183, 136, 0.5);
}

/* ======= MODAL OVERLAY ======= */

.mapa-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2010;
    backdrop-filter: blur(4px);
}

.mapa-modal-inner {
    position: relative;
    max-width: min(90vw, 900px);
    max-height: 90vh;
    border: 2px solid #2d6a4f;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(45, 106, 79, 0.3), 0 0 100px rgba(0, 0, 0, 0.8);
    background: #0a0a0a;
}

.mapa-modal-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    user-select: none;
}

.mapa-close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid #555;
    color: #ccc;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    z-index: 10;
    transition: color 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mapa-close-btn:hover {
    color: #fff;
    border-color: #aaa;
}

.mapa-title {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: #52b788;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 14px;
    border-radius: 4px;
    pointer-events: none;
    white-space: nowrap;
    z-index: 10;
}

/* ======= MARCADOR DE POSICIÓN ======= */

.mapa-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    z-index: 5;
}

.mapa-marker-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff4d4d;
    border: 2px solid #fff;
    box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.6);
    animation: mapa-pulse 1.8s infinite;
    flex-shrink: 0;
}

@keyframes mapa-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(255, 77, 77, 0.6); }
    70%  { box-shadow: 0 0 0 10px rgba(255, 77, 77, 0);   }
    100% { box-shadow: 0 0 0 0   rgba(255, 77, 77, 0);   }
}

.mapa-marker-label {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 0.6rem;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 77, 77, 0.4);
}
