/**
 * Trek Filters CSS
 * Styles for the trek filters and trek cards
 */

.trek-filters-container {
    margin-bottom: 30px;
}

.trek-search-container {
    display: flex;
    margin-bottom: 20px;
}

#trek-search {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

#trek-search-button {
    border-radius: 0 4px 4px 0;
    border: 1px solid #2e7d32;
    background-color: #2e7d32;
    color: white;
    cursor: pointer;
    padding: 10px 15px;
}

.trek-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

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

.filter-group h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.trek-filter {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

.trek-filter-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.button {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f5f5f5;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.button-primary {
    background-color: #2e7d32;
    color: white;
    border-color: #2e7d32;
}

.button:hover {
    background-color: #e0e0e0;
}

.button-primary:hover {
    background-color: #1b5e20;
}

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

.trek-card {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trek-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.trek-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff6f00;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    z-index: 1;
}

.trek-image {
    height: 200px;
    overflow: hidden;
}

.trek-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.trek-card:hover .trek-image img {
    transform: scale(1.05);
}

.trek-content {
    padding: 15px;
}

.trek-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.3;
}

.trek-title a {
    color: #333;
    text-decoration: none;
}

.trek-title a:hover {
    color: #2e7d32;
}

.trek-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #666;
}

.trek-length, .trek-difficulty {
    display: flex;
    align-items: center;
}

.trek-excerpt {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.trek-details-link {
    display: inline-block;
    padding: 8px 15px;
    background-color: #2e7d32;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.trek-details-link:hover {
    background-color: #1b5e20;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .trek-filters {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .trek-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .trek-grid {
        grid-template-columns: 1fr;
    }
    
    .trek-filter-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .button {
        width: 100%;
    }
}
