/**
 * Interactive Map Styles
 * Enhanced styling for the WildRover interactive map page
 */

/* Map container */
#interactive-map {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

/* Map controls */
.map-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.map-control-group {
    flex: 1 1 200px;
    min-width: 200px;
}

.map-control-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.map-filter-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    color: #333;
}

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

.reset-filters-btn {
    padding: 8px 20px;
    background: #2e7d32;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.reset-filters-btn:hover {
    background: #1b5e20;
}

/* Map legend */
.map-legend {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.map-legend h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.legend-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

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

.trek-list-container h2 {
    margin-bottom: 20px;
    color: #333;
}

.trek-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

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

.trek-list-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.trek-list-item a {
    text-decoration: none;
    color: inherit;
}

.trek-list-item h3 {
    margin: 0 0 10px 0;
    color: #2e7d32;
    font-size: 18px;
}

.trek-location {
    color: #666;
    margin: 0 0 10px 0;
    font-size: 14px;
}

.trek-list-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

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

/* Responsive design */
@media (max-width: 768px) {
    #interactive-map {
        height: 400px;
    }
    
    .map-controls {
        padding: 15px;
    }
    
    .map-control-group {
        flex: 1 1 100%;
    }
    
    .trek-list {
        grid-template-columns: 1fr;
    }
}

/* Loading state */
#interactive-map.loading {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#interactive-map.loading::after {
    content: "Loading map...";
    color: #666;
    font-size: 16px;
}