/* Routes specific styles */
.routes-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.route-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
   }

.route-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.route-header {
    background: linear-gradient(to right, var(--primary-dark), var(--primary-color));
    color: white;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.route-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 4rem;
    opacity: 0.2;
    color: white;
}

.route-title {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.route-header p {
    font-size: 1rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.route-stats {
    display: flex;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #eee;
    background-color: rgba(165, 214, 167, 0.1);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    padding: 0 10px;
    position: relative;
}

.stat:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background-color: #ddd;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #777;
    text-align: center;
}

.route-map {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    margin-top: -3em;
}

.map-container {
    width: 100%;
    height: 100%;
    min-height: 300px;
    margin-top: 1rem;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
}

.route-description {
    padding: 0 1.5rem 1.5rem;
    color: #555;
    line-height: 1.7;
}

.difficulty {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 1rem;
    text-transform: uppercase;
}

.easy {
    background-color: #A5D6A7;
    color: #2E7D32;
}

.medium {
    background-color: #FFE082;
    color: #FF6F00;
}

.hard {
    background-color: #EF9A9A;
    color: #C62828;
}

.intro-text {
    text-align: center;
    margin: 2rem auto 0;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Header styling */
.routes-header {
    height: 60vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                url('https://source.unsplash.com/random/1600x900/?hiking,mountain,cullera');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.header-content {
    text-align: center;
    color: var(--text-light);
    max-width: 800px;
    padding: 2rem;
    z-index: 1;
}

.header-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.header-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .routes-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content h1 {
        font-size: 2.5rem;
    }
    
    .header-content p {
        font-size: 1.2rem;
    }
    
    .route-stats {
        flex-wrap: wrap;
    }
    
    .stat {
        flex: 1 0 50%;
        margin-bottom: 1rem;
    }
    
    .stat:nth-child(2n)::after {
        display: none;
    }
}