/* Redesigned tour page. Everything is scoped to .pg-tour or to pages that contain it. */
.pg-tour {
    padding-top: var(--pg-header);
    background: var(--pg-paper);
    color: var(--pg-ink);
    font-family: var(--pg-sans);
    font-size: 18px;
    line-height: 1.6;
}

.pg-tour field { display: block; }

.pg-tour p,
.pg-tour li,
.pg-tour td,
.pg-tour th,
.pg-tour h3 { font-family: var(--pg-sans); color: inherit; }

.pg-tour__hero { height: 520px; background: var(--pg-sand); }
.pg-tour__hero img { display: block; width: 100%; height: 100%; object-fit: cover; }

.pg-tour__layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 64px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px 80px;
    box-sizing: border-box;
}

.pg-tour__main { flex: 999 1 560px; min-width: 0; padding-top: 48px; }

.pg-tour__title {
    margin: 0;
    font-family: var(--pg-serif);
    font-size: 44px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -.01em;
    text-wrap: balance;
    color: var(--pg-ink);
}

.pg-tour__subtitle {
    margin: 12px 0 0;
    font-family: var(--pg-serif) !important;
    font-size: 22px;
    line-height: 1.3;
    color: var(--pg-stone) !important;
}

.pg-tour__facts {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 16px;
    margin: 28px 0 0;
    padding: 16px 0;
    border-top: 1px solid #f0ebe2;
    border-bottom: 1px solid #f0ebe2;
}

.pg-tour__facts > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pg-tour__facts > .is-compact-only { display: none; }
.pg-tour__facts img { flex: none; width: 28px; height: 28px; object-fit: contain; }
.pg-tour__facts dt { font-size: 14px; font-weight: 400; line-height: 1.3; color: var(--pg-stone); }
.pg-tour__facts dd { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; }

.pg-tour__tabs {
    position: sticky;
    top: var(--pg-header);
    z-index: 5;
    display: flex;
    gap: 32px;
    margin-top: 16px;
    background: var(--pg-paper);
    border-bottom: 1px solid var(--pg-line);
}

.pg-tour__tabs button {
    margin-bottom: -1px;
    padding: 18px 0 15px;
    background: none;
    border: 0;
    border-bottom: 3px solid transparent;
    color: var(--pg-ink);
    font: 600 16px/1.2 var(--pg-sans);
    white-space: nowrap;
    cursor: pointer;
}

.pg-tour__tabs button:hover { color: var(--pg-red); }
.pg-tour__tabs button.is-active { border-bottom-color: var(--pg-red); color: var(--pg-red); }
.pg-tour__tabs button:focus-visible { outline: 2px solid var(--pg-orange); outline-offset: 2px; }

.pg-tour__gallery { margin-bottom: 28px; }
.pg-tour__slider { display: block; aspect-ratio: 3 / 2; background: var(--pg-sand); }
.pg-tour__slider swiper-slide,
.pg-tour__slider a,
.pg-tour__slider img { display: block; width: 100%; height: 100%; }
.pg-tour__slider img { object-fit: cover; }

.pg-tour__gallery-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding-top: 8px; }
.pg-tour__gallery-bar p { margin: 0; font-size: 15px; line-height: 1.4; color: var(--pg-stone) !important; }
.pg-tour__gallery-nav { display: flex; flex: none; align-items: center; gap: 2px; margin-right: -10px; font-size: 14px; color: var(--pg-stone); }
.pg-tour__gallery-nav span { margin-right: 6px; }

.pg-tour__gallery-nav button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: 0;
    color: var(--pg-ink);
    cursor: pointer;
}

.pg-tour__gallery-nav button:hover { color: var(--pg-red); }

.pg-tour__section { padding-top: 40px; }

.pg-tour__section h2 {
    margin: 0 0 20px;
    font-family: var(--pg-serif);
    font-size: 36px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--pg-ink);
}

.pg-tour__section h3 { margin: 0 0 12px; font-size: 18px; font-weight: 700; color: var(--pg-ink); }
.pg-tour__prose { max-width: 680px; }
.pg-tour__prose h5:first-child { display: none; }
.pg-tour [x-cloak] { display: none; }
.pg-tour__prose p { margin: 0 0 16px; }
.pg-tour__lead { margin: -8px 0 32px; color: var(--pg-stone) !important; }
.pg-tour__small { margin: 16px 0 0; font-size: 16px; color: var(--pg-stone) !important; }

.pg-tour__chart {
    display: grid;
    grid-template-columns: repeat(var(--days), minmax(0, 1fr));
    gap: 6px;
    align-items: end;
    height: 200px;
}

.pg-tour__bar { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; height: 100%; min-width: 0; }
.pg-tour__bar span { font-size: 13px; font-weight: 600; line-height: 1.2; text-align: center; }
.pg-tour__bar i { display: block; height: calc(130px * var(--ratio)); min-height: 6px; background: var(--pg-line); }
.pg-tour__bar--walk i { background: var(--pg-orange); }
.pg-tour__bar--rest i { background: #c9bead; }
.pg-tour__bar b { padding-top: 8px; border-top: 2px solid var(--pg-ink); font-size: 14px; font-weight: 400; color: var(--pg-stone); text-align: center; }

.pg-tour__days { margin: 40px 0 0; padding: 0; list-style: none; }
.pg-tour__day { margin: 0; border-bottom: 1px solid var(--pg-line); list-style: none; }
.pg-tour__day::marker { content: none; }

.pg-tour__day button,
.pg-tour__day-row {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    min-height: 72px;
    padding: 16px 0;
    background: none;
    border: 0;
    color: inherit;
    font: inherit;
    text-align: left;
}

.pg-tour__day button { cursor: pointer; }

.pg-tour__day button svg { flex: none; transition: transform .2s; }
.pg-tour__day.is-open button svg { transform: rotate(180deg); }

.pg-tour__day-number {
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    height: 44px;
    border-radius: 50%;
    background: var(--pg-sand);
    font-size: 16px;
    font-weight: 700;
}

.pg-tour__day--rest .pg-tour__day-number { background: #fff; box-shadow: inset 0 0 0 1px #c9bead; }
.pg-tour__day.is-open .pg-tour__day-number { background: var(--pg-ink); color: #fff; }
.pg-tour__day-heading { flex: 1 1 auto; min-width: 0; }
.pg-tour__day-title { display: block; font-family: var(--pg-serif); font-size: 21px; line-height: 1.3; }
.pg-tour__day-meta { display: block; font-size: 15px; color: var(--pg-stone); }
.pg-tour__day-body { max-width: 640px; padding: 0 40px 24px 64px; }
.pg-tour__day-body p { margin: 0 0 12px; }

.pg-tour__services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
.pg-tour__services > :only-child { grid-column: 1 / -1; }
.pg-tour__services ul { margin: 0; padding: 0; list-style: none; }
.pg-tour__services .su-list { margin: 0; }
.pg-tour__services li { padding: 7px 0; border-top: 1px solid var(--pg-line); font-size: 16px; line-height: 1.4; list-style: none; }
.pg-tour__services li > i { display: none; }
.pg-tour__services p:empty { display: none; }
.pg-tour__included li { position: relative; padding-left: 28px; }

.pg-tour__included li::before {
    content: "";
    position: absolute;
    top: 13px;
    left: 2px;
    width: 13px;
    height: 6px;
    border-bottom: 2.5px solid var(--pg-red);
    border-left: 2.5px solid var(--pg-red);
    transform: rotate(-45deg);
}

.pg-tour__excluded li { color: var(--pg-stone); }
.pg-tour__note { margin-top: 20px; padding: 16px 18px; background: var(--pg-sand); font-size: 15px; line-height: 1.5; }
.pg-tour__note p { margin: 0 0 10px; }
.pg-tour__note p:last-child { margin: 0; }
.pg-tour__footnotes { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--pg-line); font-size: 14px; line-height: 1.5; color: var(--pg-stone); }
.pg-tour__footnotes p { margin: 0; color: inherit !important; }
.pg-tour__footnotes small { font-size: inherit; }

.pg-tour__dates { overflow-x: auto; }
.pg-tour .tour-dates { min-width: 620px; margin: 0; font-size: 17px; }
.pg-tour .tour-dates td { white-space: nowrap; }
.pg-tour .tour-dates th { padding: 8px 16px 8px 0; font-size: 14px; font-weight: 600; color: var(--pg-stone); }
.pg-tour .tour-dates td { padding: 16px 16px 16px 0; color: var(--pg-ink); font-weight: 400; }
.pg-tour .tour-dates td:first-child,
.pg-tour .tour-dates__price { font-weight: 600; }
.pg-tour .tour-dates tr { border-bottom: 1px solid var(--pg-line); }
.pg-tour .tour-dates td:last-child { padding-right: 0; text-align: right; }

.pg-tour__photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pg-tour__photos a { display: block; height: 196px; overflow: hidden; }
.pg-tour__photos a:first-child { grid-column: span 2; grid-row: span 2; height: 400px; }
.pg-tour__photos a.is-extra { display: none; }
.pg-tour__photos img { display: block; width: 100%; height: 100%; object-fit: cover; }

.pg-tour__side {
    position: sticky;
    top: calc(var(--pg-header) + 16px);
    z-index: 6;
    flex: 1 1 340px;
    max-width: 400px;
    margin-top: -120px;
}

.pg-tour__card { padding: 28px; box-sizing: border-box; background: #fff; }
.pg-tour__side-note { margin-top: 16px; padding: 18px 20px; background: var(--pg-sand); font-size: 15px; line-height: 1.5; }
.pg-tour__side-note h3 { margin: 0 0 8px; font-family: var(--pg-serif); font-size: 20px; font-weight: 500; color: var(--pg-ink); }
.pg-tour__side-note p { margin: 0 0 8px; }
.pg-tour__side-note p:last-child { margin: 0; }

.pg-tour__card-from,
.pg-tour__card-note { margin: 0; font-size: 16px; color: var(--pg-stone) !important; }
.pg-tour__card-price { margin: 0; font-family: var(--pg-serif) !important; font-size: 52px; font-weight: 500; line-height: 1.1; }
.pg-tour__card-note { margin-top: 4px; }
.pg-tour__card-row { display: flex; justify-content: space-between; gap: 16px; margin-top: 8px; font-size: 16px; }
.pg-tour__card-note + .pg-tour__card-row { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--pg-line); }
.pg-tour__card-row .price,
.pg-tour__card-row .currency { font-weight: 700; }
.pg-tour__book { margin-top: 24px; }
.pg-tour__card-help { margin: 16px 0 0; font-size: 15px; line-height: 1.5; color: var(--pg-stone) !important; }
.pg-tour__card-help a { color: var(--pg-ink); font-weight: 600; }

.pg-tour .button.button-primary { display: flex; }
.pg-tour .tour-dates .button.button-primary { display: inline-flex; min-height: 44px; padding: 0 20px; font-size: 16px; }

.pg-tour__bar-mobile { display: none; }

body:has(.pg-tour) .main-footer { margin-top: 0; }

/* Booking form in the modal. Tailwind utilities are themed through their variables. */
body:has(.pg-tour) {
    --tw-color-primary: #f09001;
    --tw-color-secondary: #23201c;
    --tw-color-gray-300: #e5ddd0;
    --tw-color-gray-200: #e5ddd0;
    --tw-color-gray-700: #5c554c;
    --tw-color-zinc-50: #f6f0e6;
    --tw-radius-md: 0;
    --tw-radius-lg: 0;
    --tw-radius-sm: 0;
}

body:has(.pg-tour) section[id^="book-form-"],
body:has(.pg-tour) section[id^="book-form-"] label,
body:has(.pg-tour) section[id^="book-form-"] input,
body:has(.pg-tour) section[id^="book-form-"] select,
body:has(.pg-tour) section[id^="book-form-"] textarea,
body:has(.pg-tour) section[id^="book-form-"] button,
body:has(.pg-tour) section[id^="book-form-"] p,
body:has(.pg-tour) section[id^="book-form-"] span {
    font-family: "Figtree", Arial, sans-serif !important;
}

body:has(.pg-tour) section[id^="book-form-"] h1,
body:has(.pg-tour) section[id^="book-form-"] h2,
body:has(.pg-tour) section[id^="book-form-"] h3,
body:has(.pg-tour) section[id^="book-form-"] h4,
body:has(.pg-tour) section[id^="book-form-"] h5 {
    font-family: "Literata", Georgia, serif !important;
    font-weight: 500;
}

body:has(.pg-tour) section[id^="book-form-"] .btn-primary {
    min-height: 48px;
    background: #f09001 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #23201c !important;
    font-size: 16px;
    font-weight: 700;
}

body:has(.pg-tour) section[id^="book-form-"] .btn-primary:hover { background: #d97f00 !important; }

/* .btn-primary lives in Tailwind's components layer, so its important text color is only beaten from an earlier layer. */
@layer theme {
    body:has(.pg-tour) section[id^="book-form-"] .btn-primary {
        background-color: #f09001 !important;
        color: #23201c !important;
        padding: 12px 8px !important;
        font-size: 16px !important;
        line-height: 1.25 !important;
        height: auto !important;
    }

    body:has(.pg-tour) section[id^="book-form-"] input:not([type="checkbox"]):not([type="radio"]),
    body:has(.pg-tour) section[id^="book-form-"] select { height: 48px !important; }

    body:has(.pg-tour) section[id^="book-form-"] input:not([type="checkbox"]):not([type="radio"]),
    body:has(.pg-tour) section[id^="book-form-"] select,
    body:has(.pg-tour) section[id^="book-form-"] textarea { box-shadow: none !important; }

    /* Even space on all sides of the form window; Tailwind's important padding is only beaten from this layer. */
    @media (min-width: 992px) {
        body:has(.pg-tour) section[id^="book-form-"] { padding: 32px !important; }
        body:has(.pg-tour) section[id^="book-form-"] form > .tw\:flex > :first-child { margin-bottom: 0 !important; }
    }
}

body:has(.pg-tour) section[id^="book-form-"] .tw\:text-primary { --tw-color-primary: #a40a0a; }

body:has(.pg-tour) section[id^="book-form-"] input:not([type="checkbox"]):not([type="radio"]),
body:has(.pg-tour) section[id^="book-form-"] select,
body:has(.pg-tour) section[id^="book-form-"] textarea {
    border-color: #c9bead !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #23201c;
    font-size: 16px !important;
}

/* The same height and text start in every field type. */
body:has(.pg-tour) section[id^="book-form-"] input:not([type="checkbox"]):not([type="radio"]),
body:has(.pg-tour) section[id^="book-form-"] select {
    padding: 10px 14px !important;
}

body:has(.pg-tour) section[id^="book-form-"] select { padding-right: 36px !important; }

/* A short button label stays on one line; a long translation can still wrap neatly. */
body:has(.pg-tour) section[id^="book-form-"] .btn-primary { width: 100%; }

body:has(.pg-tour) section[id^="book-form-"] .tw\:bg-secondary { box-shadow: none !important; }

/* The simple request form: reCAPTCHA comes after all fields, the stored field order is unchanged. */
body:has(.pg-tour) section[id^="book-form-"] form:has(input[name="form_id"][value="1"]) .tw\:grid > :has(.recaptcha-wrapper) { order: 1; }

@media (max-width: 991px) {
    .pg-tour__facts { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pg-tour__facts > .is-compact-only { display: flex; }
    .pg-tour__card { display: none; }
    .pg-tour__side { position: static; flex-basis: 100%; max-width: none; margin-top: 32px; }
    .pg-tour__layout { gap: 0; }

    .pg-tour__bar-mobile {
        position: fixed;
        z-index: 90;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 10px 16px;
        background: var(--pg-paper);
        border-top: 1px solid var(--pg-line);
    }

    .pg-tour__bar-mobile strong { display: block; font-family: var(--pg-serif); font-size: 22px; font-weight: 500; line-height: 1.1; }
    .pg-tour__bar-mobile span { display: block; font-size: 13px; color: var(--pg-stone); }
    .pg-tour__bar-mobile .button.button-primary { flex: none; min-height: 48px; padding: 0 20px; font-size: 17px; }
    body:has(.pg-tour) .main-footer { padding-bottom: 72px; }
    body:has(.pg-tour) .cookie-popup-trigger { bottom: 84px; left: 16px; }
}

@media (max-width: 767px) {
    .pg-tour { font-size: 17px; line-height: 1.55; }
    .pg-tour__hero { height: 280px; }
    .pg-tour__layout { padding: 0 16px 40px; }
    .pg-tour__main { flex-basis: 100%; padding-top: 24px; }
    .pg-tour__title { font-size: 32px; line-height: 1.15; }
    .pg-tour__subtitle { margin-top: 8px; font-size: 19px; }
    .pg-tour__facts { gap: 14px 12px; margin-top: 20px; padding: 14px 0; }
    .pg-tour__facts img { width: 24px; height: 24px; }
    .pg-tour__facts dd { font-size: 15px; white-space: normal; }
    .pg-tour__services { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .pg-tour__tabs { gap: 24px; margin: 8px -16px 0; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
    .pg-tour__tabs::-webkit-scrollbar { display: none; }
    .pg-tour__gallery { margin-bottom: 20px; }
    .pg-tour__section { padding-top: 28px; }
    .pg-tour__section h2 { font-size: 28px; }
    .pg-tour__chart { gap: 3px; height: 140px; }
    .pg-tour__bar i { height: calc(90px * var(--ratio)); }
    .pg-tour__bar span { display: none; }
    .pg-tour__bar b { font-size: 13px; }
    .pg-tour__days { margin-top: 24px; }
    .pg-tour__day button,
    .pg-tour__day-row { gap: 12px; padding: 12px 0; }
    .pg-tour__day-number { flex-basis: 40px; height: 40px; font-size: 15px; }
    .pg-tour__day-title { font-size: 18px; }
    .pg-tour__day-meta { font-size: 14px; }
    .pg-tour__day-body { padding: 0 0 20px 52px; font-size: 16px; }
    .pg-tour__photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .pg-tour__photos a { height: 130px; }
    .pg-tour__photos a:first-child { height: 220px; grid-row: auto; }
    .pg-tour__photos a:nth-child(n+4) { display: none; }
}
