#routes {
    width: 100%;
    top: 0;
    height: calc(100% - 14px - var(--route-width)*0.1);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--main-width) * 0.03);
    align-items: flex-start;
    align-content: flex-start;
    overflow-y: scroll;
    padding: calc(5px + var(--route-width)*0.05);
}

.route {
    aspect-ratio: 5/7;
    background: var(--route-color);
    border-radius: var(--standard-border-radius);
    width: calc(var(--route-width) * 0.975);
    padding: calc(var(--route-width) * 0.025);
    position: relative;
    transition: transform 0.5s ease-in-out;
}

@media (max-aspect-ratio: 1/1) {
    .route {
        width: calc(100% - var(--main-width) * 0.03);
        padding: 10px;
    }

    #routes {
        gap: calc(var(--main-width) * 0.05);
    }
}

@media (min-aspect-ratio: 1/1) {
    .route:hover {
        transform: scale(1.1);
    }
}

.route .route_photo {
    width: 100%;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    aspect-ratio: 5/4;
    margin-bottom: 10px;
}

.route .route_photo img {
    display: block;
    width: 100%;
    border-top-left-radius: var(--standard-border-radius);
    border-top-right-radius: var(--standard-border-radius);
}

.route .route_photo a {
    position: absolute;
    right: 0.5em;
    bottom: 0.5em;
    font-size: 0.75em;
    color: #dddddd;
}

.route .trip {
    color: #ffffff;
    font-weight: 700;
    font-size: clamp(1rem, 1.2vw, 1.35rem);
    padding: 0 3px;
}

.route hr {
    width: 100%;
    height: 2px;
    border: none;
    background-color: #ffffff;
}

.route .flags {
    margin-top: 3px;
    height: 24px;
}

.route .trips {
    background: rgba(0, 0, 0, 0.15);
    width: 90%;
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    gap: 10px;
    padding: 0.5em;
    border-radius: calc(var(--standard-border-radius) / 1.5);
}

.route .trips .trip-btn {
    height: clamp(3rem, 3.6vw, 3rem);
    border-radius: calc(var(--standard-border-radius) / 1.5);
    border: none;
    cursor: pointer;
    font-size: 1em;
    
}

.route .trips .inbound-trip {
    background: color-mix(in srgb, var(--trip-btn) 75%, rgb(116, 116, 116) 25%);
}

.route .trips .outbound-trip {
    background: var(--trip-btn);
}