/* 📍 MAP MARKERS 2.0 - CATEGORY COLORS + ANIMATIONS ✨ */
/* Designer #1 + Rio - Version 10.1 */

/* ========================================
   MARKER BASE STYLES WITH ANIMATIONS
======================================== */

.custom-marker {
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    font-size: 20px;
    position: relative;
}

/* Pulse animation ring */
.custom-marker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: markerPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    opacity: 0;
}

@keyframes markerPulse {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
    }
    100% {
        width: 150%;
        height: 150%;
        opacity: 0;
    }
}

.custom-marker:hover {
    transform: scale(1.3) translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
    animation: markerBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes markerBounce {
    0% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.4) translateY(-10px);
    }
    100% {
        transform: scale(1.3) translateY(-5px);
    }
}

/* ========================================
   CATEGORY-SPECIFIC MARKER STYLES
======================================== */

/* Flagship Attractions - Blue */
.marker-flagship {
    border: 4px solid #3b82f6;
    color: #3b82f6;
    width: 50px;
    height: 50px;
    font-size: 24px;
}

.marker-flagship::before {
    border: 3px solid #3b82f6;
}

/* Hidden Gems - Purple */
.marker-hiddenGems {
    border: 4px solid #8b5cf6;
    color: #8b5cf6;
    width: 46px;
    height: 46px;
    font-size: 22px;
}

.marker-hiddenGems::before {
    border: 3px solid #8b5cf6;
}

/* Thermal Baths - Cyan */
.marker-baths {
    border: 4px solid #06b6d4;
    color: #06b6d4;
    width: 46px;
    height: 46px;
    font-size: 22px;
}

.marker-baths::before {
    border: 3px solid #06b6d4;
}

/* Food & Restaurants - Orange */
.marker-food {
    border: 4px solid #f59e0b;
    color: #f59e0b;
    width: 44px;
    height: 44px;
    font-size: 20px;
}

.marker-food::before {
    border: 3px solid #f59e0b;
}

/* Nightlife - Pink */
.marker-nightlife {
    border: 4px solid #ec4899;
    color: #ec4899;
    width: 44px;
    height: 44px;
    font-size: 20px;
}

.marker-nightlife::before {
    border: 3px solid #ec4899;
}

/* Shopping - Green */
.marker-shopping {
    border: 4px solid #10b981;
    color: #10b981;
    width: 44px;
    height: 44px;
    font-size: 20px;
}

.marker-shopping::before {
    border: 3px solid #10b981;
}

/* Nature - Lime */
.marker-nature {
    border: 4px solid #84cc16;
    color: #84cc16;
    width: 44px;
    height: 44px;
    font-size: 20px;
}

.marker-nature::before {
    border: 3px solid #84cc16;
}

/* ========================================
   MARKER CLUSTERS (Enhanced)
======================================== */

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.9), 
        rgba(139, 92, 246, 0.9));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    color: #1f2937;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.marker-cluster-small {
    width: 40px !important;
    height: 40px !important;
}

.marker-cluster-small div {
    width: 32px;
    height: 32px;
}

.marker-cluster-medium {
    width: 50px !important;
    height: 50px !important;
}

.marker-cluster-medium div {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.marker-cluster-large {
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.9), 
        rgba(251, 146, 60, 0.9));
}

.marker-cluster-large div {
    width: 48px;
    height: 48px;
    font-size: 18px;
}

/* Cluster hover animation */
.marker-cluster-small:hover,
.marker-cluster-medium:hover,
.marker-cluster-large:hover {
    animation: clusterBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes clusterBounce {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* ========================================
   USER LOCATION MARKER 📍
======================================== */

.user-location-marker {
    width: 20px;
    height: 20px;
    background: #3b82f6;
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
    animation: userLocationPulse 2s ease-in-out infinite;
    position: relative;
}

.user-location-marker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: #3b82f6;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: userLocationRipple 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    opacity: 0;
}

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

@keyframes userLocationRipple {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
    }
    100% {
        width: 300%;
        height: 300%;
        opacity: 0;
    }
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
======================================== */

@media (max-width: 768px) {
    .marker-flagship {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    .marker-hiddenGems,
    .marker-baths,
    .marker-food,
    .marker-nightlife,
    .marker-shopping,
    .marker-nature {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}
