body {
    background-color: var(--background-color);
    color: white; /* White text */
    font: "Themundayfreeversion", sans-serif;
}

/******* Top photo and title *******/
.trek-banner {
    position: relative;
    width: 100vw;
    /* aspect-ratio: 5 / 2; */
    overflow: hidden;
}

.trek-banner img {
    width: 100%;
    height: 40vw;
    object-fit: cover; 
}

.empty-banner {
    height: 20vw;
}

.trek-title {
    position: absolute;
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Adjust for centering */
    color: white;
    font-size: 3.5rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7), 0 0 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    font-family: 'HaveIdea', 'HeyAugust', cursive;
    z-index: 5; /* Ensure text is above the image */
}

/******* Trek details *******/
.trek-content {
    background-color: var(--background-color); /* Dark blue background */
    position: relative; /* For stacking context */
}

.stats-overview {
    display: flex;
    flex-direction: row; /* Default to column layout */
    position: relative; /* For stacking context */
    /* margin-top: -20vh; */
    margin-bottom: 15px;
    padding-left: 2em;
    padding-right: 2em;
    gap: 2em;
}

.left-column {
    flex: 0.7;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.right-column {
    flex: 0.7;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-row {
    display: flex;
}

.full-row {
    display: flex;
    border-bottom: 0px solid #ccc; 
    justify-content: space-between;
    padding: 10px 0;
}

.indiv-value {
    font-family: var(--caps-font);
}

.indiv-value.align-right {
    display: flex;
    justify-content: flex-end;
    text-align: center;
}

.indiv-value.align-left {
    text-align: left;
}

.country-flag {
    height: 2em;
    width: auto;
    margin-right: 3px;
    vertical-align: middle;
    border: 1px solid rgba(202, 202, 202, 0.132); 
}

.row-part-one {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ccccccc7 ; 
}

.row-part-two {
    flex: 0.2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-left: 0.25em;
    border-bottom: 1px solid var(--secondary-color);
}

.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(202, 202, 202);
    margin-right: 0.25em;
    font-family: var(--caps-font);
}

.actual-value {
    font-size: 1.1em;
    padding-right: 0.25em;
    font-family: var(--digits-font);
}
.metrics {
    font-size: 0.9em;
    opacity: 0.55;
}

.title.my-stat {
    font-weight: bold;
    text-align: left;
    font-family: var(--caps-font);
    padding-left: 0.5em;
}

.indiv-value.indiv-value.align-right.default-stat {
    color: rgb(202, 202, 202);
}

.my-stat {
    color: var(--secondary-color);
    padding-left: 0.25em;
}

.description {
    font-size: 1em;
    line-height: 1.5;
    font-family: var(--text-font);
}

.my-description {
    margin-top: 0px;
    color: var(--secondary-color);
}

.horizontal-line {
    height: 6px;
    background-color: var(--secondary-color);
    border: 0;
    opacity: 0.1;
    margin: 1em 0;
}


/****** Getting there ******/
.access-and-overnight {
    gap: 2em;
}

.access-overnight-single-container {
    display: flex;
    align-items: center;
    gap: 2em;
}

.practical-title {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    display: flex;
    justify-content: center;
    color: var(--secondary-color);
    font-family: var(--text-font);
    font-size: 1.9em;
    margin: 0;
    line-height: 1;
}

.route-icon {
    max-width: 4em;
    max-height: 4em;
    display: inline-block;
    vertical-align: middle;
    opacity: 0.8;
}

.route-place {
    font-family: var(--caps-font);
    color: var(--secondary-color);
}

.or {
    margin: 0 5px;
}

.route-place.final-place {
    font-size: 1.1em;
    font-weight: bold;
    color: white;
    font-family: "Cymbria", cursive;    
}

.arrow-sign {
    color: var(--secondary-color);
    margin: 0 5px;
}


.overnight-content {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.overnight-text {
    margin-left: 1em;
    color: var(--secondary-color);
    font-family: var(--text-font);
    line-height: 1.5;
}

.overnight-row {
    display: flex;
    align-items: center;
}

.overnight-icons {
    display: flex;
    gap: 0.2em;
}

.overnight-icon {
    width: 5em;
    height: 5em;
    opacity: 0.8;
}



@media (max-width: 600px) {
    .trek-title {
        font-size: 3rem;
    }
    .stats-overview {
        flex-direction: column; 
        font-size: 0.8rem;
    }
    .row-part-two {
        flex:0.35;
    }
    .access-overnight-single-container {
        gap: 1em;
    }
    .route-icon {
        max-width: 2.5em;
        max-height: 2.5em;
    }
    .overnight-icon {
        width: 3.5em;
        height: 3.5em;
    }
    .route-place.final-place {
        font-size: 0.9em;
    }
    .arrow-sign {
        margin: 0 3px;
    }
    .or {
        margin: 0 3px;
    }
}

@media (max-width: 1000px) {
    .stats-overview {
        flex-direction: column; 
        font-size: 0.8rem;
    }
}

@media (orientation: portrait) {
    .trek-banner img {
        width: 100%;
        height: 60vh;
        object-fit: cover; 
    }


}