/* Tours: listing (.tour-card, .tour-grid) and tour detail page (.tp-*).
   Builds on the tokens and shared pieces in destinations.css (.dest-filter, .dest-chip, .dest-dd, .dd-*). */

/* ---------- Listing ---------- */

.tours-controls {
    grid-template-columns: minmax(200px, 1.4fr) repeat(3, auto);
}

.tour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
    gap: 32px 28px;
}

.tour-grid--related {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 24px;
}

.tour-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--d-line);
    border-radius: 22px;
    overflow: hidden;
    transition: transform .35s var(--d-ease), box-shadow .35s var(--d-ease), border-color .35s var(--d-ease);
}

.tour-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 22px 44px -22px rgba(21, 20, 21, .38), 0 6px 14px -8px rgba(21, 20, 21, .18);
}

.tour-card:has(a:focus-visible) {
    outline: 3px solid var(--d-ink);
    outline-offset: 3px;
}

.tour-card__media {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: var(--d-soft);
}

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

.tour-card:hover .tour-card__media img {
    transform: scale(1.05);
}

.tour-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 7px 13px;
    border-radius: 999px;
    background: #fff;
    color: var(--d-ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.tour-card__badge--sale {
    left: auto;
    right: 14px;
    background: var(--d-ink);
    color: #fff;
}

.tour-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 22px 20px;
}

.tour-card__where {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.4;
}

.tour-card__where i {
    color: var(--d-brand);
}

.tour-card__title {
    margin: 0;
    font-size: 21px;
    line-height: 1.28;
    font-weight: 700;
    text-transform: none;
}

.tour-card__title a {
    color: var(--d-ink);
}

.tour-card__title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.tour-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--d-ink);
}

.tour-card__meta li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.tour-card__meta i {
    color: var(--d-brand);
}

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

.tour-card__desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    margin: 12px 0 0;
    font-size: 14.5px;
    line-height: 1.55;
}

.tour-card__foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
}

.tour-card__body > .tour-card__desc + .tour-card__foot,
.tour-card__body > .tour-card__meta + .tour-card__foot {
    margin-top: auto;
}

.tour-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid var(--d-line);
    flex: 1;
    line-height: 1.3;
}

.tour-card__price span,
.tour-card__price small {
    font-size: 13px;
}

.tour-card__price strong {
    color: var(--d-ink);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.tour-card__price del {
    font-size: 13.5px;
    color: #8a9291;
}

.tour-card .dest-card__go {
    margin-bottom: 0;
}

.tour-card:hover .dest-card__go {
    background: var(--d-brand);
    transform: translateX(2px);
}

/* ---------- Tour page ---------- */

.tp-gallery__main {
    border-radius: 26px;
    overflow: hidden;
    background: var(--d-soft);
}

.tp-gallery__main .carousel-item img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    cursor: zoom-in;
}

.tp-thumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.tp-thumbs button {
    flex: 0 1 96px;
    min-width: 0;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    background: none;
    overflow: hidden;
    opacity: .7;
    cursor: pointer;
    transition: opacity .2s var(--d-ease), border-color .2s var(--d-ease);
}

.tp-thumbs button:hover,
.tp-thumbs button.active {
    opacity: 1;
}

.tp-thumbs button.active {
    border-color: var(--d-ink);
}

.tp-thumbs button:focus-visible {
    outline: 3px solid var(--d-ink);
    outline-offset: 2px;
}

.tp-thumbs img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.tp-thumbs__more {
    padding: 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--d-ink);
}

.tp-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--d-ink);
    font-size: 15px;
}

.tp-rating i {
    color: #e0a30c;
}

.tp-rating span {
    color: var(--d-text);
}

.tp-cta-inline {
    display: none;
    gap: 12px;
    margin-top: 24px;
}

.tp-cta-inline .theme-btn {
    width: 100%;
    text-align: center;
}

/* Itinerary: a vertical timeline, one numbered node per day. */
.tp-days {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tp-days::before {
    content: "";
    position: absolute;
    left: 19px;
    top: 14px;
    bottom: 14px;
    width: 2px;
    background: var(--d-line);
}

.tp-day {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 20px;
}

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

.tp-day__node {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--d-ink);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 0 0 6px #fff;
}

.tp-day__body h3 {
    margin: 6px 0 0;
    font-size: 20px;
    line-height: 1.3;
    text-transform: none;
}

.tp-day__body p {
    max-width: 66ch;
    margin: 8px 0 0;
    font-size: 16.5px;
    line-height: 1.75;
}

/* Included / not included checklists */
.tp-checks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 28px 44px;
}

.tp-checks__col h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--d-line);
    font-size: 17px;
    line-height: 1.3;
    text-transform: none;
}

.tp-checks__col h3 i {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--d-peak);
    color: #fff;
    font-size: 11px;
}

.tp-checks__col--out h3 i {
    background: #b4503a;
}

.tp-checks__col h3 span {
    margin-left: auto;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--d-soft);
    color: var(--d-ink);
    font-size: 12.5px;
    font-weight: 700;
}

.tp-checks__col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tp-checks__col li {
    position: relative;
    padding: 0 0 12px 22px;
    color: var(--d-ink);
    font-size: 15.5px;
    font-weight: 500;
    line-height: 1.5;
}

.tp-checks__col li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--d-peak);
}

.tp-checks__col--out li {
    color: var(--d-text);
}

.tp-checks__col--out li::before {
    background: #b4503a;
}

.tp-checks__more {
    padding: 0;
    border: 0;
    background: none;
    color: var(--d-ink);
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

/* Good to know */
.tp-know {
    display: grid;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tp-know li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 14px;
}

.tp-know i {
    margin-top: 2px;
    color: var(--d-peak);
    font-size: 22px;
}

.tp-know strong {
    display: block;
    color: var(--d-ink);
    font-size: 17px;
    line-height: 1.4;
}

.tp-know p {
    max-width: 64ch;
    margin: 4px 0 0;
    font-size: 16px;
    line-height: 1.7;
}

.tp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tp-chips li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--d-soft);
    color: var(--d-ink);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.2;
}

.tp-chips i {
    color: var(--d-brand);
}

/* Reviews summary (the review list and form keep the theme's own markup) */
.tp-legacy {
    margin-top: 0;
}

.tp-legacy .details-content {
    padding: 0;
}

.tp-legacy .review-area,
.tp-legacy .client-review-items,
.tp-legacy .review-comment-items,
.tp-legacy .tour-details-icon {
    margin-top: 64px;
}

.tp-legacy .tour-details-icon:first-child {
    margin-top: 0;
}

.tp-legacy h3,
.tp-legacy h4 {
    font-size: clamp(24px, 2.6vw, 32px);
    line-height: 1.15;
    letter-spacing: -.01em;
    text-transform: none;
}

.tp-score {
    display: grid;
    grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
    gap: 28px 44px;
    align-items: center;
    margin-top: 22px;
}

.tp-score__main {
    padding: 22px;
    border-radius: 20px;
    background: var(--d-soft);
    text-align: center;
}

.tp-score__num {
    color: var(--d-ink);
    font-size: 54px;
    font-weight: 800;
    line-height: 1;
}

.tp-score__of {
    color: var(--d-text);
    font-size: 16px;
}

.tp-score__stars {
    margin-top: 10px;
    color: #e0a30c;
}

.tp-score__main p {
    margin: 6px 0 0;
    font-size: 14px;
}

.tp-bars {
    display: grid;
    gap: 12px;
    margin: 0;
}

.tp-bars > div {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.tp-bars dt {
    color: var(--d-ink);
    font-size: 14.5px;
    font-weight: 600;
}

.tp-bars dd {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.tp-bars__track {
    position: relative;
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: var(--d-line);
    overflow: hidden;
}

.tp-bars__fill {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: 999px;
    background: var(--d-ink);
}

.tp-bars__val {
    width: 28px;
    color: var(--d-ink);
    font-size: 14px;
    font-weight: 700;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.tp-empty {
    margin: 14px 0 0;
    font-size: 16px;
}

/* FAQ */
.tp-faq details {
    border-bottom: 1px solid var(--d-line);
}

.tp-faq details:first-child {
    border-top: 1px solid var(--d-line);
}

.tp-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 2px;
    color: var(--d-ink);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
}

.tp-faq summary::-webkit-details-marker {
    display: none;
}

.tp-faq summary::after {
    content: "+";
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--d-soft);
    font-size: 20px;
    line-height: 1;
    transition: transform .25s var(--d-ease), background-color .25s var(--d-ease);
}

.tp-faq details[open] summary::after {
    content: "−";
    background: var(--d-ink);
    color: #fff;
}

.tp-faq summary:focus-visible {
    outline: 3px solid var(--d-ink);
    outline-offset: 2px;
    border-radius: 6px;
}

.tp-faq p {
    max-width: 66ch;
    margin: 0 0 20px;
    padding: 0 46px 0 2px;
    font-size: 16px;
    line-height: 1.7;
}

/* ---------- Sidebar ---------- */

.tp-aside {
    display: grid;
    gap: 20px;
}

/* Contact + reasons sit below the form and follow the reader down the long page (desktop only). */
.tp-sticky {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

@media (min-width: 992px) {
    .tp-sticky {
        position: sticky;
        top: 100px;
    }
}

.tp-price {
    padding: 24px 26px;
    border-radius: 22px;
    background: var(--d-ink);
    color: rgba(255, 255, 255, .78);
}

.tp-price__line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 10px;
    margin: 0;
    line-height: 1.25;
}

.tp-price__line strong {
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.tp-price__line del {
    color: rgba(255, 255, 255, .55);
}

.tp-price__sub {
    margin: 6px 0 0;
    font-size: 14.5px;
}

/* the theme's enquiry form keeps its own markup; tidy its card */
.tp-aside .tour-details-sidebar {
    position: static;
    margin: 0;
    border: 1px solid var(--d-line);
    border-radius: 22px;
    box-shadow: none;
}

.tp-contact,
.tp-why {
    padding: 22px 22px;
    border: 1px solid var(--d-line);
    border-radius: 22px;
    background: #fff;
}

.tp-contact h3,
.tp-why h3 {
    margin: 0 0 14px;
    font-size: 20px;
    line-height: 1.2;
    text-transform: none;
}

.tp-contact ul {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.tp-contact li a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--d-ink);
    font-size: 14.5px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.tp-contact li a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tp-contact li i {
    width: 18px;
    color: var(--d-brand);
    text-align: center;
}

.tp-contact .dd-btn-line {
    width: 100%;
}

.tp-why ul {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tp-why li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    column-gap: 14px;
}

.tp-why i {
    margin-top: 3px;
    color: var(--d-brand);
    font-size: 18px;
}

.tp-why strong {
    display: block;
    color: var(--d-ink);
    font-size: 15.5px;
    line-height: 1.35;
}

.tp-why span {
    display: block;
    margin-top: 2px;
    font-size: 14.5px;
    line-height: 1.55;
}

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

@media (max-width: 991px) {
    .tp-cta-inline {
        display: grid;
    }

    .tp-aside {
        margin-top: 8px;
    }
}

@media (max-width: 767px) {
    .tours-controls {
        grid-template-columns: 1fr 1fr;
    }

    .tours-controls .dest-field--search {
        grid-column: 1 / -1;
    }

    .tp-gallery__main {
        border-radius: 20px;
    }

    .tp-thumbs button {
        flex-basis: 64px;
    }

    .tp-score {
        grid-template-columns: 1fr;
    }

    .tp-bars > div {
        grid-template-columns: 76px minmax(0, 1fr);
    }
}

@media (max-width: 479px) {
    .tours-controls {
        grid-template-columns: 1fr;
    }

    .tour-card__body {
        padding: 18px 18px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tour-card,
    .tour-card__media img,
    .tp-thumbs button,
    .tp-faq summary::after {
        transition: none;
    }

    .tour-card:hover,
    .tour-card:hover .tour-card__media img {
        transform: none;
    }
}
