/* The template trip page, design J (docs/plans/trip-page-redesign.md): the gallery hero, the
   sticky facts strip, the intro with the testimonial, "Everything in the price" (the price card
   and what it covers, design A of 10 October 2026). Loaded only for ?header=gallery while the design is being rolled out
   (TripDetail.razor); becomes part of the page when it is the default.
   Colours: brand pink #D20158, ink #3D3D3D, paper #F3EEE4, hairline #E0E0E0, caption #757575.
   Header pieces are scoped under .th-gallery (the header wrapper); the bands below it use the
   tg- prefix on their own. The hero and the facts strip themselves live in gallery-hero.css
   since 21 October 2026, shared with the experience and region pages. */

.trip-header-wrapper.th-gallery {
    padding: 0;
    color: #3D3D3D;
}

.trip-header-wrapper.th-gallery .tg-serif,
.trip-header-wrapper.th-gallery .tg-title,
.tg-h2,
.tg-price-trip,
.tg-price-car {
    font-family: 'Roboto Serif', Georgia, serif;
}

/* ---- Hero ---- */

/* The breadcrumb's own padding is enough space above the gallery (phones hide the breadcrumb). */
@media (min-width: 769px) {
    .home-container:has(.trip-header-wrapper.th-gallery) {
        padding-top: 0;
    }
}

/* The panel lets clicks through to the photo link under it; only the share button is its own target. */

/* The share button on the dark panel: a translucent pill with white text (app.css paints it
   white on white elsewhere). */

/* ---- Facts strip ---- */

/* The old Trip Info rows as one line: an icon, a grey label, a bold value; the notes behind
   (i) tooltips so every item stays one line high and the strip wraps cleanly. The tooltip
   (.tg-tip) is shared with the price card, so its rules are not scoped to the header. */

/* The icons are the teal brand files; grey here, as the old Trip Info column showed them. */

/* The old row label, for screen readers only. */

.tg-tip {
    position: relative;
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    margin-left: -2px;
    cursor: help;
    border-radius: 50%;
}

.tg-tip:focus-visible {
    outline: 2px solid #D20158;
    outline-offset: 1px;
}

.tg-tip-icon {
    width: 15px;
    height: 15px;
    opacity: .6;
}

.tg-tip-text {
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    transform: translateX(-50%);
    width: 280px;
    max-width: calc(100vw - 32px);
    padding: 10px 12px;
    border-radius: 8px;
    background: #121C30;
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    white-space: normal;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    z-index: 6;
    display: none;
}

.tg-tip-text::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -6px;
    width: 12px;
    height: 12px;
    background: #121C30;
    transform: translateX(-50%) rotate(45deg);
}

.tg-tip:hover .tg-tip-text,
.tg-tip:focus .tg-tip-text,
.tg-tip:focus-within .tg-tip-text {
    display: block;
}

/* The first and last tooltips sit near the page edges: pin them instead of centring. */

/* ---- Intro and price ---- */

.trip-header-wrapper.th-gallery .tg-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 48px;
    align-items: start;
    padding-top: 48px;
}

/* No price: the description alone, at a reading width. */
.trip-header-wrapper.th-gallery .tg-intro.tg-intro-solo {
    grid-template-columns: minmax(0, 860px);
}

.trip-header-wrapper.th-gallery .trip-description {
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
    color: #3D3D3D;
}

/* Next to the price card the intro runs about as tall as the card; stacked (phones) it stays short. */
.trip-header-wrapper.th-gallery .trip-description[data-readmore] .trip-description-text {
    -webkit-line-clamp: 10;
    line-clamp: 10;
}

.trip-header-wrapper.th-gallery .read-more-link {
    color: #D20158;
    margin-top: 6px;
    font-weight: 600;
}

/* The phone copy of the price card, after the highlights (TripDetail.razor): only under 900px,
   where the header's copy is hidden (Florian, 28 October 2026). */
.tg-price-phone {
    display: none;
}

/* The two price cards (server CAD, Vue island) share one look, beside the description. */
.tg-price {
    background: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 14px;
    padding: 22px 24px 24px;
    box-shadow: 0 10px 30px rgba(43, 38, 34, .08);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tg-price-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 16px;
    align-items: baseline;
}

.tg-price-row-car {
    border-top: 1px dashed #E0E0E0;
    padding-top: 12px;
}

.tg-price-label {
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 2px;
}

/* The (i) sits near the card's left edge: the tooltip hangs from it instead of centring. */
.tg-price .tg-tip-text {
    left: -4px;
    transform: none;
}

.tg-price .tg-tip-text::before {
    left: 10px;
    transform: rotate(45deg);
}

.tg-price-amount {
    text-align: right;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.tg-price-original {
    font-size: 14px;
    color: #757575;
}

/* Only the self-drive price is pink; the driver price is ink (Florian, 26 November 2026). */
.tg-price-trip {
    font-size: 26px;
    font-weight: 600;
    color: #B8014C;
    line-height: 1;
}

.tg-price-trip.tg-price-trip-driver {
    color: #232323;
}

.tg-price-from {
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #3D3D3D;
}

.tg-price-car {
    font-size: 20px;
    font-weight: 500;
}

.tg-price-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #757575;
    margin-top: 4px;
}

/* "30-50% less than a guided tour" (P3 of the price canvas, Florian, 10 October 2026): one
   quiet line between the car and the button (no Compare button since 27 November 2026). */
.tg-price-vs {
    border-top: 1px dashed #E0E0E0;
    padding-top: 12px;
    font-size: 13px;
    line-height: 1.35;
}

.tg-price-vs strong {
    color: #D20158;
    font-weight: 700;
}

/* "Who drives?" with both prices (TripPriceChoice.razor; canvas board "one row with both ways and
   prices, copy", Florian, 24 November 2026). Teal for self-drive, blue for the driver; the chosen
   way is outlined and tinted in its colour. */
.tg-choice {
    padding-top: 28px;
}

/* The row after the highlights on wide screens (TripDetail.razor), spaced like the bands. */
.tg-choice.tg-choice-wide {
    padding-top: 0;
    margin-top: 72px;
}

.pc-label {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #232323;
}

.pc-self {
    --pc-color: #087A78;
    --pc-tint: #F0FAF9;
}

.pc-driver {
    --pc-color: #15559A;
    --pc-tint: #F3F7FC;
}

.pc-icon {
    flex: none;
    display: flex;
    color: var(--pc-color);
}

.pc-pt {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.4;
    color: #232323;
}

.pc-pt svg {
    flex: none;
    margin-top: 3px;
    color: var(--pc-color);
}

/* "Yes, foreigners can drive in China" with "See how" (opens the "Driving in China" pop-up). */
.pc-pt-yes strong {
    font-weight: 700;
}

.pc-see {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 700;
    color: #087A78;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    white-space: nowrap;
}

.pc-see:hover {
    text-decoration-thickness: 2px;
}

/* Phones: the yes line a size smaller so "See how" stays on its line (Florian, 25 November 2026). */
.pc-tabcard .pc-pt.pc-pt-yes {
    font-size: 14px;
    letter-spacing: -0.1px;
}

/* The copy inside "Everything in the price" is narrower on a small phone. */
@media (max-width: 400px) {
    .pc-tabcard .pc-pt.pc-pt-yes {
        font-size: 13px;
        letter-spacing: -0.2px;
    }
}

.pc-see:focus-visible {
    outline: 3px solid #232323;
    outline-offset: 2px;
    border-radius: 3px;
}

/* ---- The row: two ways side by side, "Your choice" beside them ---- */
.pc-cmp {
    background: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(43, 38, 34, .08);
    padding: 20px 24px 24px;
}

.pc-cmp-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 250px;
    grid-template-rows: auto auto;
    column-gap: 16px;
    align-items: stretch;
}

/* Each card spans the grid's two rows through a subgrid (head and points, then the prices), so
   the price lines start at the same height in both cards whatever the points take (Florian,
   25 November 2026). */
.pc-col {
    --pc-bg: #fff;
    grid-row: span 2;
    display: grid;
    grid-template-rows: subgrid;
    row-gap: 0;
    align-content: start;
    padding: 16px 18px 18px;
    border: 1px solid #BDBDBD;
    border-radius: 12px;
    background: var(--pc-bg);
    min-width: 0;
    cursor: pointer;
}

.pc-col.is-on {
    --pc-bg: var(--pc-tint);
    border-color: var(--pc-color);
    box-shadow: inset 0 0 0 1px var(--pc-color);
}

.pc-col .pc-icon svg {
    --pc-tint: var(--pc-bg);
}

.pc-pick {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    text-align: left;
    color: #232323;
    cursor: pointer;
}

.pc-pick:focus-visible {
    outline: 3px solid #232323;
    outline-offset: 4px;
    border-radius: 4px;
}

.pc-head {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--pc-color);
}

.pc-name {
    flex: 1;
    min-width: 0;
    font-family: "Roboto Serif", Georgia, serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.2;
}

.pc-dot {
    flex: none;
    width: 22px;
    height: 22px;
    box-sizing: border-box;
    border-radius: 50%;
    border: 2px solid #757575;
    background: #fff;
}

.pc-col.is-on .pc-dot {
    border: 7px solid var(--pc-color);
}

.pc-pts {
    display: grid;
    gap: 6px;
    padding-top: 12px;
}

.pc-prices {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 14px;
}

.pc-prices::before {
    content: "";
    display: block;
    border-top: 1px solid #D0D0D0;
    margin-bottom: 2px;
}

/* The (i) sits near the column's left edge: the tooltip hangs from it, as in the price card. */
.pc-prices .tg-tip-text {
    left: -4px;
    transform: none;
}

.pc-prices .tg-tip-text::before {
    left: 10px;
    transform: rotate(45deg);
}

.pc-side {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0 20px 8px;
    min-width: 0;
}

.pc-side-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pc-side-self {
    color: #087A78;
}

.pc-side-driver {
    color: #15559A;
}

.pc-side-kicker {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #757575;
}

.pc-side-head strong {
    font-family: "Roboto Serif", Georgia, serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.2;
}

.pc-side-head p {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 500;
}

.pc-side-rest {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.pc-side .tg-price-vs {
    border-top: 0;
    padding-top: 0;
}

.pc-side .tg-price-btn {
    margin-top: 0;
}

/* ---- The card with a switch (phone, and beside "Everything in the price") ---- */
.pc-tabcard .pc-label {
    margin-bottom: 0;
}

.pc-tab-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #F2F2F2;
    border-radius: 10px 10px 0 0;
    box-shadow: inset 0 -1px 0 #E2E2E2;
}

.pc-tab {
    min-height: 44px;
    padding: 10px 6px 9px;
    border: 0;
    border-radius: 10px 10px 0 0;
    background: none;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
}

.pc-tab-self {
    color: #087A78;
}

.pc-tab-driver {
    color: #15559A;
}

.pc-tab-self.is-on {
    background: #087A78;
    color: #fff;
    font-weight: 700;
}

.pc-tab-driver.is-on {
    background: #15559A;
    color: #fff;
    font-weight: 700;
}

.pc-tab:focus-visible {
    outline: 3px solid #232323;
    outline-offset: -3px;
}

.pc-why {
    padding: 14px 14px 16px;
    border-radius: 0 0 10px 10px;
    background: var(--pc-tint);
}

.pc-why-self {
    --pc-color: #087A78;
    --pc-tint: #F0FAF9;
}

.pc-why-driver {
    --pc-color: #15559A;
    --pc-tint: #F3F7FC;
}

.pc-why-head {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--pc-color);
}

.pc-why-head h4 {
    margin: 0;
    font-family: "Roboto Serif", Georgia, serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.2;
    color: inherit;
}

.pc-why-head p {
    margin: 2px 0 0;
    font-size: 13px;
    line-height: 1.35;
    color: inherit;
}

.pc-why-pts {
    display: grid;
    gap: 8px;
    padding-top: 12px;
}

/* ---- A trip ticked "No private driver": the same row, "You drive" chosen and the driver card
   greyed, "Not available for this trip" (canvas "Trip page: self-drive only price block",
   option A, Florian, 26 November 2026). Nothing to click, so no pointer. ---- */
.pc-cmp-grid:has(.pc-off) .pc-col {
    cursor: default;
}

.pc-col.pc-off {
    --pc-color: #5C5C5C;
    border-style: dashed;
    background: #FAFAFA;
}

.pc-off-title {
    margin: 14px 0 0;
    font-size: 15px;
    font-weight: 600;
    color: #232323;
}

.pc-off-text {
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: #232323;
}

.pc-off-foot {
    align-self: end;
    padding-top: 14px;
    font-size: 14px;
    font-weight: 600;
}

.pc-off-foot a,
.pc-off-note a {
    color: #15559A;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* The stacked card (phone, and beside "Everything in the price"): no switch, the "Self-drive"
   panel alone, and the driver as one line at the foot of the card. */
.pc-switch-solo .pc-why {
    border-radius: 10px;
}

.pc-off-note {
    margin: 4px 0 0;
    padding-top: 12px;
    border-top: 1px dashed #E0E0E0;
    font-size: 13px;
    line-height: 1.45;
    color: #232323;
}

.pc-off-note strong {
    color: #15559A;
}

@media (max-width: 1100px) {
    /* Narrower screens: "Your choice" goes under the two ways. */
    .pc-cmp-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .pc-side {
        grid-column: 1 / -1;
        padding: 4px 0 0;
    }
}

@media (max-width: 899px) {
    /* Phones: the header's row hides and the card after the highlights shows (tg-price-phone),
       as for the price card. */
    .trip-header-wrapper.th-gallery .tg-choice,
    .tg-choice.tg-choice-wide {
        display: none;
    }

    /* The card keeps its frame, but the switch (tabs and "why" panel) runs to the card's edges
       with no margin around it, after the highlights and in "Everything in the price"
       (Florian, 24 November 2026). */
    .pc-tabcard {
        padding: 18px 16px 20px;
    }

    .pc-tabcard .pc-switch {
        margin: 0 -16px;
    }

    .pc-tabcard .pc-tab-bar,
    .pc-tabcard .pc-tab,
    .pc-tabcard .pc-why {
        border-radius: 0;
    }

    /* In "Everything in the price" the card reaches into the band's padding, so less paper
       shows around it (Florian, 24 November 2026). */
    .tg-money .pc-tabcard {
        margin: 0 -12px;
    }

    /* After the highlights "Who drives?" is the title above the card (TripDetail.razor): the
       label inside stays for screen readers only, and the tabs start at the card's top edge. */
    /* The same title and spacing as the other sections on phones (about 100px above, 22px
       below), Florian, 24 November 2026. */
    .tg-price-phone.tg-price-phone-choice {
        margin-top: 100px;
    }

    .tg-price-phone .tg-price-phone-title {
        margin: 0 0 22px;
    }

    .tg-price-phone .pc-tabcard {
        padding-top: 0;
    }

    .tg-price-phone .pc-tabcard .pc-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .tg-price-phone .pc-tabcard .pc-tab-bar,
    .tg-price-phone .pc-tabcard .pc-tab-self {
        border-top-left-radius: 13px;
    }

    .tg-price-phone .pc-tabcard .pc-tab-bar,
    .tg-price-phone .pc-tabcard .pc-tab-driver {
        border-top-right-radius: 13px;
    }

    /* More air in the "why" panel (Florian, 24 November 2026: too compact). */
    .pc-tabcard .pc-why {
        padding: 20px 18px 22px;
    }

    .pc-tabcard .pc-why-head p {
        margin-top: 4px;
        font-size: 14px;
    }

    .pc-tabcard .pc-why-pts {
        gap: 12px;
        padding-top: 16px;
    }

    .pc-tabcard .pc-pt {
        font-size: 15px;
        line-height: 1.5;
    }

    /* No wheel or driver icon on phones (Florian, 24 November 2026). */
    .pc-icon {
        display: none;
    }
}

/* "Self-drive or private driver" in the facts strip and the kicker. */
.drv-word-self {
    color: #087A78;
    font-weight: 700;
}

.drv-word-driver {
    color: #15559A;
    font-weight: 700;
}

.tg-price-btn {
    background: #D20158;
    color: #fff;
    border: 0;
    padding: 14px 20px;
    border-radius: 10px;
    font: inherit;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    margin-top: 4px;
    cursor: pointer;
}

.tg-price-included {
    margin-top: -2px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #3D3D3D;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tg-price-included:hover {
    color: #D20158;
}

.tg-price-btn:hover {
    background: #9E0142;
}

/* ---- Everything in the price ---- */

.tg-h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.1;
    color: #3D3D3D;
}

/* "Everything in the price" (TripPriceBand.razor, design A of 10 October 2026): the paper band
   at the bottom of the page, after the itinerary; eight icon tiles and "Not in the price" on the
   left, the price card on the right. The card beside the description links here. */
.tg-money {
    margin: 56px 0 0;
    background: #F3EEE4;
    border-radius: 20px;
    padding: 40px 44px 36px;
    color: #3D3D3D;
    scroll-margin-top: 72px;
}

.tg-money-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 28px;
}

.tg-money-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 40px;
    align-items: start;
}

/* No price on the trip: the tiles take the whole width. */
.tg-money-solo .tg-money-grid {
    grid-template-columns: minmax(0, 1fr);
}

/* With "Who drives?" (TripPriceChoice): the card starts level with the heading, beside it and
   the tiles (Florian, 24 November 2026). The section becomes the grid; the inner grid steps
   aside (display: contents) so the tiles and the card sit in the section's columns. */
@media (min-width: 900px) {
    .tg-money.tg-money-choice {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 380px;
        column-gap: 40px;
        align-items: start;
    }

    .tg-money-choice .tg-money-head {
        grid-column: 1;
        grid-row: 1;
    }

    .tg-money-choice .tg-money-grid {
        display: contents;
    }

    .tg-money-choice .tg-money-grid > div:first-child {
        grid-column: 1;
        grid-row: 2;
    }

    .tg-money-choice .tg-money-grid > .pc-tabcard {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
}

.tg-money-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tg-money-tile {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.tg-money-icon {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 12px;
    background: #fff;
    color: #D20158;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.tg-money-icon svg {
    width: 24px;
    height: 24px;
}

.tg-money-title {
    margin: 3px 0 3px;
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: #3D3D3D;
}

.tg-money-text {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.45;
    color: #3D3D3D;
}

.tg-money-text a {
    color: #3D3D3D;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tg-money-text a:hover {
    color: #D20158;
}

/* The same weight as the tiles, no more (Florian, 10 October 2026): on the paper under a
   hairline, a white icon square like theirs, the cross in grey. */
.tg-money-not {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #DED7C8;
}

.tg-money-not-icon {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 12px;
    background: #fff;
    color: #6B6B6B;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.tg-money-not-body {
    flex: 1;
    min-width: 0;
}

.tg-money-not-body .tg-money-title {
    margin-bottom: 8px;
}

.tg-money-not ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 24px;
    font-size: 13.5px;
    line-height: 1.4;
}

.tg-money-not li::before {
    content: "\2715";
    margin-right: 8px;
    font-weight: 700;
    color: #3D3D3D;
}

.tg-money-not .ssr-distance-value,
.tg-money-not .ssr-distance-unit {
    font: inherit;
}

/* ---- Shared by the bands below the header ---- */

.tg-section-kicker {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #D20158;
    font-weight: 600;
}

.tg-section-kicker-gold {
    color: #E7AE4B;
    letter-spacing: .16em;
}

.tg-h2-big {
    font-size: 40px;
}

/* Controls that only work with JavaScript stay hidden until template-trip-header.js shows them. */
.tg-js-only {
    display: none;
}

.tg-js-ready .tg-js-only {
    display: initial;
}

.tg-arrow {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 0;
    background: #D20158;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: opacity .2s ease, background .2s ease;
}

.tg-arrow:hover {
    background: #9E0142;
}

.tg-arrow:disabled {
    opacity: .35;
    cursor: default;
}

.tg-arrow:disabled:hover {
    background: #D20158;
}

/* Outline arrows beside a heading; the solid ones stay for arrows on photos. */
.tg-arrow-quiet {
    background: #fff;
    color: #D20158;
    box-shadow: inset 0 0 0 1.5px #D20158;
}

.tg-arrow-quiet:hover {
    background: #FCE8F0;
}

.tg-arrow-quiet:disabled:hover {
    background: #fff;
}

/* ---- The highlights that make this trip ---- */

.tg-moments {
    margin: 72px 0 0;
    color: #3D3D3D;
}

.tg-moments-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.tg-js-ready .tg-moments-nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tg-moments-counter {
    font-family: 'Roboto Serif', Georgia, serif;
    font-size: 18px;
}

.tg-moments-counter strong {
    font-weight: 600;
}

.tg-moments-counter-rest {
    color: #757575;
}

.tg-moments-single .tg-moments-counter-to {
    display: none;
}

.tg-moments-viewport {
    position: relative;
}

.tg-moments-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #E0E0E0 transparent;
    padding-bottom: 6px;
}

.tg-js-ready .tg-moments-track {
    scrollbar-width: none;
}

.tg-js-ready .tg-moments-track::-webkit-scrollbar {
    display: none;
}

.tg-moment {
    flex: 0 0 250px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tg-moment-photo {
    position: relative;
    height: 330px;
    overflow: hidden;
    border-radius: 10px;
    background: #E0E0E0;
}

.tg-moment-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tg-moment-number {
    position: absolute;
    left: 12px;
    top: 6px;
    font-family: 'Roboto Serif', Georgia, serif;
    font-size: 56px;
    line-height: 1;
    font-weight: 300;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}

.tg-moment-title {
    margin: 0;
    font-family: 'Roboto Serif', Georgia, serif;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 500;
    color: #1B1B1F;
}

.tg-moment-sub {
    margin: 6px 0 0;
    font-size: 14.5px;
    line-height: 1.5;
    color: #2E2E33;
}

.tg-js-ready .tg-moments-fade {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    width: 120px;
    height: 330px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 85%);
    pointer-events: none;
}

.tg-js-ready .tg-arrow-floating {
    position: absolute;
    right: 24px;
    top: 141px;
    box-shadow: 0 6px 18px rgba(210, 1, 88, .35);
}

.tg-js-ready .tg-arrow-floating-prev {
    right: auto;
    left: 24px;
}

.tg-js-ready .tg-moments-at-end .tg-moments-fade,
.tg-js-ready .tg-moments-at-end .tg-arrow-floating:not(.tg-arrow-floating-prev),
.tg-js-ready .tg-moments-at-start .tg-arrow-floating-prev {
    display: none;
}

.tg-js-ready .tg-moments-bar {
    display: block;
    position: relative;
    height: 4px;
    background: #EEE;
    border-radius: 2px;
    margin-top: 18px;
}

.tg-moments-bar-fill {
    position: absolute;
    left: 0;
    width: 25%;
    top: 0;
    bottom: 0;
    background: #D20158;
    border-radius: 2px;
    transition: height .15s ease, top .15s ease, bottom .15s ease;
    cursor: grab;
}

/* The bar is a working scrollbar (template-trip-header.js): a taller invisible hit area, a
   thicker thumb on hover or while dragging, no snapping while the thumb is held. */
.tg-js-ready .tg-moments-bar {
    cursor: pointer;
    touch-action: none;
    user-select: none;
}

.tg-js-ready .tg-moments-bar::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    bottom: -10px;
}

.tg-moments-bar:hover .tg-moments-bar-fill,
.tg-moments-dragging .tg-moments-bar-fill {
    top: -2px;
    bottom: -2px;
}

.tg-moments-dragging .tg-moments-bar-fill {
    cursor: grabbing;
}

.tg-moments-dragging .tg-moments-track {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

/* ---- Good nights along the way ---- */

.tg-nights {
    position: relative;
    isolation: isolate;
    margin-top: 72px;
    padding: 72px 0;
    color: #F3EEE4;
}

/* The band paints across the viewport while its content keeps the page column. */
.tg-nights::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: #151518;
    z-index: -1;
}

.tg-nights-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 28px;
}

.tg-h2.tg-nights-title {
    font-size: 44px;
    font-weight: 400;
    line-height: 1.05;
    color: #fff;
}

.tg-nights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.tg-night {
    display: grid;
    grid-template-columns: 216px minmax(0, 1fr);
    background: #1F1F24;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    text-align: left;
    color: #F3EEE4;
    font: inherit;
    cursor: pointer;
    transition: background .2s ease;
}

.tg-night:hover,
.tg-night:focus-visible {
    background: #2A2A31;
    outline: none;
}

.tg-night:focus-visible {
    box-shadow: 0 0 0 2px #E7AE4B;
}

.tg-night-photo {
    display: block;
    width: 216px;
    height: 160px;
    background: #2A2A31;
}

.tg-night-photo img {
    width: 216px;
    height: 160px;
    object-fit: cover;
    display: block;
}

/* The fold: with JavaScript, a long list shows six stays (three on a phone) until "Show all". */
.tg-js-ready .tg-nights[data-nights-collapsed] .tg-night:nth-child(n+7) {
    display: none;
}

.tg-js-ready .tg-nights-toggle {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin: 40px auto 0;
    padding: 10px 18px;
    border: 1.5px solid #E7AE4B;
    border-radius: 999px;
    background: none;
    color: #F3EEE4;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.tg-nights-toggle-icon {
    flex: none;
    transition: transform .2s ease;
}

.tg-nights-toggle[aria-expanded="true"] .tg-nights-toggle-icon {
    transform: rotate(180deg);
}

.tg-js-ready .tg-nights-toggle:hover {
    background: #E7AE4B;
    color: #1F1F24;
}

.tg-js-ready .tg-nights:not(.tg-nights-long) .tg-nights-toggle {
    display: none;
}

.tg-night-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.tg-night-place {
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(243, 238, 228, .6);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Long names stop at two lines so every stay keeps the photo's height; the full name is in the title. */
.tg-night-name {
    font-family: 'Roboto Serif', Georgia, serif;
    font-size: 17px;
    line-height: 1.25;
    color: #fff;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.tg-night-score {
    font-size: 13px;
    color: rgba(243, 238, 228, .7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tg-night-score strong {
    color: #E7AE4B;
    font-weight: 700;
}

/* ---- The route: the drawn map (TripRouteMap.razor, TripMapRenderer) ---- */

.tg-route {
    margin-top: 72px;
}

.tg-route-head {
    margin-bottom: 22px;
}

.tg-route-sub {
    margin: 8px 0 0;
    max-width: 640px;
    font-size: 16px;
    line-height: 1.5;
    color: #555;
}

/* The map cover, the fallback when the trip has no map to draw. */
.tg-route-map {
    position: relative;
    height: 360px;
    border-radius: 12px;
    overflow: hidden;
    background: #F3EEE4;
}

/* The paper box under the heading: the map, beside it the flights card, legend and note.
   Narrower than the page column (1,000 px since 9 October 2026) and centred (Florian). */
.tg-route-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 250px);
    gap: 28px;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px;
    border-radius: 16px;
    background: #F3EEE4;
    color: #3D3D3D;
}

.tg-route-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 13px;
}

.tg-route-legend li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tg-route-legend-sample {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    flex: none;
    gap: 2px;
}

.tg-route-legend-line {
    width: 32px;
    flex: none;
    border-top: 3px dotted #D20158;
}

.tg-route-legend-high {
    width: 24px;
    height: 14px;
    flex: none;
    border-radius: 3px;
    background: repeating-linear-gradient(125deg, #DCD2BF 0 1px, transparent 1px 6px);
}

.tg-route-legend-flight {
    border-top: 2px dashed #15559A;
}

.tg-route-legend-ring {
    width: 14px;
    height: 14px;
    flex: none;
    border-radius: 999px;
    background: #fff;
    border: 3px solid #D20158;
}

.tg-route-legend-dot {
    width: 10px;
    height: 10px;
    flex: none;
    border-radius: 999px;
    background: #D20158;
}

.tg-route-note {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #757575;
}

.tg-route-figure {
    position: relative;
    margin: 0;
    min-width: 0;
    border-radius: 10px;
    overflow: hidden;
}

.tg-route-svg {
    display: block;
    width: 100%;
    height: auto;
}

/* The SVG itself (.tg-map-*) is styled in route-map.css, shared with the experience pages. */

.tg-route-open {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #3D3D3D;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(43, 38, 34, .14);
}

.tg-route-open:hover {
    color: #D20158;
}

/* The live map in the drawing's place (template trips; TripRouteMap.razor, LiveMap). While it
   shows, the section has tg-route-live-on: the drawing, its legend and the cover hide, and the
   map takes the box's place at about the drawing's size. */
.tg-route-figure-opens {
    cursor: pointer;
}

.tg-route-live {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px;
    border-radius: 16px;
    background: #F3EEE4;
    color: #3D3D3D;
}

.tg-route-live-on .tg-route-box,
.tg-route-live-on .tg-route-map {
    display: none;
}

.tg-route-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 14px;
    padding: 9px 14px 9px 10px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #3D3D3D;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(43, 38, 34, .14);
}

.tg-route-back:hover {
    color: #D20158;
}

/* The map component's own sizes are for the tab (scoped, so one class heavier here). */
.tg-route-live .trip-map-container,
.tg-route-live .trip-map-area {
    min-height: 0;
}

.tg-route-live .trip-map-view {
    flex: none;
    height: min(640px, 72vh);
    min-height: 360px;
    border-radius: 10px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .tg-route-live {
        padding: 16px;
    }

    /* Phones: taller than wide, so the map can be moved with a thumb. */
    .tg-route-live .trip-map-view {
        height: min(520px, 68vh);
    }
}

.tg-route-aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.tg-route-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
}

.tg-route-card-kicker {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #757575;
    font-weight: 600;
}

.tg-route-card svg {
    display: block;
    width: 100%;
    max-width: 340px; /* on one-column screens the card is wide: keep the drawing, and its text, small */
    height: auto;
    margin: 0 auto;
}

.tg-route-card svg text {
    font-family: Roboto, system-ui, sans-serif;
    fill: #3D3D3D;
}

/* The two place names, HTML inside the SVG so a long airport name wraps instead of clipping. */
.tg-route-card-city {
    display: flex;
    align-items: center;
    height: 100%;
    font-family: Roboto, system-ui, sans-serif;
    font-size: 12px;
    line-height: 1.25;
    color: #3D3D3D;
    overflow-wrap: anywhere;
}

.tg-route-card-city-far {
    justify-content: flex-end;
    text-align: right;
}

.tg-route-card svg .tg-route-card-day {
    font-size: 10px;
    font-weight: 500;
    fill: #15559A;
}

.tg-route-card p {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.55;
}

/* ---- Stop by stop: the Overview tab of the itinerary tabs ---- */

.tg-stops {
    margin-top: 8px;
    color: #3D3D3D;
}

.tg-stops-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tg-stop {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    padding: 24px 0;
    border-top: 1px solid #E0E0E0;
}

/* The tab bar's baseline already sits above the first row. */
.tg-stop:first-child {
    border-top: 0;
}

.tg-stop-info {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.tg-stop-number {
    font-family: 'Roboto Serif', Georgia, serif;
    font-size: 34px;
    font-weight: 300;
    line-height: 1;
    color: #D20158;
    min-width: 44px;
}

.tg-stop-city {
    margin: 0;
    font-family: 'Roboto Serif', Georgia, serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
    color: #3D3D3D;
}

.tg-stop-zh {
    margin-left: 6px;
    font-family: 'Ma Shan Zheng', 'KaiTi', 'STKaiti', 'Noto Serif SC', serif;
    font-size: 20px;
    font-weight: 400;
    color: #757575;
}

.tg-stop-days {
    margin: 4px 0 0;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 600;
    color: #757575;
}

.tg-stop-line {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.tg-stop-cards {
    position: relative;
    min-width: 0;
}

.tg-stop-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #E0E0E0 transparent;
    padding-bottom: 6px;
}

.tg-js-ready .tg-stop-track {
    scrollbar-width: none;
}

.tg-js-ready .tg-stop-track::-webkit-scrollbar {
    display: none;
}

.tg-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    text-align: left;
    color: #3D3D3D;
    cursor: pointer;
}

.tg-card-photo {
    position: relative;
    display: block;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    background: #F3EEE4;
}

.tg-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.tg-card:hover .tg-card-photo img {
    transform: scale(1.04);
}

/* A card clicked before the trip data has loaded waits for it (template-trip-header.js). */
.tg-card.is-waiting,
.tg-night.is-waiting {
    cursor: progress;
    opacity: .75;
}

.tg-card:focus-visible {
    outline: 2px solid #D20158;
    outline-offset: 3px;
    border-radius: 8px;
}

.tg-card-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.tg-card-tag {
    position: absolute;
    left: 8px;
    top: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    background: #15559A;
    color: #fff;
}

.tg-arrow-small {
    width: 36px;
    height: 36px;
}

.tg-js-ready .tg-scroll-prev,
.tg-js-ready .tg-scroll-next {
    display: flex;
    position: absolute;
    top: 52px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

.tg-js-ready .tg-scroll-prev { left: -14px; }
/* Inside the row: the itinerary tab panel clips anything past its right edge. */
.tg-js-ready .tg-scroll-next { right: 8px; }

.tg-scroll-prev:disabled,
.tg-scroll-next:disabled {
    visibility: hidden;
}

/* ---- Make it yours ---- */

/* Teal (the brand's second colour) instead of the pink of the price band next to it, so the two
   bands read as different things (Florian, 14 October 2026). Darker than #00C9C7 for text. */
.tg-yours {
    margin-top: 56px;
    padding: 28px 40px;
    border-radius: 16px;
    background: #E6F5F4;
    color: #3D3D3D;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    grid-template-rows: auto 1fr;
    gap: 16px 48px;
    align-items: start;
}

/* The text spans both rows, so the buttons sit right under the chips instead of below the
   headline (leaner band, Florian, 27 November 2026). */
.tg-yours-text {
    grid-row: 1 / span 2;
}

.tg-yours .tg-section-kicker {
    color: #0B8F8D;
}

.tg-yours-lead {
    margin: 12px 0 0;
    font-size: 16px;
    line-height: 1.55;
}

.tg-yours-chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: flex-start;
}

.tg-chip {
    padding: 9px 16px;
    border: 1px solid #BFE0DE;
    border-radius: 999px;
    background: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #3D3D3D;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}

.tg-chip:hover,
.tg-chip:focus-visible {
    border-color: #0B8F8D;
    color: #0B8F8D;
    outline: none;
}

/* A little more air between the chips and the buttons (Florian, 27 November 2026). */
.tg-yours-actions {
    grid-column: 2;
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tg-yours-btn {
    height: 48px;
    padding: 0 26px;
    border-radius: 10px;
    border: 2px solid #0B8F8D;
    background: #0B8F8D;
    color: #fff;
    font: inherit;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
}

.tg-yours-btn:hover {
    background: #087270;
    border-color: #087270;
}

.tg-yours-btn-ghost {
    background: transparent;
    color: #0B8F8D;
}

.tg-yours-btn-ghost:hover {
    background: #fff;
    color: #087270;
}

/* The same button as a link ("Chat on WhatsApp") */
.tg-yours-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

@media (max-width: 899px) {
    .tg-yours {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        padding: 26px 20px;
    }

    .tg-yours-text {
        grid-row: auto;
    }

    .tg-yours-actions {
        grid-column: auto;
    }
}

/* "The itinerary" above the tabs (Overview = the stops, Detail Itinerary = the days). */
.tg-daybyday {
    margin: 72px 0 16px;
}

/* ---- Testimonial, centred after the route map ---- */

.tg-testimonial {
    max-width: 760px;
    margin: 56px auto 24px;
}

/* ---- Narrow screens ---- */

@media (max-width: 899px) {
    

    

    

    

    

    

    

    .trip-header-wrapper.th-gallery .trip-description[data-readmore] .trip-description-text {
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }

    .trip-header-wrapper.th-gallery .tg-intro {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        padding-top: 28px;
    }

    /* Phone order (Florian, 28 October 2026): gallery, description, facts, highlights, price.
       The header stacks as a column with the facts strip after the intro, static rather than
       sticky; the intro's price card hides and the copy after the highlights shows. */
    .trip-header-wrapper.th-gallery .trip-header {
        display: flex;
        flex-direction: column;
    }

    .trip-header-wrapper.th-gallery .tg-hero {
        order: -1;
    }

    .trip-header-wrapper.th-gallery .tg-facts {
        order: 1;
        position: static;
        margin-top: 24px;
        border-top: 1px solid #E0E0E0;
    }

    .trip-header-wrapper.th-gallery .tg-intro .tg-price {
        display: none;
    }

    .tg-price-phone {
        display: block;
        margin-top: 40px;
    }

    .tg-money {
        padding: 28px 22px 26px;
    }

    .tg-money-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 22px;
    }

    .tg-money-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .tg-h2-big {
        font-size: 30px;
    }

    /* Wider cards on phones (Florian, 8 October 2026): one card fills most of the screen,
       the next one peeks in at the edge. */
    .tg-moment {
        flex-basis: min(300px, 82vw);
    }

    .tg-moment-photo {
        height: 360px;
    }

    .tg-js-ready .tg-moments-fade,
    .tg-js-ready .tg-arrow-floating {
        display: none;
    }

    .tg-nights {
        padding: 48px 0;
    }

    .tg-h2.tg-nights-title {
        font-size: 32px;
    }

    .tg-nights-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* The photo is narrower on a phone so the place, hotel name and score have room
       (at 190 px the text column was about 120 px and all three were cut). */
    .tg-night {
        grid-template-columns: 128px minmax(0, 1fr);
    }

    .tg-night-photo,
    .tg-night-photo img {
        width: 128px;
        height: 120px;
    }

    .tg-night-body {
        padding: 12px 14px;
    }

    .tg-night-place {
        white-space: normal;
    }

    .tg-js-ready .tg-nights[data-nights-collapsed] .tg-night:nth-child(n+4) {
        display: none;
    }

    .tg-js-ready .tg-nights:not(.tg-nights-long) .tg-nights-toggle {
        display: flex;
    }

    .tg-route-map {
        height: 280px;
    }

    .tg-route-box {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        padding: 16px;
    }

    .tg-stop {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .tg-card {
        flex-basis: 170px;
    }

    .tg-js-ready .tg-scroll-prev,
    .tg-js-ready .tg-scroll-next {
        display: none;
    }

    /* Rows with more than two cards (TripStopsItinerary.razor) show that they scroll: a soft
       fade on the right and the "more" arrow, one card per tap. Both go at the end of the row
       (Florian, 27 November 2026). Swiping back needs no arrow. */
    .tg-js-ready .tg-stop-cards-many .tg-scroll-next {
        display: flex;
        right: 10px;
        top: 52px;
        z-index: 2;
    }

    .tg-js-ready .tg-stop-cards-many::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 56px;
        height: 146px;
        background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff 85%);
        pointer-events: none;
        transition: opacity .2s ease;
        z-index: 1;
    }

    .tg-js-ready .tg-stop-cards-many.tg-scroller-at-end::after {
        opacity: 0;
    }
}

@media (max-width: 480px) {
    

    .tg-money-tiles {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .tg-money-not ul {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---- Phones ---- */

@media (max-width: 640.98px) {
    /* The page column has no gutter on phones (TripDetail.razor.css, for the tabs further
       down); the header and the bands keep one of their own. */
    .trip-header-wrapper.th-gallery,
    .tg-money,
    .tg-moments,
    .tg-price-phone,
    .tg-nights,
    .tg-route,
    .tg-stops,
    .tg-yours,
    .tg-testimonial,
    .tg-daybyday {
        margin-left: 16px;
        margin-right: 16px;
    }

    /* The sticky facts strip spans the screen so nothing scrolls past its sides. */
    

    /* The hero on a phone: the title first, then the photo and the thumbnails, the title on
       the page instead of on the photo (Florian, 8 October 2026: the photo matters too much to
       cover it, and the name should come before the first image). The markup stays the same;
       the main tile's box dissolves so its link and panel become rows. */
    

    

    

    /* Three thumbnails, a little bigger: the third photo steps aside so "See all" stays last
       (Florian, 9 October 2026). */
    

    

    

    

    

    

    

    

    

    

    /* The card rows scroll edge to edge, with the gutter inside the row (the JavaScript keeps
       the same gutter at the end of the moments track). */
    .tg-moments-viewport,
    .tg-stop-cards {
        margin-left: -16px;
        margin-right: -16px;
    }

    .tg-moments-track,
    .tg-stop-track {
        padding-left: 16px;
        padding-right: 16px;
        scroll-padding-left: 16px;
    }

    /* The facts as two even columns, so the icons and the words line up (Florian, 9 October
       2026: the wrapped line looked messy). */
    

    

    

    /* The price card: each price on its own line under its label (Florian, 9 October 2026:
       beside the label it squeezed the text into a narrow column). */
    .tg-price-row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .tg-price-row .tg-price-amount {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 4px 10px;
        text-align: left;
    }

    .tg-price-row .tg-price-tag {
        margin-top: 0;
    }
}

/* Self-drive alone on phones: the tinted panel starts at the card's top edge and takes its corners. */
@media (max-width: 899px) {
    .tg-price-phone .pc-tabcard .pc-switch-solo .pc-why {
        border-radius: 13px 13px 0 0;
    }
}

/* The protection card (TripProtection.razor), just before "Everything in the price": the
   standard section head (kicker, big title, link on the right, as in .tg-money-head), three points
   in a row with an icon each, the licence on one line below (Florian, 27 November 2026). Soft
   blue (Florian, 1 December 2026; it was pink, option A of the canvas board "Trip page
   protection card: as built and colour options"), so it stands apart from the white page, the
   paper price band and the teal "Make it yours". */
.tg-protect {
    margin: 88px 0 0;
    background: #EAF2FA;
    border-radius: 20px;
    padding: 40px 44px 26px;
    color: #3D3D3D;
    scroll-margin-top: 72px;
}

.tg-protect-head {
    margin-bottom: 28px;
}

/* Two even lines rather than "live." alone on the second. */
.tg-protect-head .tg-h2 {
    text-wrap: balance;
}

.tg-protect-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tg-protect-point {
    padding: 0 28px;
    border-left: 1px solid #CFE0F0;
}

.tg-protect-point:first-child {
    padding-left: 0;
    border-left: 0;
}

.tg-protect-point:last-child {
    padding-right: 0;
}

/* Each point title starts with a small blue icon. */
.tg-protect-point-title {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 6px;
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #232323;
}

.tg-protect-icon {
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: -1px;
    color: #15559A;
}

.tg-protect-point-text,
.tg-protect-foot {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: #232323;
}

.tg-protect-foot {
    margin-top: 24px;
    padding: 16px 0 0;
    border-top: 1px solid #CFE0F0;
}

.tg-protect-foot strong {
    font-weight: 700;
}

.tg-protect-point-text a,
.tg-protect-foot a {
    color: #232323;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tg-protect-point-text a:hover,
.tg-protect-foot a:hover {
    color: #15559A;
}

/* Tablets and phones: the head stacks, the three points one under the other. */
@media (max-width: 899px) {
    .tg-protect {
        margin-top: 56px;
        padding: 28px 22px 20px;
    }

    .tg-protect-head {
        margin-bottom: 8px;
    }

    .tg-protect-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .tg-protect-point,
    .tg-protect-point:first-child,
    .tg-protect-point:last-child {
        margin-top: 14px;
        padding: 14px 0 0;
        border-left: 0;
        border-top: 1px solid #CFE0F0;
    }

    .tg-protect-foot {
        margin-top: 18px;
    }
}

/* Phones: the page column has no gutter, so the card keeps one of its own, as the price band
   below it does (Florian, 1 December 2026: it ran to the screen's edges). */
@media (max-width: 640.98px) {
    .tg-protect {
        margin-left: 16px;
        margin-right: 16px;
    }
}

/* On the blue card the kicker is the deep blue, like its icons. */
.tg-protect .tg-section-kicker {
    color: #15559A;
}

/* The header's right column, beside the description: the price card when the trip shows one
   there, then the three facts of the home protection strip (TripSideFacts.razor; Florian,
   27 November 2026). Hidden under 900px, where the price card moves after the highlights and the
   full "Your trip is protected" card lower on the page carries the message. */
.tg-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* White with a thin warm outline and black titles; teal stays in the icons only (canvas "Trip
   page side box: colour alternatives", A; Florian, 27 November 2026). */
.tg-side-facts {
    background: #fff;
    border: 1px solid #E0D8C8;
    border-radius: 14px;
    padding: 22px 24px 20px;
    color: #232323;
}

.tg-side-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tg-side-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.tg-side-icon {
    flex: none;
    width: 32px;
    height: 32px;
    margin-top: 2px;
    color: #087A78;
}

.tg-side-title {
    margin: 0 0 2px;
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #232323;
}

.tg-side-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    color: #232323;
}


@media (max-width: 899px) {
    .tg-side-facts {
        display: none;
    }
}

/* The switch card's points sit on white inside a thin outline in the way's colour, with no
   icon or heading above them (canvas "Who drives? card: lighter versions", A; Florian,
   27 November 2026). Not for self-drive alone (no switch): that panel keeps its heading. */
.pc-tabcard .pc-switch:not(.pc-switch-solo) .pc-why {
    padding: 14px;
    background: #fff;
    border: 1px solid #CFE7E5;
    border-top: 0;
}

.pc-tabcard .pc-switch:not(.pc-switch-solo) .pc-why-driver {
    border-color: #D3E0F0;
}

.pc-tabcard .pc-switch:not(.pc-switch-solo) .pc-why-pts {
    padding-top: 0;
}

/* A little more air between the points block and the first price line (Florian, 27 November 2026). */
.pc-tabcard .pc-switch {
    margin-bottom: 10px;
}

/* ---- A client's own trip that is not paid yet (ClientTripHeader.razor, 28 November 2026) ----
   The template's gallery header with the old price box beside the description (CostDisplay.vue,
   variant "header") and the dates and travelers bar under it (QuoteTripHeader.vue, "bar"). */

/* The pencil, the rename input and the admin menu sit on the hero's dark panel, which lets
   clicks through to the photo: each is its own target, like the share button. */
.th-client .tg-title-edit {
    pointer-events: auto;
    flex: none;
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .14);
    color: #fff;
    cursor: pointer;
}

.th-client .tg-title-edit:hover {
    background: rgba(255, 255, 255, .28);
    border-color: #fff;
}

.th-client .tg-title-input {
    pointer-events: auto;
    flex: 1 1 240px;
    min-width: 0;
    font-family: 'Roboto Serif', Georgia, serif;
    font-size: 26px;
    font-weight: 500;
    color: #232323;
    background: #fff;
    border: 0;
    border-radius: 8px;
    padding: 6px 10px;
}

/* The facts strip never sticks on a client trip (Florian, 30 November 2026). */
.trip-header-wrapper.th-gallery.th-client .tg-facts {
    position: static;
}

.th-client .tg-title-row {
    flex-wrap: wrap;
    gap: 10px 12px;
}

.th-client .tg-admin-menu {
    pointer-events: auto;
    position: relative;
    font-size: 13px;
}

.th-client .tg-admin-menu summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-weight: 500;
    cursor: pointer;
}

.th-client .tg-admin-menu summary::-webkit-details-marker {
    display: none;
}

.th-client .tg-admin-menu-list {
    position: absolute;
    left: 0;
    bottom: calc(100% + 6px);
    z-index: 6;
    min-width: 170px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    overflow: hidden;
}

.th-client .tg-admin-menu-list a {
    padding: 10px 14px;
    color: #232323;
    font-size: 14px;
    text-decoration: none;
}

.th-client .tg-admin-menu-list a:hover,
.th-client .tg-admin-menu-list a[aria-current] {
    background: #F3EEE4;
}

/* The old header's price box (app.css: .trip-header-right, .cost-info-box) in the right column:
   it fills the column instead of taking 30% of a row. */
.th-client .tg-side .trip-header-right {
    flex: none;
    padding-top: 0;
}

.th-client .tg-side .cost-info-box {
    max-width: none;
}

/* The box wears the template price card's look (.tg-price): white card, the label on the left,
   the amount on the right in the serif and the brand pink, the button across the card. Only the
   look: the markup, the states and the button are CostDisplay.vue's own (Florian, 28 November
   2026). Its styles are scoped, so every rule here is one class heavier. */
.th-client .tg-side .cost-info-box {
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    color: #3D3D3D;
}

.th-client .tg-side .cost-display .estimated-cost {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 16px;
    align-items: baseline;
    min-width: 0;
    text-align: left;
}

.th-client .tg-side .cost-display .cost-header {
    grid-column: 1;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 6px;
    margin: 0;
}

.th-client .tg-side .cost-display .cost-label {
    font-size: 15px;
    font-weight: 600;
    color: #232323;
}

.th-client .tg-side .cost-display .info-icon {
    width: 15px;
    height: 15px;
}

/* The (i) note opens under the icon, inside the card, not to its left over the description. */
.th-client .tg-side .cost-display .info-tooltip {
    left: -8px;
    top: calc(100% + 8px);
    z-index: 6;
}

.th-client .tg-side .cost-display .info-tooltip::before,
.th-client .tg-side .cost-display .info-tooltip::after {
    display: none;
}

.th-client .tg-side .cost-display .cost-value {
    grid-column: 2;
    grid-row: 1 / span 2;
    text-align: right;
    font-size: 15px;
    color: #232323;
}

.th-client .tg-side .cost-display .cost-template-stack {
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.th-client .tg-side .cost-display .cost-amount {
    font-family: 'Roboto Serif', Georgia, serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 1;
    color: #B8014C;
}

.th-client .tg-side .cost-display .cost-amount-original {
    font-size: 14px;
    color: #5F5F5F;
}

.th-client .tg-side .cost-display .cost-context-note {
    grid-column: 1;
    margin: 0;
    font-size: 13px;
    color: #3D3D3D;
}

.th-client .tg-side .cost-display .cancellation-lifecycle-info,
.th-client .tg-side .cost-display .book-button-container {
    grid-column: 1 / -1;
}

.th-client .tg-side .cost-display .book-button-container {
    margin-top: 14px;
}

.th-client .tg-side .cost-display .book-button-container .book-btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: 10px;
    background: #D20158;
    border-color: #D20158;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.th-client .tg-side .cost-display .book-button-container .book-btn:hover {
    background: #9E0142;
    border-color: #9E0142;
}

/* The dates and travelers panel, left of the quote (where the description was until
   30 November 2026). */
.trip-header-wrapper.tg-client-bar {
    padding: 0;
    margin: 0;
}

/* One white card across the page: the dates and travelers on the left, a hairline, the quote on
   the right (canvas option 1, Florian, 30 November 2026). The card is the row itself, so the
   panel and the price box inside lose their own frames. */
.trip-header-wrapper.th-gallery.th-client .tg-client-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    gap: 0;
    align-items: stretch;
    padding: 0;
    margin-top: 40px;
    background: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(43, 38, 34, .08);
}

/* A share link: the quote alone, at the price box's width. */
.trip-header-wrapper.th-gallery.th-client .tg-client-row.tg-client-row-solo {
    grid-template-columns: minmax(0, 1fr);
    max-width: 440px;
}

.th-client .tg-client-dates-off {
    display: none;
}

.th-client .tg-client-dates {
    min-width: 0;
    padding: 26px 28px;
}

.th-client .tg-client-dates-title {
    margin: 0 0 14px;
    font-family: 'Roboto Serif', Georgia, serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    color: #232323;
}

.th-client .tg-client-row .tg-side {
    justify-content: center;
    padding: 26px 28px;
    border-left: 1px solid #E0E0E0;
}

.th-client .tg-client-row-solo .tg-side {
    border-left: 0;
}

.trip-header-wrapper.tg-client-bar .create-trip-container,
.trip-header-wrapper.tg-client-bar .trip-booking-panel-wrapper,
.trip-header-wrapper.tg-client-bar .create-trip-form {
    margin: 0;
}

.trip-header-wrapper.tg-client-bar .trip-booking-panel {
    background: none;
    border: 0;
    box-shadow: none;
}

.trip-header-wrapper.tg-client-bar .inline-booking-form {
    padding: 0;
    /* The date, the travelers and the button fit one line in the card's left part on a
       laptop; they still wrap where the column is narrower. */
    gap: 12px;
}

.trip-header-wrapper.tg-client-bar .travelers-selector {
    min-width: 150px;
}

@media (max-width: 899px) {
    /* Phones: gallery, description, facts, then the price box and the dates bar (the canvas's
       phone board). The intro's two columns become items of the header's own column. */
    .trip-header-wrapper.th-gallery.th-client .tg-intro {
        display: contents;
    }

    /* Phones: gallery, facts, then the same card stacked: the quote on top, the dates under
       it. The row is not a box here (display: contents, for the order), so the two parts carry
       the card's outline between them. */
    .th-client .tg-side .trip-header-right {
        width: 100%;
    }

    .th-client .tg-client-row .tg-side {
        order: 2;
        margin-top: 24px;
        padding: 22px 20px;
        background: #fff;
        border: 1px solid #E0E0E0;
        border-bottom: 0;
        border-radius: 14px 14px 0 0;
    }

    .th-client .tg-client-dates {
        order: 3;
        padding: 20px;
        background: #fff;
        border: 1px solid #E0E0E0;
        border-radius: 0 0 14px 14px;
    }

    .th-client .tg-client-row-solo .tg-side {
        border-bottom: 1px solid #E0E0E0;
        border-radius: 14px;
    }

}

@media (max-width: 640.98px) {
    /* Small phones: the title sits above the photo on white (gallery-hero.css), so the pencil
       and the admin menu take the share button's pink outline there. */
    .th-client .tg-title-edit,
    .th-client .tg-admin-menu summary {
        background: #fff;
        border-color: #D20158;
        color: #D20158;
    }

    .th-client .tg-title-input {
        border: 1px solid #BDBDBD;
        font-size: 22px;
    }

    .th-client .tg-admin-menu-list {
        bottom: auto;
        top: calc(100% + 6px);
    }
}
