/**
 * Enhanced Interactive Map Styles
 * Matching the archive page hero styling
 */

/* Hero Header - matching archive page */
.archive-header-hero {
    background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.archive-header-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(45deg);
}

.archive-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.archive-header-hero .archive-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.archive-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Instructions */
.filter-instructions {
    background: #f5f5f5;
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.filter-instructions p {
    margin: 0;
    color: #555;
}

/* Enhanced Map Controls */
.map-controls.enhanced {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.map-filter-select {
    min-width: 180px;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: white;
}

.map-filter-select:hover {
    border-color: var(--primary-color);
}

.map-filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.reset-filters-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.reset-filters-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Enhanced Map Legend */
.map-legend.enhanced {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.map-legend.enhanced h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

/* Enhanced Map Container */
#interactive-map.enhanced-map {
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    position: relative;
    background: #f0f0f0;
}

/* Map Welcome Overlay */
.map-welcome-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    z-index: 100;
    border-radius: 8px;
}

.map-welcome-message {
    text-align: center;
    padding: 40px;
    max-width: 500px;
}

.map-welcome-message h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 24px;
}

.map-welcome-message p {
    color: #666;
    margin-bottom: 10px;
    font-size: 16px;
}

/* Enhanced Trek List Container */
.trek-list-container.enhanced {
    margin-top: 40px;
}

.trek-list-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.trek-list-title {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.trek-list-subtitle {
    display: block;
    font-size: 1.1rem;
    color: #666;
}

/* Trek List Items */
.trek-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.trek-list-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.trek-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.trek-list-link {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: inherit;
}

.trek-list-item h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.2rem;
    line-height: 1.4;
}

.trek-location {
    color: #666;
    margin: 0 0 15px 0;
    font-size: 0.95rem;
}

.trek-list-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #777;
    flex-wrap: wrap;
}

.trek-list-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Difficulty badges */
.trek-difficulty {
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 500;
    color: white;
}

.trek-difficulty.difficulty-easy {
    background-color: #2e7d32;
}

.trek-difficulty.difficulty-moderate {
    background-color: #ff9800;
}

.trek-difficulty.difficulty-difficult {
    background-color: #f44336;
}

.trek-difficulty.difficulty-challenging {
    background-color: #9c27b0;
}

/* Trek icons */
.trek-icon-svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* No treks message */
.no-treks-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .archive-header-hero .archive-title {
        font-size: 2rem;
    }
    
    .archive-subtitle {
        font-size: 1rem;
    }
    
    .map-controls.enhanced {
        flex-direction: column;
        align-items: stretch;
    }
    
    .map-filter-select {
        width: 100%;
    }
    
    .reset-filters-btn {
        width: 100%;
        justify-content: center;
    }
    
    #interactive-map.enhanced-map {
        height: 400px;
    }
    
    .trek-list {
        grid-template-columns: 1fr;
    }
    
    .trek-list-title {
        font-size: 1.5rem;
    }
}

/* Loading state */
.map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 1.2rem;
    color: #666;
}

/* Map error message */
.map-error-message {
    background: #fff3e0;
    border: 1px solid #ffb74d;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    color: #e65100;
}