/* Moon Map Page Specific Styles */

/* Main Content */
.moon-map-content {
    min-height: calc(100vh - 80px);
    background: var(--space-dark-blue);
    position: relative;
    overflow: hidden;
}

/* Page Header */
.moon-map-header {
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(255, 215, 0, 0.1));
    border-bottom: 2px solid var(--moon-accent);
    margin-bottom: 2rem;
}

.moon-map-header h1 {
    color: var(--moon-gold);
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 3rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    margin-bottom: 1rem;
}

.moon-map-header p {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    max-width: 800px;
    margin: 0 auto;
}

/* Map Container */
.map-container {
    background: rgba(26, 31, 58, 0.95);
    border: 2px solid var(--moon-accent);
    border-radius: 20px;
    padding: 1.5rem;
    margin: 0 1rem 2rem 1rem;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(10px);
}

.map-container h3 {
    color: var(--moon-accent);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* Leaflet Map Styling */
#moonMap {
    height: 600px;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* Custom Leaflet Controls */
.leaflet-control-zoom {
    border: 2px solid var(--moon-accent) !important;
    background: rgba(26, 31, 58, 0.95) !important;
    border-radius: 10px !important;
}

.leaflet-control-zoom a {
    background: rgba(0, 212, 255, 0.2) !important;
    color: var(--moon-accent) !important;
    border: 1px solid var(--moon-accent) !important;
    border-radius: 5px !important;
    transition: all 0.3s ease !important;
}

.leaflet-control-zoom a:hover {
    background: var(--moon-accent) !important;
    color: var(--space-dark-blue) !important;
    transform: scale(1.1) !important;
}

/* Map Attribution */
.leaflet-control-attribution {
    background: rgba(26, 31, 58, 0.9) !important;
    color: var(--moon-accent) !important;
    border: 1px solid var(--moon-accent) !important;
    border-radius: 5px !important;
    font-size: 0.8rem !important;
}

.leaflet-control-attribution a {
    color: var(--moon-gold) !important;
}

/* Map Markers */
.leaflet-marker-icon {
    filter: drop-shadow(0 0 5px var(--moon-accent));
}

/* Map Popups */
.leaflet-popup-content-wrapper {
    background: rgba(26, 31, 58, 0.95) !important;
    border: 2px solid var(--moon-accent) !important;
    border-radius: 15px !important;
    color: #ffffff !important;
    backdrop-filter: blur(10px) !important;
}

.leaflet-popup-content {
    color: #ffffff !important;
    font-family: 'Rajdhani', sans-serif !important;
}

.leaflet-popup-content b {
    color: var(--moon-gold) !important;
    font-weight: 700 !important;
}

.leaflet-popup-tip {
    background: rgba(26, 31, 58, 0.95) !important;
    border: 2px solid var(--moon-accent) !important;
}

/* Information Panel */
.info-panel {
    background: rgba(26, 31, 58, 0.95);
    border: 2px solid var(--moon-gold);
    border-radius: 20px;
    padding: 1.5rem;
    margin: 0 1rem 2rem 1rem;
    backdrop-filter: blur(10px);
}

.info-panel h4 {
    color: var(--moon-gold);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.info-panel p {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.info-panel ul {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.7;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.info-panel li {
    margin-bottom: 0.5rem;
}

/* Call to Action Section */
.cta-section {
    text-align: center;
    padding: 2rem;
    margin: 2rem 1rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(255, 215, 0, 0.1));
    border: 2px solid var(--moon-accent);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.cta-section h3 {
    color: var(--moon-gold);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.cta-section p {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .moon-map-header h1 {
        font-size: 2rem;
    }
    
    .moon-map-header p {
        font-size: 1rem;
    }
    
    #moonMap {
        height: 400px;
    }
    
    .map-container {
        margin: 0 0.5rem 1rem 0.5rem;
        padding: 1rem;
    }
    
    .info-panel {
        margin: 0 0.5rem 1rem 0.5rem;
        padding: 1rem;
    }
    
    .cta-section {
        margin: 1rem 0.5rem;
        padding: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .moon-map-header h1 {
        font-size: 1.8rem;
    }
    
    #moonMap {
        height: 350px;
    }
    
    .map-container {
        padding: 0.5rem;
    }
    
    .info-panel {
        padding: 0.5rem;
    }
}

/* Animation for Map Container */
.map-container {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effects */
.map-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
    border-color: var(--moon-gold);
}

.info-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
    border-color: var(--moon-accent);
}

/* Loading State */
.map-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 600px;
    background: rgba(26, 31, 58, 0.5);
    border-radius: 15px;
    color: var(--moon-accent);
    font-size: 1.2rem;
    font-weight: 600;
}

.map-loading .spinner {
    border: 3px solid rgba(0, 212, 255, 0.3);
    border-top: 3px solid var(--moon-accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-right: 1rem;
}

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