/* Shared card presentation; Elementor controls the surrounding layout. */
.tt-tour-card {
    --tt-card-ink: #1e293b;
    --tt-card-muted: #64748b;
    --tt-card-line: #e2e8f0;
    --tt-card-accent: var(--e-global-color-f50967d, #f56212);
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    flex: 1;
    height: auto;
    overflow: hidden;
    border: 1px solid var(--tt-card-line);
    border-radius: 24px;
    background: #fff;
    color: var(--tt-card-ink);
    box-shadow: 0 6px 20px -12px rgb(30 41 59 / 18%);
    transition: transform .25s ease, box-shadow .25s ease;
    container-type: inline-size;
    font-family: inherit;
}
.tt-tour-card a { text-decoration: none; }
.tt-tour-card a:focus-visible,
.tt-tour-card button:focus-visible { outline: 3px solid var(--tt-card-accent); outline-offset: 3px; }
.tt-tour-card__media { position: relative; flex-shrink: 0; background: #f1f5f9; }
.tt-tour-card .tt-tour-gallery { width: 100%; aspect-ratio: 1.55; overflow: hidden; }
.tt-tour-card .tt-tour-gallery .swiper-wrapper { align-items: stretch; }
.tt-tour-card .tt-tour-gallery .swiper-slide { height: 100%; flex-shrink: 0; }
.tt-tour-card .tt-tour-gallery:not(.swiper-initialized) .swiper-slide { width: 100%; }
.tt-tour-card .tt-tour-gallery:not(.swiper-initialized) .swiper-slide:not(:first-child) { display: none; }
.tt-tour-card .tt-tour-gallery .swiper-slide > a:focus-visible { outline-offset: -4px; }
.tt-tour-gallery .swiper-slide > a { display: block; width: 100%; height: 100%; }
.tt-tour-card .tt-tour-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tt-tour-card .tt-tour-gallery img:not([src]) { visibility: hidden; }
.tt-tour-card__no-photo { display: grid; place-items: center; aspect-ratio: 1.55; color: var(--tt-card-muted); font-size: 36px; }
.tt-tour-card__photo-count,
.tt-tour-card__video { position: absolute; z-index: 2; bottom: 16px; right: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 36px; padding: 5px 10px; border-radius: 8px; background: rgb(255 255 255 / 94%); color: var(--tt-card-ink); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tt-tour-card__photo-count i { font-size: 17px; margin-right: 3px; }
.tt-tour-card__slash { color: var(--tt-card-muted); font-weight: 400; }
.tt-tour-card__video { left: 16px; right: auto; min-width: 36px; font-size: 20px; }
.tt-tour-card__labels { position: absolute; top: 16px; left: 16px; z-index: 2; display: flex; gap: 6px; }
.tt-tour-card__labels span { background: #fff; color: var(--tt-card-ink); border-radius: 8px; padding: 5px 10px; font-size: 12px; font-weight: 700; }
.tt-tour-card .tt-tour-gallery > button { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / 94%); color: var(--tt-card-ink); cursor: pointer; font-size: 19px; }
.tt-tour-gallery__prev { left: 10px; }
.tt-tour-gallery__next { right: 10px; }
.tt-tour-card [hidden] { display: none !important; }
.tt-tour-card .tt-tour-gallery > button:disabled { opacity: .4; cursor: default; }
.tt-tour-card .tt-tour-gallery__dots { width: auto; position: absolute; z-index: 2; bottom: 19px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; gap: 3px; max-width: calc(100% - 170px); }
.tt-tour-card .tt-tour-gallery__dots .swiper-pagination-bullet { width: 8px; height: 8px; margin: 0 2px; background: #fff; opacity: .65; box-shadow: 0 1px 3px rgb(30 41 59 / 35%); }
.tt-tour-card .tt-tour-gallery__dots .swiper-pagination-bullet-active { width: 16px; border-radius: 8px; opacity: 1; }
.tt-tour-card__body { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 22px; }
.tt-tour-card__top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 8px; font-size: 12px; line-height: 1.45; }
.tt-tour-card__address { display: inline-flex; align-items: flex-start; gap: 7px; min-width: 0; color: #475569; }
.tt-tour-card__address i { color: #ec6553; margin-top: 2px; flex-shrink: 0; }
.tt-tour-card__rating { display: inline-flex; align-items: center; flex-shrink: 0; gap: 4px; padding: 4px 8px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; color: #92400e; font-weight: 700; }
.tt-tour-card__rating i { color: #b45309; }
.tt-tour-card__rating span { color: var(--tt-card-muted); font-weight: 400; }
.tt-tour-card .tt-tour-card__title { margin: 0 0 12px; font-size: 20px; font-weight: 700; line-height: 1.35; min-height: 2.7em; letter-spacing: -.025em; overflow-wrap: anywhere; text-wrap: pretty; }
.tt-tour-card .tt-tour-card__title a { color: #0f172a; }
.tt-tour-card .tt-tour-card__title a:hover { color: var(--tt-card-accent); }
.tt-tour-card .tt-card-attractions { gap: 7px; margin: 0 0 18px; }
.tt-tour-card .tt-attraction-chip { min-height: 36px; border-color: var(--tt-card-line); border-radius: 8px; padding: 7px 10px; background: #f1f5f9; color: #334155; font-size: 12px; font-weight: 600; }
.tt-tour-card .tt-attraction-chip:hover { border-color: #94a3b8; background: #e9eef5; }
.tt-tour-card .tt-card-attractions .tt-attraction-chip > span { white-space: normal; overflow: visible; max-width: none; overflow-wrap: anywhere; }
.tt-tour-card .tt-tour-card__specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: auto 0 18px; padding: 14px; border: 1px solid var(--tt-card-line); border-radius: 16px; background: #f8fafc; }
.tt-tour-card__specs > div { display: flex; align-items: center; gap: 9px; min-width: 0; }
.tt-tour-card__specs > div > i { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 10px; background: #e2e8f0; color: #334155; font-size: 19px; }
.tt-tour-card__specs > div > div { min-width: 0; }
.tt-tour-card .tt-tour-card__specs dt { margin: 0 0 3px; color: var(--tt-card-muted); font-size: 10px; font-weight: 700; line-height: 1.4; text-transform: uppercase; letter-spacing: .04em; overflow-wrap: anywhere; }
.tt-tour-card .tt-tour-card__specs dd { margin: 0; color: var(--tt-card-ink); font-size: 12px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.tt-tour-card .tt-tour-card__specs--single { grid-template-columns: minmax(0, 1fr); }
.tt-tour-card__footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 28px; border-top: 1px solid #f1f5f9; }
.tt-tour-card__specs + .tt-tour-card__footer { margin-top: 0; }
.tt-tour-card__price { min-width: 0; }
.tt-tour-card__price-label { display: block; margin-bottom: 3px; color: var(--tt-card-muted); font-size: 12px; font-weight: 500; }
.tt-tour-card__price > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.tt-tour-card__price-prefix { color: #475569; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tt-tour-card__price strong { color: #0f172a; font-size: 24px; line-height: 1.25; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tt-tour-card__price del { color: var(--tt-card-muted); font-size: 12px; }
.tt-tour-card__price-pending { display: block; max-width: 18ch; color: #475569; font-size: 13px; line-height: 1.4; }
.tt-tour-card .tt-tour-card__book { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 8px; min-height: 44px; padding: 12px 20px; border-radius: 16px; background: linear-gradient(to right, #f97316, #f59e0b); color: #fff; font-size: 14px; font-weight: 700; line-height: 1.4; box-shadow: 0 10px 15px -3px rgb(249 115 22 / 25%), 0 4px 6px -4px rgb(249 115 22 / 25%); transition: background .2s ease, transform .2s ease; }
.tt-tour-card .tt-tour-card__book:hover { background: linear-gradient(to right, #ea580c, #d97706); color: #fff; }
.tt-tour-card .tt-tour-card__book:active { transform: translateY(1px); }
.tt-tour-card__book i { font-size: 16px; }
.tt-tour-card::selection,
.tt-tour-card ::selection { background: #ffe6d2; color: #0f172a; }
.tt-tour-booking-context { color: #1e293b; font-size: 15px; font-weight: 700; line-height: 1.45; margin: 0 0 18px; width: 100%; }
/* Equal-height native carousel slides, including off-screen cards. Inner photo
   slides are excluded by the direct card child, so gallery sizing stays native. */
.swiper-wrapper:has(> .swiper-slide > .tt-tour-card) { align-items: stretch; }
.swiper-wrapper > .swiper-slide:has(> .tt-tour-card) { display: flex; align-items: stretch; height: auto; }
/* Keep Tevily's responsive column widths; stretch cards within each native row. */
.gva-booking-grid .gva-content-items > [class*="block-grid-"] {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    row-gap: 24px;
}
.gva-booking-grid .gva-content-items > [class*="block-grid-"]::before,
.gva-booking-grid .gva-content-items > [class*="block-grid-"]::after { content: none; }
.gva-booking-grid .gva-content-items > [class*="block-grid-"] > .item-column {
    display: flex;
    float: none;
    min-width: 0;
    margin-bottom: 0;
}
.gva-booking-grid .item-column > .tt-tour-card { height: auto; }
.babe_shortcode_block .babe_shortcode_block_inner > .tt-tour-card { align-self: stretch; }
.timtours-search-grid > .tt-tour-card { min-width: 0; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .tt-tour-card:hover { box-shadow: 0 16px 36px -18px rgb(30 41 59 / 24%); }
    .tt-tour-gallery > button { opacity: 0; transition: opacity .2s ease; }
    .tt-tour-card:hover .tt-tour-gallery > button,
    .tt-tour-card:focus-within .tt-tour-gallery > button { opacity: 1; }
}
@media (min-width: 768px) {
    .tt-tour-card--list { flex-direction: row; }
    .tt-tour-card--list .tt-tour-card__media { width: 36%; min-width: 240px; }
    .tt-tour-card--list .tt-tour-gallery,
    .tt-tour-card--list .tt-tour-card__no-photo { height: 100%; min-height: 280px; aspect-ratio: auto; }
    .tt-tour-card--list .tt-tour-card__body { flex-basis: 64%; }
    .tt-tour-card--list .tt-tour-card__title,
    .tt-tour-card--compact .tt-tour-card__title { min-height: 0; }
    .tt-tour-card--compact { flex-direction: row; border-radius: 16px; }
    .tt-tour-card--compact .tt-tour-card__media { width: 30%; }
    .tt-tour-card--compact .tt-tour-gallery { height: 100%; aspect-ratio: auto; }
    .tt-tour-card--compact .tt-tour-card__body { padding: 16px; }
    .tt-tour-card--compact .tt-tour-card__title { font-size: 17px; }
    .tt-tour-card--compact .tt-tour-card__specs { display: none; }
}
@container (max-width: 350px) {
    .tt-tour-card__body { padding: 18px; }
    .tt-tour-card .tt-tour-card__specs { padding: 12px 10px; gap: 10px; }
    .tt-tour-card__specs > div { gap: 6px; }
    .tt-tour-card .tt-tour-card__book { padding-inline: 16px; }
    .tt-tour-card__price strong { font-size: 22px; }
}
@container (max-width: 300px) {
    .tt-tour-card .tt-tour-card__specs { grid-template-columns: minmax(0, 1fr); }
    .tt-tour-card .tt-tour-card__book { width: 100%; }
}
@media (max-width: 767px) {
    .tt-tour-card__photo-count { min-height: 44px; bottom: 12px; right: 12px; }
    .tt-tour-card .tt-attraction-chip { min-height: 44px; }
    .tt-tour-gallery__dots { bottom: 29px; }
    .tt-tour-card__body { padding: 20px; }
    .tt-tour-card .tt-tour-card__title { font-size: 20px; }
    .tt-tour-card .tt-tour-card__book { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
    .tt-tour-card, .tt-tour-card .tt-tour-card__book { transition: none; }
}
