/* The itinerary page (/my-trip, js/itinerary.js): a trip from the guide map, to keep.
   A sticky list of days on the side, Syphax's card and the trip at the top, then each
   day as a timeline. Laid out for the screen and, just as carefully, for paper/PDF. */

.it {
    --it-ink: var(--color-near-black, #171412);
    --it-muted: #6b625a;
    --it-line: rgba(23, 20, 18, 0.1);
    --it-teal: var(--color-teal, #155259);
    --it-terra: #C2683F;
    --it-gold: #D79A3A;
    --it-cream: #f4f1ea;
    --it-card: #fffdf9;
    min-height: 70vh;
    background: var(--it-cream);
    color: var(--it-ink);
    font-family: var(--font-body);
}

.it-i {
    display: inline-block;
    flex: none;
    width: 1.1em;
    height: 1.1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -0.18em;
}

.it-loading,
.it-empty {
    max-width: 640px;
    margin: 0 auto;
    padding: 96px 20px;
    text-align: center;
    font-size: 1.1rem;
}

    .it-empty h1 {
        margin: 0 0 10px;
        color: var(--it-teal);
        font-family: var(--font-display);
    }

/* ---------- Buttons ---------- */
.it-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 12px 22px;
    border: 1.5px solid var(--it-line);
    border-radius: 999px;
    background: #fff;
    color: var(--it-teal);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.15s ease;
}

    .it-btn:hover {
        text-decoration: none;
        border-color: rgba(21, 82, 89, 0.4);
        box-shadow: 0 10px 20px -14px rgba(23, 20, 18, 0.5);
    }

.it-btn--primary {
    border-color: transparent;
    background: var(--it-teal);
    color: #fff;
}

.it-btn--wa {
    min-height: 58px;
    padding: 14px 28px;
    border-color: transparent;
    background: #1DA851;
    color: #fff;
    font-size: 1.08rem;
    box-shadow: 0 14px 28px -16px rgba(29, 168, 81, 0.9);
}

/* ---------- The bar: back to the map, and share / print / PDF ---------- */
.it-bar {
    position: sticky;
    top: var(--header-h, 0px);
    z-index: 30;
    border-bottom: 1px solid var(--it-line);
    background: rgba(255, 253, 249, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.it-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px 20px;
}

.it-bar__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--it-teal);
    font-weight: 700;
    text-decoration: none;
}

.it-bar__actions {
    display: flex;
    gap: 8px;
}

.it-act {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 16px;
    border: 1.5px solid var(--it-line);
    border-radius: 999px;
    background: #fff;
    color: var(--it-teal);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

    .it-act:hover {
        border-color: rgba(21, 82, 89, 0.4);
    }

.it-act--primary {
    border-color: transparent;
    background: var(--it-teal);
    color: #fff;
}

    .it-act--primary:hover {
        background: #0f4247;
    }

.it-act:focus-visible,
.it-btn:focus-visible,
.it-side a:focus-visible,
.it-bar__back:focus-visible {
    outline: 3px solid #E9A23B;
    outline-offset: 2px;
}

/* ---------- Layout ---------- */
.it-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 28px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 20px 64px;
}

/* The days, on the side */
.it-side {
    position: sticky;
    top: calc(var(--header-h, 0px) + 84px);
    align-self: start;
    max-height: calc(100vh - var(--header-h, 0px) - 110px);
    overflow-y: auto;
    padding-right: 4px;
}

.it-side__trip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--it-line);
    color: var(--it-ink);
    text-decoration: none;
}

    .it-side__trip img {
        width: 52px;
        height: 52px;
        flex: 0 0 auto;
        border-radius: 10px;
        object-fit: cover;
    }

    .it-side__trip strong {
        font-family: var(--font-display);
        font-size: 1.02rem;
        font-weight: 600;
        line-height: 1.25;
    }

.it-side__day {
    position: relative;
    display: block;
    padding: 11px 12px 11px 30px;
    border-bottom: 1px solid var(--it-line);
    color: var(--it-ink);
    text-decoration: none;
    transition: background-color 0.15s ease;
}

    .it-side__day::before {
        content: "";
        position: absolute;
        left: 10px;
        top: 50%;
        width: 9px;
        height: 9px;
        margin-top: -4.5px;
        border: 2px solid rgba(21, 82, 89, 0.35);
        border-radius: 50%;
        background: #fff;
    }

    .it-side__day small {
        display: block;
        color: var(--it-muted);
        font-size: 0.8rem;
    }

    .it-side__day strong {
        display: block;
        font-size: 0.92rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }

    .it-side__day:hover {
        background: rgba(21, 82, 89, 0.05);
        text-decoration: none;
    }

    .it-side__day.is-on {
        background: #e3efed;
        color: var(--it-teal);
    }

        .it-side__day.is-on::before {
            border-color: var(--it-teal);
            background: var(--it-teal);
        }

.it-side__info {
    padding-left: 12px;
}

    .it-side__info::before {
        display: none;
    }

    .it-side__info strong {
        display: flex;
        align-items: center;
        gap: 8px;
    }

/* The day strip (phones) */
.it-daystrip {
    display: none;
}

/* ---------- The top card: Syphax, the trip ---------- */
.it-card {
    overflow: hidden;
    border-radius: 18px;
    background: var(--it-card);
    box-shadow: 0 1px 2px rgba(23, 20, 18, 0.06), 0 24px 48px -32px rgba(23, 20, 18, 0.45);
}

.it-driver {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
}

    .it-driver img,
    .it-driver__mark {
        width: 58px;
        height: 58px;
        flex: 0 0 auto;
        border-radius: 50%;
        object-fit: cover;
        box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(21, 82, 89, 0.25);
    }

.it-driver__mark {
    display: grid;
    place-items: center;
    background: var(--it-teal);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.it-driver > div {
    display: flex;
    flex: 1;
    flex-direction: column;
    line-height: 1.3;
}

.it-driver strong {
    font-size: 1.12rem;
}

.it-driver span {
    color: var(--it-muted);
    font-size: 0.92rem;
}

.it-driver .it-driver__brand {
    color: var(--it-terra);
    font-weight: 600;
}

.it-driver__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef4f3;
    color: var(--it-teal) !important;
    font-size: 0.82rem !important;
    font-weight: 700;
}

.it-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 340px;
    padding: 0;
    background: linear-gradient(180deg, rgba(10, 30, 32, 0.55) 0%, rgba(10, 30, 32, 0.05) 30%, rgba(10, 30, 32, 0.15) 55%, rgba(10, 30, 32, 0.82) 100%), var(--hero, linear-gradient(135deg, #1B636A, #0B3237)) center / cover no-repeat;
    color: #fff;
}

.it-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 18px;
    padding: 12px 20px;
    background: rgba(10, 30, 32, 0.35);
    backdrop-filter: blur(4px);
}

    .it-contact a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #fff;
        font-size: 0.95rem;
        font-weight: 600;
        text-decoration: none;
    }

.it-hero__text {
    padding: 20px 22px 22px;
}

.it-hero__dates {
    margin: 0 0 6px;
    font-size: 0.98rem;
    font-weight: 600;
    opacity: 0.95;
}

.it-hero h1 {
    margin: 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 2.6vw + 0.6rem, 2.5rem);
    font-weight: 600;
    line-height: 1.12;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.it-hero__route {
    margin: 10px 0 0;
    font-size: 1rem;
    opacity: 0.95;
}

.it-hero__credit {
    position: absolute;
    right: 10px;
    bottom: 8px;
    font-size: 0.68rem;
    opacity: 0.75;
}

.it-intro {
    margin: 0;
    padding: 20px 22px 6px;
    font-size: 1.08rem;
    line-height: 1.6;
}

.it-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 14px 22px 22px;
}

    .it-stats span {
        display: flex;
        flex-direction: column;
        padding: 12px;
        border-radius: 14px;
        background: var(--it-cream);
        color: var(--it-muted);
        font-size: 0.85rem;
        text-align: center;
    }

    .it-stats strong {
        color: var(--it-teal);
        font-family: var(--font-display);
        font-size: 1.5rem;
        font-weight: 600;
        line-height: 1.1;
    }

/* ---------- Sections and days ---------- */
.it-section,
.it-day {
    scroll-margin-top: calc(var(--header-h, 0px) + 90px);
}

.it-section {
    margin-top: 28px;
    padding: 22px;
    border-radius: 18px;
    background: var(--it-card);
    box-shadow: 0 1px 2px rgba(23, 20, 18, 0.05);
}

.it-section__head,
.it-day__head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin: 0 0 16px;
    color: var(--it-ink);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

    .it-day__head::after,
    .it-section__head::after {
        content: "";
        flex: 1 1 40px;
        height: 1px;
        background: var(--it-line);
    }

.it-info {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .it-info > li {
        display: flex;
        gap: 14px;
    }

        .it-info > li > .it-i {
            width: 38px;
            height: 38px;
            padding: 8px;
            flex: 0 0 auto;
            border-radius: 50%;
            background: #eef4f3;
            color: var(--it-teal);
        }

    .it-info strong {
        display: block;
        font-size: 1.05rem;
    }

    .it-info p {
        margin: 4px 0 0;
        color: #3f3833;
        line-height: 1.55;
    }

.it-ribbon {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

    .it-ribbon li {
        display: flex;
        flex-direction: column;
        padding: 6px 12px;
        border-radius: 12px;
        background: var(--it-cream);
        font-size: 0.92rem;
    }

    .it-ribbon small {
        color: var(--it-muted);
        font-size: 0.78rem;
    }

.it-day {
    margin-top: 34px;
}

.it-day__n {
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--it-teal);
    color: #fff;
    font-size: 0.85rem;
}

.it-day__date {
    color: var(--it-ink);
    font-weight: 600;
    letter-spacing: 0.02em;
}

    .it-day__date strong {
        font-weight: 800;
    }

.it-day__title {
    width: 100%;
    order: 9;
    color: var(--it-teal);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

/* The timeline */
.it-tl {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .it-tl::before {
        content: "";
        position: absolute;
        left: 21px;
        top: 10px;
        bottom: 10px;
        width: 2px;
        background: repeating-linear-gradient(to bottom, rgba(21, 82, 89, 0.22) 0 6px, transparent 6px 11px);
    }

.it-ev {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    padding: 0 0 22px;
}

.it-ev__icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 2px solid var(--it-gold);
    border-radius: 50%;
    background: #fff;
    color: var(--it-gold);
}

    .it-ev__icon .it-i {
        width: 21px;
        height: 21px;
    }

.it-ev__icon--plane,
.it-ev__icon--car {
    border-color: var(--it-teal);
    color: var(--it-teal);
}

.it-ev__icon--bed {
    border-color: var(--it-terra);
    color: var(--it-terra);
}

.it-ev__icon--quote,
.it-ev__icon--pin {
    border-color: rgba(23, 20, 18, 0.15);
    color: var(--it-muted);
}

.it-ev__body {
    min-width: 0;
    padding: 14px 18px 16px;
    border-radius: 16px;
    background: var(--it-card);
    box-shadow: 0 1px 2px rgba(23, 20, 18, 0.05);
}

.it-ev--quote .it-ev__body,
.it-ev--photos .it-ev__body {
    padding: 0;
    background: none;
    box-shadow: none;
}

.it-ev__time {
    margin: 0 0 2px;
    color: #c07a12;
    font-size: 0.92rem;
    font-weight: 700;
}

.it-ev h3 {
    margin: 0 0 4px;
    font-family: var(--font-display);
    font-size: 1.22rem;
    font-weight: 600;
    line-height: 1.25;
}

.it-ev p {
    margin: 4px 0 0;
    color: #3f3833;
    line-height: 1.55;
}

.it-ev__meta {
    color: var(--it-teal) !important;
    font-weight: 600;
}

.it-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px !important;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fbefe4;
    color: #7a3d1c !important;
    font-size: 0.95rem;
}

    .it-note .it-i {
        margin-top: 2px;
    }

.it-way {
    margin-top: 12px;
}

.it-way__label {
    margin: 0 0 6px !important;
    color: var(--it-muted) !important;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.it-way ol {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.it-way li {
    display: grid;
    grid-template-columns: 14px 1fr auto;
    align-items: start;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--it-line);
}

    .it-way li:last-child {
        border-bottom: 0;
    }

.it-way__dot {
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--it-gold);
}

.it-way strong {
    display: block;
    font-size: 0.98rem;
}

.it-way small {
    display: block;
    color: var(--it-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.it-way em {
    color: var(--it-muted);
    font-size: 0.85rem;
    font-style: normal;
    white-space: nowrap;
}

.it-quote {
    margin: 0;
    padding: 14px 18px;
    border-left: 3px solid var(--it-gold);
    border-radius: 0 14px 14px 0;
    background: #f8f0e2;
}

    .it-quote p {
        margin: 0;
        font-family: var(--font-display);
        font-size: 1.08rem;
        font-style: italic;
        color: #4a3a28;
    }

    .it-quote cite {
        display: block;
        margin-top: 6px;
        color: #9a6a35;
        font-family: var(--font-mono);
        font-size: 0.75rem;
        font-style: normal;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

.it-photos {
    display: grid;
    gap: 6px;
    overflow: hidden;
    border-radius: 16px;
}

.it-photos--2 {
    grid-template-columns: 2fr 1fr;
}

.it-photos--3 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
}

    .it-photos--3 figure:first-child {
        grid-row: span 2;
    }

.it-photos figure {
    position: relative;
    margin: 0;
    min-height: 120px;
}

.it-photos img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 340px;
    object-fit: cover;
}

.it-photos--1 img {
    max-height: 380px;
}

.it-photos figcaption {
    position: absolute;
    right: 6px;
    bottom: 6px;
    max-width: calc(100% - 12px);
    overflow: hidden;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(13, 35, 38, 0.6);
    color: #fff;
    font-size: 0.66rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.it-stay {
    display: flex;
    gap: 14px;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid var(--it-line);
    border-radius: 14px;
    background: #fff;
}

    .it-stay img,
    .it-stay__mark {
        width: 96px;
        height: 80px;
        flex: 0 0 auto;
        border-radius: 10px;
        object-fit: cover;
    }

.it-stay__mark {
    display: grid;
    place-items: center;
    background: #f8ece3;
    color: var(--it-terra);
}

.it-stay strong {
    font-size: 1.02rem;
}

.it-stay p {
    margin: 2px 0 0 !important;
    font-size: 0.95rem;
}

.it-stay__note {
    color: var(--it-muted) !important;
}

.it-stay a {
    display: inline-block;
    margin-top: 4px;
    color: var(--it-teal);
    font-weight: 700;
}

/* The end: send it */
.it-end {
    margin-top: 40px;
    padding: 30px 22px;
    border-radius: 20px;
    background: linear-gradient(165deg, #1B636A 0%, #155259 45%, #0B3237 100%);
    color: #fff;
    text-align: center;
}

    .it-end h2 {
        margin: 0 0 8px;
        color: #fff;
        font-family: var(--font-display);
        font-size: 1.8rem;
    }

    .it-end p {
        margin: 0 auto 18px;
        max-width: 46ch;
        opacity: 0.92;
    }

.it-end__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.it-end__print {
    display: none;
}

.it-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 60;
    max-width: calc(100% - 32px);
    padding: 12px 20px;
    border-radius: 16px;
    background: rgba(13, 35, 38, 0.95);
    color: #fff;
    font-size: 1rem;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

    .it-toast.is-on {
        opacity: 1;
        transform: translate(-50%, 0);
    }

/* ---------- Phones and narrow screens ---------- */
@media (max-width: 900px) {
    .it-layout {
        grid-template-columns: 1fr;
        padding: 16px 14px 48px;
    }

    .it-side {
        display: none;
    }

    .it-daystrip {
        position: sticky;
        top: calc(var(--header-h, 0px) + 64px);
        z-index: 25;
        display: flex;
        gap: 6px;
        overflow-x: auto;
        padding: 8px 14px;
        border-bottom: 1px solid var(--it-line);
        background: rgba(244, 241, 234, 0.96);
        scrollbar-width: none;
    }

        .it-daystrip::-webkit-scrollbar {
            display: none;
        }

        .it-daystrip a {
            display: flex;
            flex: 0 0 auto;
            flex-direction: column;
            padding: 6px 12px;
            border: 1px solid var(--it-line);
            border-radius: 12px;
            background: #fff;
            color: var(--it-ink);
            font-size: 0.85rem;
            text-decoration: none;
        }

            .it-daystrip a small {
                color: var(--it-muted);
                font-size: 0.74rem;
            }

            .it-daystrip a strong {
                font-size: 0.86rem;
            }

            .it-daystrip a.is-on {
                border-color: var(--it-teal);
                background: var(--it-teal);
                color: #fff;
            }

                .it-daystrip a.is-on small {
                    color: rgba(255, 255, 255, 0.85);
                }

    .it-bar__inner {
        padding: 8px 12px;
    }

    .it-bar__back span {
        font-size: 0.9rem;
    }

    .it-act {
        padding: 8px 12px;
    }

    .it-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .it-section,
    .it-day {
        scroll-margin-top: calc(var(--header-h, 0px) + 140px);
    }
}

@media (max-width: 600px) {
    .it-bar__inner {
        flex-wrap: wrap;
    }

    .it-bar__actions {
        width: 100%;
    }

    .it-act {
        flex: 1;
        justify-content: center;
        padding: 8px 6px;
        font-size: 0.88rem;
    }

    .it-driver__badge {
        display: none !important;
    }

    .it-hero {
        min-height: 300px;
    }

    .it-contact {
        justify-content: flex-start;
    }

    .it-ev {
        grid-template-columns: 36px 1fr;
        gap: 10px;
    }

    .it-tl::before {
        left: 17px;
    }

    .it-ev__icon {
        width: 36px;
        height: 36px;
    }

        .it-ev__icon .it-i {
            width: 18px;
            height: 18px;
        }

    .it-ev__body {
        padding: 12px 14px 14px;
    }

    .it-stay {
        flex-direction: column;
    }

        .it-stay img,
        .it-stay__mark {
            width: 100%;
            height: 150px;
        }

    .it-photos--3 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

        .it-photos--3 figure:first-child {
            grid-column: span 2;
            grid-row: auto;
        }
}

/* ---------- Paper and PDF ---------- */
@media print {
    @page {
        size: A4;
        margin: 14mm 12mm;
    }

    html:has(.it) .site-header,
    html:has(.it) .site-footer,
    html:has(.it) .floating-whatsapp,
    html:has(.it) .back-to-top,
    html:has(.it) .consent-banner,
    html:has(.it) .skip-link {
        display: none !important;
    }

    .it {
        background: #fff;
        font-size: 11pt;
    }

    .it-bar,
    .it-side,
    .it-daystrip,
    .it-toast,
    .it-end .it-btn,
    .it-end__row,
    .it-stay a,
    .it-hero__credit {
        display: none !important;
    }

    .it-layout {
        display: block;
        max-width: none;
        padding: 0;
    }

    .it-card,
    .it-section,
    .it-ev__body {
        box-shadow: none;
        border: 1px solid #e5e0d6;
    }

    .it-hero {
        min-height: 240px;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .it-contact {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .it-day {
        break-before: auto;
        margin-top: 18px;
    }

    .it-day__head {
        break-after: avoid;
    }

    .it-ev,
    .it-stay,
    .it-info > li,
    .it-photos {
        break-inside: avoid;
    }

    .it-photos img {
        max-height: 200px;
    }

    .it-photos--1 img {
        max-height: 230px;
    }

    .it-ev__icon,
    .it-day__n,
    .it-stats span,
    .it-quote,
    .it-note,
    .it-end {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .it-end {
        margin-top: 20px;
        padding: 16px;
        break-inside: avoid;
    }

        .it-end h2 {
            font-size: 15pt;
        }

    .it-end__print {
        display: block;
        margin: 6px 0 0 !important;
        font-size: 9pt;
    }

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

/* A day's title and its first moment, together */
.it-day__lead .it-tl {
    padding-bottom: 0;
}

    .it-day__lead .it-tl .it-ev {
        padding-bottom: 22px;
    }

.it-tl--more::before {
    top: -12px;
}

/* The day strip on a phone: plain chips (no side-list dots) */
.it-daystrip .it-side__day {
    padding: 6px 12px;
    border-bottom: 1px solid var(--it-line);
}

    .it-daystrip .it-side__day::before {
        display: none;
    }

@media (max-width: 600px) {
    .it-wide {
        display: none;
    }
}

@media print {
    .mbs-road {
        display: none !important;
    }

    .it-day__lead {
        break-inside: avoid;
    }
}

@media (max-width: 900px) {
    .it-daystrip {
        top: calc(var(--header-h, 0px) + var(--it-bar-h, 64px));
    }

    .it-section,
    .it-day {
        scroll-margin-top: calc(var(--header-h, 0px) + var(--it-bar-h, 64px) + 76px);
    }
}

/* ---------- The day in pictures: where they sleep, and the stops on the way ---------- */
.it-collage {
    display: grid;
    gap: 6px;
    overflow: hidden;
    border-radius: 16px;
    grid-auto-rows: 130px;
}

.it-collage--1 {
    grid-template-columns: 1fr;
    grid-auto-rows: 300px;
}

.it-collage--2 {
    grid-template-columns: 3fr 2fr;
    grid-auto-rows: 240px;
}

.it-collage--3 {
    grid-template-columns: 2fr 1fr;
}

    .it-collage--3 figure:first-child {
        grid-row: span 2;
    }

.it-collage--4 {
    grid-template-columns: 2fr 1fr 1fr;
}

    .it-collage--4 figure:first-child {
        grid-row: span 2;
    }

    .it-collage--4 figure:nth-child(4) {
        grid-column: span 2;
    }

.it-collage--5 {
    grid-template-columns: 2fr 1fr 1fr;
}

    .it-collage--5 figure:first-child {
        grid-row: span 2;
    }

.it-collage figure {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: #e9e1d2;
}

.it-collage img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(.22, 1, .36, 1);
}

.it-collage figure:hover img {
    transform: scale(1.04);
}

.it-collage figcaption {
    position: absolute;
    left: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
    overflow: hidden;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 253, 249, 0.92);
    color: var(--it-ink);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.it-collage small {
    position: absolute;
    right: 6px;
    top: 6px;
    max-width: calc(100% - 12px);
    overflow: hidden;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(13, 35, 38, 0.55);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.6rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

@media (max-width: 600px) {
    .it-collage {
        grid-auto-rows: 110px;
    }

    .it-collage--1 {
        grid-auto-rows: 220px;
    }

    .it-collage--2 {
        grid-auto-rows: 170px;
    }

    .it-collage--4,
    .it-collage--5 {
        grid-template-columns: 1fr 1fr;
    }

        .it-collage--4 figure:first-child,
        .it-collage--5 figure:first-child {
            grid-column: span 2;
            grid-row: auto;
        }

        .it-collage--4 figure:nth-child(4) {
            grid-column: span 2;
        }
}

@media print {
    .it-collage {
        grid-auto-rows: 90px;
        break-inside: avoid;
    }

    .it-collage--1 {
        grid-auto-rows: 200px;
    }

    .it-collage--2 {
        grid-auto-rows: 150px;
    }

    .it-collage figcaption,
    .it-collage small {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ---------- Send the trip from here ---------- */
.it-send {
    max-width: 560px;
    margin: 26px auto 4px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
    text-align: left;
}

    .it-send h3 {
        margin: 0 0 14px;
        color: #fff;
        font-family: var(--font-display);
        font-size: 1.3rem;
        text-align: center;
    }

.it-send__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.it-send__wide {
    grid-column: span 2;
}

.it-send label {
    display: grid;
    gap: 6px;
}

    .it-send label > span {
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.92rem;
        font-weight: 600;
    }

    .it-send label small {
        font-weight: 400;
        opacity: 0.8;
    }

.it-send input,
.it-send select,
.it-send textarea {
    width: 100%;
    min-height: 50px;
    padding: 11px 14px;
    border: 1.5px solid transparent;
    border-radius: 12px;
    background: #fff;
    color: var(--it-ink);
    font-family: var(--font-body);
    font-size: 1.02rem;
}

.it-send textarea {
    min-height: 90px;
    resize: vertical;
}

    .it-send input:focus-visible,
    .it-send select:focus-visible,
    .it-send textarea:focus-visible {
        outline: none;
        border-color: #E9A23B;
        box-shadow: 0 0 0 3px rgba(233, 162, 59, 0.35);
    }

.it-send__hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0;
}

.it-send__error {
    margin: 12px 0 0 !important;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fbefe4;
    color: #7a3d1c;
    font-weight: 600;
    opacity: 1 !important;
}

.it-btn--light {
    width: 100%;
    margin-top: 14px;
    border-color: transparent;
    background: #fff;
    color: var(--it-teal);
    font-size: 1.05rem;
}

    .it-btn--light:disabled {
        opacity: 0.7;
        cursor: progress;
    }

.it-send__note {
    margin: 10px 0 0 !important;
    font-size: 0.88rem;
    text-align: center;
}

.it-send__done {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #fff;
}

    .it-send__done > .it-i {
        width: 30px;
        height: 30px;
        padding: 5px;
        flex: 0 0 auto;
        border-radius: 50%;
        background: #1DA851;
    }

    .it-send__done strong {
        font-size: 1.1rem;
    }

    .it-send__done p {
        margin: 4px 0 0 !important;
    }

@media (max-width: 600px) {
    .it-send__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media print {
    .it-send {
        display: none !important;
    }
}

/* ---------- The place, as its own card ---------- */
.it-place {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

    .it-place img {
        width: 100%;
        aspect-ratio: 4 / 3;
        border-radius: 12px;
        object-fit: cover;
    }

    .it-place h3 {
        margin-top: 0;
    }

    .it-place p:not(.it-ev__time) {
        margin: 4px 0 0;
    }

.it-place__link {
    display: inline-block;
    margin-top: 8px;
    color: var(--it-teal);
    font-weight: 700;
}

@media (max-width: 640px) {
    .it-place {
        grid-template-columns: 1fr;
        gap: 10px;
    }

        .it-place img {
            aspect-ratio: 16 / 9;
        }
}

/* ---------- Where to stay: on the check-in (full) and check-out (one line) cards ---------- */
.it-stay__none {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 0 !important;
    color: var(--it-muted);
    font-size: 0.95rem;
}

    .it-stay__none .it-i {
        flex: none;
        width: 18px;
        height: 18px;
        color: var(--it-terra);
    }

.it-stay__compact {
    margin: 8px 0 0 !important;
    padding-top: 8px;
    border-top: 1px dashed var(--it-line);
    color: var(--it-ink, #171412);
    font-size: 0.95rem;
    font-weight: 600;
}

.it-stays {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid var(--it-line);
    border-radius: 14px;
    background: #fff;
}

.it-stays__head {
    margin: 0 0 8px !important;
    color: var(--it-terra);
    font-size: 0.74rem !important;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.it-stays__list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.it-stays__item + .it-stays__item {
    padding-top: 10px;
    border-top: 1px solid var(--it-line);
}

.it-stays__name {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
}

    .it-stays__name strong {
        font-family: var(--font-display, Georgia, serif);
        font-size: 1.08rem;
        font-weight: 600;
    }

.it-stays__kind {
    padding: 2px 9px;
    border-radius: 999px;
    background: #f8ece3;
    color: #8a4a2c;
    font-size: 0.74rem;
    font-weight: 700;
}

.it-stays__item p {
    margin: 4px 0 0 !important;
    color: var(--it-muted);
    font-size: 0.93rem;
}

.it-stays__links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

    .it-stays__links a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 38px;
        padding: 6px 14px;
        border: 1.5px solid rgba(21, 82, 89, 0.3);
        border-radius: 999px;
        background: #fff;
        color: var(--it-teal);
        font-size: 0.9rem;
        font-weight: 700;
        text-decoration: none;
        transition: background-color 0.15s ease, border-color 0.15s ease;
    }

        .it-stays__links a:hover {
            border-color: var(--it-teal);
            background: #eef5f4;
        }

        .it-stays__links a .it-i {
            width: 14px;
            height: 14px;
        }

.it-stays__note {
    margin: 10px 0 0 !important;
    color: var(--it-muted);
    font-size: 0.86rem !important;
    font-style: italic;
}

/* Their own plan for a day */
.it-ev__icon--own {
    border-color: var(--it-gold);
    background: #fff7e8;
    color: #8a5a1c;
}

/* The departure day, offered when it isn't in the plan yet */
.it-add-depart {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin: 24px 0 0;
    padding: 14px 16px 14px 14px;
    border: 2px dashed rgba(21, 82, 89, 0.45);
    border-radius: 18px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.2s ease;
}

    .it-add-depart:hover {
        border-style: solid;
        border-color: var(--it-teal);
        box-shadow: 0 14px 26px -20px rgba(23, 20, 18, 0.6);
    }

    .it-add-depart > span:nth-child(2) {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .it-add-depart strong {
        font-family: var(--font-display, Georgia, serif);
        font-size: 1.15rem;
        font-weight: 600;
    }

    .it-add-depart small {
        color: var(--it-muted);
        font-size: 0.92rem;
        line-height: 1.45;
    }

.it-add-depart__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--it-teal);
    color: #fff;
}

    .it-add-depart__icon .it-i {
        width: 24px;
        height: 24px;
    }

.it-add-depart__go {
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--it-teal);
    color: #fff;
    font-weight: 700;
}

@media (max-width: 520px) {
    .it-add-depart {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .it-add-depart__icon {
        width: 44px;
        height: 44px;
    }

    .it-add-depart__go {
        grid-column: 1 / -1;
        text-align: center;
    }
}

@media print {
    .it-add-depart {
        display: none !important;
    }

    .it-stays,
    .it-place {
        break-inside: avoid;
    }

    .it-stays__links a {
        min-height: 0;
        padding: 2px 8px;
    }
}

/* ---------- Times you can change: tap the time ---------- */
.it-slot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    margin: -4px 0 0 -8px;
    padding: 4px 8px;
    border: 0;
    border-radius: 8px;
    background: none;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

    .it-slot:hover,
    .it-slot[aria-expanded="true"] {
        background: #fbf0dc;
    }

    .it-slot:focus-visible {
        outline: 2px solid var(--it-teal);
        outline-offset: 1px;
    }

.it-slot__pen {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fbf0dc;
    color: #a86a10;
}

    .it-slot__pen .it-i {
        width: 12px;
        height: 12px;
    }

.it-slot:hover .it-slot__pen {
    background: #fff;
}

/* Their own time: teal, so they can see what they changed */
.it-slot--set {
    color: var(--it-teal);
}

    .it-slot--set .it-slot__pen {
        background: #e3eeee;
        color: var(--it-teal);
    }

.it-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.it-slot-edit {
    display: grid;
    gap: 10px;
    margin: 4px 0 10px;
    padding: 12px;
    border: 1.5px solid rgba(21, 82, 89, 0.25);
    border-radius: 14px;
    background: #f3f7f6;
}

    .it-slot-edit label {
        display: grid;
        gap: 4px;
        color: var(--it-ink);
        font-size: 0.92rem;
        font-weight: 700;
    }

    .it-slot-edit input[type="time"] {
        width: min(100%, 220px);
        min-height: 48px;
        padding: 8px 12px;
        border: 1.5px solid rgba(23, 20, 18, 0.2);
        border-radius: 12px;
        background: #fff;
        color: var(--it-ink);
        font: inherit;
        font-size: 1.15rem;
    }

        .it-slot-edit input[type="time"]:focus {
            outline: none;
            border-color: var(--it-teal);
            box-shadow: 0 0 0 3px rgba(21, 82, 89, 0.15);
        }

.it-slot-edit__row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .it-slot-edit__row button {
        min-height: 44px;
        padding: 8px 18px;
        border: 1.5px solid rgba(21, 82, 89, 0.3);
        border-radius: 999px;
        background: #fff;
        color: var(--it-teal);
        font: inherit;
        font-size: 0.95rem;
        font-weight: 700;
        cursor: pointer;
    }

    .it-slot-edit__row .it-slot-edit__save {
        border-color: var(--it-teal);
        background: var(--it-teal);
        color: #fff;
    }

    .it-slot-edit__row .it-slot-edit__cancel {
        border-color: transparent;
        background: none;
        color: var(--it-muted);
    }

@media print {
    .it-slot {
        margin: 0;
        padding: 0;
        min-height: 0;
        color: #c07a12 !important;
    }

    .it-slot__pen,
    .it-slot-edit {
        display: none !important;
    }
}

/* A hidden note stays hidden (the after-dark warning) */
.it-note[hidden] {
    display: none !important;
}

/* ========== Private itineraries (from the dashboard) ========== */
.it-hero__for {
    display: inline-block;
    margin: 0 0 10px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--it-teal);
    font-size: 0.95rem;
    font-weight: 700;
}

/* My letter at the top */
.it-letter {
    margin: 0;
    padding: 22px 26px 8px;
    font-family: var(--font-display, Georgia, serif);
    font-size: 1.12rem;
    line-height: 1.7;
}

    .it-letter p {
        margin: 0 0 12px;
    }

.it-letter__sign {
    color: var(--it-teal);
    font-style: italic;
    font-weight: 600;
}

/* Maps, drawn then kept as pictures */
.it-map {
    margin: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #efe3cf;
}

    .it-map img {
        display: block;
        width: 100%;
        height: auto;
    }

    .it-map figcaption {
        padding: 4px 10px;
        background: #f6efe2;
        color: var(--it-muted);
        font-size: 0.7rem;
        text-align: right;
    }

.it-map--day {
    margin: 10px 0 4px;
}

.it-map__wait {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 160px;
    margin: 0;
    color: var(--it-muted);
    font-size: 0.92rem;
}

.it-map--all .it-map__wait {
    min-height: 320px;
}

.it-map__wait .it-i {
    width: 18px;
    height: 18px;
}

/* Meals of the day: B L D */
.it-meals {
    display: inline-flex;
    gap: 4px;
    margin-left: auto;
}

    .it-meals b {
        display: grid;
        place-items: center;
        width: 26px;
        height: 26px;
        border: 1.5px solid var(--it-gold);
        border-radius: 50%;
        background: #fff;
        color: #8a5a1c;
        font-family: var(--font-body, system-ui);
        font-size: 0.74rem;
        font-weight: 800;
    }

.it-flight {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 6px !important;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef5f4;
    color: var(--it-teal);
    font-weight: 700;
}

    .it-flight .it-i {
        width: 16px;
        height: 16px;
    }

.it-stays--booked {
    border-color: rgba(21, 82, 89, 0.35);
    background: #f7fbfa;
}

.it-stays__conf {
    color: var(--it-ink) !important;
}

    .it-stays__conf strong {
        padding: 1px 8px;
        border-radius: 6px;
        background: #fff3d6;
        font-family: ui-monospace, Consolas, monospace;
        letter-spacing: 0.04em;
    }

.it-quote--note p {
    font-style: normal;
}

/* Good to know */
.it-ev__icon--know {
    border-color: var(--it-teal);
    color: var(--it-teal);
}

.it-know {
    display: grid;
    gap: 8px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

    .it-know li {
        display: flex;
        gap: 10px;
        align-items: flex-start;
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .it-know .it-i {
        flex: none;
        width: 18px;
        height: 18px;
        margin-top: 2px;
        color: var(--it-teal);
    }

/* Details: price, included */
.it-price {
    margin: 2px 0 0;
    font-family: var(--font-display, Georgia, serif);
    font-size: 1.4rem;
    font-weight: 600;
}

    .it-price small {
        display: block;
        color: var(--it-muted);
        font-family: var(--font-body, system-ui);
        font-size: 0.9rem;
        font-weight: 400;
    }

.it-incl {
    display: grid;
    gap: 4px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

    .it-incl li {
        position: relative;
        padding-left: 22px;
    }

        .it-incl li::before {
            content: "✓";
            position: absolute;
            left: 0;
            color: var(--it-teal);
            font-weight: 800;
        }

.it-incl--not li::before {
    content: "–";
    color: var(--it-muted);
}

/* Before you go */
.it-handbook {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

    .it-handbook > .it-section__head,
    .it-hb--wide,
    .it-goodbye {
        grid-column: 1 / -1;
    }

.it-hb {
    padding: 16px 18px;
    border: 1px solid var(--it-line);
    border-radius: 14px;
    background: #fff;
}

    .it-hb h3 {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0 0 10px;
        color: var(--it-teal);
        font-size: 1.1rem;
    }

        .it-hb h3 .it-i {
            width: 20px;
            height: 20px;
        }

    .it-hb ul {
        display: grid;
        gap: 6px;
        margin: 0;
        padding-left: 18px;
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .it-hb a {
        color: var(--it-teal);
        font-weight: 700;
    }

.it-nights {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93rem;
}

    .it-nights th {
        padding: 6px 8px;
        border-bottom: 2px solid var(--it-line);
        color: var(--it-muted);
        font-size: 0.76rem;
        letter-spacing: 0.06em;
        text-align: left;
        text-transform: uppercase;
    }

    .it-nights td {
        padding: 7px 8px;
        border-bottom: 1px solid var(--it-line);
    }

    .it-nights em {
        color: var(--it-muted);
    }

@media (max-width: 640px) {
    .it-nights thead {
        display: none;
    }

    .it-nights tr {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 2px 10px;
        padding: 8px 0;
        border-bottom: 1px solid var(--it-line);
    }

    .it-nights td {
        padding: 0;
        border: 0;
    }

        .it-nights td:nth-child(3),
        .it-nights td:nth-child(4) {
            grid-column: 2;
        }
}

.it-goodbye {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: 16px;
    background: var(--it-teal);
    color: #fff;
}

    .it-goodbye img {
        flex: none;
        width: 64px;
        height: 64px;
        border: 3px solid rgba(255, 255, 255, 0.8);
        border-radius: 50%;
        object-fit: cover;
    }

    .it-goodbye p {
        margin: 0;
        font-size: 1.02rem;
        line-height: 1.55;
    }

@media print {
    .it-map__wait {
        display: none;
    }

    .it-map,
    .it-hb,
    .it-nights tr,
    .it-letter {
        break-inside: avoid;
    }

    .it-map--all {
        break-before: auto;
    }

    .it-handbook {
        break-before: page;
    }

    .it-goodbye,
    .it-meals b,
    .it-flight,
    .it-map {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Trip details: every flight */
.it-flights__head {
    margin: 8px 0 4px !important;
    color: var(--it-muted);
    font-size: 0.76rem !important;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.it-flights {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .it-flights li {
        display: grid;
        gap: 1px;
        padding: 8px 12px;
        border-left: 3px solid var(--it-teal);
        border-radius: 0 10px 10px 0;
        background: #f3f7f6;
    }

        .it-flights li strong {
            font-size: 0.98rem;
        }

        .it-flights li span {
            color: var(--it-muted);
            font-size: 0.9rem;
        }

.it-flight + .it-flight {
    margin-top: 0 !important;
}

/* One flight per line, even when several land the same day */
.it-flight {
    display: flex !important;
    width: fit-content;
    max-width: 100%;
    border-radius: 12px !important;
}

/* ---------- What's included: three groups, ✓ + ✕ ---------- */
.it-checks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    align-items: start;
}

.it-check {
    padding: 16px 18px;
    border: 1px solid var(--it-line);
    border-top: 4px solid var(--it-teal);
    border-radius: 14px;
    background: #fff;
}

.it-check--opt {
    border-top-color: #c9962f;
}

.it-check--out {
    border-top-color: #b8a99a;
    background: #faf8f5;
}

.it-check__title {
    margin: 0 0 4px;
    color: var(--it-ink);
    font-size: 1.15rem;
}

.it-check__note {
    margin: 0 0 8px !important;
    color: var(--it-muted);
    font-size: 0.88rem !important;
}

.it-check__group + .it-check__group {
    margin-top: 12px;
}

.it-check__cat {
    margin: 8px 0 6px !important;
    color: var(--it-muted);
    font-size: 0.72rem !important;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.it-check ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.it-check__item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    line-height: 1.4;
}

    .it-check__item strong {
        font-size: 0.97rem;
        font-weight: 600;
    }

    .it-check__item small {
        display: block;
        color: var(--it-muted);
        font-size: 0.86rem;
    }

.it-check__mark {
    flex: none;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 800;
}

.it-check__mark--in {
    background: var(--it-teal);
    color: #fff;
}

.it-check__mark--opt {
    background: #f6e7c7;
    color: #8a5a1c;
}

.it-check__mark--out {
    background: #ece6dd;
    color: #8b7f72;
}

.it-check__price {
    color: #8a5a1c;
    font-size: 0.86rem;
    font-style: normal;
    font-weight: 700;
    white-space: nowrap;
}

.it-check__van {
    width: 100%;
    max-height: 180px;
    margin: 2px 0 10px;
    border-radius: 10px;
    object-fit: cover;
}

@media print {
    .it-check {
        break-inside: avoid;
    }

    .it-check__mark,
    .it-check {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* The place card: its photos, then what it is */
.it-ev--place .it-collage {
    margin-bottom: 14px;
}

.it-place__info h3 {
    margin-top: 0;
}

.it-place__info p:not(.it-ev__time) {
    margin: 4px 0 0;
}

/* The stops on a drive, in pictures, under their list */
.it-way .it-collage {
    margin-top: 12px;
}

/* ---------- A stay as a card: photo, name, address, room, links ---------- */
.it-stay-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

    .it-stay-card:not(:has(.it-stay-card__photo)) {
        grid-template-columns: minmax(0, 1fr);
    }

.it-stay-card__photo {
    width: 120px;
    height: 96px;
    border-radius: 10px;
    object-fit: cover;
}

.it-stay-card__body {
    min-width: 0;
}

.it-stay-card__address {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    margin: 4px 0 0 !important;
    color: var(--it-muted);
    font-size: 0.9rem !important;
}

    .it-stay-card__address .it-i {
        flex: none;
        width: 15px;
        height: 15px;
        margin-top: 2px;
    }

.it-stays__room {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 8px 0 0 !important;
    color: var(--it-ink) !important;
    font-weight: 600;
}

    .it-stays__room .it-i {
        flex: none;
        width: 18px;
        height: 18px;
        margin-top: 2px;
        color: var(--it-terra);
    }

    .it-stays__room small {
        display: block;
        color: var(--it-muted);
        font-size: 0.74rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

@media (max-width: 520px) {
    .it-stay-card {
        grid-template-columns: 1fr;
    }

    .it-stay-card__photo {
        width: 100%;
        height: 160px;
    }
}

/* Dietary needs, on every day with a meal */
.it-diet {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: -6px 0 12px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #fff7e8;
    color: #5b3d14;
    font-size: 0.92rem;
}

    .it-diet .it-i {
        flex: none;
        width: 16px;
        height: 16px;
        margin-top: 2px;
    }

/* The airport's city under its name */
.it-ev__sub {
    margin: -2px 0 6px !important;
    color: var(--it-muted);
    font-size: 0.9rem;
}

/* An activity's photos */
.it-ev__body > .it-collage {
    margin-top: 10px;
}

@media print {
    .it-diet,
    .it-stay-card {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        break-inside: avoid;
    }
}

/* A note from Syphax: hide it, or bring it back */
.it-note-btn {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin-left: 8px;
    padding: 4px 12px;
    border: 1px solid rgba(21, 82, 89, 0.3);
    border-radius: 999px;
    background: #fff;
    color: var(--it-teal);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

    .it-note-btn:hover {
        border-color: var(--it-teal);
        background: #eef5f4;
    }

.it-note-btn--hide {
    margin: 8px 0 0;
    border-color: rgba(23, 20, 18, 0.15);
    color: var(--it-muted);
}

.it-ev--hidden .it-ev__icon {
    opacity: 0.4;
}

.it-ev--hidden .it-ev__body {
    padding-top: 8px;
    padding-bottom: 8px;
    background: transparent;
    box-shadow: none;
    border: 1px dashed rgba(23, 20, 18, 0.15);
}

.it-note-off {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--it-muted);
    font-size: 0.88rem;
    font-style: italic;
}

@media print {
    .it-note-btn,
    .it-ev--hidden {
        display: none !important;
    }
}

/* ========== Edit mode (Syphax), the share panel, comments ========== */
.it-edit-only {
    display: none !important;
}

.it--editing .it-edit-only {
    display: revert !important;
}

.it--editing li.it-edit-only {
    display: grid !important;
}

.it--editing .it-edit-hint {
    display: flex !important;
}

.it--editing [data-edit],
.it--editing [data-dayfield] {
    outline: 1.5px dashed rgba(201, 150, 47, 0.75);
    outline-offset: 3px;
    border-radius: 4px;
    cursor: text;
    transition: background-color 0.15s ease;
}

    .it--editing [data-edit]:hover,
    .it--editing [data-dayfield]:hover {
        background: rgba(251, 240, 220, 0.6);
    }

    .it--editing [data-edit]:focus,
    .it--editing [data-dayfield]:focus {
        outline: 2px solid var(--it-teal);
        background: #fff;
    }

.it-act--edit[aria-pressed="true"] {
    border-color: #c9962f;
    background: #fff7e8;
    color: #5b3d14;
}

.it-edit-hint {
    max-width: 1180px;
    margin: 12px auto 0;
    padding: 10px 14px;
    gap: 10px;
    align-items: flex-start;
    border-radius: 12px;
    background: #fff7e8;
    color: #5b3d14;
    font-size: 0.92rem;
}

    .it-edit-hint .it-i {
        flex: none;
        width: 16px;
        height: 16px;
        margin-top: 3px;
    }

.it-mini-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 5px 14px;
    border: 1.5px solid rgba(21, 82, 89, 0.3);
    border-radius: 999px;
    background: #fff;
    color: var(--it-teal);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

    .it-mini-btn:hover {
        border-color: var(--it-teal);
        background: #eef5f4;
    }

.it-mini-btn--primary {
    border-color: var(--it-teal);
    background: var(--it-teal);
    color: #fff;
}

    .it-mini-btn--primary:hover {
        background: #0f444a;
    }

.it-mini-btn--remove {
    min-height: 30px;
    margin-left: auto;
    padding: 3px 10px;
    border-color: rgba(192, 87, 59, 0.35);
    color: #8a3a22;
    font-size: 0.8rem;
}

.it-ev__body .it-mini-btn--remove {
    margin-top: 8px;
}

.it-ev__body--add {
    padding: 10px 14px;
    border: 1.5px dashed rgba(21, 82, 89, 0.35);
    background: transparent;
    box-shadow: none;
}

.it-way li {
    position: relative;
}

.it-way__edit {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 0;
}

.it--editing .it-way__edit {
    display: flex !important;
}

/* A night's stay, chosen in place */
.it-stay-edit {
    margin-top: 10px;
    padding: 12px;
    border: 1.5px dashed rgba(201, 150, 47, 0.75);
    border-radius: 12px;
    background: #fffbf3;
}

.it--editing .it-stay-edit {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.it-stay-edit label {
    display: grid;
    gap: 4px;
    font-size: 0.82rem;
    font-weight: 700;
}

.it-stay-edit select,
.it-stay-edit input,
.it-pick__own input,
.it-pick__text,
.it-cm-form input,
.it-cm-form textarea,
.it-share__url {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1.5px solid rgba(23, 20, 18, 0.18);
    border-radius: 10px;
    background: #fff;
    color: var(--it-ink);
    font: inherit;
    font-size: 16px;
}

/* Adding an activity / a note in place */
.it-pick {
    display: grid;
    gap: 6px;
}

.it-pick__head {
    margin: 0 !important;
    font-weight: 700;
}

.it-pick__opt {
    display: grid;
    gap: 2px;
    padding: 8px 12px;
    border: 1px solid rgba(23, 20, 18, 0.12);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

    .it-pick__opt:hover {
        border-color: var(--it-teal);
    }

    .it-pick__opt small {
        color: var(--it-muted);
    }

.it-pick__own {
    display: flex;
    gap: 8px;
}

.it-pick__none {
    margin: 0 !important;
    color: var(--it-muted);
}

/* The share panel */
.it-share {
    max-width: 1180px;
    margin: 12px auto 0;
    padding: 0 16px;
}

.it-share__inner {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 2px solid var(--it-teal);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 30px -20px rgba(23, 20, 18, 0.5);
}

.it-share__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 1.05rem;
}

.it-share__text {
    margin: 0;
    color: var(--it-muted);
    font-size: 0.92rem;
}

.it-share__switch {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

    .it-share__switch input {
        width: 22px;
        height: 22px;
        accent-color: var(--it-teal);
    }

.it-share__row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .it-share__row .it-share__url {
        flex: 1 1 280px;
    }

.it-share__inner > .it-mini-btn {
    justify-self: start;
}

/* Comments */
.it-comments {
    margin: 14px 0 0 60px;
    border: 1px solid var(--it-line);
    border-radius: 14px;
    background: #fff;
}

    .it-comments summary {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 14px;
        color: var(--it-teal);
        font-weight: 700;
        cursor: pointer;
    }

        .it-comments summary .it-i {
            width: 18px;
            height: 18px;
        }

.it-comments--new {
    border-color: #c9962f;
    box-shadow: 0 0 0 3px rgba(201, 150, 47, 0.18);
}

.it-cm-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0 14px;
    list-style: none;
}

    .it-cm-list:empty {
        display: none;
    }

.it-cm {
    padding: 10px 12px;
    border-radius: 12px;
    background: #f6f2ea;
}

.it-cm--syphax {
    margin-left: 24px;
    background: #eef5f4;
}

.it-cm--new {
    box-shadow: inset 3px 0 0 #c9962f;
}

.it-cm__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin: 0 0 4px !important;
    font-size: 0.86rem;
}

    .it-cm__head time {
        color: var(--it-muted);
    }

    .it-cm__head em {
        padding: 1px 8px;
        border-radius: 999px;
        background: #c9962f;
        color: #fff;
        font-size: 0.72rem;
        font-style: normal;
        font-weight: 700;
    }

.it-cm__text {
    margin: 0 !important;
    line-height: 1.5;
}

.it-cm-form {
    display: grid;
    gap: 8px;
    padding: 12px 14px 14px;
}

    .it-cm-form label {
        display: grid;
        gap: 4px;
        font-size: 0.86rem;
        font-weight: 700;
    }

    .it-cm-form .it-mini-btn {
        justify-self: start;
    }

.it-cm-form__msg {
    margin: 0 !important;
    color: var(--it-teal);
    font-size: 0.9rem;
}

    .it-cm-form__msg:empty {
        display: none;
    }

.it-talk .it-comments {
    margin-left: 0;
}

.it-talk__intro {
    margin: 0 0 6px !important;
    color: var(--it-muted);
}

.it-side__new {
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #c9962f;
    color: #fff;
    font-size: 0.72rem;
    font-style: normal;
}

.it-slot--ro {
    cursor: default;
}

@media (max-width: 640px) {
    .it-comments {
        margin-left: 0;
    }
}

@media print {
    .it-edit-only,
    .it-edit-hint,
    .it-share,
    .it-comments,
    .it-talk,
    .it-act--edit {
        display: none !important;
    }
}

/* ---------- A stay's photo (its own, or from Google with the credit) ---------- */
.it-stay-card:not(.it-stay-card--photo) {
    grid-template-columns: minmax(0, 1fr) !important;
}

.it-stay-card--photo {
    grid-template-columns: 120px minmax(0, 1fr) !important;
}

.it-stay-card__auto {
    margin: 0;
}

    .it-stay-card__auto figcaption {
        margin-top: 3px;
        color: var(--it-muted);
        font-size: 0.66rem;
        line-height: 1.3;
    }

        .it-stay-card__auto figcaption a {
            color: inherit;
        }

@media (max-width: 520px) {
    .it-stay-card--photo {
        grid-template-columns: 1fr !important;
    }
}

/* ---------- Photos changed on the itinerary (edit mode) ---------- */
.it-photos-edit {
    margin-top: 8px;
}

.it--editing .it-photos-edit {
    display: block !important;
}

.it-pm {
    display: grid;
    gap: 10px;
    margin-top: 10px;
    padding: 12px;
    border: 1.5px dashed rgba(201, 150, 47, 0.75);
    border-radius: 12px;
    background: #fffbf3;
}

.it-pm__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .it-pm__list li {
        display: grid;
        gap: 6px;
    }

    .it-pm__list img {
        width: 100%;
        aspect-ratio: 4 / 3;
        border-radius: 10px;
        object-fit: cover;
    }

.it-pm__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

    .it-pm__btns em {
        color: var(--it-teal);
        font-size: 0.8rem;
        font-style: normal;
        font-weight: 700;
    }

    .it-pm__btns .it-mini-btn--remove {
        margin-left: auto;
    }

.it-pm__row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .it-pm__row label {
        cursor: pointer;
    }

.it-pm__msg {
    margin: 0 !important;
    color: var(--it-teal);
    font-size: 0.88rem;
}

    .it-pm__msg:empty {
        display: none;
    }

@media print {
    .it-pm {
        display: none !important;
    }

    .it-stay-card__auto[hidden] {
        display: none !important;
    }
}

.it-mini-btn .it-i {
    width: 14px;
    height: 14px;
}

/* ---------- Printing / "Save as PDF" on A4: every page ends at a clean point ----------
   Big cards (a drive with its stops, the list of places to stay) may go on to the
   next page rather than jumping whole and leaving half a page blank; their border
   and padding are drawn again on each page, so nothing looks cut. What must stay
   whole stays whole: a hotel, a stop, a photo, a quote, a heading with what follows. */
@media print {
    html,
    body,
    main {
        background: #fff !important;
    }

    p,
    li {
        orphans: 3;
        widows: 3;
    }

    /* Cards with a list inside may continue on the next page… */
    .it-ev:has(.it-stays, .it-way, .it-stays__item),
    .it-stays,
    .it-way {
        break-inside: auto;
    }

    /* …drawn again at the top of the new page (border, padding, rounded corners). */
    .it-ev__body,
    .it-stays,
    .it-card,
    .it-section {
        -webkit-box-decoration-break: clone;
        box-decoration-break: clone;
    }

    /* The pieces that are never cut. */
    .it-ev:not(:has(.it-stays, .it-way, .it-stays__item)),
    .it-stays__item,
    .it-stay-card,
    .it-way li,
    .it-collage,
    .it-photos,
    figure,
    img,
    svg,
    .it-place__info,
    .it-quote,
    .it-note,
    .it-flight,
    .it-check,
    .it-nights tr,
    .it-hero,
    .it-stats,
    .it-end {
        break-inside: avoid;
    }

    /* A title never ends a page on its own. */
    h1,
    h2,
    h3,
    h4,
    .it-day__head,
    .it-ev__time,
    .it-ev__body > h3,
    .it-ev__meta,
    .it-stays__head,
    .it-way__label,
    .it-hb h2,
    .it-hb h3 {
        break-after: avoid;
        break-inside: avoid;
    }

    /* A new day starts with its heading and its first card together. */
    .it-day__lead {
        break-inside: auto;
    }

        .it-day__lead > .it-tl > .it-ev:first-child {
            break-before: avoid;
        }

    /* Photos sized for paper, so a card with a photo fits on a page. */
    .it-collage img,
    .it-photos img,
    .it-stay-card img {
        max-height: 60mm;
        object-fit: cover;
    }

    .it-stay-card__photo {
        max-height: 30mm;
    }
}

@media print {
    /* A card's time, title and first line always start together; the last note stays with its list. */
    .it-ev__time {
        display: block;
        break-after: avoid;
    }

    .it-ev__body > h3,
    .it-ev__body > .it-stays,
    .it-ev__body > .it-way,
    .it-stays__list > .it-stays__item:first-child,
    .it-way ol > li:first-child,
    .it-stays__note {
        break-before: avoid;
    }
}

@media print {
    /* On paper a card is a plain block (its icon sits in the left margin), so a long one
       starts where there's room and goes on to the next page, instead of jumping whole. */
    .it-ev {
        display: block;
        padding-left: 60px;
    }

        .it-ev > .it-ev__icon {
            position: absolute;
            left: 0;
            top: 0;
        }
}

@media print {
    /* Lists inside cards as plain blocks too, so they can go on to the next page between two hotels or two stops. */
    .it-stays__list,
    .it-way ol {
        display: block;
    }

        .it-stays__list > li + li {
            margin-top: 10px;
        }

        .it-way ol > li + li {
            margin-top: 2px;
        }
}

/* The client's own link (/trip/…): just their itinerary, without the site's top menu. */
html:has(.it--client) .site-header {
    display: none;
}
