/* Tour page extras (.tx-*): photo mosaic + viewer, accordion itinerary, price calculator,
   "is this tour for you", packing checklist, mobile enquiry bar. Builds on destination-page.css (.dx). */

.dx-tour {
    --tx-card: #fff;
}

/* ---------- Photo mosaic ---------- */

.tx-mosaic {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(120px, 15vw, 190px);
}

.tx-mosaic__item {
    position: relative;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    background: var(--d-soft);
    cursor: zoom-in;
}

.tx-mosaic__item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.tx-mosaic--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tx-mosaic--2 .tx-mosaic__item:first-child { grid-column: auto; grid-row: span 2; }
.tx-mosaic--3 .tx-mosaic__item:first-child { grid-row: span 2; }
.tx-mosaic--3 { grid-template-columns: 2fr 1fr 1fr; }
.tx-mosaic--3 .tx-mosaic__item:first-child { grid-column: auto; }
.tx-mosaic--4 .tx-mosaic__item:last-child { grid-column: span 2; }

.tx-mosaic__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--d-ease);
}

.tx-mosaic__item:hover img {
    transform: scale(1.06);
}

.tx-mosaic__item:focus-visible {
    outline: 3px solid var(--d-ink);
    outline-offset: 3px;
}

.tx-mosaic__more {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    background: rgba(14, 13, 12, .55);
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
}

.tx-mosaic__more small {
    display: block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* full-screen viewer (built by tour-extras.js) */
.tx-lb {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    background: rgba(12, 11, 10, .95);
    animation: txFade .3s var(--d-ease) both;
}

.tx-lb__img {
    max-width: min(94vw, 1500px);
    max-height: 84vh;
    border-radius: 14px;
    object-fit: contain;
    animation: txRise .5s var(--d-ease) both;
}

.tx-lb button {
    position: absolute;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background-color .2s var(--d-ease);
}

.tx-lb button:hover {
    background: rgba(255, 255, 255, .24);
}

.tx-lb button:focus-visible {
    outline: 3px solid var(--d-brand);
    outline-offset: 3px;
}

.tx-lb__close { top: 20px; right: 20px; }
.tx-lb__prev { top: 50%; left: 20px; transform: translateY(-50%); }
.tx-lb__next { top: 50%; right: 20px; transform: translateY(-50%); }

.tx-lb__count {
    position: absolute;
    bottom: 22px;
    left: 0;
    right: 0;
    margin: 0;
    color: rgba(255, 255, 255, .8);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

html.tx-lb-open {
    overflow: hidden;
}

@keyframes txFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes txRise { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Itinerary ---------- */

.tx-itin-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 34px;
}

.tx-daychips {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}

.tx-daychips::-webkit-scrollbar {
    display: none;
}

.tx-daychips button {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--d-line);
    border-radius: 999px;
    background: #fff;
    color: var(--d-ink);
    font-size: 14.5px;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .25s var(--d-ease), border-color .25s var(--d-ease);
}

.tx-daychips button:hover,
.tx-daychips button:focus-visible {
    border-color: var(--d-brand);
    background: var(--d-brand-soft);
}

.tx-daychips span {
    color: var(--d-text);
    font-weight: 500;
}

.tx-expand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    border: 1.5px solid var(--d-ink);
    border-radius: 999px;
    background: transparent;
    color: var(--d-ink);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color .25s var(--d-ease), color .25s var(--d-ease);
}

.tx-expand:hover,
.tx-expand[aria-pressed="true"] {
    background: var(--d-ink);
    color: #fff;
}

.tp-days .tp-day + .tp-day {
    margin-top: 18px;
}

.tx-day {
    min-width: 0;
    border: 1px solid var(--d-line);
    border-radius: 20px;
    background: #fff;
    transition: border-color .3s var(--d-ease), box-shadow .3s var(--d-ease);
}

.tx-day:hover {
    border-color: color-mix(in srgb, var(--d-brand) 50%, var(--d-line));
}

.tx-day[open] {
    border-color: var(--d-brand);
    box-shadow: 0 18px 40px -26px rgba(20, 18, 15, .3);
}

.tx-day summary {
    position: relative;
    display: block;
    padding: 22px 70px 22px 26px;
    list-style: none;
    cursor: pointer;
    border-radius: 20px;
}

.tx-day summary::-webkit-details-marker {
    display: none;
}

.tx-day summary:focus-visible {
    outline: 3px solid var(--d-ink);
    outline-offset: 2px;
}

.tx-day h3 {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.01em;
}

.tx-day__teaser {
    margin: 8px 0 0;
    font-size: 16px;
    line-height: 1.6;
}

.tx-day[open] .tx-day__teaser {
    display: none;
}

.tx-day__tog {
    position: absolute;
    top: 22px;
    right: 22px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--d-brand-soft);
    color: var(--d-ink);
    font-size: 13px;
    transition: transform .35s var(--d-ease), background-color .25s var(--d-ease);
}

.tx-day[open] .tx-day__tog {
    transform: rotate(45deg);
    background: var(--d-brand);
}

.tx-day .tp-day__body {
    padding: 0 26px 26px;
}

.tx-day .tp-day__body p {
    max-width: 64ch;
    margin: 0;
    font-size: 17px;
    line-height: 1.8;
}

/* ---------- Price and group ---------- */

.tx-rates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.tx-rate {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 22px 24px;
    border-radius: 20px;
    background: var(--d-soft);
}

.tx-rate span {
    color: var(--d-text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tx-rate strong {
    color: var(--d-ink);
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.tx-rate del {
    opacity: .6;
}

.tx-rate small {
    font-size: 14px;
}

.tx-rate--main {
    background: var(--d-ink);
}

.tx-rate--main span,
.tx-rate--main small {
    color: rgba(255, 255, 255, .78);
}

.tx-rate--main strong {
    color: #fff;
}

.tx-calc {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 0;
    border: 1px solid var(--d-line);
    border-radius: 26px;
    background: #fff;
    overflow: hidden;
}

.tx-calc__form {
    padding: 34px 34px 30px;
}

.tx-calc__form h3 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.tx-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--d-line);
}

.tx-step__label {
    color: var(--d-ink);
    font-size: 17px;
    font-weight: 600;
}

.tx-step__ctl {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tx-step__ctl button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--d-line);
    border-radius: 50%;
    background: #fff;
    color: var(--d-ink);
    font-size: 14px;
    cursor: pointer;
    transition: border-color .2s var(--d-ease), background-color .2s var(--d-ease);
}

.tx-step__ctl button:hover:not(:disabled) {
    border-color: var(--d-ink);
    background: var(--d-soft);
}

.tx-step__ctl button:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.tx-step__ctl button:focus-visible {
    outline: 3px solid var(--d-brand);
    outline-offset: 2px;
}

.tx-step__ctl output {
    min-width: 28px;
    color: var(--d-ink);
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.tx-date {
    display: grid;
    gap: 8px;
    margin-top: 22px;
}

.tx-date span {
    color: var(--d-ink);
    font-size: 15px;
    font-weight: 600;
}

.tx-date input {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1.5px solid var(--d-line);
    border-radius: 14px;
    background: #fff;
    color: var(--d-ink);
    font: inherit;
    font-size: 16px;
}

.tx-date input:focus-visible {
    border-color: var(--d-ink);
    outline: 3px solid var(--d-brand-soft);
}

.tx-season {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 0;
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--d-soft);
    color: var(--d-ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.tx-season::before {
    content: "";
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--d-brand);
}

.tx-season[data-level="peak"]::before { background: var(--d-peak); }
.tx-season[data-level="low"]::before { background: #b7b0a2; }

.tx-calc__sum {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 34px;
    background: var(--d-soft);
}

.tx-calc__lab {
    color: var(--d-text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tx-calc__total {
    color: var(--d-ink);
    font-size: clamp(34px, 4vw, 50px);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.tx-calc__sum small {
    min-height: 1.4em;
    margin-bottom: 14px;
    font-size: 15px;
}

.tx-calc__warn {
    margin: 0 0 12px;
    color: #9b3d12;
    font-size: 14.5px;
    font-weight: 600;
}

.tx-calc .dx-btn--solid:hover {
    background: var(--d-ink);
    color: #fff;
}

.tx-note {
    margin: 14px 0 0;
    font-size: 14px;
    line-height: 1.55;
}

/* ---------- Is this tour for you ---------- */

.tx-fit {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 40px;
    padding: 0;
    list-style: none;
}

.tx-fit li {
    display: flex;
    gap: 16px;
    padding: 22px 24px;
    border: 1px solid var(--d-line);
    border-radius: 20px;
    background: #fff;
}

.tx-fit__icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--d-brand-soft);
    color: var(--d-ink);
    font-size: 17px;
}

.tx-fit h3 {
    margin: 2px 0 4px;
    font-size: 17px;
    font-weight: 700;
}

.tx-fit p {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
}

.tx-ask h3 {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 700;
}

.tx-ask ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tx-ask a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    border: 1.5px solid var(--d-line);
    border-radius: 999px;
    background: #fff;
    color: var(--d-ink);
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.2;
    transition: border-color .25s var(--d-ease), background-color .25s var(--d-ease), transform .25s var(--d-ease);
}

.tx-ask a:hover {
    border-color: var(--d-brand);
    background: var(--d-brand-soft);
    transform: translateY(-2px);
}

.tx-ask a:focus-visible {
    outline: 3px solid var(--d-ink);
    outline-offset: 2px;
}

.tx-ask i {
    color: #1a8f4a;
    font-size: 17px;
}

/* ---------- Packing checklist ---------- */

.tx-pack__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
    margin-bottom: 30px;
    padding: 20px 24px;
    border-radius: 20px;
    background: var(--d-soft);
}

.tx-pack__meter {
    flex: 1 1 200px;
    height: 10px;
    border-radius: 10px;
    background: #e3ddcf;
    overflow: hidden;
}

.tx-pack__meter span {
    display: block;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left;
    height: 100%;
    border-radius: 10px;
    background: var(--d-peak);
    transition: transform .5s var(--d-ease);
}

.tx-pack__bar p {
    margin: 0;
    color: var(--d-ink);
    font-size: 15.5px;
}

.tx-pack__btn {
    padding: 10px 18px;
    border: 1.5px solid var(--d-ink);
    border-radius: 999px;
    background: transparent;
    color: var(--d-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s var(--d-ease), color .2s var(--d-ease);
}

.tx-pack__btn:hover {
    background: var(--d-ink);
    color: #fff;
}

.tx-pack__groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 44px;
}

.tx-pack fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.tx-pack legend {
    float: none;
    width: auto;
    margin: 0 0 8px;
    padding: 0;
    color: var(--d-ink);
    font-size: 18px;
    font-weight: 700;
}

.tx-check {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--d-line);
    cursor: pointer;
}

.tx-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tx-check__box {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 26px;
    height: 26px;
    margin-top: 1px;
    border: 1.5px solid #c9c2b2;
    border-radius: 8px;
    background: #fff;
    color: transparent;
    font-size: 12px;
    transition: background-color .2s var(--d-ease), border-color .2s var(--d-ease), color .2s var(--d-ease), transform .2s var(--d-ease);
}

.tx-check:hover .tx-check__box {
    border-color: var(--d-ink);
}

.tx-check input:checked + .tx-check__box {
    border-color: var(--d-peak);
    background: var(--d-peak);
    color: #fff;
    transform: scale(1.06);
}

.tx-check input:focus-visible + .tx-check__box {
    outline: 3px solid var(--d-brand);
    outline-offset: 2px;
}

.tx-check__text {
    font-size: 16.5px;
    line-height: 1.5;
    transition: color .2s var(--d-ease);
}

.tx-check input:checked ~ .tx-check__text {
    color: #8f8a7e;
    text-decoration: line-through;
    text-decoration-color: #c9c2b2;
}

/* ---------- Mobile enquiry bar ---------- */

.tx-bar {
    display: none;
}

@media (max-width: 991px) {
    .tx-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 900;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 84px 12px 18px;
        border-top: 1px solid var(--d-line);
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 -12px 30px -16px rgba(20, 18, 15, .3);
        animation: txBarIn .45s var(--d-ease) both;
    }

    .tx-bar[hidden] {
        display: none;
    }

    .tx-bar p {
        margin: 0;
        color: var(--d-text);
        font-size: 13px;
        line-height: 1.25;
    }

    .tx-bar strong {
        display: block;
        color: var(--d-ink);
        font-size: 18px;
        font-weight: 700;
    }

    .tx-bar .dx-btn {
        min-height: 46px;
        padding: 0 20px;
        font-size: 15px;
    }

    .dx-tour .dd-page {
        padding-bottom: 150px;
    }
}

@keyframes txBarIn {
    from { transform: translateY(100%); }
    to { transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 767px) {
    .tx-mosaic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 130px;
    }

    .tx-mosaic .tx-mosaic__item:first-child {
        grid-column: span 2;
        grid-row: span 2;
    }

    .tx-mosaic--3 .tx-mosaic__item:first-child,
    .tx-mosaic--2 .tx-mosaic__item:first-child {
        grid-column: span 2;
    }

    .tx-mosaic--4 .tx-mosaic__item:last-child {
        grid-column: auto;
    }

    .tx-itin-tools {
        flex-direction: column;
        align-items: stretch;
    }

    .tx-expand {
        justify-content: center;
    }

    .tx-day summary {
        padding: 18px 60px 18px 18px;
    }

    .tx-day__tog {
        top: 18px;
        right: 16px;
    }

    .tx-day .tp-day__body {
        padding: 0 18px 22px;
    }

    .tx-calc {
        grid-template-columns: minmax(0, 1fr);
    }

    .tx-calc__form,
    .tx-calc__sum {
        padding: 26px 22px;
    }

    .tx-fit,
    .tx-pack__groups {
        grid-template-columns: minmax(0, 1fr);
    }

    .tx-lb__prev { left: 10px; }
    .tx-lb__next { right: 10px; }
}

/* ---------- Motion + print ---------- */

@media (prefers-reduced-motion: reduce) {
    .tx-lb,
    .tx-lb__img,
    .tx-bar {
        animation: none;
    }

    .tx-mosaic__item img,
    .tx-day,
    .tx-day__tog,
    .tx-check__box,
    .tx-pack__meter span,
    .tx-ask a {
        transition: none;
    }

    .tx-mosaic__item:hover img,
    .tx-ask a:hover {
        transform: none;
    }
}

@media print {
    html.tx-print-packing body * {
        visibility: hidden;
    }

    html.tx-print-packing #packing,
    html.tx-print-packing #packing * {
        visibility: visible;
    }

    html.tx-print-packing #packing {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }

    html.tx-print-packing .tx-pack__btn,
    html.tx-print-packing .tx-pack__meter {
        display: none;
    }
}

/* ---------- Layout fixes found in review ---------- */

.tx-itin-tools {
    flex-wrap: wrap;
}

.tx-daychips {
    flex: 1 1 100%;
}

.tx-expand {
    margin-left: auto;
}

.tx-calc__total {
    font-size: clamp(28px, 3vw, 42px);
    overflow-wrap: normal;
    white-space: nowrap;
}

@media (max-width: 1199px) {
    .tx-calc {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    /* a column that wraps would push the button into a new column off-screen */
    .tx-itin-tools {
        flex-wrap: nowrap;
    }

    .tx-expand {
        margin-left: 0;
    }
}

/* the old guide slider block carries negative gutters that nudge the page a few px wider on phones */
.tp-legacy {
    overflow-x: clip;
}

@media (max-width: 767px) {
    /* Bootstrap's g-5 gutter (3rem) is wider than the container padding and nudges the page sideways */
    .dx-tour .tour-details-wrapper > .row {
        --bs-gutter-x: 1.5rem;
    }
}

/* free-travel card: a calm green tint so it reads as good news, not as a price */
.tx-rate--free {
    background: color-mix(in srgb, var(--d-peak) 12%, #fff);
}

.tx-rate--free strong {
    color: var(--d-peak);
}

/* ---------- Children: one age box per child ---------- */

.tx-step__label small {
    margin-left: 6px;
    color: var(--d-text);
    font-size: 13.5px;
    font-weight: 500;
}

.tx-ages {
    margin-top: 18px;
    padding: 18px 20px 14px;
    border-radius: 18px;
    background: var(--d-soft);
}

.tx-ages__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.tx-age {
    display: grid;
    gap: 6px;
}

.tx-age span {
    color: var(--d-ink);
    font-size: 13.5px;
    font-weight: 700;
}

.tx-age select {
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    border: 1.5px solid var(--d-line);
    border-radius: 12px;
    background: #fff;
    color: var(--d-ink);
    font: inherit;
    font-size: 15.5px;
}

.tx-age select:focus-visible {
    border-color: var(--d-ink);
    outline: 3px solid var(--d-brand-soft);
}

.tx-ages__hint {
    margin: 14px 0 0;
    color: var(--d-ink);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.45;
}

/* sidebar: send readers to the calculator instead of a second, age-less traveller form */
.tx-side-group {
    margin: 4px 0 22px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .7);
}

.tx-side-group p {
    margin: 0 0 8px;
    color: var(--d-ink, #151415);
    font-size: 15px;
    font-weight: 700;
}

.tx-side-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--d-ink, #151415);
    font-size: 15px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--d-brand, #e49759);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* ---------- Internal links: destinations named in the itinerary ---------- */

.tx-route {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-bottom: 26px;
    padding: 18px 22px;
    border-radius: 18px;
    background: var(--d-soft);
}

.tx-route p {
    margin: 0;
    color: var(--d-ink);
    font-size: 15px;
    font-weight: 700;
}

.tx-route ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tx-route a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    border: 1px solid var(--d-line);
    border-radius: 999px;
    background: #fff;
    color: var(--d-ink);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.2;
    transition: border-color .25s var(--d-ease), background-color .25s var(--d-ease);
}

.tx-route a:hover,
.tx-route a:focus-visible {
    border-color: var(--d-brand);
    background: var(--d-brand-soft);
}

.tx-route a:focus-visible {
    outline: 3px solid var(--d-ink);
    outline-offset: 2px;
}

.tx-route .fa-location-dot {
    color: var(--d-brand);
    font-size: 13px;
}

.tx-route .fa-arrow-up-right {
    font-size: 11px;
    opacity: .6;
}

.tx-xlink {
    color: var(--d-ink);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--d-brand);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: background-color .2s var(--d-ease);
}

.tx-xlink:hover,
.tx-xlink:focus-visible {
    background: var(--d-brand-soft);
    color: var(--d-ink);
}

.tx-xlink:focus-visible {
    outline: 2px solid var(--d-ink);
    outline-offset: 2px;
}

/* ---------- Destination cards under a day ---------- */

.tx-places {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
    gap: 14px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.tx-place {
    display: block;
    overflow: hidden;
    border: 1px solid var(--d-line);
    border-radius: 18px;
    background: #fff;
    color: var(--d-ink);
    transition: border-color .3s var(--d-ease), box-shadow .35s var(--d-ease), transform .35s var(--d-ease);
}

.tx-place img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .8s var(--d-ease);
}

.tx-place {
    position: relative;
}

.tx-place__text {
    display: grid;
    gap: 4px;
    padding: 14px 16px 16px;
}

.tx-place__text strong {
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.25;
}

.tx-place__text span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--d-text);
    font-size: 14px;
    font-weight: 600;
}

.tx-place__text i {
    transition: transform .3s var(--d-ease);
}

.tx-place:hover,
.tx-place:focus-visible {
    border-color: var(--d-brand);
    box-shadow: 0 18px 36px -22px rgba(20, 18, 15, .35);
    transform: translateY(-3px);
}

.tx-place:hover img {
    transform: scale(1.04);
}

.tx-place:hover .tx-place__text i {
    transform: translateX(4px);
}

.tx-place:focus-visible {
    outline: 3px solid var(--d-ink);
    outline-offset: 2px;
}

.tx-place {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .tx-place,
    .tx-place img,
    .tx-place__text i {
        transition: none;
    }

    .tx-place:hover,
    .tx-place:hover img,
    .tx-place:hover .tx-place__text i {
        transform: none;
    }
}

/* ---------- Suitability rating: adults / children / elders ---------- */

.tx-suit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
    gap: 14px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.tx-suit__item {
    padding: 24px 22px 22px;
    border-radius: 22px;
    background: var(--d-soft);
}

.tx-suit__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: #fff;
    color: var(--d-ink);
    font-size: 18px;
}

.tx-suit h3 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
}

.tx-suit__meter {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.tx-suit__meter span {
    flex: 1 1 0;
    max-width: 34px;
    height: 8px;
    border-radius: 8px;
    background: #ddd6c6;
}

.tx-suit__meter span.is-on {
    background: var(--d-peak);
}

.tx-suit__item[data-score="2"] .tx-suit__meter span.is-on { background: #c58a14; }
.tx-suit__item[data-score="1"] .tx-suit__meter span.is-on { background: #b4481f; }

.tx-suit__level {
    margin: 0;
    color: var(--d-ink);
    font-size: 16px;
    line-height: 1.4;
}

.tx-suit__level strong {
    margin-right: 6px;
}

.tx-suit__note {
    margin: 8px 0 0;
    font-size: 15px;
    line-height: 1.5;
}

.dx-js .tx-suit__meter span.is-on {
    animation: txMeter .7s var(--d-ease) both;
    animation-delay: calc(var(--d) * 70ms);
    transform-origin: left;
}

@keyframes txMeter {
    from { transform: scaleX(0); }
    to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .dx-js .tx-suit__meter span.is-on {
        animation: none;
    }
}

/* ---------- Age picker (replaces the browser's dropdown) ---------- */

.tx-calc {
    overflow: visible;
}

.tx-calc__sum {
    border-radius: 0 25px 25px 0;
}

@media (max-width: 1199px) {
    .tx-calc__sum {
        border-radius: 0 0 25px 25px;
    }
}

.tx-age {
    position: relative;
}

.tx-age__cap {
    display: block;
    margin-bottom: 6px;
    color: var(--d-ink);
    font-size: 13.5px;
    font-weight: 700;
}

.tx-age__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1.5px solid var(--d-line);
    border-radius: 14px;
    background: #fff;
    color: var(--d-text);
    font: inherit;
    font-size: 15.5px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s var(--d-ease), background-color .2s var(--d-ease);
}

.tx-age__btn.is-set {
    border-color: var(--d-ink);
    color: var(--d-ink);
    font-weight: 700;
}

.tx-age__btn:hover {
    border-color: var(--d-ink);
}

.tx-age__btn:focus-visible {
    outline: 3px solid var(--d-brand);
    outline-offset: 2px;
}

.tx-age__btn i {
    font-size: 12px;
    transition: transform .25s var(--d-ease);
}

.tx-age__btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.tx-agepop {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(6, 40px);
    gap: 6px;
    width: max-content;
    padding: 12px;
    border: 1px solid var(--d-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 50px -18px rgba(20, 18, 15, .4), 0 2px 8px rgba(20, 18, 15, .08);
    animation: txPop .22s var(--d-ease) both;
}

.tx-agepop button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--d-ink);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .15s var(--d-ease), color .15s var(--d-ease);
}

.tx-agepop button:hover {
    background: var(--d-brand-soft);
}

.tx-agepop button[aria-selected="true"] {
    background: var(--d-ink);
    color: #fff;
}

.tx-agepop button:focus-visible {
    outline: 3px solid var(--d-brand);
    outline-offset: 1px;
}

@keyframes txPop {
    from { opacity: 0; transform: translateY(-6px) scale(.98); }
    to { opacity: 1; transform: none; }
}

/* ---------- Calendar (flatpickr, themed to the site) ---------- */

.tx-date input {
    cursor: pointer;
}

.flatpickr-calendar {
    --fp-ink: var(--header, #151415);
    --fp-brand: var(--theme-color, #e49759);
    --fp-soft: color-mix(in srgb, var(--theme-color, #e49759) 16%, #fff);
    --fp-line: #e8e3d9;
    width: 332px;
    padding: 14px 12px 12px;
    border: 1px solid var(--fp-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 60px -20px rgba(20, 18, 15, .45), 0 2px 8px rgba(20, 18, 15, .08);
    font-family: inherit;
}

.flatpickr-calendar::before,
.flatpickr-calendar::after {
    display: none;
}

.flatpickr-months {
    align-items: center;
    margin-bottom: 8px;
}

.flatpickr-months .flatpickr-month {
    height: 44px;
    color: var(--fp-ink);
}

.flatpickr-current-month {
    padding-top: 8px;
    font-size: 18px;
    font-weight: 700;
}

.flatpickr-current-month .cur-month,
.flatpickr-current-month input.cur-year {
    color: var(--fp-ink);
    font-weight: 700;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    top: 2px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    color: var(--fp-ink);
    fill: var(--fp-ink);
    transition: background-color .2s;
}

.flatpickr-months .flatpickr-prev-month { left: 4px; }
.flatpickr-months .flatpickr-next-month { right: 4px; }

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    background: var(--fp-soft);
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
    width: 14px;
    height: 14px;
    fill: var(--fp-ink);
}

.flatpickr-months .flatpickr-prev-month.flatpickr-disabled,
.flatpickr-months .flatpickr-next-month.flatpickr-disabled {
    opacity: .3;
}

span.flatpickr-weekday {
    color: #7b7668;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.flatpickr-innerContainer,
.flatpickr-rContainer,
.flatpickr-days,
.dayContainer {
    width: 100%;
    min-width: 0;
    max-width: none;
}

.dayContainer {
    justify-content: space-between;
}

.flatpickr-day {
    position: relative;
    flex-basis: 14.28%;
    max-width: 14.28%;
    height: 42px;
    margin: 2px 0;
    border: 0;
    border-radius: 50%;
    color: var(--fp-ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 42px;
}

.flatpickr-day:hover,
.flatpickr-day:focus {
    border: 0;
    background: var(--fp-soft);
}

.flatpickr-day.today {
    border: 0;
    box-shadow: inset 0 0 0 1.5px var(--fp-brand);
}

.flatpickr-day.today:hover {
    background: var(--fp-soft);
    box-shadow: inset 0 0 0 1.5px var(--fp-brand);
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus {
    border: 0;
    background: var(--fp-ink);
    color: #fff;
    box-shadow: none;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    background: transparent;
    color: #c4beaf;
    font-weight: 500;
}

/* season dot under each day when the destination has a best-time calendar */
.flatpickr-day.tx-s-peak::after,
.flatpickr-day.tx-s-good::after,
.flatpickr-day.tx-s-low::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    transform: translateX(-50%);
}

.flatpickr-day.tx-s-peak::after { background: #1d6b47; }
.flatpickr-day.tx-s-good::after { background: #d9a31a; }
.flatpickr-day.tx-s-low::after { background: #b7b0a2; }

.flatpickr-day.selected::after {
    background: #fff;
}

.flatpickr-day.flatpickr-disabled::after,
.flatpickr-day.prevMonthDay::after,
.flatpickr-day.nextMonthDay::after {
    display: none;
}

.tx-cal-key {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #e8e3d9;
    font-size: 12.5px;
    font-weight: 600;
}

.tx-cal-key span::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    background: currentColor;
}

.tx-cal-key .tx-s-peak { color: #1d6b47; }
.tx-cal-key .tx-s-good { color: #b7860f; }
.tx-cal-key .tx-s-low { color: #8d8677; }

@media (max-width: 479px) {
    .flatpickr-calendar {
        width: min(332px, calc(100vw - 24px));
    }

    .tx-agepop {
        grid-template-columns: repeat(6, minmax(34px, 1fr));
        width: min(292px, calc(100vw - 48px));
    }

    .tx-agepop button {
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tx-agepop {
        animation: none;
    }
}

/* Sticky side cards stop below the pinned header AND the section nav, so they never slide under either */
@media (min-width: 992px) {
    .dx-tour .tp-sticky {
        top: calc(var(--dx-top, 70px) + var(--dx-nav-h, 56px) + 24px);
    }
}

/* ---------- Highlights and per-day meals / overnight ---------- */

.tx-hl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tx-hl li {
    padding: 24px 22px 22px;
    border-radius: 22px;
    background: var(--d-soft);
}

.tx-hl__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: #fff;
    color: var(--d-brand);
    font-size: 17px;
}

.tx-hl h3 {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
}

.tx-hl p {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.6;
}

.tx-daymeta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.tx-daymeta li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--d-soft);
    color: var(--d-ink);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.3;
}

.tx-daymeta i {
    color: var(--d-brand);
    font-size: 13px;
}

.tx-daymeta span {
    color: var(--d-text);
    font-weight: 500;
}
