/* ===== MAP PAGE SPECIFIC STYLES ===== */

.location-leaf-icon {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 0 8px rgba(57, 255, 20, 0.8));
    vertical-align: middle;
}

/* Navigation Bar */
.map-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--neon-purple);
    padding: 0.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 30px rgba(188, 19, 254, 0.3);
}

.map-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.2rem;
    background: rgba(57, 255, 20, 0.1);
    border: 2px solid var(--neon-green);
    border-radius: 50px;
    color: var(--neon-green);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
}

.map-nav .nav-link:hover {
    background: var(--neon-green);
    color: var(--dark-bg);
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.6);
    transform: scale(1.05);
}

.map-nav .music-btn {
    background: rgba(188, 19, 254, 0.1) !important;
    border-color: var(--neon-purple) !important;
    color: var(--neon-purple) !important;
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.3) !important;
}

.map-nav .music-btn:hover {
    background: rgba(188, 19, 254, 0.2) !important;
    color: var(--neon-purple) !important;
    box-shadow: 0 0 25px rgba(188, 19, 254, 0.6) !important;
    transform: translateY(-2px);
}

.nav-icon {
    font-size: 1.3rem;
}

.nav-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-title h1 {
    font-size: 1.3rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.nav-leaf {
    width: 24px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(57, 255, 20, 0.8));
    animation: leafSpin 10s linear infinite;
}

@keyframes leafSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Map Section */
.map-section {
    position: relative;
    margin-top: 60px;
    padding: 2rem;
    min-height: 80vh;
}

.map-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(188, 19, 254, 0.5);
    border: 3px solid var(--neon-purple);
}

.psychedelic-map {
    width: 100%;
    height: 700px;
    position: relative;
    z-index: 1;
}

/* Map Overlay */
.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 400;
    pointer-events: none;
    padding: 2rem;
}

.overlay-header {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    border: 2px solid var(--neon-green);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.4);
    display: inline-block;
}

.overlay-header .glitch {
    font-size: 2rem;
    margin: 0;
}

.overlay-subtitle {
    color: var(--neon-teal);
    margin: 0.5rem 0 0 0;
    font-size: 1.1rem;
    text-shadow: 0 0 10px var(--neon-teal);
}

/* Leaflet Custom Styles */
.leaflet-container {
    background: #f0f0f0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.leaflet-popup-content-wrapper {
    background: rgba(10, 10, 10, 0.95);
    border: 2px solid var(--neon-purple);
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(188, 19, 254, 0.6);
    backdrop-filter: blur(10px);
}

.leaflet-popup-content {
    color: var(--text-light);
    margin: 1rem;
    font-size: 1rem;
}

.leaflet-popup-tip {
    background: rgba(10, 10, 10, 0.95);
    border: 2px solid var(--neon-purple);
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.6);
}

.leaflet-popup-close-button {
    color: var(--neon-pink) !important;
    font-size: 1.5rem !important;
    padding: 0.5rem !important;
}

.leaflet-popup-close-button:hover {
    color: var(--neon-green) !important;
}

.popup-content {
    text-align: center;
}

.popup-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0d6e0d;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 5px rgba(13, 110, 13, 0.3);
}

.popup-coords {
    font-size: 0.9rem;
    color: #006666;
    font-family: 'Courier New', monospace;
    margin-top: 0.5rem;
}

.popup-sacred {
    background: var(--gradient-3);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    margin-top: 0.5rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Locations List */
.locations-list {
    background: rgba(10, 10, 10, 0.3);
    backdrop-filter: blur(10px);
    padding: 5rem 0;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.location-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.location-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        var(--neon-green),
        transparent 30%
    );
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.location-card:hover::before {
    opacity: 1;
}

.location-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--mid-bg);
    border-radius: 13px;
    z-index: 1;
}

.location-card > * {
    position: relative;
    z-index: 2;
}

.location-card:hover {
    border-color: var(--neon-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(57, 255, 20, 0.4);
}

.location-card.sacred {
    border-color: var(--neon-purple);
}

.location-card.sacred::before {
    background: conic-gradient(
        transparent,
        var(--neon-purple),
        transparent 30%
    );
}

.location-card.sacred:hover {
    border-color: var(--neon-purple);
    box-shadow: 0 10px 40px rgba(188, 19, 254, 0.6);
}

.location-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 0 10px currentColor);
}

.location-title {
    font-size: 1.2rem;
    color: var(--neon-green);
    margin-bottom: 0.75rem;
    font-weight: bold;
}

.location-card.sacred .location-title {
    color: var(--neon-purple);
    text-shadow: 0 0 15px var(--neon-purple);
}

.location-coords {
    font-size: 0.9rem;
    color: var(--neon-teal);
    font-family: 'Courier New', monospace;
    margin-bottom: 0.75rem;
}

.location-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.location-btn {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 2px solid var(--neon-green);
    background: transparent;
    color: var(--neon-green);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.location-btn:hover {
    background: var(--neon-green);
    color: var(--dark-bg);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.6);
}

.sacred-badge {
    background: var(--gradient-3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: 0.5rem;
    display: inline-block;
    animation: pulse 2s infinite;
}

/* Map Legend */
.map-legend {
    background: rgba(10, 10, 10, 0.2);
    backdrop-filter: blur(8px);
    padding: 3rem 0;
}

.legend-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

.legend-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px currentColor);
}

.legend-icon.sacred {
    color: var(--neon-purple);
}

.legend-icon.spot {
    color: var(--neon-green);
}

.legend-text {
    color: var(--text-light);
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .map-nav {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 0.3rem;
    }
    
    .nav-title {
        gap: 0.5rem;
    }
    
    .nav-title h1 {
        font-size: 1.1rem;
    }
    
    .nav-leaf {
        width: 20px;
    }
    
    .nav-icon {
        font-size: 1rem;
    }
    
    .map-nav .nav-link {
        padding: 0.35rem 0.75rem;
        font-size: 0.75rem;
        gap: 0.25rem;
        flex-shrink: 1;
    }
    
    .psychedelic-map {
        height: 500px;
    }
    
    .overlay-header .glitch {
        font-size: 1.5rem;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
    }
    
    .legend-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .map-section {
        padding: 1rem;
        margin-top: 100px;
    }
}

/* Custom Pin Marker Styles */
.custom-pin {
    cursor: pointer;
}

.pin-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: pinBounce 2s ease-in-out infinite;
}

.pin-head {
    position: relative;
    z-index: 3;
    font-size: 32px;
    background: rgba(10, 10, 10, 0.9);
    border-radius: 50% 50% 50% 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-45deg);
    border: 3px solid;
    box-shadow: 0 0 20px currentColor;
    transition: all 0.3s ease;
}

.pin-head img {
    transform: rotate(45deg);
    display: block;
    filter: drop-shadow(0 0 5px currentColor);
}

.pin-stick {
    position: relative;
    z-index: 2;
    width: 4px;
    height: 25px;
    margin-top: -8px;
    border-radius: 0 0 2px 2px;
    transition: all 0.3s ease;
}

.pin-shadow {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    filter: blur(3px);
    z-index: 1;
}

/* Sacred Pin Colors */
.sacred-pin .pin-head {
    border-color: var(--neon-purple);
    color: var(--neon-purple);
    background: rgba(188, 19, 254, 0.2);
    box-shadow:
        0 0 20px var(--neon-purple),
        0 0 40px rgba(188, 19, 254, 0.5),
        inset 0 0 15px rgba(188, 19, 254, 0.3);
}

.sacred-pin .pin-head.sacred-head img {
    filter: drop-shadow(0 0 8px var(--neon-purple)) brightness(1.5) saturate(1.2);
}

.sacred-pin .pin-stick {
    background: linear-gradient(to bottom,
        var(--neon-purple) 0%,
        rgba(188, 19, 254, 0.6) 100%);
    box-shadow: 0 0 10px var(--neon-purple);
}

.sacred-pin:hover .pin-head {
    transform: rotate(-45deg) scale(1.2);
    box-shadow:
        0 0 30px var(--neon-purple),
        0 0 60px rgba(188, 19, 254, 0.8),
        inset 0 0 20px rgba(188, 19, 254, 0.5);
}

.sacred-pin:hover .pin-stick {
    height: 30px;
    box-shadow: 0 0 15px var(--neon-purple);
}

/* Spot Pin Colors */
.spot-pin .pin-head {
    border-color: var(--neon-green);
    color: var(--neon-green);
    background: rgba(57, 255, 20, 0.2);
    box-shadow:
        0 0 15px var(--neon-green),
        0 0 30px rgba(57, 255, 20, 0.4),
        inset 0 0 10px rgba(57, 255, 20, 0.3);
}

.spot-pin .pin-head img {
    filter: drop-shadow(0 0 8px var(--neon-green));
}

.spot-pin .pin-stick {
    background: linear-gradient(to bottom,
        var(--neon-green) 0%,
        rgba(57, 255, 20, 0.6) 100%);
    box-shadow: 0 0 8px var(--neon-green);
}

.spot-pin:hover .pin-head {
    transform: rotate(-45deg) scale(1.2);
    box-shadow:
        0 0 25px var(--neon-green),
        0 0 50px rgba(57, 255, 20, 0.8),
        inset 0 0 15px rgba(57, 255, 20, 0.5);
}

.spot-pin:hover .pin-stick {
    height: 30px;
    box-shadow: 0 0 12px var(--neon-green);
}

/* Pin Bounce Animation */
@keyframes pinBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Make pins more interactive */
.custom-pin:active .pin-container {
    animation: pinPress 0.2s ease;
}

@keyframes pinPress {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(3px) scale(0.95);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}