/* Selected Gallery Focus: one shared package/cruise presentation. */
.tb-offer--gallery-focus {
  --tb-offer-icon-star: url("../../../../plugins/travelbay-booking/assets/icons/lucide-0.468.0/star.svg");
  --tb-offer-icon-calendar: url("../../../../plugins/travelbay-booking/assets/icons/lucide-0.468.0/calendar.svg");
  --tb-offer-icon-moon: url("../../../../plugins/travelbay-booking/assets/icons/lucide-0.468.0/moon.svg");
  --tb-offer-icon-bed: url("../../../../plugins/travelbay-booking/assets/icons/lucide-0.468.0/bed-double.svg");
  --tb-offer-icon-utensils: url("../../../../plugins/travelbay-booking/assets/icons/lucide-0.468.0/utensils.svg");
  --tb-offer-icon-plane: url("../../../../plugins/travelbay-booking/assets/icons/lucide-0.468.0/plane.svg");
  --tb-offer-icon-globe: url("../../../../plugins/travelbay-booking/assets/icons/lucide-0.468.0/globe.svg");
  --tb-offer-icon-users: url("../../../../plugins/travelbay-booking/assets/icons/lucide-0.468.0/users.svg");
  --tb-offer-icon-info: url("../../../../plugins/travelbay-booking/assets/icons/lucide-0.468.0/info.svg");
  --tb-offer-icon-pin: url("../../../../plugins/travelbay-booking/assets/icons/lucide-0.468.0/map-pin.svg");
  --tb-offer-icon-images: url("../../../../plugins/travelbay-booking/assets/icons/lucide-0.468.0/images.svg");
  --tb-offer-icon-printer: url("../../../../plugins/travelbay-booking/assets/icons/lucide-0.468.0/printer.svg");
}
.tb-booking-page.tb-single-offer .tb-offer--gallery-focus {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  grid-template-areas: "heading heading" "gallery facts" "gallery price";
  grid-template-rows: auto auto 1fr;
  gap: 1.5rem 2rem;
  padding: clamp(1rem, 2.5vw, 2rem);
  border: 1px solid var(--tb-color-border-subtle);
  border-radius: 1rem;
  background: #fff;
}
.tb-booking-page .tb-offer--gallery-focus.tb-offer--without-image { grid-template-areas: "heading heading" "facts price"; }
.tb-booking-page.tb-single-offer .tb-offer--gallery-focus .tb-offer__header {
  grid-area: heading; padding: 0 0 1.25rem; border-bottom: 1px solid var(--tb-color-border-subtle);
}
.tb-offer--gallery-focus .tb-offer__header h1 { margin: .35rem 0; text-wrap: pretty; }
.tb-offer--gallery-focus .tb-offer__title-row { display: flex; align-items: flex-start; gap: 1rem; }
.tb-offer--gallery-focus .tb-offer__title-row h1 { flex: 1; min-width: 0; order: -1; }
.tb-offer--gallery-focus .tb-offer__title-row .tb-package-print { flex: 0 0 auto; margin-left: auto; min-width: 44px; }
@media (max-width: 767px) {
  .tb-offer--gallery-focus .tb-offer__title-row .tb-package-print span { display: none; }
}

.tb-offer--gallery-focus .tb-offer__header .tb-result-card__location { margin: 0 0 .3rem; color: var(--tb-color-coral-text); }
.tb-offer--gallery-focus .tb-offer__identity { margin-bottom: 0; }
.tb-offer--gallery-focus .tb-offer__facts { grid-area: facts; min-width: 0; }
.tb-offer--gallery-focus .tb-offer__departure,
.tb-offer--gallery-focus .tb-offer__dates,
.tb-offer--gallery-focus .tb-offer__meta > li {
  display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: .75rem;
  margin: 0; padding: .6rem 0; border-bottom: 1px solid var(--tb-color-border-subtle);
  color: var(--tb-color-navy); font-size: 1rem; font-weight: 600; line-height: 1.4;
  position: relative;
}
.tb-offer--gallery-focus [data-fact-label]::before { content: attr(data-fact-label); padding-left: 1.75rem; color: var(--tb-color-muted); font-weight: 400; }
.tb-offer--gallery-focus [data-fact-label]::after,
.tb-offer--gallery-focus .tb-offer-gallery__all::before,
.tb-offer--gallery-focus .tb-package-print::before {
  content: ""; display: inline-block; flex: 0 0 20px; width: 20px; height: 20px;
  background-color: currentColor; pointer-events: none;
  -webkit-mask: var(--tb-offer-fact-icon, var(--tb-offer-icon-info)) center / contain no-repeat;
  mask: var(--tb-offer-fact-icon, var(--tb-offer-icon-info)) center / contain no-repeat;
}
.tb-offer--gallery-focus [data-fact-label]::after { position: absolute; top: .65rem; left: 0; }
.tb-offer--gallery-focus [data-fact-icon="calendar"] { --tb-offer-fact-icon: var(--tb-offer-icon-calendar); }
.tb-offer--gallery-focus [data-fact-icon="moon"] { --tb-offer-fact-icon: var(--tb-offer-icon-moon); }
.tb-offer--gallery-focus [data-fact-icon="users"] { --tb-offer-fact-icon: var(--tb-offer-icon-users); }
.tb-offer--gallery-focus [data-fact-icon="bed-double"] { --tb-offer-fact-icon: var(--tb-offer-icon-bed); }
.tb-offer--gallery-focus [data-fact-icon="utensils"] { --tb-offer-fact-icon: var(--tb-offer-icon-utensils); }
.tb-offer--gallery-focus [data-fact-icon="plane"] { --tb-offer-fact-icon: var(--tb-offer-icon-plane); }
.tb-offer--gallery-focus [data-fact-icon="globe"] { --tb-offer-fact-icon: var(--tb-offer-icon-globe); }
.tb-offer--gallery-focus .tb-offer__meta { display: block; margin: 0; padding: 0; list-style: none; }
.tb-booking-page.tb-single-offer .tb-offer--gallery-focus .tb-offer__price {
  grid-area: price; align-self: start; display: grid; gap: .7rem; padding: 0;
  background: transparent; border: 0; border-radius: 0; min-width: 0;
}
.tb-offer--gallery-focus .tb-offer__price-summary { padding: 1rem; background: var(--tb-color-info-surface); border: 0; border-radius: .8rem; }
.tb-offer--gallery-focus .tb-catalogue-prices { padding: 0; border: 0; background: transparent; }
.tb-offer--gallery-focus .tb-result-card__prices { gap: 1rem; }
.tb-booking-page .tb-offer--gallery-focus .tb-catalogue-prices .tb-result-card__price-pill { padding: 0; border: 0; border-radius: 0; background: transparent; }
.tb-booking-page .tb-offer--gallery-focus .tb-catalogue-prices .tb-result-card__price-pill--total { border-left: 1px solid var(--tb-color-border-subtle); padding-left: 1rem; }
.tb-booking-page .tb-offer--gallery-focus .tb-catalogue-prices :is(.tb-result-card__price, .tb-result-card__price-total) { font-size: clamp(1.2rem, 1.8vw, 1.6rem); }
.tb-offer--gallery-focus .tb-offer__party-summary { margin: 0; color: var(--tb-color-muted); }
.tb-offer--gallery-focus .tb-offer__inquiry { width: 100%; min-height: 48px; }
.tb-offer--gallery-focus .tb-package-print { justify-self: center; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .35rem .5rem; border-color: transparent; background: transparent; text-decoration: underline; color: var(--tb-color-muted); }
.tb-offer--gallery-focus .tb-package-print::before { --tb-offer-fact-icon: var(--tb-offer-icon-printer); }
.tb-offer-gallery { grid-area: gallery; min-width: 0; align-self: start; }
.tb-booking-page.tb-single-offer .tb-offer--gallery-focus .tb-offer__media {
  position: relative; width: 100%; max-width: none; aspect-ratio: 1.6;
  margin: 0; border-radius: .8rem; overflow: hidden; background: var(--tb-color-info-surface);
}
.tb-offer--gallery-focus .tb-offer__media > a { position: absolute; inset: 0; }
.tb-booking-page.tb-single-offer .tb-offer--gallery-focus .tb-offer__image { width: 100%; height: 100%; object-fit: var(--tb-booking-image-fit, contain); }
.tb-offer-gallery__arrow,
.tb-offer-gallery__all,
.tb-offer-gallery__counter { position: absolute; z-index: 2; }
.tb-offer-gallery__arrow {
  display: inline-flex; align-items: center; justify-content: center; top: 50%; translate: 0 -50%; transform: none;
  width: 46px; height: 46px; padding: .6rem; border: 1px solid var(--tb-color-border-subtle); border-radius: 50%;
  background: #fff; color: var(--tb-color-navy); cursor: pointer;
}
.tb-offer-gallery__arrow:is(:hover, :active, :focus) { transform: none; }
.tb-offer-gallery__arrow--previous { left: .65rem; }
.tb-offer-gallery__arrow--next { right: .65rem; }
.tb-offer-gallery__arrow svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tb-offer-gallery__counter { top: .65rem; right: .65rem; padding: .2rem .6rem; border-radius: .4rem; background: var(--tb-color-navy); color: #fff; font-family: var(--tb-font-heading); font-size: .85rem; font-weight: 600; }
.tb-offer-gallery__all { display: inline-flex; align-items: center; gap: .5rem; right: .65rem; bottom: .65rem; min-height: 44px; padding: .5rem .85rem; border: 1px solid var(--tb-color-border-subtle); border-radius: .5rem; background: #fff; color: var(--tb-color-navy); font: 600 .95rem var(--tb-font-body); cursor: pointer; }
.tb-offer--gallery-focus .tb-offer-gallery__all::before { --tb-offer-fact-icon: var(--tb-offer-icon-images); }
.tb-offer-gallery__thumbnails { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin-top: .65rem; }
.tb-offer-gallery__thumbnail { display: block; min-width: 0; min-height: 44px; padding: 3px; border: 2px solid transparent; border-radius: .65rem; background: var(--tb-color-info-surface); cursor: pointer; }
.tb-offer-gallery__thumbnail[aria-pressed="true"] { border-color: var(--tb-color-navy); }
.tb-offer-gallery__thumbnail img { display: block; width: 100%; aspect-ratio: 1.8; border-radius: .35rem; }
.tb-offer-gallery__thumbnail.is-unavailable { min-height: 5rem; }
.tb-offer-gallery__error { position: absolute; inset: auto 3.5rem 45%; margin: 0; color: var(--tb-color-muted); text-align: center; }
.tb-offer-gallery .tb-offer__media, .tb-gallery-dialog__media { touch-action: pan-y pinch-zoom; }
/* Repeated navigation must never select or start a native drag of the image. */
.tb-offer-gallery .tb-offer__media,
.tb-gallery-dialog__media,
.tb-offer-gallery__thumbnail { -webkit-user-select: none; user-select: none; }
.tb-offer-gallery img,
.tb-gallery-dialog img { -webkit-user-drag: none; }
.tb-offer-gallery :is(button,a):focus-visible,
.tb-gallery-dialog :is(button,a):focus-visible { outline: 3px solid var(--tb-color-active); outline-offset: 3px; }
.tb-offer-gallery [hidden], .tb-gallery-dialog [hidden] { display: none !important; }
.tb-gallery-dialog:not([open]) { display: none; }
.tb-gallery-dialog {
  width: min(1100px, calc(100vw - 2rem)); max-width: none; max-height: calc(100dvh - 2rem);
  margin: auto; padding: 1.25rem; border: 0; border-radius: .8rem;
  color: var(--tb-color-navy); background: #fff; overflow: auto;
}
.tb-gallery-dialog::backdrop { background: rgb(0 18 54 / 80%); }
.tb-gallery-dialog__header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.tb-gallery-dialog__header { position: sticky; top: -.1rem; z-index: 4; padding-bottom: .5rem; background: #fff; }
.tb-gallery-dialog__header h2 { margin: 0; font-size: 1.3rem; }
.tb-gallery-dialog__header button { min-height: 44px; }
.tb-gallery-dialog__media { position: relative; height: min(55dvh, 580px); margin: 0; border-radius: .65rem; background: var(--tb-color-info-surface); overflow: hidden; }
.tb-gallery-dialog__media > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tb-gallery-dialog__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: .65rem; margin-top: .75rem; }
@media (max-width: 767px) {
  .tb-booking-page.tb-single-offer .tb-offer--gallery-focus,
  .tb-booking-page .tb-offer--gallery-focus.tb-offer--without-image {
    grid-template-columns: minmax(0, 1fr); grid-template-areas: "heading" "gallery" "facts" "price"; gap: 1rem; padding: 1rem;
  }
  .tb-booking-page.tb-single-offer .tb-offer--gallery-focus .tb-offer__header { padding-bottom: 0; border-bottom: 0; }
  .tb-offer--gallery-focus .tb-offer__header h1 { font-size: clamp(1.4rem, 5.5vw, 1.75rem); }
  .tb-booking-page.tb-single-offer .tb-offer--gallery-focus .tb-offer__media { aspect-ratio: 1.75; max-height: 240px; }
  .tb-offer-gallery__thumbnails { display: none; }
  .tb-offer-gallery__counter { top: .4rem; right: .4rem; }
  .tb-offer-gallery__all { right: .4rem; bottom: .4rem; padding-inline: .6rem; font-size: .9rem; }
  .tb-offer-gallery__arrow--previous { left: .4rem; }
  .tb-offer-gallery__arrow--next { right: .4rem; }
  .tb-offer--gallery-focus .tb-offer__dates { font-size: .95rem; }
  .tb-offer--gallery-focus .tb-offer__meta > li { padding-block: .4rem; font-size: .95rem; }
  .tb-offer--gallery-focus .tb-offer__meta > li::after { top: .4rem; }
  .tb-offer--gallery-focus .tb-offer__price-summary { padding: .75rem; }
  .tb-offer--gallery-focus .tb-result-card__prices { gap: .65rem; }
  .tb-booking-page .tb-offer--gallery-focus .tb-catalogue-prices .tb-result-card__price-pill--total { padding-left: .65rem; }
  .tb-gallery-dialog { width: calc(100vw - 1rem); max-height: calc(100dvh - 1rem); padding: .75rem; }
  .tb-gallery-dialog__media { height: 45dvh; }
  .tb-gallery-dialog__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media print {
  .tb-booking-page.tb-single-offer .tb-offer--gallery-focus { display: block; padding: 0; border: 0; }
  .tb-offer--gallery-focus .tb-offer__header, .tb-offer--gallery-focus .tb-offer__facts { margin-bottom: 1rem; }
  .tb-offer--gallery-focus .tb-offer-gallery { max-width: 18rem; margin-bottom: 1rem; }
  .tb-offer-gallery__arrow, .tb-offer-gallery__all, .tb-offer-gallery__counter, .tb-offer-gallery__thumbnails, .tb-gallery-dialog { display: none !important; }
}

.tb-offer--gallery-focus [data-fact-icon="map-pin"] { --tb-offer-fact-icon: var(--tb-offer-icon-pin); }

.tb-offer--gallery-focus [data-fact-icon="star"] { --tb-offer-fact-icon: var(--tb-offer-icon-star); }
.tb-offer--gallery-focus [data-offer-rating-fact] .tb-offer-rating { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .5rem; margin: 0; }
