/* Estilos para marcadores personalizados */

.custom-marker {
    background: transparent !important;
    border: none !important;
}

.custom-marker i {
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
    transition: all 0.3s ease;
}

/* Contorno negro opcional para iconos Font Awesome */
.marker-outline {
    -webkit-text-stroke: 1px #000;
    text-shadow: -1px 0 0 #000, 1px 0 0 #000, 0 -1px 0 #000, 0 1px 0 #000;
}

.custom-marker:hover i {
    transform: scale(1.2);
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.7));
}

/* Popup personalizado */
.custom-popup .leaflet-popup-content-wrapper {
    background: var(--primary-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    border: 2px solid var(--accent-color);
}

.custom-popup .leaflet-popup-content {
    margin: 0;
    padding: 0;
}

.popup-content {
    padding: 20px;
    min-width: 250px;
}

.popup-content h4 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup-content h4 i {
    font-size: 1.2rem;
}

.popup-content p {
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 15px;
}

.popup-content .btn {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    background: var(--accent-color) !important;
    color: #ffffff !important;
    border: 2px solid var(--accent-color) !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
}

.popup-content .btn:hover {
    background: #d63384 !important;
    border-color: #d63384 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.5) !important;
}

/* Animaciones para marcadores */
@keyframes markerPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.marker-pulse {
    animation: markerPulse 2s infinite;
}

/* Marcadores especiales por tipo */
.marker-important i {
    color: #e74c3c !important;
    font-size: 28px !important;
}

.marker-location i {
    color: #27ae60 !important;
    font-size: 26px !important;
}

.marker-dungeon i {
    color: #8e44ad !important;
    font-size: 24px !important;
}

.marker-city i {
    color: #f39c12 !important;
    font-size: 26px !important;
}

.marker-temple i {
    color: #3498db !important;
    font-size: 24px !important;
}

/* Tooltips personalizados */
.leaflet-tooltip {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    font-size: 0.9rem;
    padding: 8px 12px;
}

.leaflet-tooltip::before {
    border-top-color: var(--primary-color);
}

/* Marcadores con efectos especiales */
.marker-glow i {
    filter: drop-shadow(0 0 8px currentColor);
}

.marker-sparkle i {
    position: relative;
}

.marker-sparkle i::after {
    content: '✨';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 12px;
    animation: sparkle 1.5s infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
}

/* Marcadores de batalla */
.marker-battle i {
    color: #e74c3c !important;
    animation: battlePulse 1s infinite;
}

@keyframes battlePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

/* Marcadores de tesoro */
.marker-treasure i {
    color: #f1c40f !important;
    animation: treasureGlow 2s infinite;
}

@keyframes treasureGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px #f1c40f);
    }
    50% {
        filter: drop-shadow(0 0 15px #f1c40f);
    }
}

/* Marcadores de NPC */
.marker-npc i {
    color: #9b59b6 !important;
    font-size: 22px !important;
}

/* Marcadores de comercio */
.marker-shop i {
    color: #e67e22 !important;
    font-size: 24px !important;
}

/* Marcadores de peligro */
.marker-danger i {
    color: #c0392b !important;
    animation: dangerBlink 1s infinite;
}

@keyframes dangerBlink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0.3;
    }
}

/* Tamaños de marcadores individuales */
.marker-size-small i {
    font-size: 16px !important;
}

.marker-size-medium i {
    font-size: 22px !important;
}

.marker-size-large i {
    font-size: 28px !important;
}

.marker-size-xlarge i {
    font-size: 36px !important;
}

/* Efectos hover específicos por tamaño */
.marker-size-small:hover i {
    transform: scale(1.3);
}

.marker-size-medium:hover i {
    transform: scale(1.25);
}

.marker-size-large:hover i {
    transform: scale(1.2);
}

.marker-size-xlarge:hover i {
    transform: scale(1.15);
}

/* Responsive para tamaños de marcadores */
@media (max-width: 768px) {
    .marker-size-small i {
        font-size: 14px !important;
    }
    
    .marker-size-medium i {
        font-size: 18px !important;
    }
    
    .marker-size-large i {
        font-size: 24px !important;
    }
    
    .marker-size-xlarge i {
        font-size: 30px !important;
    }
}

@media (max-width: 480px) {
    .marker-size-small i {
        font-size: 12px !important;
    }
    
    .marker-size-medium i {
        font-size: 16px !important;
    }
    
    .marker-size-large i {
        font-size: 20px !important;
    }
    
    .marker-size-xlarge i {
        font-size: 26px !important;
    }
}

/* Responsive para marcadores */
@media (max-width: 768px) {
    .custom-marker i {
        font-size: 20px !important;
    }
    
    .popup-content {
        padding: 15px;
        min-width: 200px;
    }
    
    .popup-content h4 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .custom-marker i {
        font-size: 18px !important;
    }
    
    .popup-content {
        padding: 12px;
        min-width: 180px;
    }
} 