/* ==================================================
   SHORTCODE TOUR FEATURES TABS
   ================================================== */

.tour-features-tabs {
    --tour-features-color: #505050;
    --tour-features-font-size: clamp(14px, 1.8vw, 28px) !important;
    --tour-features-row-gap: 16px;
    --tour-features-column-gap: 20px;
    --tour-feature-inner-gap: 7px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: var(--tour-features-row-gap);
    column-gap: var(--tour-features-column-gap);
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--tour-features-color);
    font-family: var(--font-family-primary, inherit);
    font-size: var(--tour-features-font-size);
    font-weight: 400;
    line-height: 1.25;
    flex-direction: row;
}



/* ==================================================
   SINGOLA CARATTERISTICA
   ================================================== */

.tour-feature {
    display: inline-flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--tour-feature-inner-gap);
    min-width: 0;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}


/* ==================================================
   DURATA
   ================================================== */

.tour-feature--duration {
    gap: 8px;
}

.tour-duration-part {
    display: inline-flex;
    align-items: center;
    gap: var(--tour-feature-inner-gap);

    min-width: 0;
}

.tour-feature-separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin: 0 1px;

    color: var(--tour-features-color);
    font-size: 0.8em;
    font-weight: 700;
    line-height: 1;
}


/* ==================================================
   ICONE FONT AWESOME
   ================================================== */

.tour-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    width: 1.12em;
    height: 1.12em;

    color: var(--tour-features-color);
    line-height: 1;
}

.tour-feature-icon i {
    display: block;

    color: inherit;
    font-size: 1em;
    line-height: 1;
}

.tour-feature-icon--days {
    font-size: 1.03em;
}

.tour-feature-icon--nights {
    font-size: 1.05em;
}

.tour-feature-icon--accommodation {
    width: 1.25em;

    font-size: 0.98em;
}


/* ==================================================
   ICONA DIFFICOLTÀ
   ================================================== */

.tour-feature-icon--difficulty {
    width: 1.42em;
    height: 1.18em;

    margin-right: 2px;
}

.tour-feature-icon--difficulty img {
    display: block;

    width: 100% !important;
    height: 100% !important;
    max-width: none !important;

    object-fit: contain;
    object-position: center;

    user-select: none;
    pointer-events: none;
}


/* ==================================================
   TESTI E VALORI
   ================================================== */

.tour-feature-number,
.tour-feature-text,
.tour-feature-value {
    display: inline-block;

    margin: 0;
    padding: 0;

    color: inherit;
    font: inherit;
    line-height: inherit;
}

.tour-feature-number {
    font-variant-numeric: tabular-nums;
}


/* ==================================================
   LINK
   ================================================== */

.tour-feature-link {
    display: inline-block;

    margin: 0;
    padding: 0;

    color: var(--color-primary);

    font: inherit;
    font-weight: 400;
    line-height: inherit;

    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;

    transition:
        color 0.25s ease,
        text-decoration-color 0.25s ease;
}

.tour-feature-link:hover {
    color: var(--color-primary-hover);
}

.tour-feature-link:focus-visible {
    color: var(--color-primary-hover);

    outline: 2px solid currentColor;
    outline-offset: 4px;

    border-radius: 2px;
}


/* ==================================================
   DESKTOP MEDIO
   ================================================== */

@media (max-width: 1200px) {

    .tour-features-tabs {
        --tour-features-font-size:
            clamp(14px, 1.65vw, 22px);

        --tour-features-column-gap: 30px;
    }
}


/* ==================================================
   TABLET
   ================================================== */

@media (max-width: 1024px) {

    .tour-features-tabs {
        --tour-features-font-size: 16px;
        --tour-features-row-gap: 14px;
        --tour-features-column-gap: 26px;
        --tour-feature-inner-gap: 6px;
    }
}


/* ==================================================
   TABLET PICCOLO E MOBILE
   ================================================== */

@media (max-width: 767px) {

    .tour-features-tabs {
        --tour-features-font-size: 14px;
        --tour-features-row-gap: 12px;
        --tour-features-column-gap: 22px;
        --tour-feature-inner-gap: 5px;

        align-items: flex-start;
    }

    .tour-feature--duration {
        gap: 6px;
    }

    .tour-feature-separator {
        margin-right: 0;
        margin-left: 0;
    }

    .tour-feature-icon--difficulty {
        width: 1.5em;
        height: 1.2em;
    }
}


/* ==================================================
   MOBILE PICCOLO
   ================================================== */

@media (max-width: 480px) {

    .tour-features-tabs {
        --tour-features-font-size: 13px;
        --tour-features-row-gap: 10px;
        --tour-features-column-gap: 18px;

        line-height: 1.3;
    }

    /*
     * Le singole caratteristiche restano unite.
     * Se non entrano nella riga, vanno interamente
     * nella riga successiva.
     */
    .tour-feature {
        max-width: 100%;
    }

    /*
     * Un valore di alloggio molto lungo può andare
     * a capo senza uscire dal contenitore.
     */
    .tour-feature--accommodation {
        white-space: normal;
    }

    .tour-feature--accommodation .tour-feature-link,
    .tour-feature--accommodation .tour-feature-value {
        overflow-wrap: anywhere;
    }
}


/* ==================================================
   SCHERMI MOLTO PICCOLI
   ================================================== */

@media (max-width: 360px) {

    .tour-features-tabs {
        --tour-features-column-gap: 14px;
    }

    .tour-feature--duration {
        width: 100%;
    }
}


/* ==================================================
   RIDUZIONE DELLE ANIMAZIONI
   ================================================== */

@media (prefers-reduced-motion: reduce) {

    .tour-feature-link {
        transition: none;
    }
}