/* Inner Pages Shared Styles */

/* Page Header */
.page-header {
    height: 50vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-color: var(--c-forest-dark);
    display: flex;
    align-items: flex-end;
    position: relative;
    padding-bottom: 4rem;
    margin-top: calc(var(--s-nav-height) * -1);
    padding-top: var(--s-nav-height);
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(22, 36, 26, 0.95), rgba(22, 36, 26, 0.3));
}

.page-header-content {
    position: relative;
    z-index: 2;
    color: var(--c-white);
    max-width: 800px;
}

.page-header h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--c-white);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
    font-family: var(--f-serif);
    color: rgba(255,255,255,0.8);
}

/* Route List & Cards */
.route-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    border-bottom: 2px solid rgba(0,0,0,0.05);
    padding-bottom: 1rem;
}

.filter-btn {
    background: none;
    border: none;
    font-family: var(--f-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--c-text-muted);
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    color: var(--c-terracotta);
}

.route-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.route-card {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 3rem;
    align-items: center;
    background: var(--c-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.route-img {
    height: 100%;
    min-height: 400px;
}

.route-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.route-info {
    padding: 3rem 3rem 3rem 0;
}

.route-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tag, .difficulty {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
    letter-spacing: 0.05em;
}

.tag-hike { background: #e3f2fd; color: #1565c0; }
.tag-road { background: #fff3e0; color: #e65100; }
.tag-mtb { background: #e8f5e9; color: #2e7d32; }
.tag-gravel { background: #f3e5f5; color: #6a1b9a; }

.difficulty.medium { color: #f57c00; border: 1px solid #f57c00; }
.difficulty.hard { color: #d32f2f; border: 1px solid #d32f2f; }
.difficulty.expert { color: #000; border: 1px solid #000; background: #eee; }

.route-card h2 {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
}

.route-loc {
    font-family: var(--f-serif);
    color: var(--c-terracotta);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.route-desc {
    color: var(--c-text-muted);
    margin-bottom: 2rem;
}

.route-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-family: var(--f-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-forest-dark);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--c-text-muted);
    text-transform: uppercase;
}

/* CTA Banner */
.cta-banner {
    background: var(--c-forest);
    color: var(--c-sand);
    padding: 4rem;
    text-align: center;
    border-radius: 4px;
}

.cta-banner h3 {
    color: var(--c-sand);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-banner p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: rgba(248, 246, 240, 0.8);
}

/* Product Grids (for bikes, equipment) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: var(--c-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.product-img {
    height: 250px;
    background: var(--c-sand-darker);
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 2rem;
}

.product-brand {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--c-terracotta);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.product-card p {
    color: var(--c-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.spec-list {
    list-style: none;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.spec-list li {
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--c-text);
}

.spec-list li span {
    color: var(--c-text-muted);
}

/* Text heavy pages (guides, community) */
.content-layout {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 4rem;
}

.article-content {
    font-size: 1.1rem;
    color: var(--c-text);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2 {
    font-size: 2.5rem;
    margin: 3rem 0 1.5rem;
}

.article-content h3 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
}

.article-content ul, .article-content ol {
    margin: 0 0 1.5rem 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.sidebar-widget {
    background: var(--c-white);
    padding: 2rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.sidebar-widget h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--c-terracotta);
    display: inline-block;
}

@media (max-width: 992px) {
    .route-card {
        grid-template-columns: 1fr;
    }
    .route-img {
        min-height: 300px;
    }
    .route-info {
        padding: 2rem;
    }
    .content-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-header {
        height: 40vh;
        min-height: 300px;
    }
    .page-header h1 {
        font-size: 2.5rem;
    }
    .route-stats {
        flex-direction: column;
        gap: 1rem;
    }
    .cta-banner {
        padding: 2.5rem 1.5rem;
    }
}
