.iande-itinerary {

    .iande-itinerary-toolbar {
        padding: 1em 0;

        a {
            color: inherit;
            text-decoration: none;
        }
    }
}

.iande-itinerary-cover {

    &__main {
        align-items: stretch;
        color: var(--iande-background-color);
        display: flex;
        min-height: calc(100vh - 60px);
        position: relative;

        &:before {
            background-blend-mode: soft-light;
            background-color: var(--iande-secondary-color);
            background-image: var(--itinerary-cover);
            background-position: center;
            background-repeat: no-repeat;
            background-size: cover;
            bottom: 0; left: 0; right: 0; top: 0;
            content: '';
            height: 100%;
            position: absolute;
            width: 100%;
        }

        .iande-container {
            display: flex;
            justify-content: space-between;
            padding: 40px 20px;
            position: relative;

            & > :nth-child(1) {
                align-self: flex-end;
            }

            & > :nth-child(2) {
                align-self: center;
                justify-self: center;
            }

            @media screen and (max-width: 600px) {
                flex-direction: column;
                justify-content: flex-end;

                & > :nth-child(1) {
                    align-self: flex-start;
                }

                & > :nth-child(2) {
                    margin-top: 40px;
                }
            }
        }
    }

    &__lead {
        color: var(--iande-light-color);
        font-weight: bold;
        text-transform: lowercase;
    }

    .iande &__title {
        color: inherit;
        font-family: var(--iande-text-font);
        font-size: 2em;
        font-weight: bold;
        margin: 0 0 40px;
        text-align: start;
        text-transform: uppercase;
    }

    &__description {
        margin: 0;
    }

    &__share {
        display: flex;
        margin-top: 40px;

        & > span {
            color: var(--iande-lighter-color);
            margin-right: 20px;
            font-size: 0.875em;
            text-transform: lowercase;
        }

        ul {
            display: flex;
            flex-wrap: wrap;
            margin: 0;
            padding: 0;
        }

        li {
            list-style: none;
            margin: 0 20px;
        }

        a {
            color: inherit;
        }
    }

    &__start-button {
        background-color: transparent;
        background-image: url('../assets/img/iande-large-button.png');
        border: none;
        height: 200px;
        text-shadow: 0 0 24px 0 rgba(32, 33, 37, 0.7);
        width: 200px;
    }

    &__credits {

        .iande-container {
            align-items: center;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            padding: 20px;

            & > div {
                font-size: 0.875em;
            }

            b {
                color: var(--iande-secondary-color);
            }
        }
    }
}

.iande-itinerary-navigation {
    align-items: center;
    display: flex;
    margin-bottom: 30px;
    margin-top: 30px;

    button {
        background-color: var(--iande-primary-color);
        border: none;
        border-radius: 50%;
        color: var(--iande-secondary-color);
        height: 2em;
        width: 2em;
    }

    progress {
        border: none;
        border-radius: 5px;
        flex: 1;
        height: 5px;
        margin: 0 15px;

        &::-webkit-progress-bar {
            background-color: var(--iande-light-color);
            border-radius: 5px;
        }

        &::-webkit-progress-value {
            background-color: var(--iande-secondary-color);
            border-radius: 5px;
        }
    }
}

.iande-itinerary-page {
    height: 100%;
    margin-bottom: 40px;
    min-height: 50vh;

    .iande-button {
        padding: 10px;
        width: auto;
    }

    &__image {

        img {
            width: 100%;
        }
    }

    &__title {
        color: var(--iande-secondary-color);
        font-family: var(--iande-text-font);
        font-size: 2em;
        font-weight: bold;
        margin: 0;
        text-transform: uppercase;
    }

    &.layout-1, &.layout-2 {
        display: flex;

        .iande-itinerary-page__details {
            align-self: center;
        }
    }

    &.layout-1 {
        flex-direction: row-reverse;

        & > * {
            width: 50%;
        }

        .iande-itinerary-page__details {
            margin-right: 20px;
        }
    }

    &.layout-2 {

        .iande-itinerary-page__image {
            width: 70%;
        }

        .iande-itinerary-page__details {
            margin-left: 20px;
            width: 30%;
        }
    }

    &.layout-3 {

        .iande-itinerary-page__details {
            align-items: center;
            display: flex;
            justify-content: space-between;
            margin-top: 40px;
        }

        .iande-itinerary-page__description {
            display: none;
        }

        .iande-button {
            margin-left: 20px;
        }
    }

    &.layout-4 {
        position: relative;

        .iande-itinerary-page__details {
            align-items: flex-end;
            bottom: calc(-4em - 40px);
            display: flex;
            flex-direction: row-reverse;
            justify-content: space-between;
            padding-bottom: 40px;
            position: absolute;
            width: 100%;
        }

        .iande-itinerary-page__details-main {
            background-color: rgba(white, 0.85);
            border-radius: var(--iande-border-radius);
            box-shadow: 0 2px 14px 0 rgba(black, 0.1);
            margin: 40px 40px 0;
            padding: 1em;
        }
    }

    @media screen and (max-width: 800px) {

        &.layout-1, &.layout-2 {
            & > * {
                width: 100% !important;
            }

            .iande-itinerary-page__details {
                margin: 20px;
            }
        }

        &.layout-1 {
            flex-direction: column-reverse;
        }

        &.layout-2 {
            flex-direction: column;
        }

        &.layout-3 {

            .iande-itinerary-page__details {
                align-items: flex-start;
                flex-direction: column;
            }

            .iande-button {
                margin: 20px 0;
            }
        }

        &.layout-4 {

            .iande-itinerary-page__details {
                align-items: center;
                bottom: unset;
                flex-direction: column;
                justify-content: center;
                position: relative;
                top: -40px;
            }

            .iande-itinerary-page__details-main {
                margin: 0 20px 20px;
                width: calc(100% - 40px);
            }
        }
    }
}
