/* =========================================================
   EDSCAN POPULAR DESTINATIONS
========================================================= */

.edscan-popular-destinations {
    --edscan-dest-navy: #071027;
    --edscan-dest-blue: #1825b8;
    --edscan-dest-cyan: #19c7f3;
    --edscan-dest-yellow: #ffca28;
    --edscan-dest-ivory: #f7f4ed;
    --edscan-dest-line: #dfdcd4;

    padding: 120px 0 125px;

    background: #f3f1ec;
}

.edscan-popular-destinations__shell {
    width: min(
        1450px,
        calc(100% - 96px)
    );

    margin: 0 auto;
}


/* =========================================================
   HEADING
========================================================= */

.edscan-popular-destinations__heading {
    margin-bottom: 58px;
}

.edscan-popular-destinations__heading > span {
    display: block;

    margin-bottom: 14px;

    color: var(--edscan-dest-blue);

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .2em;
}

.edscan-popular-destinations__heading h2 {
    margin: 0;

    color: var(--edscan-dest-navy);

    font-size: clamp(
        48px,
        5vw,
        76px
    );

    line-height: .97;

    letter-spacing: -.045em;
}

.edscan-popular-destinations__heading h2 em {
    color: var(--edscan-dest-blue);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-weight: 400;
}

.edscan-popular-destinations__heading p {
    max-width: 650px;

    margin: 19px 0 0;

    color: #6d7077;

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   THREE GROUPS
========================================================= */

.edscan-popular-destinations__groups {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 55px;
}

.edscan-destination-group h3 {
    margin: 0 0 28px;

    color: var(--edscan-dest-navy);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 27px;

    font-weight: 400;
}


/* =========================================================
   MINI DESTINATION
========================================================= */

.edscan-destination-group__items {
    display: flex;
    flex-direction: column;

    gap: 12px;
}

.edscan-destination-mini {
    position: relative;

    min-height: 112px;

    display: grid;

    grid-template-columns:
        94px
        1fr
        28px;

    gap: 18px;

    align-items: center;

    padding: 10px;

    border-radius: 18px;

    color: inherit;

    transition:
        transform .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.edscan-destination-mini:hover {
    transform: translateY(-3px);

    background: #fff;

    box-shadow:
        0 16px 38px
        rgba(7,16,39,.07);
}


/* IMAGE */

.edscan-destination-mini__image {
    width: 94px;
    height: 94px;

    overflow: hidden;

    border-radius: 14px;

    background: #dedbd4;
}

.edscan-destination-mini__image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .45s ease;
}

.edscan-destination-mini:hover
.edscan-destination-mini__image img {
    transform: scale(1.06);
}


/* CONTENT */

.edscan-destination-mini__content strong {
    display: block;

    margin-bottom: 6px;

    color: var(--edscan-dest-navy);

    font-size: 16px;
    font-weight: 800;
}

.edscan-destination-mini__content p {
    margin: 0;

    color: #777b82;

    font-size: 12px;
    line-height: 1.55;
}


/* ARROW */

.edscan-destination-mini__arrow {
    width: 28px;
    height: 28px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid
        var(--edscan-dest-line);

    border-radius: 50%;

    color: var(--edscan-dest-blue);

    font-size: 11px;

    transition:
        color .2s ease,
        background .2s ease,
        border-color .2s ease;
}

.edscan-destination-mini:hover
.edscan-destination-mini__arrow {
    color: var(--edscan-dest-navy);

    border-color:
        var(--edscan-dest-yellow);

    background:
        var(--edscan-dest-yellow);
}


/* =========================================================
   EMPTY ADMIN STATE
========================================================= */

.edscan-destination-group__empty {
    color: #81858b;

    font-size: 12px;
}


/* =========================================================
   FOOTER LINK
========================================================= */

.edscan-popular-destinations__footer {
    margin-top: 58px;
    padding-top: 30px;

    border-top:
        1px solid
        var(--edscan-dest-line);
}

.edscan-popular-destinations__footer a {
    display: inline-flex;

    align-items: center;

    gap: 16px;

    color: var(--edscan-dest-blue);

    font-size: 12px;
    font-weight: 800;
}

.edscan-popular-destinations__footer a span {
    font-size: 18px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .edscan-popular-destinations__shell {
        width:
            min(
                100% - 64px,
                1450px
            );
    }

    .edscan-popular-destinations__groups {
        grid-template-columns: 1fr;

        gap: 55px;
    }

    .edscan-destination-group__items {
        display: grid;

        grid-template-columns:
            repeat(3, 1fr);

        gap: 14px;
    }

    .edscan-destination-mini {
        grid-template-columns: 82px 1fr;

        align-items: start;

        padding: 12px;

        background: rgba(
            255,
            255,
            255,
            .48
        );
    }

    .edscan-destination-mini__image {
        width: 82px;
        height: 82px;
    }

    .edscan-destination-mini__arrow {
        display: none;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .edscan-popular-destinations {
        padding: 85px 0 90px;
    }

    .edscan-popular-destinations__shell {
        width:
            calc(100% - 40px);
    }

    .edscan-popular-destinations__heading {
        margin-bottom: 48px;
    }

    .edscan-popular-destinations__heading h2 {
        font-size: 48px;
    }

    .edscan-popular-destinations__groups {
        gap: 48px;
    }

    .edscan-destination-group h3 {
        margin-bottom: 20px;

        font-size: 25px;
    }

    .edscan-destination-group__items {
        display: flex;

        flex-direction: column;

        gap: 8px;
    }

    .edscan-destination-mini {
        min-height: 106px;

        grid-template-columns:
            88px
            1fr;

        gap: 15px;

        padding: 9px;

        border-radius: 16px;
    }

    .edscan-destination-mini__image {
        width: 88px;
        height: 88px;

        border-radius: 13px;
    }

    .edscan-destination-mini__content strong {
        font-size: 16px;
    }

    .edscan-destination-mini__content p {
        font-size: 11px;
    }

    .edscan-popular-destinations__footer {
        margin-top: 45px;
    }

}