.verticalline {
    border-left: 5px solid #333;
    height: 100%;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.hikes-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 100px;
    padding: 80px 20px;
    position: relative;
    z-index: 1;
}

.hike-card-link {
    text-decoration: none;
    display: block;
    width: 100%;
    max-width: 900px;
    transition: transform 0.3s ease;
}

.hike-card-link:hover {
    transform: translateY(-5px);
}

/* HIKE CARD */
.hike-card {
    background: var(--background-color);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    padding: 20px;
    transition: box-shadow 0.3s ease;
    border: 5px solid black;
}

.hike-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.hike-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.hike-title {
    font-size: 32px;
    margin: 0;
    color: #dfdfdf;
    font-family: 'HaveIdea', 'HeyAugust', 'cursive';
}

.country-flag {
    height: 20px;
    margin-left: 4px;
    border: 1px solid #737373;
}

.hike-date {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.hike-year {
    font-size: 13px;
    font-weight: 400;
    color: #b9c0c1;
}

.hike-months {
    font-size: 20px;
    font-family: var(--caps-font);
    color: var(--secondary-color);
}

.hike-card-body {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.hike-card-left .hike-card-body {
    grid-template-columns: 60fr 40fr;
}

.hike-card-right .hike-card-body {
    grid-template-columns: 40fr 60fr;
}

.hike-card-right .hike-image-section {
    order: 2;
}

.hike-card-right .hike-stats-section {
    order: 1;
}

.hike-image-section {
    border-radius: 12px;
    overflow: hidden;
}

.hike-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* HIKE STATS */
.stats-overview {
    display: flex;
    flex-direction: column; /* Default to column layout */
    justify-content: center;
    position: relative; /* For stacking context */
    gap: 6px;
}

.stats-row {
    display: flex;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-color); 
    justify-content: space-between;
}

.stat-label {
    color: rgb(202, 202, 202);
    display: flex;
    font-family: var(--caps-font);
    font-weight: bold;
    font-size: 1.1em;
}

.stat-value {
    color: rgb(199, 199, 199);
    margin-right: 0.25em;
    font-family: var(--caps-font);
    justify-content: flex-end;
}
.actual-value {
    font-size: 1em;
    padding-right: 0.25em;
    font-family: var(--digits-font);
}
.metrics {
    font-size: 0.9em;
    opacity: 0.55;
    font-family: var(--caps-font);
}

.hike-description-section {
    display: flex;
    align-items: center;
}

.hike-description-section p {
    margin: 0;
    color: #bbbbbb;
    line-height: 1.6;
    font-size: 15px;
    font-family: var(--text-font);
}

/* Hike icons section */
.icons-and-description {
    display: flex;
    flex-direction: row;
    align-content: space-between;
    gap: 25px;
}

.hike-icons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    align-items: center;
    justify-items: center;
}

.hike-icon-title {
    font-size: 14px;
    font-family: var(--caps-font);
    color: #cacaca;
    text-align: center;
    white-space: nowrap;
}

.main-title {
    grid-column: 1 / 3;
    text-align: center;
    padding-bottom: 4px;
    color: var(--secondary-color);
}

.hike-icons-column {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
    align-items: center;
}

.hike-icon-icon {
    margin: 5px;
    height: 50px;
    object-fit: contain;
}

.hike-icon-icons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Single icon - 50% bigger */
.hike-icon-icons:has(.hike-icon-icon:only-child) .hike-icon-icon {
    height: 75px;
}

/* Two icons - current size, stacked vertically */
.hike-icon-icons:has(.hike-icon-icon:nth-child(2):last-child) {
    flex-direction: column;
    gap: 5px;
}

.hike-icon-icons:has(.hike-icon-icon:nth-child(2):last-child) .hike-icon-icon {
    height: 50px;
    margin: 0;
}

/* Three icons - current size, 2 in top row, 1 in bottom */
.hike-icon-icons:has(.hike-icon-icon:nth-child(3)) {
    width: 120px;
    gap: 5px;
}

.hike-icon-icons:has(.hike-icon-icon:nth-child(3)) .hike-icon-icon {
    height: 50px;
    margin: 0;
    flex: 0 0 calc(50% - 2.5px);
}



/* Year marker styles */
.year-marker {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 90px;
    background: rgb(40, 40, 40);
    border-radius: 35px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.year-number {
    font-size: 48px;
    font-weight: bold;
    color: #e3e3e3;
    margin: 0;
}


/* Info card styles */
.info-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    max-width: 600px;
    width: 100%;
    padding: 20px;
    border: 5px solid #333;
    transition: box-shadow 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.info-title {
    font-size: 32px;
    font-weight: bold;
    margin: 0;
    color: #2c2c2c;
    font-family: 'HaveIdea', 'HeyAugust', 'cursive';
}

.info-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.info-year {
    font-size: 13px;
    font-weight: 400;
    color: #666;
    font-family: var(--caps-font);
}

.info-month {
    font-size: 20px;
    color: #333;
    font-family: var(--caps-font);
}

.info-body {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: start;
}

.info-image {
    max-height: 200px;
    border-radius: 12px;
    overflow: hidden;
}

.info-image img {
    height: 200px;
    width: auto;
    object-fit: contain;
    display: block;
}

.info-text {
    display: flex;
    align-items: center;
    min-width: 0;
}

.info-text p {
    margin: 0;
    color: #555;
    line-height: 1.6;
    font-size: 15px;
    font-family: var(--text-font);
}

/* Default: show left/right based on card side */
.desc-right { display: none; }
.desc-left { display: flex; }

@media (max-width: 550px) {
    .desc-right { display: none; }
    .desc-left { display: flex; }
}

/* Responsive design */
@media (max-width: 968px) {
    .hike-card-left .hike-card-body,
    .hike-card-right .hike-card-body {
        grid-template-columns: 1fr;
    }
    
    .hike-card-right .hike-image-section,
    .hike-card-right .hike-stats-section {
        order: unset;
    }
    
    .hike-image-section {
        height: 240px;
    }
    
    .hike-title {
        font-size: 24px;
    }
    
    .info-card {
        max-width: 500px;
    }
    
    .info-body {
        flex-direction: column;
        align-items: stretch;
    }
    
    .info-image {
        max-height: 250px;
        align-self: center;
    }
    
    .info-image img {
        height: auto;
        max-height: 250px;
        width: 100%;
        max-width: 100%;
    }
    
    .year-marker {
        width: 120px;
        height: 120px;
    }
    
    .year-number {
        font-size: 36px;
    }
}

@media (max-width: 550px) {
    .info-card {
        width: calc(100% - 80px);
        margin: 0 20px;
    }

    .info-body{
        display: flex;
        flex-direction: column;
    }
    
    .icons-and-description {
        flex-direction: column;
        gap: 16px;
    }
    
    .hike-icons-grid {
        width: max-content;   /* Prevent grid from stretching to full width */
        margin: 0 auto;      /* Center the grid */
    }
}
