/* ============================================================================================
   Journey pages - combined stylesheet
   (AccommodationItem.cshtml - the hotel detail page - and ProductPage.cshtml - "Customise your
   holiday" - both link this one file now instead of their own separate AccommodationItemPage.css
   / ProductPage-v2.css files. BasketPage.cshtml/BasketPageHO.cshtml also link it now, but only
   for Part 0 below - see that section's own header comment).

   This is a literal merge, not a rewrite: everything below (besides Part 0) is exactly what
   each file already had, selector-for-selector, just concatenated into one physical file so
   there's a single place to look instead of two. Every selector in both halves is still scoped
   to its own page root (.aip-page.../.pp-page...), so nothing in one half can affect the other
   page - each page's markup only ever matches its own half's classes.

   ---- Part 0: shared components (used by all four journey pages, unscoped) ----
   ---- Part 1: hotel detail page (was AccommodationItemPage.css) ----
   ============================================================================================ */

/* ---- Part 0: "primary CTA" button (Book Now / Continue / Customise your holiday / Continue
   to payment / Pay now). One component, one class, used identically by AccommodationItem.cshtml,
   ProductPage.cshtml, BasketPage.cshtml and BasketPageHO.cshtml - previously each page had its
   own aip-btn, pp-btn and bp-btn family (the last one in BasketPage-v2.css) with drifting
   values. This one matches ProductPage.cshtml's pp-btn, which was the reference version.
   Colors are hardcoded rather than the per-page aip-, pp- and bp- prefixed custom properties
   (all already carry identical values for these - see each page's own page-scope block below)
   so this works standalone on Basket/BasketHO too, which don't define those tokens at all. ---- */

.journey-btn {
  border: 0;
  border-radius: 10px;
  min-height: 48px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.journey-btn svg {
  width: 18px;
  height: 18px;
}

.journey-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.journey-btn--primary {
  background: linear-gradient(180deg, #14b8b6, #02aaa9);
  color: #fff;
  box-shadow: 0 8px 18px rgba(2, 170, 169, 0.28);
}

.journey-btn--primary:hover {
  background: #104443;
}

.journey-btn--gold {
  background: #febb02;
  color: #104443;
  box-shadow: inset 0 0 0 1px #c99400;
}

.journey-btn--primary.journey-btn--gold:hover,
.journey-btn--gold:hover {
  background: #f0b000;
}

.journey-btn--block {
  width: 100%;
}

.aip-page {
  --aip-primary: #02aaa9;
  --aip-primary-dark: #218887;
  --aip-primary-deep: #104443;
  --aip-primary-mist: #def6f5;
  --aip-gold: #febb02;
  --aip-coral: #f9706a;
  --aip-green: #23ae24;
  --aip-green-text: #008009;
  --aip-green-soft: #dff6e1;
  --aip-red-soft: #ffe7e8;
  --aip-text: #3c4e5a;
  --aip-text-muted: #707070;
  --aip-ink: #141515;
  --aip-border: #d8e0e0;
  --aip-page-bg: #f3f6f6;
  --aip-font: "Lato", "Segoe UI", sans-serif;
  --aip-font-display: "Montserrat", "Lato", sans-serif;

  /* Base typography for every .aip-* component on this page, regardless of whether it sits
     inside an .aip-wrap (the anchors nav, book-dock, and the modals - siblings of .aip-wrap,
     not descendants - all need this too, not just the wrapped content). */
  font-family: var(--aip-font);
  color: var(--aip-text);
  line-height: 1.45;

  /* The prototype's own body background (search-results/styles.css, which hotel-product
     @imports) - two faint radial glows over a light grey-teal wash, not plain white. This is
     what makes every white .aip-panel/.aip-summary card actually read as a card instead of
     blending into the page - was missing entirely before since nothing had set it anywhere. */
  background:
    radial-gradient(1200px 420px at 10% -10%, rgba(2, 170, 169, 0.16), transparent 55%),
    radial-gradient(900px 380px at 100% 8%, rgba(254, 187, 2, 0.14), transparent 50%), var(--aip-page-bg);
}

.aip-page *,
.aip-page *::before,
.aip-page *::after {
  box-sizing: border-box;
}

/* Same global element resets the prototype applies via its own *, img, button/input/select, a,
   h1/h2/h3 rules - scoped to .aip-page (not the real global * selector) so nothing outside this
   page is touched. Matters most for rich-text content (Model.OverviewText,
   Model.HotelDescription, special-offer descriptions) - raw <a>/<h2>/<h3> tags coming straight
   out of the CMS with no class of their own, which would otherwise fall back to the site's own
   global styles (a different font/link colour) instead of this page's design. */
.aip-page img {
  max-width: 100%;
  display: block;
}

.aip-page :where(button, input, select) {
  font: inherit;
}

.aip-page h1,
.aip-page h2,
.aip-page h3 {
  margin: 0;
  color: var(--aip-primary-deep);
}

/* ---- Breadcrumb / back link ---- */

.aip-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 16px 0 10px;
  margin: 0;
  font-size: 13px;
  color: var(--aip-text-muted);
}

.aip-crumbs a {
  font-weight: 700;
  color: var(--aip-text-muted);
  text-decoration: none;
}

.aip-crumbs a:hover {
  color: var(--aip-primary-dark);
}

.aip-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--aip-primary);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

.aip-back-link:hover {
  text-decoration: underline;
}

/* ---- Identity header ---- */

.aip-identity {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.aip-identity h1 {
  margin: 0 0 8px;
  font-family: var(--aip-font);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  color: var(--aip-primary-deep);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.aip-stars {
  margin-left: 8px;
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--aip-primary);
}

.aip-place {
  margin: 0;
  font-size: 15px;
  color: var(--aip-text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.aip-place a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--aip-primary);
  text-decoration: none;
}

.aip-place a:hover {
  text-decoration: underline;
}

.aip-place svg {
  width: 13px;
  height: 13px;
}

.aip-place__dot {
  color: var(--aip-border);
}

.aip-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.aip-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 11px;
  line-height: 1.2;
  background: var(--aip-primary-mist);
  color: var(--aip-primary-deep);
  border: 1px solid #bfe8e6;
}

.aip-pill i {
  font-size: 11px;
}

/* ---- Tripadvisor card ---- */

.aip-ta {
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: start;
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--aip-border);
  box-shadow: 0 8px 20px rgba(16, 68, 67, 0.06);
}

.aip-ta__score {
  margin: 0;
  font-family: var(--aip-font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: #00aa6c;
}

.aip-ta__brand {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #00aa6c;
}

.aip-ta__owl {
  width: 18px;
  height: 18px;
}

.aip-ta__row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0;
}

.aip-ta__rating {
  display: block;
  height: 18px;
  width: auto;
}

.aip-ta__meta {
  font-size: 12px;
  color: var(--aip-text-muted);
  white-space: nowrap;
}

/* ---- Gallery ---- */

.aip-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  grid-template-areas: "hero tiles";
  gap: 6px;
  margin-bottom: 8px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(16, 68, 67, 0.12);
}

.aip-gallery__hero {
  grid-area: hero;
  min-height: 520px;
}

.aip-gallery__tiles {
  grid-area: tiles;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
}

.aip-gallery__flags,
.aip-gallery__actions {
  grid-area: hero;
}

.aip-gallery__hero,
.aip-gallery__tiles button {
  position: relative;
  border: 0;
  padding: 0;
  background: #e7f2f2;
  cursor: pointer;
  display: block;
  overflow: hidden;
}

.aip-gallery__tiles button {
  min-height: 207px;
}

/* Absolute-fill instead of the img's own width/height:100% - percentage heights on an <img>
   only resolve against a parent with a self-established definite height, which a CSS grid
   item's own min-height (as opposed to a real height) doesn't reliably give it, and these
   buttons only had min-height - was leaving each real photo at its own natural aspect ratio
   instead of covering the tile, with visible background gaps below. */
.aip-gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.aip-gallery__hero:hover img,
.aip-gallery__tiles button:hover img {
  transform: scale(1.04);
}

/* Gallery flag sizes match the hotel-highlights prototype (page-refinements.css). */
.aip-gallery__flags {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.aip-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 10px 14px;
  border-radius: 10px;
  line-height: 1.2;
  background: var(--aip-primary-deep);
}

@media (max-width: 600px) {
  .aip-gallery__flags {
    top: 10px;
    left: 10px;
    gap: 6px;
  }

  .aip-flag {
    padding: 8px 10px;
    font-size: 16px;
  }
}

.aip-flag--deal {
  background: #febb02;
  color: #3c4e5a;
}

button.aip-flag {
  border: 0;
  font-family: inherit;
}

/* Tripadvisor award badge - bottom-left of the hero photo (sizes from the hotel-highlights prototype). */
.aip-gallery__social {
  position: absolute;
  left: 16px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.aip-gallery__award {
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 50% 50% 10px 10px;
}

.aip-gallery .aip-gallery__award img {
  position: static;
  display: block;
  width: 88px;
  height: auto !important; /* image's own shape - no empty box around it pushing the tooltip away */
  transition: none;
}

[data-cp-tooltip] {
  cursor: help;
}

/* Plain-text tooltip for gallery labels / award (labelTooltips.js). */
.cp-label-tooltip {
  position: fixed;
  z-index: 10000;
  width: max-content;
  max-width: min(280px, calc(100vw - 24px));
  padding: 12px 14px;
  border: 1px solid #d8e0e0;
  border-radius: 8px;
  background: #def6f5;
  box-shadow: 0 4px 18px #0002;
  color: #3c4e5a;
  font:
    400 14px/1.5 Lato,
    "Segoe UI",
    sans-serif;
}

.cp-label-tooltip[hidden] {
  display: none;
}

@media (max-width: 600px) {
  .aip-gallery__social {
    left: 10px;
    bottom: 10px;
    gap: 6px;
  }

  .aip-gallery .aip-gallery__award img {
    width: 60px;
    height: auto !important;
  }
}

/* Bottom-right of the hero photo: video button (if the hotel has one). grid-area: hero makes the
   hero cell its containing block on desktop. */
.aip-gallery__actions {
  position: absolute;
  right: 16px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Mobile/tablet: the gallery is a horizontal slider and the hero slide is 82% wide, so pin the
   button to that slide's right edge instead of the slider's. */
@media (max-width: 860px) {
  .aip-gallery__actions {
    right: auto;
    left: calc(82% - 58px);
    bottom: 10px;
  }
}

.aip-photos-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: rgba(16, 68, 67, 0.86);
  cursor: pointer;
}

.aip-photos-btn:hover {
  background: var(--aip-primary-deep);
}

.aip-photos-btn svg {
  width: 16px;
  height: 16px;
}

/* Hotel video button - bottom-left of the hero, beside the award badge (prototype's .cp-video-button). */
.aip-gallery__social {
  align-items: flex-end;
}

.aip-video-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: rgb(60 78 90 / 75%);
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.aip-video-btn:is(:hover, :focus-visible, :active) {
  background: rgb(60 78 90 / 92%);
}

.aip-video-btn:focus-visible {
  outline: 3px solid #218887;
  outline-offset: 3px;
}

.aip-video-btn svg {
  width: 24px;
  height: 24px;
}

/* "+N Photos" overlay on the last gallery tile (prototype's .cp-gallery-more).
   Flex (not grid): the number + __word span must stay one centered line — grid
   turns those two nodes into stacked rows. */
.cp-gallery-more {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Space between "+25" and "Photos": flex drops the span's leading space. */
  gap: 0.3em;
  padding: 12px;
  background: rgb(0 0 0 / 48%);
  color: #fff;
  font:
    700 26px/1.25 Montserrat,
    sans-serif;
  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 600px) {
  .cp-gallery-more {
    font-size: 22px;
  }
}

.aip-video-modal .modal-content {
  position: relative;
  background: #000;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
}

.aip-video-modal__frame {
  position: relative;
  aspect-ratio: 16 / 9;
}

.aip-video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.aip-video-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

/* ---- Sticky hand-off: search bar, then anchor nav ----
   .aip-search-wrapper's containing block is .aip-hero-sticky-zone (AccommodationItem.cshtml) -
   a plain wrapper spanning the search bar + identity header + gallery, i.e. everything up to
   .aip-anchors. That gives .aip-search-wrapper room to stay pinned at top:0 through all of that
   content; it can't stick past its own containing block's bottom edge, so it releases and scrolls
   away at the exact scroll position where .aip-anchors's natural (in-flow) position arrives at
   the top - which is precisely where .aip-hero-sticky-zone ends, since .aip-anchors is its very
   next sibling. .aip-anchors's own sticky top:0 then catches it right there, with no gap or
   overlap. */
.aip-search-wrapper {
  position: sticky;
  top: 0;
  z-index: 26;
  background: linear-gradient(180deg, #176e6d 0 36px, transparent 36px);
}

/* ---- On-page anchor nav ---- */

.aip-anchors {
  position: sticky;
  top: 0;
  z-index: 25;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--aip-border);
  margin: 8px 0 22px;
}

.aip-anchors__inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.aip-anchors__inner::-webkit-scrollbar {
  display: none;
}

.aip-anchors a {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--aip-text);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.aip-anchors svg {
  width: 18px;
  height: 18px;
}

.aip-anchors a:hover,
.aip-anchors a.is-on {
  color: var(--aip-primary-dark);
}

.aip-anchors a.is-on {
  border-bottom-color: var(--aip-primary);
  color: var(--aip-primary);
}

/* ============================================================================
   Phase 2 - panel / prose / love / offers / hotel info feature-fold / amenities
   ============================================================================ */

.aip-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
  padding-bottom: 48px;
}

.aip-stack {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.aip-panel {
  background: #fff;
  border: 1px solid var(--aip-border);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(16, 68, 67, 0.07);
  padding: 24px 26px;
}

.aip-panel h2 {
  margin: 0 0 10px;
  font-family: var(--aip-font);
  font-size: 24px;
  font-weight: 800;
  color: var(--aip-primary-deep);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.aip-panel h3 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 600;
  color: var(--aip-ink);
  line-height: 1.35;
}

.aip-prose p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--aip-text);
}

/* .aip-prose p:last-child {
  margin-bottom: 0;
} */

/* Read More collapse (accommodationItem.js) - JS sets max-height/overflow inline per element
   (measured, not guessed) and toggles it on click; this just owns the animation itself, same
   pattern as .aip-fold-body's transition. */
.aip-prose[data-collapse] {
  transition: max-height 0.35s ease;
}

.aip-prose h3 {
  margin: 18px 0 10px;
}

.aip-love-title {
  margin: 20px 0 12px;
  font-size: 15px;
  font-weight: 800;
  color: var(--aip-primary-deep);
}

.aip-love {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.aip-love li {
  position: relative;
  padding: 12px 14px 12px 36px;
  border-radius: 12px;
  background: var(--aip-green-soft, #dff6e1);
  font-size: 14px;
  font-weight: 700;
  color: var(--aip-green-text);
  line-height: 1.4;
}

.aip-love li::before {
  content: "\2713";
  position: absolute;
  left: 14px;
  top: 12px;
}

.aip-panel .aip-text-btn {
  margin-top: 8px;
}

.aip-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #dff6e1;
  color: var(--aip-green-text);
  border: 1px solid #c8e8cc;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  margin: 4px 0 16px;
  line-height: 1.45;
}

.aip-banner svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.aip-banner__lead {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.aip-banner__sub {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}

.aip-offer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.aip-offer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--aip-border);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--aip-page-bg);
  font-size: 14px;
  font-weight: 700;
  color: var(--aip-primary-deep);
}

.aip-offer-row.is-perk {
  color: var(--aip-green-text);
  font-weight: 800;
}

.aip-offer-row__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--aip-primary-mist);
  color: var(--aip-primary);
}

.aip-offer-row.is-perk .aip-offer-row__icon {
  color: var(--aip-primary);
}

.aip-offer-row__icon svg,
.aip-offer-row__icon i {
  width: 16px;
  height: 16px;
  font-size: 14px;
}

/* :not(.aip-offer-row__icon) - that icon wrapper is also a literal <span>, so the bare "span"
   selector here was matching it too, and (being more specific than .aip-offer-row__icon's own
   width:32px rule) stretching it to flex:1 and sharing the row width with the text instead of
   staying a small fixed icon box. */
.aip-offer-row span:not(.aip-offer-row__icon) {
  min-width: 0;
  flex: 1;
}

/* Special offers accordion (AccommodationItem.cshtml's #offers) - each offer is a <details> so
   its Description/Duration/Disclaimer notes expand underneath. .aip-offer-item owns the box
   border/radius/background that .aip-offer-row normally carries on its own (the flat-list
   version); moved here so <summary> and the expanded body can share one box instead of the
   summary's own border floating separately above the body. The open/close animation itself is
   just the generic .aip-panel details > :not(summary) max-height transition already used for the
   amenities <details> - nothing new needed for that part. */
.aip-offer-item {
  margin-top: 0;
  border: 1px solid var(--aip-border);
  border-radius: 12px;
  background: var(--aip-page-bg);
  overflow: hidden;
}

.aip-offer-item .aip-offer-row {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.aip-offer-item[open] .aip-offer-row {
  border-bottom: 1px solid var(--aip-border);
}

/* No padding on .aip-offer-item__body itself - it's the element accommodationItem.js animates
   max-height on (see .aip-panel details > :not(summary) above). Verified live: a block element
   with height:auto won't actually shrink below its own padding just because max-height:0 is
   applied - a details with 14px top+bottom padding here still rendered at 28px tall, not 0px, so
   the "collapsed" state wasn't actually collapsed and the open animation had to cover a much
   smaller real distance than its measured scrollHeight accounted for, reading as a bad/jumpy
   open. Moving the padding one level in, onto a plain inner div with no height logic of its own,
   fixes it - that inner div just gets clipped by the ancestor's overflow:hidden like anything
   else would, instead of resisting the animated element's own height. */
.aip-offer-item__body-inner {
  padding: 14px;
  font-size: 14px;
  color: var(--aip-text);
}

.aip-offer-item__body-inner p {
  margin: 0 0 8px;
}

.aip-offer-item__body-inner p:last-child {
  margin-bottom: 0;
}

.aip-offer-item__body-inner .aip-hint {
  margin-top: 0;
}

.aip-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--aip-text-muted);
}

.aip-panel.aip-feature {
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 0;
  align-items: stretch;
}

.aip-feature > div {
  padding: 22px 24px;
}

.aip-feature h2 {
  margin-bottom: 12px;
}

.aip-feature h3 {
  margin-top: -4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--aip-primary);
}

.aip-hl-media {
  position: relative;
  min-height: 280px;
  height: 100%;
  overflow: hidden;
}

.aip-hl-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aip-amenity-grid {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aip-amenity-grid li {
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--aip-primary-mist);
  color: var(--aip-primary-deep);
}

/* .aip-panel details {
  margin-top: 16px;
} */

.aip-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 800;
  color: var(--aip-primary);
  list-style: none;
}

.aip-panel summary::-webkit-details-marker {
  display: none;
}

/* Same rotating border-chevron the Highlights fold-accordion uses (.aip-fold h2::after) -
   reused here instead of the old "+"/"–" text marker so every accordion on this page (amenities,
   special offers) shares one arrow design. */
.aip-panel summary::after {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.aip-panel details[open] summary::after {
  margin-top: 2px;
  transform: rotate(-135deg);
}

/* Smooth open/close for the amenities <details> (and any other .aip-panel details) - the
   direct non-summary child (the .aip-amenity-grid <ul>, here) is what accommodationItem.js
   animates via inline max-height, transitioning between 0 and its real measured scrollHeight
   rather than a guessed cap, since native <details> content can't be predicted the way the
   Highlights2 fold sections above can. The JS intercepts the summary click, so this is purely
   the transition target - no display:none/[open] toggling happens through CSS here. */
.aip-panel details > :not(summary) {
  overflow: hidden;
  transition: max-height 0.32s ease;
}

.aip-hl-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aip-primary);
}

.aip-hl-lead {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--aip-text);
}

.aip-hl-lead:last-child {
  margin-bottom: 0;
}

.aip-hl-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.aip-hl-cards li {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--aip-page-bg);
}

.aip-hl-cards li:only-child {
  grid-column: 1 / -1;
}

/* Info Cards - Type 2 (Type dropdown on hotelHighlights2ItemInfoCardItem): single-column
   bordered cards instead of the Type 1 two-up grid above - ported from the prototype's
   .hl-venues. Heading/description styling (strong/span) is identical between the two, so it's
   shared via the selector list rather than duplicated. */
.aip-hl-venues {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.aip-hl-venues li {
  padding: 12px 14px 12px 16px;
  border-radius: 12px;
  background: var(--aip-page-bg);
  border-left: 3px solid var(--aip-primary);
}

.aip-hl-cards strong,
.aip-hl-venues strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--aip-primary-deep);
  line-height: 1.3;
}

.aip-hl-cards span,
.aip-hl-venues span {
  font-size: 13px;
  line-height: 1.45;
  color: var(--aip-text);
}

.aip-hl-slots {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.aip-hl-slots li {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--aip-primary-mist);
  font-size: 13px;
}

.aip-hl-slots strong {
  font-family: var(--aip-font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--aip-primary-deep);
}

.aip-hl-slots span {
  color: var(--aip-text);
}

.aip-hl-note {
  margin: 12px 0 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f3f3f3;
  border: 1px solid var(--aip-border);
  font-size: 13px;
  line-height: 1.45;
  color: var(--aip-text);
}

.aip-hl-tag {
  flex-shrink: 0;
  margin-top: 1px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--aip-border);
  font-size: 11px;
  font-weight: 800;
  color: var(--aip-primary-deep);
}

/* ============================================================================
   Phase 3 - flight tickets, room cards
   ============================================================================ */

/* Flight ticket card - shared by both pages (was the .aip-ticket and .pp-ticket prefixed
   classes, two near-identical copies). Restored to the hotel page's original design - that was
   the correct one; the product page's copy is the one that gets dropped whenever the two
   disagree. .ticket__iata (splits the airport code into its own span) and .ticket__logo/
   .ticket__flight-label (airline logo image + airline-name caption, always both together
   underneath) match the hotel page's markup shape exactly.

   Values here are literal, not var(--aip-*)/var(--pp-*) - this class renders inside both
   .aip-page and .pp-page, which each only define their own prefixed tokens on their own root,
   so a shared class can't reliably reach across that divide. Both prefixes hold the identical
   values anyway (e.g. #218887 for primary-dark), so hardcoding here changes nothing on either
   page - it just stops relying on whichever one happens to be in scope. */
.ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  margin-bottom: 14px;
  border: 1px solid #d8e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.ticket:last-child {
  margin-bottom: 0;
}

.ticket__main {
  min-width: 0;
  padding: 16px 20px 18px;
}

.ticket__dir {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #218887;
}

.ticket__dir svg {
  width: 16px;
  height: 16px;
}

.ticket__route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px minmax(0, 1fr);
  align-items: start;
  gap: 12px 16px;
}

.ticket__city {
  min-width: 0;
}

.ticket__time {
  display: block;
  font-family: "Montserrat", "Lato", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #141515;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.ticket__air {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #3c4e5a;
  line-height: 1.3;
}

.ticket__iata {
  color: #707070;
  font-weight: 700;
}

.ticket__date {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  color: #707070;
}

.ticket__city--arr {
  text-align: right;
}

.ticket__mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
  min-width: 0;
}

.ticket__dur {
  font-size: 12px;
  font-weight: 700;
  color: #707070;
}

.ticket__line {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 18px;
  color: #02aaa9;
  background: repeating-linear-gradient(90deg, #d8e0e0 0 5px, transparent 5px 9px) center / 100% 1px no-repeat;
}

.ticket__line svg {
  width: 16px;
  height: 16px;
  background: #fff;
  padding: 0 4px;
}

/* "Your flight details" ticket (#flights): plane icon as in the hotel-highlights prototype -
   32px, pointing along the route. */
#flights .ticket__line {
  height: 32px;
}
#flights .ticket__line svg {
  width: 32px;
  height: 32px;
  padding: 3px;
  transform: rotate(90deg);
}

.ticket__stop {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  background: #eef1f1;
  color: #3c4e5a;
  font-size: 11px;
  font-weight: 700;
}

.ticket__stop.is-direct {
  background: #dff6e1;
  color: #008009;
}

.ticket__stub {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 14px 12px;
  text-align: center;
  background: #f4fafa;
  border-left: 1px dashed #c5d6d6;
}

.ticket__stub::before,
.ticket__stub::after {
  content: "";
  position: absolute;
  left: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px #d8e0e0;
}

.ticket__stub::before {
  top: -8px;
}

.ticket__stub::after {
  bottom: -8px;
}

.ticket__flight-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #707070;
}

.ticket__logo {
  display: block;
  max-width: 100px;
  max-height: 28px;
  margin-bottom: 2px;
}

.ticket__no {
  font-family: "Montserrat", "Lato", sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #02aaa9;
  line-height: 1.1;
}

@media (max-width: 860px) {
  .ticket {
    grid-template-columns: 1fr;
  }

  .ticket__stub {
    flex-direction: row;
    justify-content: space-between;
  }
}

.aip-room-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--aip-border);
  border-radius: 14px;
  background: var(--aip-page-bg);
  margin-bottom: 12px;
}

.aip-room-card:last-child {
  margin-bottom: 0;
}

.aip-room-card img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}

.aip-room-card__body {
  padding: 18px 20px;
}

.aip-chip-board {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--aip-primary-mist);
  color: var(--aip-primary-deep);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
}

.aip-room-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  color: var(--aip-ink);
}

/* "Room 1 of 2" - multi-room bookings only, one card per room (Views/Partials/Journey/Rooms.cshtml). */
.aip-room-card__room {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--aip-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.aip-room-card__stay {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--aip-ink);
}

.aip-room-card .aip-perks {
  margin: 12px 0;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 3px;
}

.aip-room-card .aip-perks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--aip-green-text, #008009);
}

.aip-room-card .aip-perks li::before {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath stroke='%23008009' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round' d='M3.2 8.4 6.3 11.4 12.8 4.6'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

.aip-room-card .aip-hint {
  margin: 8px 0 4px;
}

/* Hotel-only (AO) room/board picker - the holiday's own .aip-room-card above only ever displays
   the one already-selected room (chosen on ProductPage instead), so a hotel-only booking with
   more than one room/board option to choose from needs a real picker. Reuses .aip-chip-board/
   .aip-room-card/.aip-text-btn as-is, deliberately with no extra "selected" chrome (no ring, no
   solid CTA button) - "Select this room" sits as a plain .aip-text-btn next to "View more
   details", same visual weight, so a card with only one option (the common case) looks
   identical to the holiday's own always-one-room card. See AccommodationItem.cshtml's
   HotelOnlyRoomsAndBoard()/HotelOnlyPriceCard(). */
.aip-board-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 18px;
}

.aip-board-tabs .aip-chip-board {
  border: 1px solid var(--aip-border);
  background: #fff;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}

.aip-board-tabs .aip-chip-board.is-active {
  background: var(--aip-primary);
  border-color: var(--aip-primary);
  color: #fff;
}

/* ============================================================================
   Phase 4 - reviews, location, "Included in your holiday" sidebar (ported
   from prototypes/customise-holiday/ per instruction, not hotel-product's own
   simpler .rail), payment plan modal
   ============================================================================ */

.aip-reviews-box {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--aip-page-bg);
}

.aip-reviews-box__score {
  margin: 0;
  font-family: var(--aip-font-display);
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  color: #00aa6c;
}

.aip-reviews-box h3 {
  margin: 0 0 6px;
}

.aip-times {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.aip-times li {
  display: grid;
  grid-template-columns: 32px 132px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  font-size: 15px;
  line-height: 1.4;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--aip-page-bg);
}

.aip-times strong {
  font-family: var(--aip-font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--aip-primary-deep);
}

.aip-times span {
  color: var(--aip-text);
}

/* Icon badge, same treatment as .aip-offer-row__icon - the times list has no icon column of
   its own in the prototype (plain text-only rows), but this page's LocationFeatures content is
   real per-hotel icon+time+title data, so it keeps its icon badge here rather than dropping it. */
.aip-times__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--aip-primary-mist);
  color: var(--aip-primary);
}

.aip-times__icon svg,
.aip-times__icon i {
  width: 16px;
  height: 16px;
  font-size: 14px;
}

/* ---- Sidebar ("summary" card) ---- */

.aip-summary {
  position: sticky;
  top: 76px;
  align-self: start;
  background: #fff;
  border: 1px solid var(--aip-border);
  border-radius: 12px;
  padding: 16px 16px 14px;
  box-shadow: 3px 3px 6px 0 rgba(0, 0, 0, 0.16);
  /* Sticky + taller than the viewport (golf card, special offers, deposit plan...) meant the
     bottom of the card - including extra cards under the CTA - could never be scrolled into view.
     Cap it to the visible space below the sticky top offset and let the card scroll on its own;
     overscroll-behavior stops a scroll that reaches its end from dragging the page with it. The
     mobile layout (static, full height) resets this below 980px. */
  max-height: calc(100vh - 76px - 16px);
  max-height: calc(100dvh - 76px - 16px);
  overflow-y: auto;
  overscroll-behavior: contain;
  /* No visible scrollbar - the card still scrolls by wheel/trackpad/touch; the fade below is the
     "there's more" cue instead. */
  scrollbar-width: none;
}

.aip-summary::-webkit-scrollbar {
  display: none;
}

/* Bottom fade: a sticky strip at the very end of the card's content. While there's more to
   scroll it sticks to the card's bottom edge, fading the content passing under it; once scrolled
   to the end it sits in its own empty space below the last item, so nothing stays faded. Spans
   the full card width (negative side margins cancel the card's 16px padding) and never blocks
   clicks. A card short enough not to scroll just gets 24px of harmless blank space. */
.aip-summary::after {
  content: "";
  position: sticky;
  bottom: -14px;
  display: block;
  height: 24px;
  margin: 0 -16px -14px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 85%);
  pointer-events: none;
}

.aip-summary h2 {
  color: var(--aip-ink);
  font-family: var(--aip-font);
  font-size: 16px;
  margin: 18px 0 8px;
  padding-top: 14px;
  border-top: 1px solid var(--aip-border);
}

.aip-summary__stay {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--aip-ink);
}

.aip-summary__match {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--aip-green-text);
}

.aip-summary__match svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.aip-summary__pp {
  margin: 0;
  font-family: var(--aip-font-display);
  font-size: 34px;
  font-weight: 800;
  color: var(--aip-text);
  line-height: 1;
}

.aip-summary__pp small {
  margin-left: 2px;
  font-size: 16px;
  font-weight: 800;
}

.aip-summary__total {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--aip-text);
}

.aip-summary__discount {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--aip-coral);
}

.aip-summary__pay {
  margin: 12px 0 0;
  padding: 10px 12px;
  background: var(--aip-primary-mist);
  border: 1px solid #bfe8e6;
  border-radius: 8px;
  font-size: 13px;
  color: var(--aip-text);
  line-height: 1.45;
}

.aip-summary__pay strong {
  display: block;
  font-weight: 800;
  color: var(--aip-text);
}

.aip-summary__pay .aip-text-btn {
  display: block;
  margin: 6px 0 0 auto;
  text-align: right;
}

.aip-summary .aip-btn--block {
  margin-top: 12px;
}

.aip-urgency {
  margin: 8px 0 0;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--aip-coral);
  font-size: 12px;
  font-weight: 800;
}

.aip-urgency svg {
  width: 14px;
  height: 14px;
}

/* .aip-atol* removed - the "100% Financial Protection" badge is now the shared .journey-atol
   component (JourneyAtol.css), used identically on every journey page. */

.aip-include {
  list-style: none;
  margin: 0;
  padding: 0;
}

.aip-include__card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e7eeee;
}

.aip-include__card:last-child {
  border-bottom: 0;
}

.aip-include__card:not(:has(.aip-include__edit)) {
  grid-template-columns: 28px minmax(0, 1fr);
}

.aip-include__card--stack,
.aip-include__card--extras {
  align-items: start;
}

.aip-include__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--aip-primary-deep);
}

.aip-include__icon svg {
  width: 18px;
  height: 18px;
}

.aip-include__value {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--aip-ink);
  line-height: 1.3;
}

.aip-include__hint {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--aip-text);
  line-height: 1.35;
}

/* Ported from the hotel-product prototype's own .include__label/.include__note - replaces the
   removed .aip-include__edit "Other dates"/"Other airports"/etc links (see RenderSummaryCard()'s
   own comment on why those are gone) with an explanatory line inside the card itself. */
.aip-include__label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--aip-text-muted);
}

.aip-include__note {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--aip-green-soft);
  color: var(--aip-green-text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.aip-include__perks {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 3px;
}

.aip-include__perks li {
  position: relative;
  padding-left: 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--aip-green-text);
  line-height: 1.3;
}

.aip-include__perks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
}

.aip-include__edit {
  font-size: 12px;
  font-weight: 700;
  color: var(--aip-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  align-self: start;
  margin-top: 1px;
}

.aip-include__edit:hover {
  color: var(--aip-primary-dark);
}

.aip-text-btn {
  border: 0;
  background: none;
  color: var(--aip-primary);
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}

.aip-text-btn:hover {
  text-decoration: underline;
}

.aip-hl-more {
  margin-top: 14px;
}

/* Modal shell (.aip-bmodal*) - ported from the prototype's base .modal/.modal__head/.modal__x/
   .modal__body (customise-holiday/styles.css) so Bootstrap's stock modal chrome (square
   corners, plain header rule, small grey X) matches the design's rounded card + circular
   close button instead. Scoped to .modal-content so it only touches modals opted in via this
   class (currently just the Highlights 2 "See all details" popups). Named "bmodal" (Bootstrap
   modal) rather than "modal" specifically to not collide with the unrelated .aip-modal* family
   in AipSearchDropdowns.css, which styles the search bar's native <dialog> popups - same-looking
   prefix, different components, different markup (.modal-content descendant vs a <dialog> root),
   and until this rename both files defined .aip-modal/.aip-modal__head/.aip-modal__x/
   .aip-modal__body with different rules, so whichever stylesheet loaded last silently won for
   any shared property. */
.aip-bmodal {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(16, 68, 67, 0.2);
}

.aip-bmodal__head {
  align-items: flex-start;
  padding: 18px 22px;
  border: 0;
}

.aip-bmodal__title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--aip-primary-deep);
}

.aip-bmodal__x {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: #eef1f1;
  color: var(--aip-text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.aip-bmodal__x:hover {
  background: #e4e8e8;
}

.aip-bmodal__body {
  padding: 0 22px 22px;
}

/* "See all details" popup (Highlights 2 - Show Popup / Popup Custom HTML / Images fields) -
   wide-and-short like the prototype's dialog.modal--guide (640px wide, capped height), not
   Bootstrap's default narrower/unbounded-height modal. The extra ".modal-dialog" in the
   selector out-specifies Bootstrap's own ".modal-dialog { max-width }" rule so this always
   wins regardless of stylesheet load order. Paired with modal-dialog-scrollable on the
   element itself (see AccommodationItem.cshtml) so only .modal-body scrolls once content
   exceeds the capped height - the header stays put, matching the prototype's behaviour. */
.modal-dialog.aip-guide-dialog {
  max-width: min(640px, calc(100vw - 24px));
}

.aip-guide-dialog .modal-content {
  max-height: min(92vh, 860px);
}

/* Thin scrollbar for the scrollable body - Windows/Chrome's default is a fat 17px bar the
   prototype never had to deal with (it doesn't scroll in the static mock). */
.aip-guide-dialog .modal-body {
  scrollbar-width: thin;
  scrollbar-color: var(--aip-border) transparent;
}

.aip-guide-dialog .modal-body::-webkit-scrollbar {
  width: 6px;
}

.aip-guide-dialog .modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.aip-guide-dialog .modal-body::-webkit-scrollbar-thumb {
  background: var(--aip-border);
  border-radius: 999px;
}

.aip-guide-dialog .modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--aip-primary);
}

.aip-guide-hero {
  position: relative;
  margin: 0 0 16px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--aip-page-bg);
}

.aip-guide-hero img {
  display: none;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.aip-guide-hero img.is-active {
  display: block;
}

.aip-guide-hero__nav {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(16, 68, 67, 0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.aip-guide-hero__btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--aip-primary-dark);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.aip-guide-hero__btn:hover,
.aip-guide-hero__btn:focus-visible {
  background: var(--aip-primary-mist);
}

/* .aip-btn/.aip-btn--block/.aip-btn--primary.aip-btn--gold removed - the primary CTA button is
   now the shared .journey-btn component (see Part 0 above), used identically on every journey
   page. .aip-btn--ghost stays (it's a distinct, currently-unused secondary style). */

.aip-btn--ghost {
  background: #fff;
  color: var(--aip-primary-deep);
  box-shadow: inset 0 0 0 1px var(--aip-border);
}

.aip-btn--ghost:hover {
  background: var(--aip-page-bg);
}

/* Room detail popup ("View more details" on the room card) - ported from the prototype's
   #modal-room / .room-sheet (customise-holiday/styles.css). Reuses .aip-bmodal for the rounded
   card shell. Shared with the product page's own room-details popup (was .pp-room-sheet* - a
   plainer, unstyled-Bootstrap-modal version); this hotel-page design is the one both pages use
   now. Values are literal, not var(--aip-*) - see the .ticket comment above for why a class
   shared across both .aip-page and .pp-page can't rely on either page's own prefixed tokens. */
.room-dialog {
  max-width: min(980px, calc(100vw - 24px));
}

.room-shell {
  position: relative;
  max-height: min(92vh, 820px);
}

.room-shell__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
}

.room-sheet {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 22px;
  padding: 22px 22px 8px;
}

.room-hero {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #f3f6f6;
}

/* Images sit in a flex track, one slide-width (100% of .room-hero) each; sliding between
   photos is just animating the track's transform, not toggling per-image display. */
.room-hero__track {
  display: flex;
  width: 100%;
  height: 320px;
  transition: transform 0.4s ease;
}

.room-hero img {
  flex: 0 0 100%;
  min-width: 100%;
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.room-hero__nav {
  position: absolute;
  top: 50%;
  left: 10px;
  z-index: 1;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #141515;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.room-hero__nav--next {
  left: auto;
  right: 10px;
}

/* Mouse-draggable (base.js's pointerdown/move/up handler - search "thumbStrip"), touch already
   scrolls natively via overflow-x so that handler explicitly leaves touch/pen alone. Scrollbar
   hidden so it reads as a filmstrip, not a plain scrollable list - same treatment as
   Layout.css's .cp-gallery-thumbs (the other photo-gallery popups' thumbnail strip). */
.room-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.room-thumbs::-webkit-scrollbar {
  display: none;
}

.room-thumbs.is-dragging {
  cursor: grabbing;
}

.room-thumbs.is-dragging button {
  pointer-events: none;
}

.room-thumbs button {
  flex: 0 0 auto;
  width: 84px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px #d8e0e0;
  background: #fff;
}

.room-thumbs button.is-on {
  box-shadow: inset 0 0 0 2px #02aaa9;
}

.room-thumbs img {
  width: 100%;
  height: 56px;
  object-fit: cover;
  display: block;
}

.room-sheet__copy h2 {
  margin: 0 36px 12px 0;
  font-size: 28px;
  font-weight: 800;
  color: #141515;
}

.room-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.room-tags li {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid #d8e0e0;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3c4e5a;
}

.room-blurb {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #3c4e5a;
}

.room-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 14px;
  color: #3c4e5a;
}

.room-stat span {
  font-weight: 800;
  color: #141515;
}

.room-stat svg {
  width: 18px;
  height: 18px;
  color: #218887;
}

.room-sheet__copy h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  color: #141515;
}

.room-includes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.room-includes li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  font-weight: 700;
  color: #3c4e5a;
  line-height: 1.35;
}

.room-includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #02aaa9;
  font-weight: 800;
}

.room-sheet__foot {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 12px;
  padding: 18px 22px;
  border-top: 1px solid #d8e0e0;
}

/* The room sheet only ever scrolls vertically: grid children default to min-width:auto, so the
   thumbnail filmstrip's own horizontal overflow (or a long unbroken word in the CMS blurb) could
   widen the column and make the whole modal body scroll sideways. */
.room-sheet {
  overflow-x: hidden;
}

.room-sheet > * {
  min-width: 0;
}

.room-blurb {
  overflow-wrap: anywhere;
}

/* ---- Room details popup on phones (hotel page Rooms.cshtml + ProductPage.cshtml share it) ----
   Fits the visible screen and scrolls only vertically, inside the body, with the header photo and
   price footer fixed in place by Bootstrap's .modal-dialog-scrollable. dvh (not vh) so the
   browser's address bar doesn't push the bottom of the sheet off-screen. The body keeps a stable
   gutter for its own thin scrollbar so it sits beside the content rather than on top of it, and
   the close button is nudged left of that gutter. */
@media (max-width: 720px) {
  .room-dialog {
    max-width: none;
    width: auto;
    margin: 8px;
    height: calc(100% - 16px);
    height: calc(100dvh - 16px);
    min-height: 0;
  }

  .room-shell {
    max-height: 100%;
    height: 100%;
    overflow: hidden;
  }

  .room-sheet {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #c9d6d6 transparent;
    padding: 14px 10px 8px 14px;
  }

  .room-sheet::-webkit-scrollbar {
    width: 4px;
  }

  .room-sheet::-webkit-scrollbar-thumb {
    background: #c9d6d6;
    border-radius: 999px;
  }

  .room-sheet__gallery {
    margin-bottom: 14px;
  }

  .room-hero__track,
  .room-hero img {
    height: 220px;
  }

  /* The filmstrip is the one thing that scrolls sideways, and only on its own - pan-x keeps a
     sideways swipe on it from dragging the sheet, pan-y lets a vertical swipe still scroll it. */
  .room-thumbs {
    touch-action: pan-x pan-y;
  }

  .room-sheet__copy h2 {
    margin-right: 40px;
    font-size: 22px;
  }

  .room-includes {
    grid-template-columns: 1fr;
  }

  .room-shell__close {
    top: 6px;
    right: 14px;
  }

  .room-sheet__foot {
    flex-shrink: 0;
    padding: 10px 14px;
  }

  .room-detail-price {
    font-size: 26px;
  }
}

.room-detail-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  font-family: Lato, "Segoe UI", sans-serif;
  font-size: 30px;
  line-height: 1.1;
  color: #3c4e5a;
}

/* Big Lato 900 price with a small £ (PriceStyle.css .cp-big-price) and small "pp", like the side panel. */
.room-detail-price .cp-big-price small:last-child {
  margin-left: 2px;
  font-size: 0.45em;
  font-weight: 700;
}

.room-detail-price__total {
  font-size: 15px;
  font-weight: 600;
}

/* ---- Mobile "book dock" bar + sheet modal (replaces the old #mobPricePanel) ---- */

.aip-book-dock {
  display: none;
}

/* ---- Mobile price-summary bottom sheet - AccommodationItem #aipSummarySheet + ProductPage
   #mobPricePanel (both Bootstrap modals, class .journey-drawer-modal). Rises from the bottom edge
   - where the book dock's price/"View details" that opens it sits - full width, 80% of the
   screen, rounded top corners, drag handle, round grey close button top-right, content scrolls
   inside. The basket's <dialog> (BasketPage-v2.css) and the .hp2 pages' sheet (JourneySheet.css)
   match it. Only ever opened from the mobile book dock. ---- */
.modal.fade.journey-drawer-modal .modal-dialog {
  position: fixed;
  top: auto;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  height: 80dvh;
  max-height: 80dvh;
  display: flex;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.modal.fade.show.journey-drawer-modal .modal-dialog {
  transform: none;
}

.modal.journey-drawer-modal .modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -12px 40px rgba(16, 68, 67, 0.2);
  overflow: hidden;
  background: #fff;
}

.modal.journey-drawer-modal .modal-header {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  min-height: 56px;
  margin: 0;
  padding: 22px 58px 10px 16px;
  border: 0;
  border-bottom: 1px solid #e7eeee;
}

/* Drag handle - a visual cue that this is a sheet. */
.modal.journey-drawer-modal .modal-header::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 36px;
  height: 4px;
  margin-left: -18px;
  border-radius: 999px;
  background: #d0d8d8;
}

.modal.journey-drawer-modal .modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #141515;
}

.modal.journey-drawer-modal .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 14px 12px calc(20px + env(safe-area-inset-bottom)) 16px;
  /* Thin, light scrollbar in its own reserved gutter (never over the content) - same treatment
     as the room details popup. */
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #c9d6d6 transparent;
}

.modal.journey-drawer-modal .modal-body::-webkit-scrollbar {
  width: 4px;
}

.modal.journey-drawer-modal .modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal.journey-drawer-modal .modal-body::-webkit-scrollbar-thumb {
  background: #c9d6d6;
  border-radius: 999px;
}
.journey-drawer-x {
  position: absolute;
  top: 16px;
  right: 10px;
  z-index: 1;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef1f1;
  color: #3c4e5a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.journey-drawer-x:hover {
  background: #e4e8e8;
}

/* Pin the × glyph so it's the same on every journey page - the product page's own stylesheets
   shrank it to 16px (the hotel page and basket sheet show 22px Lato). */
.modal.journey-drawer-modal .journey-drawer-x {
  font:
    400 22px/1 Lato,
    "Segoe UI",
    sans-serif;
}

/* The sidebar card inside the sheet - no card chrome of its own (border/shadow/padding/sticky),
   the sheet is the card. Same for both pages' sheets: AccommodationItem renders its .aip-summary
   in #aipSummarySheet, ProductPage renders its .pp-summary (ProdSideNav()) in #mobPricePanel. */
#mobPricePanel .pp-summary {
  position: static;
  top: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  max-height: none;
  overflow: visible;
}

.aip-summary-sheet .aip-summary {
  position: static;
  border: 0;
  box-shadow: none;
  padding: 0;
  max-height: none;
  overflow: visible;
}

.aip-summary-sheet .aip-summary::after {
  display: none;
}
/* ---- Payment plan modal ---- */

.aip-pay-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  padding: 12px 14px;
  background: var(--aip-primary-mist);
  border-radius: 10px;
  color: var(--aip-primary-dark);
  font-weight: 700;
}

.aip-pay-total strong {
  font-family: var(--aip-font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--aip-primary-deep);
}

.aip-schedule {
  list-style: none;
  margin: 0;
  padding: 0;
}

.aip-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e7eeee;
}

.aip-step__n {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--aip-primary-mist);
  color: var(--aip-primary-deep);
  font-size: 14px;
  font-weight: 800;
}

.aip-step.is-now .aip-step__n {
  background: var(--aip-primary);
  color: #fff;
}

/* :not([class]) - this is a catch-all for raw, unclassed rich-text links (Model.OverviewText,
   Model.HotelDescription etc. straight out of the CMS, same reason .aip-page h1/h2/h3 near the
   top of this file are reset), not meant to touch component links that already carry their own
   colour via their own class (.aip-back-link, .aip-include__edit, ...). Written as plain ".aip-page
   a" it still matched those too - "class + tag" (0,1,1) beats a lone custom class like
   .aip-back-link (0,1,0) regardless of which rule comes later in the file, silently overriding
   them. :not([class]) makes it stop matching classed anchors at all, which is both more correct
   for what this rule is actually for and sidesteps the specificity fight entirely, rather than
   patching every individual component class that happens to be an <a>. */
.aip-page a:not([class]) {
  color: var(--aip-primary-dark);
}

/* ============================================================================
   RESPONSIVE
   All breakpoints for this page live here, after every base/desktop rule above,
   grouped by breakpoint (widest first) - previously scattered across each phase
   as that phase was built, which meant a mobile override could end up sitting
   *before* its own selector's base rule if the base rule was added in a later
   phase further down the file (media queries add no specificity of their own -
   a later *unconditional* rule for the same selector always wins over an
   earlier media-scoped one, regardless of viewport, so those overrides were
   silently dead at every screen width, not just above the breakpoint - this bit
   .aip-panel's own mobile padding twice over before being caught). Consolidating
   here means every base rule now unconditionally precedes every override that
   targets it, so that class of bug can't recur.
   ============================================================================ */

@media (max-width: 980px) {
  /* Was left commented out (and pegged to a wider, tablet-reaching 1140px breakpoint), so below
     this width .aip-product never dropped its desktop grid-template-columns: minmax(0,1fr) 340px
     - on a phone-width viewport that squeezed the main .aip-stack content (Overview/Hotel Info/
     Flight/Rooms/...) down to almost nothing beside a still-340px-wide, still position:sticky
     .aip-summary card, which is what made the summary card look broken/floating instead of
     sitting normally above the hotel-details content. Pegged to this same 980px mobile
     breakpoint (not a separate, wider one) since that's where .aip-book-dock just below already
     switches this page into its mobile layout - tablet widths above this keep the desktop
     2-column sticky sidebar. */
  .aip-product {
    grid-template-columns: 1fr;
  }

  .aip-summary {
    order: -1;
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
  }

  .aip-summary::after {
    display: none;
  }

  /* Mobile: the page's own sidebar is hidden - it opens only from the fixed .aip-book-dock's
     "View details" (#aipSummarySheet, the same RenderSummaryCard() content), same as every other
     journey page. Scoped to the direct child so the copy inside the sheet itself still shows. */
  .aip-product > .aip-summary {
    display: none;
  }

  .aip-book-dock {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px rgba(16, 68, 67, 0.12);
  }

  .aip-book-dock__quote {
    appearance: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
    cursor: pointer;
    color: inherit;
  }

  .aip-book-dock__quote strong {
    display: block;
    font-family: var(--aip-font-display);
    font-size: 18px;
    color: var(--aip-text);
  }

  .aip-book-dock__quote span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--aip-text-muted);
  }

  body {
    padding-bottom: 68px;
  }
}
@media (max-width: 860px) {
  /* ---- Header / hero (wrap, back-link, identity, tripadvisor, gallery, anchor nav) ---- */
  .aip-search-wrap {
    padding: 0 0 8px;
  }
  /* .ticket__stub's own mobile rule (shared with the product page) already covers this. */

  /* Search bar is NOT sticky on mobile (explicit request) - only .aip-anchors keeps the sticky
     hand-off below this width. Overrides the base position:sticky rule above. */
  .aip-search-wrapper {
    position: static;
    top: auto;
  }

  .aip-crumbs {
    display: none;
  }

  .aip-identity {
    margin-bottom: 8px;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .aip-identity h1 {
    font-size: 22px;
  }
  .aip-ta {
    width: 100%;
  }

  .aip-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    grid-template-columns: none;
    grid-template-areas: none;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* legacy Edge/IE */
  }

  /* Was ".aip-gallery::webkit-scrollbar" - missing the leading "-" so it wasn't a valid
     pseudo-element and never matched anything. That let the native horizontal scrollbar
     render for real, consuming vertical space and pushing everything below the gallery
     down (looked like a stray gap above .aip-anchors on non-overlay-scrollbar setups). */
  .aip-gallery::-webkit-scrollbar {
    display: none;
  }

  .aip-gallery__tiles {
    display: contents;
  }

  .aip-gallery__hero,
  .aip-gallery__tiles button {
    flex: 0 0 82%;
    min-height: 200px;
    height: 200px;
    scroll-snap-align: start;
    border-radius: 0;
  }

  .aip-anchors a {
    min-height: 48px;
    font-size: 13px;
    padding: 8px 12px;
  }

  /* ---- Panel base + highlight cards/slots ---- */
  .aip-hl-cards {
    grid-template-columns: 1fr;
  }

  .aip-hl-slots li {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  /* Was originally in the Phase 1 mobile block (~line 437, before .aip-panel's own base rule
     even existed further down at ~line 514) - same specificity (0,1,0) on both sides means
     source order alone decides, and a later *unconditional* rule for the same selector always
     beats an earlier media-scoped one regardless of viewport, so it was permanently dead at
     every screen width, not just overridden above 860px. Media queries don't add specificity;
     they're just a conditional wrapper, so this only actually takes effect moved down here,
     after the base rule it's meant to override. */
  .aip-panel {
    padding: 16px;
  }

  /* ---- Mobile fold-accordion (Hotel Info feature blocks) ---- */
  .aip-feature,
  .aip-panel.aip-feature,
  .aip-room-card,
  .aip-love,
  .aip-amenity-grid {
    grid-template-columns: 1fr;
  }

  .aip-feature > div {
    padding: 16px;
  }

  .aip-feature .aip-hl-media {
    min-height: 180px;
    height: 200px;
  }

  /* Isolates this section's internal layout changes (the accordion opening/closing) from the
     browser's style/layout bookkeeping for the rest of the page - a cheap, zero-visual-risk
     hint that reduces how much work each animation frame costs. Doesn't eliminate the reflow
     that pushes later content down (that's real, unavoidable - the section genuinely gets
     taller), but cuts the overhead around it. */
  .aip-fold {
    contain: layout style;
  }

  /* Smooth fold-accordion open/close instead of the old display:none/block snap. Scoped to
     .aip-fold specifically (not every .aip-feature - the plain Hotel Info section's own
     .aip-hl-media has no is-open toggle at all and must stay visible at its normal height
     always). Collapsed state zeroes height and delays visibility to the end of the close
     transition so the content drops out of tab order/AT only once actually invisible; the open
     state transitions immediately (no delay) so the reveal is visible from the start.
     .aip-fold-body's max-height while open is "none" (fully natural height, no cap) - a fixed
     guessed cap (e.g. 2000px) looked broken here: real content only ever needs ~200-700px, so
     on an ease curve the box reached its actual size in well under half the transition's
     duration, reading as an abrupt snap rather than a smooth open. accommodationItem.js's
     fold-accordion handler instead measures the real scrollHeight per click and drives an exact
     inline max-height during the animation (same pattern as the amenities <details> above),
     clearing it back to this "none" resting value once the open transition finishes - this rule
     is just the idle state, not what's actually animated against. */
  .aip-fold-body {
    max-height: none;
    overflow: hidden;
    visibility: visible;
    transition: max-height 0.32s ease;
  }

  .aip-fold:not(.is-open) .aip-fold-body {
    max-height: 0;
    visibility: hidden;
    transition:
      max-height 0.32s ease,
      visibility 0s linear 0.32s;
  }

  /* .aip-hl-media's own height no longer transitions at all - it used to run its own ~300ms
     height animation in parallel with .aip-fold-body's (both are layout-affecting: every frame
     forces the browser to re-run layout for everything below on the page, not just paint). Two
     of those at once is expensive, and under any real CPU load - verified with Playwright's CPU
     throttling, not just guessed - the browser visibly couldn't keep up: it would sit stuck on
     one frame for 60-80ms while the main thread caught up, then jump, which is exactly what
     "appears from nowhere and then resizes" is. The container's height now flips in a single
     instant step (still just one cheap reflow, bundled into whichever frame .aip-fold-body's
     own animation is already forcing) with no transition of its own. The actual visible motion
     for the photo now comes entirely from the <img>'s own opacity/transform below, which are
     compositor-only properties - they animate on their own thread and stay smooth completely
     independent of how busy layout/JS is at that moment, unlike height ever can. */
  .aip-fold:not(.is-open) .aip-hl-media {
    height: 0;
    min-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: visibility 0s linear 0.32s;
  }

  .aip-fold.is-open .aip-hl-media {
    height: 180px;
    visibility: visible;
  }

  /* The <img> inside is normally height:100% of .aip-hl-media (AccommodationItemPage.css,
     desktop rule) - fine when the container's height is static, but pinning it to the fixed
     final height here keeps it decoupled from the container's own (now instant, not animated)
     height changes. The actual reveal is this fade + gentle scale-up, not a height/clip wipe -
     compositor-only, so it can't ever look choppy regardless of device load. */
  .aip-fold .aip-hl-media img {
    height: 180px;
    opacity: 0;
    transform: scale(0.96);
    transition:
      opacity 0.32s ease,
      transform 0.32s ease;
  }

  .aip-fold.is-open .aip-hl-media img {
    opacity: 1;
    transform: scale(1);
  }

  .aip-fold h2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 0;
    cursor: pointer;
  }

  .aip-fold h2::after {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-right: 4px;
    border-right: 2px solid var(--aip-primary);
    border-bottom: 2px solid var(--aip-primary);
    transform: rotate(45deg);
    transition: transform 0.15s ease;
  }

  .aip-fold.is-open h2::after {
    transform: rotate(-135deg);
    margin-top: 6px;
  }

  /* ---- Room card ---- (.ticket's own mobile rule, shared with the product page, covers the
     ticket stacking now) */
  .aip-room-card {
    grid-template-columns: 1fr;
  }

  /* ---- Room detail dialog ---- */
  .aip-room-sheet {
    grid-template-columns: 1fr;
    padding: 16px 14px 8px;
  }

  .aip-room-hero img {
    height: 220px;
  }

  .aip-room-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .aip-room-includes {
    grid-template-columns: 1fr;
  }

  .aip-room-sheet__foot {
    flex-direction: column;
    align-items: stretch;
  }

  /* ---- Times list (location features) ---- */
  .aip-times li {
    grid-template-columns: 28px 100px minmax(0, 1fr);
    gap: 10px;
  }
}

/* ============================================================================================
   ---- Part 2: product page (was ProductPage-v2.css) ----
   ============================================================================================ */

/* ============================================================================================
   Product page ("Customise your holiday") - new design, ported from:
   F:\CyprusParadise-NewDesigns\prototypes\customise-holiday\

   Being rolled out in phases, same convention as AccommodationItemPage.css on the hotel detail
   page - loaded ALONGSIDE the legacy ProductPage.css, not instead of it: sections not yet
   rebuilt (the calendar, flights, rooms/board, transfers and price-summary panels) still rely
   on the old stylesheet/markup until their phase lands. This page is a Vue 3 app
   (wwwroot/js/productpage/productpage.js) with real working booking/pricing logic, unlike the
   hotel detail page's plain-Razor rebuild - so later phases restyle the existing Vue templates
   in place rather than rewriting them; this file only ever adds CSS classes, it never changes
   what data drives them.

   Phase 1 (this phase): page scaffold + hero + search-bar capsule + sticky anchor nav + mobile
   book-dock scaffold. Everything below is scoped under .pp-page so nothing else on the site is
   touched - "pp-" ("ProductPage") rather than reusing "aip-" (that's the hotel detail page's own
   namespace) or "cp-" (already used site-wide by this page's own legacy calendar classes).
   ============================================================================================ */

.pp-page {
  /* Same source values as AccommodationItemPage.css's --aip-* tokens - both copied 1:1 from
     CyprusParadise-NewDesigns/assets/tokens/tokens.css's --cp-* custom properties. */
  --pp-primary: #02aaa9;
  --pp-primary-dark: #218887;
  --pp-primary-deep: #104443;
  --pp-primary-mist: #def6f5;
  --pp-gold: #febb02;
  --pp-coral: #f9706a;
  --pp-green: #23ae24;
  --pp-green-text: #008009;
  --pp-green-soft: #dff6e1;
  --pp-red-soft: #ffe7e8;
  --pp-urgency-text: #c23b4a;
  --pp-text: #3c4e5a;
  --pp-text-muted: #707070;
  --pp-ink: #141515;
  --pp-border: #d8e0e0;
  --pp-page-bg: #f3f6f6;
  --pp-font: "Lato", "Segoe UI", sans-serif;
  --pp-font-display: "Montserrat", "Lato", sans-serif;

  font-family: var(--pp-font);
  color: var(--pp-text);
  line-height: 1.45;

  /* The prototype's own body background (search-results/styles.css, which customise-holiday
     @imports) - a faint radial glow over a light grey-teal wash, not plain white. Makes every
     white .pp-panel/.pp-summary card (added in later phases) read as a card instead of blending
     into the page. */
  background:
    radial-gradient(1200px 420px at 10% -10%, rgba(2, 170, 169, 0.16), transparent 55%),
    radial-gradient(900px 380px at 100% 8%, rgba(254, 187, 2, 0.14), transparent 50%), var(--pp-page-bg);
}

.pp-page *,
.pp-page *::before,
.pp-page *::after {
  box-sizing: border-box;
}

.pp-page img {
  max-width: 100%;
  display: block;
}

.pp-page :where(button, input, select) {
  font: inherit;
}

.pp-page a {
  color: var(--pp-primary-dark);
}

.pp-page h1,
.pp-page h2,
.pp-page h3 {
  margin: 0;
  color: var(--pp-primary-deep);
}

/* ---- Hero ----
   Ported from the prototype's .hotel-hero* - full-bleed image with an overlay identity card
   (location, board-basis chip, H1, hotel name+stars, Tripadvisor rating, stay summary). Every
   value below is real per-booking data (Model.Accommodation/Model.FormData), not prototype
   placeholder copy. */
.pp-hero {
  /* NOT overflow:hidden - .pp-hero__card below deliberately overlaps past this box's own
     bottom edge (negative margin, like the prototype's .hotel-hero__card) to sit "on top of"
     the page background below. overflow:hidden here would clip that overlap and cut the card's
     own content off instead of just the image, which is what was happening. Rounding (where
     wanted) belongs on .pp-hero__bg/.pp-hero__veil themselves instead - see below - not this
     container. */
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
}

.pp-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  /* border-radius: 0 0 var(--pp-radius, 14px) var(--pp-radius, 14px); */
}

.pp-hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 0 0 var(--pp-radius, 14px) var(--pp-radius, 14px);
  background:
    linear-gradient(90deg, rgba(16, 68, 67, 0.42) 0%, rgba(16, 68, 67, 0.12) 48%, transparent 72%),
    linear-gradient(180deg, rgba(16, 68, 67, 0.12) 0%, rgba(16, 68, 67, 0.08) 38%, rgba(16, 68, 67, 0.48) 100%);
}

.pp-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 28px;
}

.pp-hero__card {
  max-width: 460px;
  margin: 0 0 -32px;
  padding: 22px 24px 20px;
  background: #fff;
  color: var(--pp-text);
  border-radius: 8px;
  border-top: 3px solid var(--pp-primary);
  box-shadow: 0 16px 40px rgba(16, 68, 67, 0.18);
}

.pp-hero__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}

.pp-hero__place {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pp-primary-dark);
}

.pp-hero h1 {
  margin: 0;
  font-family: var(--pp-font-display);
  letter-spacing: -0.03em;
  font-size: clamp(24px, 3.2vw, 32px);
  color: var(--pp-text);
}

.pp-hero__name {
  margin: 8px 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.pp-hero__stars {
  margin-left: 6px;
  letter-spacing: 1px;
  color: var(--pp-gold);
}

.pp-hero__stay {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--pp-text-muted);
}

.pp-hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}

.pp-hero__edit {
  font-size: 13px;
  font-weight: 800;
  color: var(--pp-primary-dark);
  text-decoration: none;
  white-space: nowrap;
}

.pp-hero__edit:hover {
  text-decoration: underline;
}

.pp-hero .pp-chip-board {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--pp-primary-mist);
  color: var(--pp-primary-deep);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
}

.pp-chip-board svg {
  width: 13px;
  height: 13px;
}
/* Tripadvisor mini-card, ported from the prototype's .ta/.ta__dots (a CSS-drawn 5-dot rating
   rather than an image, unlike the hotel detail page's .aip-ta - matches this design's own
   idiom). Dot fullness is computed server-side from the real TripAdvisor.Rating value. */
.pp-ta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--pp-text);
  margin-bottom: 6px;
}

.pp-ta__dots {
  display: flex;
  gap: 3px;
}

.pp-ta__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pp-border);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.pp-ta__dot.is-full {
  background: #00aa6c;
}

.pp-ta__dot.is-half::after {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  background: #00aa6c;
}

/* Real Tripadvisor rating bubble image (tripAdvisorRatingImageUrl, straight off the CMS node -
   see AccommodationItem.cshtml's own .aip-ta__rating), shown instead of .pp-ta__dots above
   whenever the CMS actually has one. Sized to sit on the same 13px text baseline as .pp-ta__meta
   next to it. */
.pp-ta__rating {
  display: block;
  height: 14px;
  width: auto;
  flex-shrink: 0;
}

.pp-ta__meta {
  color: var(--pp-text-muted);
}

/* Clearance for .pp-hero__card's own -28px/-32px overlap (below) - without this, whatever
   follows the hero sits right up against (or under) the bottom of that overlapping card instead
   of clearing it. Exactly the prototype's own fix: .hotel-hero + .page { padding-top: 56px; } -
   same 56px value, ~ (any later sibling) rather than + since .pp-book-dock (display:none at
   desktop widths, so it takes up no flow space either way) sits between them in the DOM. */
.pp-hero ~ .productDetailPage {
  padding-top: 56px;
}

@media (min-width: 721px) {
  .pp-hero {
    min-height: 240px;
  }

  .pp-hero__veil {
    background: linear-gradient(
      180deg,
      rgba(16, 68, 67, 0.08) 0%,
      rgba(16, 68, 67, 0.06) 50%,
      rgba(16, 68, 67, 0.32) 100%
    );
  }

  .pp-hero__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "kicker ta"
      "title title"
      "name name"
      "foot foot";
    gap: 6px 24px;
    align-items: center;
    max-width: none;
    margin-bottom: -28px;
    padding: 16px 22px 14px;
  }

  .pp-hero__kicker {
    grid-area: kicker;
    margin: 0;
  }

  .pp-hero h1 {
    grid-area: title;
    font-size: 26px;
  }

  .pp-hero__name {
    grid-area: name;
    margin: 0;
  }

  .pp-hero .pp-ta {
    grid-area: ta;
    justify-self: end;
  }

  .pp-hero__foot {
    grid-area: foot;
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--pp-border);
  }
}

/* Mobile hero polish, ported from the prototype's own @media (max-width: 720px)/(max-width:
   480px) .hotel-hero* rules - the single-column layout below the 721px grid breakpoint above
   still needs its own spacing/type-scale tweaks to match, not just the grid being dropped. */
@media (max-width: 720px) {
  .pp-hero__inner {
    padding-top: 56px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .pp-hero__card {
    max-width: none;
    margin: 0 0 -20px;
    padding: 16px 16px 14px;
  }

  .pp-hero__kicker {
    margin-bottom: 8px;
    gap: 8px;
  }

  .pp-hero__place {
    font-size: 11px;
  }

  .pp-hero .pp-chip-board {
    padding: 4px 10px;
    font-size: 11px;
  }

  .pp-hero h1 {
    font-size: 22px;
  }

  .pp-hero__name {
    margin: 6px 0 8px;
    font-size: 15px;
  }

  .pp-hero .pp-ta {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .pp-hero__stay {
    font-size: 13px;
  }

  .pp-hero__foot {
    margin-top: 10px;
    padding-top: 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .pp-hero ~ .productDetailPage {
    padding-top: 36px;
  }
}

@media (max-width: 480px) {
  .pp-hero {
    min-height: 280px;
  }

  .pp-hero__card {
    padding: 14px;
  }

  .pp-hero h1 {
    font-size: 20px;
  }
}

/* ---- Search-bar capsule ----
   Ported from the prototype's .search-bar - a read-only display of the real booking values
   (this project's real airport/date/room pickers live in the shared, page-agnostic
   SearchTabModals.cshtml/HolidaySearchTab.cshtml widget, not part of this page's own design
   system) - clicking any field or the search button opens that same real widget via
   $('.editSearch').slideToggle(), exactly like the hotel detail page's .aip-search-bar. */
.pp-search-bar {
  margin: 0 0 16px;
  background: var(--pp-gold);
  border-radius: 14px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 6px;
  box-shadow: 0 16px 40px rgba(16, 68, 67, 0.18);
}

.pp-search-bar__field {
  /* appearance: none belongs here (not just on the two fields that are real <button>s - Departure
     airport is still a <div>, which ignores it harmlessly) so a real <button> using this same
     class (Departure date/Duration's own ppOpenDate/ppOpenNights) doesn't keep any native button
     chrome the rest of this rule doesn't already override. */
  appearance: none;
  background: #fff;
  border: 0;
  border-radius: 10px;
  padding: 8px 12px 10px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.pp-search-bar__field span {
  font-size: 11px;
  font-weight: 700;
  color: var(--pp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pp-search-bar__field strong {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 24px;
  color: var(--pp-ink);
  font-size: 14px;
  font-weight: 700;
}

.pp-search-bar__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--pp-primary-dark);
}

.pp-search-bar__input {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: inherit;
}

.pp-search-bar__input::placeholder {
  color: var(--pp-text-muted);
  opacity: 1;
}

.pp-search-bar__input:disabled {
  opacity: 1;
  -webkit-text-fill-color: currentColor;
}

.pp-search-bar__btn {
  min-width: 112px;
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  background: linear-gradient(180deg, #14b8b6, var(--pp-primary));
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(2, 170, 169, 0.28);
}

.pp-search-bar__btn:hover {
  background: var(--pp-primary-deep);
}

@media (max-width: 860px) {
  .pp-search-bar {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .pp-search-bar__btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .pp-hero__card {
    max-width: none;
  }
}

/* ---- Mobile book-dock ----
   Replaces the old .mob-price-panel/#stickyPanel bar. Fixed to the viewport bottom only below
   980px, opens the existing #mobPricePanel modal (its content gets reskinned in a later phase;
   this phase only restyles the trigger bar itself so the mobile "Book Now" flow keeps working
   throughout the rollout). */
.pp-book-dock {
  display: none;
}

@media (max-width: 980px) {
  .pp-book-dock {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px rgba(16, 68, 67, 0.12);
  }

  .pp-book-dock__quote {
    appearance: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
    cursor: pointer;
    color: inherit;
  }

  .pp-book-dock__quote strong {
    display: block;
    font-family: var(--pp-font-display);
    font-size: 18px;
    color: var(--pp-text);
  }

  .pp-book-dock__quote span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--pp-text-muted);
  }

  body:has(.pp-page) {
    padding-bottom: 68px;
  }
}

/* ============================================================================
   Phase 2 - Dates panel (#dates): panel shell, banner, calendar grid, cal-foot
   ============================================================================ */

.pp-panel {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(16, 68, 67, 0.08);
  margin-bottom: 16px;
}

.pp-panel__head {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}

.pp-panel__num {
  margin: 0;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--pp-primary-mist);
  color: var(--pp-primary-deep);
  display: grid;
  place-items: center;
  font-family: var(--pp-font-display);
  font-weight: 700;
}

.pp-panel h2 {
  color: var(--pp-primary-deep);
  font-size: 22px;
}

.pp-panel__head p {
  margin: 4px 0 0;
  color: var(--pp-text-muted);
  font-size: 14px;
}

/* ---- Banner (reused by every panel that needs one, not just Dates) ---- */
.pp-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--pp-green-soft);
  color: var(--pp-green-text);
  border: 1px solid #c8e8cc;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  margin: 0 0 16px;
  line-height: 1.45;
}

.pp-banner svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.pp-banner__lead {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.pp-banner__sub {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}

/* ---- Calendar ----
   Ported from the prototype's .cal/.day - a flat CSS grid of day buttons rather than the old
   FullCalendar-lookalike <table> markup, driven by the exact same calendarMonths/isSelectedDay/
   isHighlightedDay/isLastHighlightedDay/isBestPriceDay Vue bindings productpage.js already had
   (goToPrevMonth/goToNextMonth are the one real addition - see productpage.js's own comment on
   viewedMonthKey for why: calendarEvents already carries more than one month of price data, the
   grid just never had a way to page across it before). */
.pp-cal {
  background: #fff;
  border: 1px solid var(--pp-border);
  border-radius: 16px;
  overflow: hidden;
}

.pp-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--pp-border);
}

.pp-month-nav h3 {
  margin: 0;
  font-family: var(--pp-font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--pp-primary-deep);
}

.pp-icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--pp-border);
  background: #fff;
  border-radius: 999px;
  color: var(--pp-text);
  cursor: pointer;
}

.pp-icon-btn svg {
  width: 18px;
  height: 18px;
}

.pp-icon-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.pp-weekdays,
.pp-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.pp-weekdays {
  background: var(--pp-primary-dark);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.pp-weekdays span {
  padding: 9px 2px;
}

.pp-grid {
  gap: 4px;
  padding: 10px;
  background: var(--pp-page-bg);
}

.pp-day {
  appearance: none;
  position: relative;
  overflow: hidden;
  border: 0;
  background: #fff;
  border-radius: 10px;
  min-height: 92px;
  padding: 7px 7px 8px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font: inherit;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--pp-border);
  transition:
    box-shadow 0.15s ease,
    transform 0.15s ease,
    background 0.15s ease;
}

.pp-day:hover:not(:disabled) {
  z-index: 1;
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 2px var(--pp-gold);
}

.pp-day:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 2px var(--pp-gold);
}

.pp-day__num {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 700;
  color: var(--pp-text-muted);
}

.pp-day__price {
  position: relative;
  z-index: 1;
  margin-top: auto;
  align-self: center;
  font-family: var(--pp-font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--pp-primary-deep);
}

.pp-day__stay {
  position: relative;
  z-index: 1;
  margin: auto 0 2px;
  width: 100%;
  padding-right: 4px;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.pp-day__mark {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px 3px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.pp-day.is-start .pp-day__price {
  font-size: 17px;
  color: #fff;
}

.pp-day__leg {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
}

.pp-day__plane {
  width: 14px;
  height: 14px;
  color: #fff;
  flex-shrink: 0;
}

.pp-day.is-end .pp-day__mark {
  background: #fff;
  box-shadow: 0 2px 8px rgba(16, 68, 67, 0.12);
}

.pp-day.is-end .pp-day__plane,
.pp-day.is-end .pp-day__leg {
  color: var(--pp-primary-dark);
}

.pp-day__best {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--pp-green-soft);
  color: var(--pp-green-text);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pp-day.is-best .pp-day__price {
  color: var(--pp-green-text);
}

.pp-day.is-in-range::before,
.pp-day.is-end::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--pp-primary);
}

.pp-day.is-in-range,
.pp-day.is-end {
  background: var(--pp-primary-mist);
  box-shadow: inset 0 0 0 1px rgba(2, 170, 169, 0.38);
}

.pp-day.is-in-range .pp-day__num,
.pp-day.is-end .pp-day__num {
  color: var(--pp-primary-deep);
}

.pp-day.is-start {
  background: var(--pp-primary);
  box-shadow:
    inset 0 0 0 1px var(--pp-primary),
    0 10px 20px rgba(2, 170, 169, 0.28);
}

.pp-day.is-start .pp-day__num,
.pp-day.is-start .pp-day__price,
.pp-day.is-start.is-best .pp-day__price {
  color: #fff;
}

.pp-day.is-end:disabled,
.pp-day.is-in-range:disabled {
  cursor: default;
}

.pp-day.is-end:disabled {
  background: var(--pp-primary-mist);
}

.pp-day.is-muted {
  background: transparent;
  color: #c5cccc;
  cursor: default;
  box-shadow: none;
}

.pp-day.is-muted .pp-day__num {
  color: #c5cccc;
}

.pp-day.is-unavailable {
  background: #f6f7f7;
  color: #8a9494;
  cursor: default;
  box-shadow: inset 0 0 0 1px dashed #c8d2d2;
}

.pp-day.is-unavailable .pp-day__num {
  color: #9aa3a3;
}

.pp-day__na {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  gap: 4px;
  color: #8a9494;
  pointer-events: none;
}

.pp-day__na svg {
  width: 18px;
  height: 18px;
}

.pp-day__na-text {
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.pp-day.is-in-range:disabled {
  cursor: default;
}

.pp-day:disabled .pp-day__price {
  display: none;
}

/* ---- Hotel-only: two-month check-in / check-out range picker (Calendar.cshtml .pp-cal2,
   productpage.js selectHotelDay). Packages keep the single-month grid above untouched. ---- */
.pp-range-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid var(--pp-border);
  background: var(--pp-primary-mist);
  color: var(--pp-primary-deep);
  font-size: 14px;
  font-weight: 700;
}

.pp-range-hint__clear {
  flex-shrink: 0;
  border: 0;
  background: none;
  padding: 4px 6px;
  color: var(--pp-primary-dark);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

.pp-range-notice {
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid #f3c9c4;
  background: #fdf1ef;
  color: #a5281b;
  font-size: 14px;
  font-weight: 600;
}

.pp-cal2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--pp-page-bg);
}

.pp-cal2__month + .pp-cal2__month {
  border-left: 1px solid var(--pp-border);
}

.pp-cal2__label {
  margin: 0;
  padding: 10px 12px;
  text-align: center;
  font-family: var(--pp-font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--pp-primary-deep);
  background: #fff;
}

.pp-cal2 .pp-grid {
  gap: 3px;
  padding: 8px;
}

.pp-cal2 .pp-day {
  min-height: 66px;
  padding: 5px 5px 6px;
}

.pp-cal2 .pp-day__price,
.pp-cal2 .pp-day.is-start .pp-day__price {
  font-size: 13px;
}

.pp-cal2 .pp-day__stay {
  font-size: 9px;
}

.pp-cal2 .pp-day__na-text {
  font-size: 9px;
}

/* Available nights past the first N/A after the chosen check-in - can't be reached. */
.pp-day.is-blocked {
  opacity: 0.4;
  cursor: not-allowed;
}

/* A possible check-out day that has no availability itself (the first N/A night) - still
   pickable as check-out, so not greyed out like a plain unavailable day. */
.pp-day.is-checkout-ok:not(.is-end):not(.is-in-range) {
  box-shadow: inset 0 0 0 1px rgba(2, 170, 169, 0.45);
}

@media (max-width: 900px) {
  .pp-cal2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .pp-cal2__month + .pp-cal2__month {
    border-left: 0;
    border-top: 1px solid var(--pp-border);
  }
}

@media (max-width: 575.98px) {
  .pp-cal2 .pp-day {
    min-height: 54px;
    padding: 4px 2px 5px;
  }
  .pp-cal2 .pp-day__price,
  .pp-cal2 .pp-day.is-start .pp-day__price {
    font-size: 11px;
  }
  .pp-range-hint {
    font-size: 13px;
  }
}

/* Hotel-only search bar: one Check-in - Check-out field (opens the range dialog) + the
   "Apply changes" button once new dates are picked. */
.pp-search-bar.pp-search-bar--ho {
  grid-template-columns: minmax(0, 1fr) auto;
}

/* "Apply changes" always sits beside the field, fully visible (phones too, where the other
   search bars stack their button underneath). */
.pp-search-bar--ho .pp-search-bar__btn {
  grid-column: auto;
  min-width: 0;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .pp-search-bar.pp-search-bar--ho {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .pp-search-bar--ho .pp-search-bar__btn {
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* ---- Cal-foot: legend + booking summary ---- */
.pp-cal-foot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-top: 1px solid var(--pp-border);
  background: var(--pp-page-bg);
}

.pp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
}

.pp-legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff;
  color: var(--pp-text-muted);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--pp-border);
}

.pp-swatch {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  display: inline-block;
  flex-shrink: 0;
}

.pp-swatch--selected {
  background: var(--pp-primary);
}
.pp-swatch--best {
  background: var(--pp-green);
}
.pp-swatch--available {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--pp-border);
}
.pp-swatch--unavailable {
  background: #f6f7f7;
  box-shadow: inset 0 0 0 1px dashed #c8d2d2;
  position: relative;
}

.pp-swatch--unavailable::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 50%;
  height: 1.5px;
  background: #8a9494;
  transform: rotate(-42deg);
}

.pp-cal-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(210px, 0.85fr);
  gap: 12px;
  align-items: stretch;
}

.pp-cal-trip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--pp-border);
  border-radius: 12px;
}

.pp-cal-leg {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pp-cal-leg p {
  margin: 0;
  min-width: 0;
}

.pp-cal-leg p span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--pp-text-muted);
}

.pp-cal-leg strong {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 800;
  color: var(--pp-ink);
  line-height: 1.25;
}

.pp-cal-leg__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--pp-primary);
  color: #fff;
  flex-shrink: 0;
}

.pp-cal-leg__icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.pp-cal-leg__icon--back {
  background: var(--pp-primary-dark);
}

.pp-cal-trip__stay {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--pp-primary-mist);
  color: var(--pp-primary-deep);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  text-align: center;
}

.pp-cal-price {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--pp-primary);
  color: #fff;
  text-align: left;
}

.pp-cal-price__note {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
}

.pp-cal-price__pp {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: #fff;
}

.pp-cal-price__pp span {
  font-family: var(--pp-font-display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
}

.pp-cal-price__pp small {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.pp-cal-price__total {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
}

/* ---- "We've updated your holiday" confirmation (ppModalDateUpdate) -----------------------
   Ported from the customise-holiday prototype's own .modal--update/.update-hero/.update-pills/
   .update-kicker/.update-tiles/.update-foot - shown after picking a new date directly in this
   calendar (see Calendar.cshtml's own header comment on this dialog + the goToPrevMonth-adjacent
   selectAlternativeDate() in productpage.js). .pp-modal/.pp-modal__x/.pp-modal__body/
   .pp-modal__foot/.pp-btn/.pp-btn--primary are the same shared dialog chrome
   ProductPageSearchDropdowns.css's search-tab popovers already use - only what's new to this
   one specific dialog lives here. ---------------------------------------------------------- */
/* .pp-modal.pp-modal--update (not just .pp-modal--update alone) so this reliably beats the base
   .pp-modal's own width (ProductPageSearchDropdowns.css) regardless of which of the two files
   the browser happens to apply last - same specificity otherwise, so load order would decide it
   (that's what made this show at the base 420px width instead of 680px). The @media(max-width:
   860px) bottom-sheet override (ProductPageSearchDropdowns.css) explicitly re-lists
   .pp-modal--update at the same two-class specificity so it still wins there, same as it already
   does for .pp-modal--wide/--date/--nights. */
.pp-modal.pp-modal--update {
  width: min(680px, calc(100vw - 24px));
  max-height: min(92vh, 880px); /* fallback for Safari < 15.4 (no dvh) */
  max-height: min(92dvh, 880px);
  padding: 0;
}

/* display: flex scoped to [open] specifically - set unconditionally (as this first was) it
   overrides the UA stylesheet's dialog:not([open]) { display: none } (an author-origin rule
   always beats a UA-origin one regardless of specificity), so the card never actually left the
   page flow when closed and just sat there full of stale content instead ("stuck in the
   background" - it wasn't a JS close-handler bug, .close() was already working correctly). */
.pp-modal.pp-modal--update[open] {
  display: flex;
  flex-direction: column;
}

.pp-update-hero {
  position: relative;
  margin: 0;
  padding: 28px 28px 22px;
  background:
    radial-gradient(420px 160px at 100% 0%, rgba(255, 255, 255, 0.14), transparent 60%),
    linear-gradient(160deg, var(--pp-primary-dark), var(--pp-primary));
  color: #fff;
  text-align: center;
  border-radius: 16px 16px 0 0;
}

.pp-update-hero h2 {
  margin: 10px 0 6px;
  font-family: var(--pp-font-display);
  color: #fff;
  font-size: 22px;
}

.pp-update-hero p {
  margin: 0 auto;
  max-width: 36em;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.pp-update-hero .pp-modal__x {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.pp-update-hero .pp-modal__x:hover {
  background: rgba(255, 255, 255, 0.24);
}

.pp-update-check {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.pp-update-check svg {
  width: 22px;
  height: 22px;
}

.pp-update-body {
  padding: 18px 22px 16px;
  overflow: auto;
  /* 1 1 auto, not flex:1 (0% basis): the dialog's height comes from its content, and iOS
     Safari collapsed a 0%-basis body to nothing there - the sheet opened with just the header
     and price showing. auto basis = content height, still shrinks + scrolls at max-height. */
  flex: 1 1 auto;
  min-height: 0;
}

.pp-update-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.pp-update-pills > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--pp-border);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--pp-ink);
}

.pp-update-pills svg {
  width: 16px;
  height: 16px;
  color: var(--pp-primary);
}

.pp-update-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pp-text-muted);
}

.pp-update-kicker svg {
  width: 14px;
  height: 14px;
  color: var(--pp-primary);
}

/* The dialog's own Flights section reuses the page's real .ticket cards (see Calendar.cshtml)
   rather than a simplified summary row, so no .pp-update-leg* CSS of its own is needed here. */

.pp-update-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

/* .pp-modal--update .pp-update-tile (not just .pp-update-tile alone) so this reliably beats
   .pp-page a's own color: var(--pp-primary-dark) (both .pp-update-tile and .pp-update-tip below
   are <a> tags, and a single class loses a specificity tie against a class+tag selector like
   .pp-page a - was showing teal link text here instead of the intended colors). */
.pp-modal--update .pp-update-tile {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--pp-border);
  border-radius: 12px;
  background: var(--pp-page-bg);
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}

.pp-update-tile:hover {
  border-color: var(--pp-primary);
  background: var(--pp-primary-mist);
}

.pp-update-tile svg {
  width: 22px;
  height: 22px;
  color: var(--pp-primary);
}

.pp-update-tile strong {
  font-size: 13px;
  color: var(--pp-ink);
}

.pp-update-tile span {
  font-size: 12px;
  color: var(--pp-text-muted);
  line-height: 1.35;
}

/* Ported from the prototype's own .update-tip - the reassurance line under the tiles ("You can
   change flights and rooms on this page..."). Same .pp-update-jump click-then-scroll behaviour
   as the tiles above (see productPageSearchDropdowns.js). */
.pp-modal--update .pp-update-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  background: var(--pp-green-soft);
  color: var(--pp-green-text);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.35;
}

.pp-update-tip::before {
  content: "i";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--pp-green-text);
  color: #fff;
  font-size: 11px;
  font-style: italic;
}

.pp-update-tip:hover {
  text-decoration: underline;
}

.pp-update-foot > div p {
  margin: 0;
}

.pp-update-foot > div > p:first-child {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pp-text-muted);
}

.pp-update-price__pp {
  font-size: 14px;
  font-weight: 700;
  color: var(--pp-text);
}

.pp-update-price__pp span {
  font-family: var(--pp-font-display);
  font-size: 26px;
  font-weight: 800;
}

.pp-update-price__total {
  margin-top: 2px;
  font-size: 13px;
  color: var(--pp-text-muted);
}

.pp-update-price__save {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--pp-coral, #f9706a);
}

@media (max-width: 720px) {
  .pp-update-tiles {
    grid-template-columns: 1fr;
  }
  /* Compact header so the details get the room. */
  .pp-update-hero {
    padding: 16px 48px 14px;
  }
  .pp-update-check {
    width: 34px;
    height: 34px;
  }
  .pp-update-check svg {
    width: 18px;
    height: 18px;
  }
  /* .pp-modal.pp-modal--update prefix: the shared .pp-modal h2 / .pp-modal__body mobile rules
     (ProductPageSearchDropdowns.css, loaded later) were resetting this spacing to 0 - no gap
     under the tick, and the pills touching the header. */
  .pp-modal.pp-modal--update .pp-update-hero h2 {
    margin: 12px 0 4px;
    font-size: 18px;
  }
  .pp-update-hero p {
    font-size: 13px;
  }
  .pp-modal.pp-modal--update .pp-update-body {
    padding: 16px 16px 12px;
  }
  .pp-update-pills {
    gap: 6px;
    margin-bottom: 14px;
  }
  .pp-update-pills > span {
    padding: 6px 10px;
    font-size: 12px;
  }
  /* Footer: price on the left, button on the right, one compact row (it used to stack and
     centre, taking a third of the screen and squeezing the flight details). */
  .pp-modal.pp-modal--update .pp-update-foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    text-align: left;
  }
  .pp-update-foot > div {
    min-width: 0;
  }
  .pp-update-foot > div > p:first-child {
    font-size: 10px;
  }
  .pp-update-price__pp span {
    font-size: 22px;
  }
  .pp-update-price__total,
  .pp-update-price__save {
    font-size: 12px;
  }
  .pp-update-foot .journey-btn {
    flex-shrink: 0;
    width: auto;
    min-height: 46px;
    padding: 0 16px;
    font-size: 15px;
    white-space: nowrap;
  }
}

/* ============================================================================
   Phase 3-6 - Flights, Rooms/board, Transfers, price summary + modals. Ported
   the same way as Phases 1-2: existing Vue bindings kept exactly as they were,
   only the surrounding markup/classes changed.
   ============================================================================ */

/* ---- Buttons ---- */
/* .pp-btn/:disabled/--primary/--gold/--block removed - the primary CTA button is now the
   shared .journey-btn component (see Part 0 up top), used identically on every journey page.
   .pp-btn--ghost-dark stays (a distinct secondary style with no aip-/bp- equivalent to unify
   with yet) - its markup now pairs with .journey-btn for the base button box-model instead. */
.pp-btn--ghost-dark {
  background: #fff;
  color: var(--pp-primary-deep);
  box-shadow: inset 0 0 0 1px var(--pp-border);
}

.pp-btn--ghost-dark:hover {
  box-shadow: inset 0 0 0 1px var(--pp-primary);
}

.pp-text-btn {
  border: 0;
  background: none;
  color: var(--pp-primary);
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}

.pp-text-btn:hover {
  text-decoration: underline;
}

.pp-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--pp-text-muted);
}

/* ---- Flights: ticket cards ---- */
/* .ticket* (shared with the hotel detail page) now covers this - see the "Flight ticket card"
   block near the top of this file. */

/* ---- Luggage allowance - superseded by .pp-allowance below (ported from the prototype's own
   .allowance, holiday-extras#bags) once Luggage got its own step-2 panel. Left in place in case
   anything else still renders the old flat .pp-luggage rows. ---- */
.pp-luggage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--pp-border);
  border-radius: 12px;
  background: var(--pp-page-bg);
  margin-top: 12px;
}

.pp-luggage + .pp-luggage {
  margin-top: 10px;
}

.pp-luggage__icon img {
  width: 40px;
  height: 40px;
}

.pp-luggage__title {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--pp-primary-deep);
}

.pp-luggage__note {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--pp-text-muted);
}

.pp-stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pp-stepper button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--pp-border);
  background: #fff;
  font-size: 18px;
  font-weight: 800;
  color: var(--pp-primary-dark);
  cursor: pointer;
}

.pp-stepper input {
  width: 36px;
  text-align: center;
  border: 0;
  background: none;
  font-weight: 800;
  font-size: 15px;
  color: var(--pp-ink);
}

.pp-luggage__total {
  text-align: right;
}

.pp-luggage__total strong {
  display: block;
  font-family: var(--pp-font-display);
  font-size: 16px;
  color: var(--pp-primary-deep);
}

@media (max-width: 640px) {
  .pp-luggage {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- Board basis picker ---- */
.pp-page .pp-board-title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 800;
  color: var(--pp-ink);
}

.pp-board-picks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pp-board-pick {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px 18px 18px;
  border: 1px solid var(--pp-border);
  border-radius: 12px;
  background: #fff;
  color: var(--pp-text);
  cursor: pointer;
  text-align: left;
  min-height: 100%;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease,
    background 0.15s ease;
}

.pp-board-pick:hover {
  transform: translateY(-2px);
  border-color: var(--pp-primary);
  box-shadow: 0 10px 24px rgba(16, 68, 67, 0.1);
}

.pp-board-pick:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 2px var(--pp-gold);
}

.pp-board-pick.is-on {
  background: radial-gradient(420px 160px at 100% 0%, rgba(2, 170, 169, 0.12), transparent 60%), var(--pp-primary-mist);
  border-color: var(--pp-primary);
  box-shadow: 0 10px 24px rgba(2, 170, 169, 0.16);
}

.pp-board-pick__mark {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #c5d0d0;
  background: #fff;
  color: #fff;
}

.pp-board-pick.is-on .pp-board-pick__mark {
  background: var(--pp-primary);
  border-color: var(--pp-primary);
}

.pp-board-pick__mark svg {
  width: 14px;
  height: 14px;
}

/* Board icon (Settings > Board Types > [board] > Icon) - ported from the prototype's own
   .board-pick__icon. */
.pp-board-pick__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--pp-primary-mist);
  color: var(--pp-primary-dark);
}

.pp-board-pick.is-on .pp-board-pick__icon {
  background: var(--pp-primary);
  color: #fff;
}

.pp-board-pick__icon svg {
  width: 20px;
  height: 20px;
}

.pp-board-pick__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.pp-board-pick__title {
  display: contents;
}

/* "Included"/"Upgrade" - derived from the board's own real price diff (productpage.js's
   getBoardBadge()), not a separate CMS field. */
.pp-board-pick__badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--pp-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pp-board-pick__name {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 800;
  color: var(--pp-ink);
  line-height: 1.25;
}

.pp-board-pick__blurb {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--pp-text-muted);
}

/* Breakfast/Lunch/Dinner/Drinks pills (Settings > Board Types > [board] > Items Included) -
   ported from the prototype's own .board-meals. */
.pp-board-meals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 4px;
}

.pp-board-meals span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--pp-page-bg);
  color: var(--pp-text-muted);
  font-size: 11px;
  font-weight: 800;
}

.pp-board-meals span.is-on {
  background: var(--pp-green-soft);
  color: var(--pp-green-text);
}

.pp-board-pick__price {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--pp-font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--pp-text);
  letter-spacing: -0.03em;
  line-height: 1;
}

.pp-board-pick__price small {
  margin-left: 4px;
  font-family: var(--pp-font);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--pp-text-muted);
}

.pp-board-note {
  margin: 10px 0 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--pp-text-muted);
}

@media (max-width: 720px) {
  .pp-board-picks {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ---- Room cards ---- */
.pp-room-group + .pp-room-group {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--pp-border);
}

/* Multi-room booking: each room is its own boxed section (header + that room's cards), so it's
   clear which room every pick is for. Single-room bookings keep the plain list above. */
.pp-room-group--multi {
  border: 1px solid var(--pp-border);
  border-radius: 14px;
  padding: 0 14px 14px;
  background: #fff;
}

.pp-room-group--multi + .pp-room-group--multi {
  margin-top: 20px;
  padding-top: 0;
  border-top: 1px solid var(--pp-border);
}

.pp-room-group__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 -14px 14px;
  padding: 12px 14px;
  background: var(--pp-primary-mist);
  border-radius: 14px 14px 0 0;
  border-bottom: 1px solid #c4ebe9;
}

.pp-room-group__n {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pp-primary);
  color: #fff;
  font-family: var(--pp-font-display);
  font-size: 16px;
  font-weight: 800;
}

.pp-room-group__copy {
  min-width: 0;
  flex: 1;
}

.pp-page .pp-room-group__title {
  margin: 0;
  font-family: var(--pp-font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--pp-primary-deep);
}

.pp-room-group__party {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--pp-text);
}

.pp-room-group__picked {
  margin: 0;
  text-align: right;
  font-size: 12px;
  line-height: 1.3;
  color: var(--pp-text-muted);
}

.pp-room-group__picked span {
  display: block;
}

.pp-room-group__picked strong {
  display: block;
  font-size: 14px;
  color: var(--pp-primary-deep);
}

@media (max-width: 640px) {
  .pp-room-group__head {
    flex-wrap: wrap;
  }

  .pp-room-group__picked {
    flex-basis: 100%;
    text-align: left;
    padding-left: 46px;
  }
}

.pp-rooms {
  display: grid;
  gap: 12px;
}

.pp-room {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) 168px;
  gap: 14px;
  align-items: start;
  border: 1px solid #e4eeee;
  border-radius: 14px;
  padding: 10px;
  background: #fff;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.pp-room.is-on {
  border-color: var(--pp-primary);
  background: #fff;
  box-shadow: 0 10px 24px rgba(2, 170, 169, 0.1);
}

.pp-room__photo {
  position: relative;
  margin: 0;
  min-height: 168px;
  height: 100%;
}

.pp-room__photo img {
  width: 100%;
  height: 100%;
  min-height: 168px;
  max-height: 220px;
  object-fit: cover;
  border-radius: 10px;
}

/* Ported from the prototype's own .room__chosen - the "Selected" pill on a chosen room's photo. */
.pp-room__chosen {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--pp-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 6px 14px rgba(2, 170, 169, 0.28);
}

.pp-room__info {
  min-width: 0;
}

.pp-room__name {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  color: var(--pp-primary-deep);
  cursor: pointer;
}

.pp-room__view {
  font-size: 12px;
  font-weight: 700;
  color: var(--pp-primary);
  cursor: pointer;
}

/* Replaces .pp-room__view above - a real <button>, not a plain clickable span (ported from the
   prototype's own .room-details). */
.pp-room-details {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--pp-primary);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.pp-room-details svg {
  width: 14px;
  height: 14px;
}

.pp-room__board {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 8px;
  background: var(--pp-page-bg);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  color: var(--pp-ink);
}

/* Ported from the prototype's own .room-board - replaces .pp-room__board above (same look,
   without the extra margin-top now that it isn't the last element in the card any more). */
.pp-room-board {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 8px;
  background: var(--pp-page-bg);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  color: var(--pp-ink);
}

/* Feature chips - ported from the prototype's own .room-chips, filled with this room's real CMS
   Facilities (thisRoomFacilities() in productpage.js) instead of the prototype's hardcoded
   "Free WiFi"/"Sleeps 2 adults" placeholders. */
.pp-room-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.pp-room-chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--pp-border);
  border-radius: 999px;
  background: var(--pp-page-bg);
  font-size: 12px;
  font-weight: 700;
  color: var(--pp-text);
  line-height: 1;
}

.pp-room-chips svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--pp-primary-dark);
}

/* Checklist - ported from the prototype's own .room-perks, filled with this room's real CMS
   UsPs (thisRoomUSPs()) instead of the prototype's hardcoded perk copy. */
.pp-room-perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.pp-room-perks li {
  position: relative;
  padding-left: 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--pp-green-text);
  line-height: 1.35;
}

.pp-room-perks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
}

.pp-room__price {
  text-align: right;
}

.pp-room.is-on .pp-room__price {
  background: radial-gradient(280px 120px at 100% 0%, rgba(2, 170, 169, 0.14), transparent 62%), var(--pp-primary-mist);
  border-radius: 10px;
  padding: 12px 12px 10px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Real pre-discount price (unit.DiscountAmount) - only rendered when the search API actually
   returned a discount for this unit, ported from the prototype's own .room-price__was. */
.pp-room-price__was {
  display: block;
  font-family: var(--pp-font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--pp-urgency-text);
  text-decoration: line-through;
}

.pp-room__price strong {
  display: block;
  margin-top: 2px;
  font-family: var(--pp-font-display);
  font-size: 18px;
  color: var(--pp-text);
}

.pp-room__price span {
  display: block;
  font-size: 12px;
  color: var(--pp-text-muted);
}

/* A little more emphasis than the plain per-night line below it (matches the prototype's own
   .room-price__pp vs .room-price__extra) - this is the real unit.PricePerPerson figure. */
/* Room list price: big Lato 900 with a small £ and "pp" (PriceStyle.css .cp-big-price), so the
   room price reads like every other headline price on the site. */
.pp-room__price .pp-room-price__pp {
  margin-top: 4px;
  font-family: var(--pp-font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--pp-text);
}

.pp-room__price .pp-room-price__pp small {
  margin-left: 2px;
  font-size: 0.45em;
  font-weight: 700;
  color: inherit;
}

.pp-room__price button {
  margin-top: 8px;
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  background: var(--pp-primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.pp-room.is-on .pp-room__price button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: var(--pp-primary);
  box-shadow: inset 0 0 0 2px var(--pp-primary);
  margin-top: auto;
}

.pp-room__price button svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Reserve-now-pay-later note - real deposit figure (depositInfo.Deposit, already computed for
   the price sidebar), ported from the prototype's own .room__pay. */
.pp-room__pay {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--pp-text-muted);
  line-height: 1.35;
}

.pp-room-empty {
  margin: 0;
  padding: 16px 4px;
  color: var(--pp-text-muted);
  font-size: 14px;
  text-align: center;
}

.pp-room--unpriced {
  opacity: 0.65;
}

.pp-room--unpriced .pp-room__price {
  font-size: 12px;
  font-weight: 700;
  color: var(--pp-text-muted);
}

@media (max-width: 720px) {
  .pp-room {
    grid-template-columns: 1fr;
  }

  .pp-room__photo {
    min-height: 140px;
  }

  .pp-room__price {
    text-align: left;
  }
}

/* ---- Steps bar ---- */
/* Ported from the prototype's own <nav class="steps"> - "Customise"/"Extras" are real buttons
   here (currentStep/goToStep in productpage.js toggle which panels show), not links, since both
   live in this one page/app rather than two separate prototype pages. */
.pp-steps {
  background: var(--pp-primary-deep);
}

.pp-steps ol {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0 auto;
  padding: 10px 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 700;
}

.pp-steps button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.pp-steps .is-done {
  color: #fff;
}

.pp-steps .is-active {
  color: var(--pp-gold);
}

/* ---- Page continue (step 1 -> 2 -> checkout) ---- */
.pp-page-continue {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-top: 8px;
  padding: 16px 18px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 3px 3px 6px 0 rgba(0, 0, 0, 0.16);
}

.pp-page-continue p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--pp-text);
}

@media (max-width: 640px) {
  .pp-page-continue {
    flex-direction: column;
    align-items: stretch;
  }

  .pp-page-continue .pp-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---- Luggage allowance card (Luggage panel) - ported from the prototype's own .allowance. ---- */
.pp-allowance {
  background: #fff;
  border: 1px solid var(--pp-border);
  border-radius: 8px;
  overflow: hidden;
}

.pp-allowance > h3 {
  margin: 0;
  padding: 16px 18px 12px;
  font-size: 18px;
  font-weight: 800;
  color: var(--pp-ink);
}

.pp-allowance__row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1.2fr) auto minmax(120px, auto);
  gap: 14px 16px;
  align-items: center;
  padding: 18px;
  border-top: 1px solid #eee;
}

.pp-allowance__row--cabin {
  grid-template-columns: 72px minmax(0, 1fr) auto;
}

/* Bag photos (checked luggage / small personal bag, /assets/images/journey/luggage-*.webp) in
   place of the old dashed-circle line icons - as in the customise-holiday preview's .cp-bag-row. */
.pp-allowance__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
}

.pp-allowance__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pp-allowance__name {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--pp-ink);
  line-height: 1.3;
}

.pp-allowance__meta {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--pp-text-muted);
}

.pp-allowance__total {
  padding-left: 18px;
  border-left: 1px solid #e6e6e6;
  text-align: left;
}

.pp-allowance__total strong {
  display: block;
  font-family: var(--pp-font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--pp-text);
  line-height: 1.1;
}

.pp-allowance__total span {
  font-size: 12px;
  color: var(--pp-text-muted);
}

.pp-allowance__ok {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--pp-green-text);
  white-space: nowrap;
}

.pp-allowance__ok svg {
  width: 22px;
  height: 22px;
}

.pp-allowance__foot {
  margin: 0;
  padding: 14px 18px 16px;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: var(--pp-text-muted);
}

.pp-allowance__foot a {
  color: var(--pp-primary);
  font-weight: 700;
}

@media (max-width: 640px) {
  .pp-allowance__row,
  .pp-allowance__row--cabin {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
  }

  .pp-allowance__total,
  .pp-allowance__ok {
    grid-column: 1 / -1;
    justify-self: start;
    padding-left: 0;
    border-left: 0;
    text-align: left;
  }
}

/* ---- Resort transfer (Transfer panel) - ported from the prototype's own .transfer-stage/
   .transfer-hero/.transfer-pick (holiday-extras#transfer). Badge/icon/price/blurb are all
   real (transfer.IsFree) except the hero caption's chips, which are true regardless of which
   transfer/hotel this is. ---- */
.pp-transfer-stage {
  margin: 0;
}

.pp-transfer-hero {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  min-height: 280px;
  background: var(--pp-primary-deep);
}

.pp-transfer-hero img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: 18% 55%;
}

.pp-transfer-hero__copy {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(46%, 340px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  /* Was 28px 24px 72px 40px - that 72px bottom padding left only ~200px of content box inside
     the figure's fixed 300px/overflow:hidden height, while the kicker+h3(2 lines)+chips content
     needs ~215-230px - the chips row (last flex item, centered) was the one getting clipped off
     by overflow:hidden, while the kicker/h3 above it stayed visible. Symmetric padding gives the
     content room to actually fit. */
  padding: 28px 24px 28px 40px;
  background: linear-gradient(to left, rgba(16, 68, 67, 0.82) 55%, rgba(16, 68, 67, 0.28) 82%, transparent);
  color: #fff;
}

.pp-transfer-hero__kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.pp-transfer-hero h3 {
  margin: 0;
  color: #fff;
  font-family: var(--pp-font);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
}

.pp-transfer-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.pp-transfer-hero__chips li {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.pp-transfer-picks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  position: relative;
  z-index: 1;
  margin: -48px 16px 0;
}

.pp-transfer-pick {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 100%;
  padding: 18px 18px 16px;
  border: 1px solid var(--pp-border);
  border-radius: 12px;
  background: #fff;
  color: var(--pp-text);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 14px 28px rgba(16, 68, 67, 0.12);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease,
    background 0.15s ease;
}

.pp-transfer-pick:hover {
  transform: translateY(-2px);
  border-color: var(--pp-primary);
  box-shadow: 0 16px 32px rgba(16, 68, 67, 0.14);
}

.pp-transfer-pick.is-on {
  background: radial-gradient(420px 160px at 100% 0%, rgba(2, 170, 169, 0.12), transparent 60%), var(--pp-primary-mist);
  border-color: var(--pp-primary);
  box-shadow: 0 16px 32px rgba(2, 170, 169, 0.18);
}

.pp-transfer-pick__top {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.pp-transfer-pick__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--pp-primary-mist);
  color: var(--pp-primary-dark);
}

.pp-transfer-pick.is-on .pp-transfer-pick__icon {
  background: var(--pp-primary);
  color: #fff;
}

.pp-transfer-pick__icon svg {
  width: 20px;
  height: 20px;
}

.pp-transfer-pick__badge {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--pp-green-soft);
  color: var(--pp-green-text);
}

.pp-transfer-pick__badge--upgrade {
  background: var(--pp-primary);
  color: #fff;
}

.pp-transfer-pick__mark {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #c5d0d0;
  background: #fff;
  color: #fff;
}

.pp-transfer-pick.is-on .pp-transfer-pick__mark {
  background: var(--pp-primary);
  border-color: var(--pp-primary);
}

.pp-transfer-pick__mark svg {
  width: 14px;
  height: 14px;
}

.pp-transfer-pick__title {
  margin-top: 4px;
  font-size: 17px;
  font-weight: 800;
  color: var(--pp-ink);
  line-height: 1.25;
}

.pp-transfer-pick__blurb {
  font-size: 13px;
  font-weight: 400;
  color: var(--pp-text-muted);
  line-height: 1.45;
}

.pp-transfer-pick__perks {
  display: grid;
  gap: 6px;
  width: 100%;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.pp-transfer-pick__perks li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--pp-text);
}

.pp-transfer-pick__perks svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 1px;
  color: var(--pp-green);
}

.pp-transfer-pick__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--pp-border);
}

.pp-transfer-pick.is-on .pp-transfer-pick__foot {
  border-top-color: rgba(2, 170, 169, 0.28);
}

.pp-transfer-pick__price {
  font-family: var(--pp-font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--pp-text);
  line-height: 1;
}

.pp-transfer-pick__price small {
  display: block;
  margin-top: 3px;
  font-family: var(--pp-font);
  font-size: 11px;
  font-weight: 700;
  color: var(--pp-text-muted);
}

.pp-transfer-pick__price--free {
  font-family: var(--pp-font);
  font-size: 16px;
  color: var(--pp-green-text);
}

.pp-transfer-pick__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pp-primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.pp-transfer-pick__status svg {
  width: 18px;
  height: 18px;
  padding: 3px;
  border-radius: 50%;
  background: var(--pp-green);
  color: #fff;
}

.pp-transfer-pick__select {
  display: inline-grid;
  place-items: center;
  min-width: 92px;
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--pp-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.pp-transfer-pick__select--shared {
  background: #fff;
  color: var(--pp-primary);
  box-shadow: inset 0 0 0 1px var(--pp-primary);
}

.pp-transfer-pick:hover .pp-transfer-pick__select {
  background: var(--pp-primary-dark);
}

.pp-transfer-pick:hover .pp-transfer-pick__select--shared {
  background: var(--pp-primary-mist);
}

@media (max-width: 720px) {
  .pp-transfer-hero {
    min-height: 220px;
  }

  .pp-transfer-hero__copy {
    inset: auto 0 0 0;
    width: auto;
    padding: 40px 16px 16px;
    background: linear-gradient(to top, rgba(16, 68, 67, 0.88), transparent);
  }

  .pp-transfer-picks {
    grid-template-columns: 1fr;
    margin: -32px 12px 0;
  }
}

/* ---- Seat picker (Choose your seats) ---- */
.pp-seat-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.pp-seat-mode {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 16px 16px;
  border: 1px solid var(--pp-border);
  border-radius: 12px;
  background: #fff;
  color: var(--pp-text);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.pp-seat-mode:hover {
  border-color: var(--pp-primary);
  box-shadow: 0 10px 24px rgba(16, 68, 67, 0.1);
}

.pp-seat-mode.is-on {
  background: radial-gradient(380px 140px at 100% 0%, rgba(2, 170, 169, 0.12), transparent 60%), var(--pp-primary-mist);
  border-color: var(--pp-primary);
  box-shadow: 0 10px 24px rgba(2, 170, 169, 0.16);
}

.pp-seat-mode__mark {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #c5d0d0;
  background: #fff;
}

.pp-seat-mode.is-on .pp-seat-mode__mark {
  border-color: var(--pp-primary);
  background: var(--pp-primary);
  box-shadow: inset 0 0 0 4px #fff;
}

.pp-seat-mode__badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--pp-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pp-seat-mode__badge--pick {
  background: var(--pp-primary-dark);
}

.pp-seat-mode strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--pp-ink);
}

.pp-seat-mode__blurb {
  font-size: 13px;
  line-height: 1.4;
  color: var(--pp-text-muted);
}

.pp-seat-mode__price {
  margin-top: auto;
  padding-top: 6px;
  font-family: var(--pp-font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--pp-text);
  letter-spacing: -0.03em;
}

.pp-seat-mode__price small {
  margin-left: 4px;
  font-family: var(--pp-font);
  font-size: 12px;
  font-weight: 800;
  color: var(--pp-text-muted);
}

.pp-seat-deck {
  padding: 16px 16px 18px;
  border: 1px solid var(--pp-border);
  border-radius: 12px;
  background: var(--pp-page-bg);
}

.pp-seat-legs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.pp-seat-leg {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--pp-border);
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  color: var(--pp-text);
}

.pp-seat-leg.is-on {
  border-color: var(--pp-primary);
  background: var(--pp-primary-mist);
  box-shadow: inset 0 0 0 1px var(--pp-primary);
}

.pp-seat-leg small {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pp-primary-dark);
}

.pp-seat-leg strong {
  font-size: 14px;
}

.pp-seat-leg span {
  font-size: 12px;
  color: var(--pp-text-muted);
}

.pp-seat-pax {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.pp-seat-pax button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--pp-border);
  border-radius: 999px;
  background: #fff;
  color: var(--pp-text);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.pp-seat-pax button.is-on {
  border-color: var(--pp-primary);
  background: var(--pp-primary);
  color: #fff;
}

.pp-seat-pax em {
  font-style: normal;
  font-family: var(--pp-font-display);
  font-weight: 800;
}

.pp-seat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--pp-text-muted);
}

.pp-seat-legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pp-seat-swatch {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px var(--pp-border);
  background: #fff;
}

.pp-seat-swatch--plus {
  background: var(--pp-primary-mist);
  box-shadow: inset 0 0 0 1px var(--pp-primary);
}

.pp-seat-swatch--on {
  background: var(--pp-primary);
  box-shadow: none;
}

.pp-seat-swatch--taken {
  background: var(--pp-page-bg);
  box-shadow: inset 0 0 0 1px var(--pp-border);
}

.pp-seat-plane {
  max-width: 440px;
  margin: 0 auto;
  padding: 10px 10px 18px;
  background: linear-gradient(180deg, var(--pp-primary-mist), #fff 16%);
  border: 1px solid var(--pp-border);
  border-radius: 180px 180px 70px 70px / 44px 44px 36px 36px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.pp-seat-plane__meta {
  margin: 0 0 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--pp-primary-dark);
}

.pp-seat-plane__cockpit {
  width: 42%;
  height: 22px;
  margin: 0 auto 2px;
  border: 1px solid var(--pp-border);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #cfe8e8, #fff);
}

.pp-seat-plane__zone {
  margin: 4px 0 8px;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pp-text-muted);
}

.pp-seat-plane__tail {
  width: 36%;
  height: 16px;
  margin: 8px auto 0;
  border: 1px solid var(--pp-border);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: var(--pp-primary-mist);
}

.pp-seat-map-scroll {
  max-height: 440px;
  overflow: auto;
  padding: 0 6px 6px;
  -webkit-overflow-scrolling: touch;
}

.pp-seat-map {
  display: grid;
  gap: 5px;
  min-width: min-content;
  margin: 0 auto;
}

.pp-seat-row {
  display: grid;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 1px 0;
  grid-template-columns: 28px repeat(3, 40px) 16px repeat(3, 40px);
}

.pp-seat-row--letters {
  position: sticky;
  top: 0;
  z-index: 1;
  padding-bottom: 6px;
  background: #fff;
}

.pp-seat-letter {
  display: grid;
  place-items: center;
  width: 40px;
  font-size: 10px;
  font-weight: 800;
  color: var(--pp-text-muted);
}

.pp-seat-row.is-wing {
  background: linear-gradient(90deg, transparent 4%, var(--pp-primary-mist) 18% 82%, transparent 96%);
  border-radius: 6px;
}

.pp-seat-row__n,
.pp-seat-row__exit {
  font-size: 11px;
  font-weight: 800;
  color: var(--pp-text-muted);
  text-align: right;
}

.pp-seat-row__exit {
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pp-primary-dark);
}

.pp-seat-row__aisle {
  height: 100%;
  border-left: 1px dashed #c5d6d6;
}

.pp-seat {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 10px 10px 6px 6px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--pp-border);
  color: var(--pp-text);
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.pp-seat.is-plus {
  background: var(--pp-primary-mist);
  box-shadow: inset 0 0 0 1px var(--pp-primary);
}

.pp-seat.is-on {
  background: var(--pp-primary);
  box-shadow: none;
  color: #fff;
}

.pp-seat.is-taken {
  background: var(--pp-page-bg);
  color: transparent;
  cursor: not-allowed;
  background-image: linear-gradient(135deg, transparent 46%, #b8c0c0 46% 54%, transparent 54%);
}

.pp-seat-foot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.pp-seat-foot__status {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--pp-text-muted);
}

.pp-seat-foot__price {
  margin: 0;
  font-family: var(--pp-font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--pp-text);
}

.pp-seat-foot__price small {
  margin-left: 4px;
  font-family: var(--pp-font);
  font-size: 12px;
  color: var(--pp-text-muted);
}

@media (max-width: 640px) {
  .pp-seat-modes {
    grid-template-columns: 1fr;
  }

  .pp-seat-legs {
    grid-template-columns: 1fr;
  }
}

/* ---- Room detail modal ---- */
/* .room-* (shared with the hotel detail page) now covers this - see the "Room detail popup"
   block near the top of this file. */

/* ---- Transfers ---- */
.pp-transfers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.pp-transfer {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 14px;
  border: 1px solid var(--pp-border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.pp-transfer:hover {
  border-color: var(--pp-primary);
}

.pp-transfer.is-on {
  background: var(--pp-primary-mist);
  border-color: var(--pp-primary);
  box-shadow: 0 10px 24px rgba(2, 170, 169, 0.16);
}

.pp-transfer__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--pp-primary-mist);
  color: var(--pp-primary-dark);
}

.pp-transfer.is-on .pp-transfer__icon {
  background: var(--pp-primary);
  color: #fff;
}

.pp-transfer__icon svg {
  width: 20px;
  height: 20px;
}

.pp-transfer__name {
  font-size: 15px;
  font-weight: 800;
  color: var(--pp-ink);
}

.pp-transfer__price {
  font-size: 13px;
  font-weight: 800;
  color: var(--pp-primary-deep);
}

.pp-transfer__mark {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 22px;
  height: 22px;
  color: var(--pp-text-muted);
}

.pp-transfer.is-on .pp-transfer__mark {
  color: var(--pp-primary);
}

/* ---- Price summary sidebar ---- */
.pp-summary {
  position: sticky;
  top: 16px;
  align-self: start;
  background: #fff;
  border: 1px solid var(--pp-border);
  border-radius: 12px;
  padding: 16px 16px 14px;
  box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
}

/* Desktop: same fix as AccommodationItem's .aip-summary - sticky + taller than the viewport
   meant the bottom of the card (Book Now, extras, deposit plan...) could never be scrolled into
   view. Capped to the visible space below the sticky offset and scrolls on its own, no visible
   scrollbar, with a white fade at the bottom edge as the "there's more" cue (sits in its own
   blank space once scrolled to the end). The mobile sheet copy (#mobPricePanel) resets this. */
@media (min-width: 981px) {
  .pp-summary {
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  .pp-summary::-webkit-scrollbar {
    display: none;
  }

  .pp-summary::after {
    content: "";
    position: sticky;
    bottom: -14px;
    display: block;
    height: 24px;
    margin: 0 -16px -14px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 85%);
    pointer-events: none;
  }
}

#mobPricePanel .pp-summary::after {
  display: none;
}

.pp-summary h2 {
  color: var(--pp-ink);
  font-family: var(--pp-font);
  font-size: 16px;
  margin: 18px 0 8px;
  padding-top: 14px;
  border-top: 1px solid var(--pp-border);
}

.pp-summary__stay {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--pp-ink);
}

.pp-summary__match {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pp-green-text);
}

.pp-summary__match svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.pp-summary__discount {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--pp-coral);
}

.pp-summary__pp {
  margin: 0;
  font-family: var(--pp-font-display);
  font-size: 34px;
  font-weight: 800;
  color: var(--pp-text);
  line-height: 1;
}

.pp-summary__pp small {
  margin-left: 2px;
  font-size: 16px;
  font-weight: 800;
}

.pp-summary__total {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--pp-text);
}

.pp-summary__pay {
  margin: 12px 0 0;
  padding: 10px 12px;
  background: var(--pp-primary-mist);
  border: 1px solid #bfe8e6;
  border-radius: 8px;
  font-size: 13px;
  color: var(--pp-text);
  line-height: 1.45;
}

.pp-summary__pay strong {
  display: block;
  font-weight: 800;
  color: var(--pp-text);
}

.pp-summary__pay .pp-text-btn {
  display: block;
  margin: 6px 0 0 auto;
  text-align: right;
}

.pp-summary .pp-btn--block {
  margin-top: 12px;
}

/* .pp-atol* removed - the "100% Financial Protection" badge is now the shared .journey-atol
   component (JourneyAtol.css), used identically on every journey page. */

.pp-include {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pp-include__card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--pp-grey, #ededeb);
}

.pp-include__card:last-child {
  border-bottom: 0;
}

.pp-include__card--stack,
.pp-include__card--extras {
  align-items: start;
}

/* "Special offers" heading above the perks list - ported from AccommodationItem.cshtml's own
   aip-include__label. */
.pp-include__label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pp-text-muted);
}

.pp-include__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--pp-primary-deep);
}

.pp-include__icon svg {
  width: 18px;
  height: 18px;
}

.pp-include__value {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--pp-ink);
  line-height: 1.3;
}

.pp-include__hint {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--pp-text);
  line-height: 1.35;
}

/* "You can do X on the next step" callout - ported from the prototype's own .include__note. */
.pp-include__note {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--pp-green-soft);
  color: var(--pp-green-text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.pp-include__perks {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 3px;
}

.pp-include__perks li {
  position: relative;
  padding-left: 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--pp-green-text);
  line-height: 1.3;
}

.pp-include__perks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
}

/* .pp-page a's own (0,1,1) element+class selector otherwise beats this plain (0,1,0) class
   selector and wins the color, same specificity issue .pp-board-title had - scope to .pp-page
   here too so this link's own teal color actually applies. */
.pp-page .pp-include__edit {
  font-size: 12px;
  font-weight: 700;
  color: var(--pp-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  align-self: start;
}

/* ---- Generic modal chrome (Bootstrap .modal-content stays load-bearing; this only reskins
   its inner surfaces to match the new design's card look, same as every panel above) ---- */
.pp-modal .modal-content {
  border: 0;
  border-radius: 14px;
}

.pp-modal .modal-header {
  border: 0;
  padding: 18px 20px 0;
}

.pp-modal .modal-title,
.pp-modal h2 {
  margin: 0;
  font-family: var(--pp-font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--pp-primary-deep);
}

.pp-modal .modal-body {
  padding: 12px 20px 20px;
}

.pp-modal .modal-footer {
  border: 0;
  padding: 0 20px 20px;
}

/* ---- Payment plan modal ---- */
.pp-pay-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--pp-page-bg);
  font-weight: 800;
  color: var(--pp-primary-deep);
  margin: 0 0 12px;
}

.pp-schedule {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.pp-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--pp-border);
  border-radius: 10px;
}

.pp-step.is-now {
  background: var(--pp-primary-mist);
  border-color: var(--pp-primary);
}

.pp-step__n {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--pp-border);
  font-weight: 800;
  color: var(--pp-primary-deep);
}

.pp-pay-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--pp-text-muted);
}

/* ---- Alternate flights modal (two-pane filter/results) ----------------------------------
   Ported field-for-field from the customise-holiday prototype's own #modal-alt-flights
   (.chg-*), reusing this modal's existing Bootstrap .modal/.modal-dialog/.modal-content chrome
   instead of a native <dialog> (this one still opens via data-bs-toggle="modal" elsewhere on
   the page) - #alternativeFlightModal .modal-content plays the role of the prototype's own
   .modal--change-flight[open] flex column. See AlternateFlightsModal.cshtml's own header
   comment for the real productpage.js bindings every part of this drives. ------------------ */
.modal-dialog.pp-modal--alt-flights {
  max-width: min(1080px, calc(100vw - 24px));
}

#alternativeFlightModal .modal-content {
  display: flex;
  flex-direction: column;
  /* height, not max-height: with only a cap, the flex column sized itself to whatever content
     was actually there (just the "Your selection" card while altFlightsLoading, no result cards
     yet), so the modal visibly shrank while loading and then jumped taller once results
     rendered. A fixed height means .pp-chg-body's flex:1 always fills the same box - .pp-chg-filters
     / .pp-chg-results already scroll internally (overflow:auto) for whatever amount of content
     they end up with. */
  height: min(92vh, 860px);
  border: 0;
  border-radius: 16px;
  overflow: hidden;
}

/* Loading state while altFlightsLoading fetches results - same wait-card anatomy as the
   search-results loader (HotelSearchResultLoading.css's .cph-wait: hero photo + flying plane,
   logo, cross-fading status copy, progress bar), scaled down and using this page's own --pp-*
   tokens (already in scope via .pp-page) instead of re-declaring --cph-* locally.
   inset:0 (not width/height:100%) so it always covers .modal-content's full box regardless of
   its max-height/flex sizing. */
.pp-chg-loader {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(2, 170, 169, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.pp-chg-loader__card {
  position: relative;
  width: min(360px, 100%);
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(60, 78, 90, 0.22);
  animation: pp-chg-loader-in 0.35s ease-out;
}

.pp-chg-loader__hero {
  position: relative;
  height: 96px;
  overflow: hidden;
  background: #7aa8c4;
}

.pp-chg-loader__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
}

.pp-chg-loader__plane {
  position: absolute;
  top: 12%;
  left: -16%;
  width: 16%;
  pointer-events: none;
  animation: pp-chg-loader-fly 3.2s linear infinite;
}

.pp-chg-loader__plane img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 3px 5px rgba(12, 36, 48, 0.22));
}

.pp-chg-loader__body {
  padding: 16px 20px 18px;
  text-align: center;
}

.pp-chg-loader__logo {
  display: block;
  width: min(160px, 60%);
  height: auto;
  margin: 0 auto;
}

.pp-chg-loader__status {
  position: relative;
  height: 1.3em;
  margin: 10px 0 12px;
  font-family: var(--pp-font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--pp-text);
}

.pp-chg-loader__status span {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.pp-chg-loader__status span:nth-child(1) {
  animation: pp-chg-loader-copy-1 9s linear infinite;
}

.pp-chg-loader__status span:nth-child(2) {
  animation: pp-chg-loader-copy-2 9s linear infinite;
}

.pp-chg-loader__status span:nth-child(3) {
  animation: pp-chg-loader-copy-3 9s linear infinite;
}

.pp-chg-loader__bar {
  width: min(200px, 70%);
  height: 4px;
  margin: 4px auto 14px;
  border-radius: 999px;
  background: var(--pp-primary-mist);
  overflow: hidden;
}

.pp-chg-loader__bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--pp-primary);
  animation: pp-chg-loader-bar 9s linear infinite;
}

.pp-chg-loader__protect {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--pp-green-soft);
  color: var(--pp-green-text);
  font-size: 12px;
  font-weight: 800;
}

.pp-chg-loader__protect svg {
  width: 14px;
  height: 14px;
}

@keyframes pp-chg-loader-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pp-chg-loader-fly {
  from {
    left: -16%;
  }
  to {
    left: 108%;
  }
}

@keyframes pp-chg-loader-copy-1 {
  0%,
  30% {
    opacity: 1;
  }
  34%,
  100% {
    opacity: 0;
  }
}

@keyframes pp-chg-loader-copy-2 {
  0%,
  32% {
    opacity: 0;
  }
  34%,
  63% {
    opacity: 1;
  }
  67%,
  100% {
    opacity: 0;
  }
}

@keyframes pp-chg-loader-copy-3 {
  0%,
  65% {
    opacity: 0;
  }
  67%,
  97% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes pp-chg-loader-bar {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pp-chg-loader__card,
  .pp-chg-loader__plane,
  .pp-chg-loader__status span,
  .pp-chg-loader__bar span {
    animation: none;
  }

  .pp-chg-loader__status span:last-child,
  .pp-chg-loader__plane {
    opacity: 1;
  }

  .pp-chg-loader__plane {
    left: 52%;
    transform: translateX(-50%);
  }

  .pp-chg-loader__bar span {
    width: 70%;
  }
}

#alternativeFlightModal .modal-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0;
}

.pp-chg-handle {
  display: none;
}

.pp-chg-head {
  flex-shrink: 0;
  margin: 0;
  padding: 16px 22px;
  border-bottom: 1px solid var(--pp-border);
}

.pp-chg-head__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pp-chg-head__short {
  display: none;
}

.pp-chg-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--pp-font-display);
  font-size: 20px;
  color: var(--pp-primary-deep);
}

.pp-chg-head h2 svg {
  width: 22px;
  height: 22px;
  color: var(--pp-primary);
}

.pp-chg-body {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 0;
  flex: 1;
}

.pp-chg-filters {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px 12px 18px;
  border-right: 1px solid var(--pp-border);
  background: var(--pp-page-bg);
  overflow: auto;
}

.pp-chg-filters__list {
  display: contents;
}

.pp-chg-filters__done {
  display: none;
}

.pp-chg-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 4px 10px;
}

.pp-chg-filters h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--pp-primary-deep);
}

.pp-chg-filters__clear {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  color: var(--pp-primary);
  cursor: pointer;
}

.pp-chg-filters__clear:hover {
  color: var(--pp-primary-dark);
}

.pp-chg-set {
  border: 1px solid #e4ecec;
  border-radius: 12px;
  margin: 0 0 10px;
  padding: 10px 10px 8px;
  background: #fff;
}

.pp-chg-set legend {
  float: none;
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--pp-primary-deep);
}

.pp-chg-set__hint {
  margin: 2px 0 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--pp-text-muted);
}

.pp-chg-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.pp-chg-chip {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 34px;
  padding: 6px 4px;
  border: 1px solid var(--pp-border);
  border-radius: 999px;
  background: var(--pp-page-bg);
  font-size: 11px;
  font-weight: 800;
  color: var(--pp-text);
  cursor: pointer;
}

.pp-chg-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pp-chg-chip:hover {
  border-color: var(--pp-primary);
}

.pp-chg-chip:has(input:checked) {
  background: var(--pp-primary);
  border-color: var(--pp-primary);
  color: #fff;
}

.pp-chg-chip:has(input:focus-visible) {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px var(--pp-gold);
}

.pp-chg-check {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin: 0 -4px;
  padding: 4px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pp-text);
  cursor: pointer;
}

.pp-chg-check:has(.pp-chg-check__logo) {
  grid-template-columns: 18px 36px minmax(0, 1fr);
}

.pp-chg-check:hover {
  background: var(--pp-primary-mist);
}

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

.pp-chg-check__box {
  width: 18px;
  height: 18px;
  border: 1.5px solid #c5d2d2;
  border-radius: 5px;
  background: #fff;
}

.pp-chg-check:has(input:checked) .pp-chg-check__box {
  border-color: var(--pp-primary);
  background: var(--pp-primary)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M6.2 11.4 2.8 8l1.1-1.1 2.3 2.3 5.9-5.9L13.2 4z'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.pp-chg-check:has(input:focus-visible) .pp-chg-check__box {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px var(--pp-gold);
}

.pp-chg-check__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pp-chg-check__code {
  flex-shrink: 0;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--pp-primary-mist);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--pp-primary-dark);
}

.pp-chg-check:has(input:checked) .pp-chg-check__code {
  background: var(--pp-primary);
  color: #fff;
}

.pp-chg-check__logo {
  width: 36px;
  height: 16px;
  object-fit: contain;
  object-position: left center;
}

.pp-chg-results {
  min-width: 0;
  padding: 16px 18px 20px;
  overflow: auto;
  background: var(--pp-page-bg);
}

.pp-chg-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.pp-chg-count {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--pp-primary-deep);
}

.pp-chg-filter-toggle {
  display: none;
}

.pp-chg-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 0;
  margin: 0 0 20px;
  border: 1px solid var(--pp-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(60, 78, 90, 0.06);
}

.pp-chg-offer.is-on {
  border-color: var(--pp-primary);
  box-shadow: 0 10px 24px rgba(2, 170, 169, 0.16);
}

.pp-chg-offer__head {
  grid-column: 1 / -1;
  padding: 10px 14px;
  background: var(--pp-primary-mist);
  border-radius: 9px 9px 0 0;
  border-bottom: 1px solid #e7eeee;
}

.pp-chg-offer.is-on .pp-chg-offer__head {
  background: var(--pp-primary);
  color: #fff;
  border-bottom-color: transparent;
}

.pp-chg-offer__head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.pp-chg-offer__kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pp-primary-deep);
}

.pp-chg-offer__head-price {
  margin: 0;
  font-family: var(--pp-font-display);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  color: var(--pp-text);
}

.pp-chg-offer.is-on .pp-chg-offer__kicker,
.pp-chg-offer.is-on .pp-chg-offer__head-price {
  color: #fff;
}

.pp-chg-offer__pair {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--pp-text);
}

.pp-chg-offer.is-on .pp-chg-offer__pair {
  color: rgba(255, 255, 255, 0.92);
}

.pp-chg-offer__flights {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.pp-chg-offer .ticket--alt {
  margin: 0;
}

.pp-chg-offer__return {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pp-primary-dark);
}

.pp-chg-offer__return svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.pp-chg-offer__return::before,
.pp-chg-offer__return::after {
  content: "";
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, #c5d6d6 0 6px, transparent 6px 10px);
}

.pp-chg-offer__buy {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: stretch;
  gap: 8px;
  padding: 18px 14px;
  background: #f4fafa;
  border-left: 1px dashed #c5d6d6;
  border-radius: 0 0 10px 0;
  text-align: center;
}

.pp-chg-offer__buy::before,
.pp-chg-offer__buy::after {
  content: "";
  position: absolute;
  left: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--pp-page-bg);
  box-shadow: inset 0 0 0 1px var(--pp-border);
}

.pp-chg-offer__buy::before {
  top: 16px;
}

.pp-chg-offer__buy::after {
  bottom: 16px;
}

.pp-chg-offer__bags {
  margin: 0;
  font-size: 12px;
  color: var(--pp-text-muted);
}

.pp-chg-offer__bags.is-in {
  font-weight: 800;
  color: var(--pp-green-text);
}

.pp-chg-offer__price {
  margin: 0;
  font-family: var(--pp-font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--pp-text);
  line-height: 1;
}

.pp-chg-offer__buy .pp-btn {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.pp-chg-offer__atol {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  margin: 2px 0 0;
  cursor: help;
}

.pp-chg-offer__atol img {
  width: 22px;
  height: 22px;
  display: block;
  margin: 0 auto;
}

.pp-chg-offer__atol-copy {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--pp-green-text);
  border-bottom: 1px dotted currentColor;
}

.pp-chg-offer__atol-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 6;
  width: 200px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--pp-primary-deep);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  box-shadow: 0 10px 22px rgba(60, 78, 90, 0.22);
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pp-chg-offer__atol-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: var(--pp-primary-deep);
  transform: translateX(-50%) rotate(45deg);
}

.pp-chg-offer__atol:hover .pp-chg-offer__atol-tip,
.pp-chg-offer__atol:focus .pp-chg-offer__atol-tip,
.pp-chg-offer__atol:focus-visible .pp-chg-offer__atol-tip {
  opacity: 1;
  visibility: visible;
}

.pp-chg-results .pagination {
  margin-top: 12px;
}

.pp-chg-results .page-link {
  color: var(--pp-primary-dark);
  border-color: var(--pp-border);
}

.pp-chg-results .page-link.active,
.pp-chg-results .page-item .page-link.active {
  background: var(--pp-primary);
  border-color: var(--pp-primary);
  color: #fff;
}

.pp-chg-empty {
  margin: 24px 0;
  padding: 24px;
  text-align: center;
  color: var(--pp-text-muted);
}

/* ---- Mobile: filters become a full-panel drawer (isFilteringAlt in productpage.js), same
   .modal--change-flight.is-filtering pattern as the prototype (860px, matching every other
   .pp-modal bottom-sheet breakpoint elsewhere in this file). ---- */
@media (max-width: 860px) {
  #alternativeFlightModal .modal-dialog {
    margin: 0;
    height: 100%;
    max-width: 100%;
  }

  #alternativeFlightModal .modal-content {
    width: 100vw;
    max-width: 100vw;
    height: 96dvh;
    max-height: 96dvh;
    margin: auto 0 0;
    border-radius: 18px 18px 0 0;
  }

  .pp-chg-head {
    padding: 8px 14px 12px;
  }

  .pp-chg-head h2 {
    font-size: 17px;
    gap: 8px;
  }

  .pp-chg-head__full {
    display: none;
  }

  .pp-chg-head__short {
    display: inline;
  }

  .pp-chg-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
  }

  .pp-chg-filters {
    display: none;
    flex: 1;
    min-height: 0;
    max-height: none;
    border-right: 0;
    border-bottom: 0;
    padding: 12px 12px 0;
  }

  .pp-chg-body.is-filtering .pp-chg-filters {
    display: flex;
  }

  .pp-chg-body.is-filtering .pp-chg-results {
    display: none;
  }

  .pp-chg-filters__list {
    display: block;
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding-bottom: 8px;
  }

  .pp-chg-filters__done {
    display: block;
    flex-shrink: 0;
    padding: 10px 0 calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--pp-page-bg);
  }

  .pp-chg-chip {
    min-height: 40px;
    font-size: 12px;
  }

  .pp-chg-check {
    min-height: 44px;
  }

  .pp-chg-results {
    flex: 1;
    min-height: 0;
    padding: 0 12px;
  }

  .pp-chg-toolbar {
    position: sticky;
    top: 0;
    z-index: 4;
    margin: -12px -12px 0;
    padding: 10px 12px 12px;
    background: var(--pp-page-bg);
  }

  .pp-chg-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--pp-border);
    border-radius: 999px;
    background: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    color: var(--pp-primary-deep);
    cursor: pointer;
  }

  .pp-chg-filter-toggle svg {
    width: 16px;
    height: 16px;
    color: var(--pp-primary);
  }

  .pp-chg-filter-toggle__n {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--pp-primary);
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
  }

  .pp-chg-offer,
  .pp-chg-offer__buy {
    grid-template-columns: 1fr;
  }

  .pp-chg-offer__head {
    position: sticky;
    top: 56px;
    z-index: 3;
    box-shadow: 0 8px 16px rgba(60, 78, 90, 0.08);
  }

  .pp-chg-offer__buy {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 12px;
    padding: 16px 14px 18px;
    border-left: 0;
    border-top: 1px dashed #b7d4d3;
    border-radius: 0 0 10px 10px;
    text-align: left;
  }

  .pp-chg-offer__buy::before,
  .pp-chg-offer__buy::after {
    top: -8px;
    bottom: auto;
    left: -8px;
  }

  .pp-chg-offer__buy::after {
    left: auto;
    right: -8px;
  }

  .pp-chg-offer__bags {
    grid-column: 1;
  }

  .pp-chg-offer__price {
    grid-column: 2;
    font-size: 22px;
  }

  .pp-chg-offer__buy .pp-btn {
    grid-column: 1 / -1;
    white-space: normal;
  }

  .pp-chg-offer__atol {
    grid-column: 1 / -1;
    grid-auto-flow: column;
    justify-content: start;
    align-items: center;
    gap: 6px;
  }

  .pp-chg-offer__atol-copy {
    border-bottom: 0;
  }

  .pp-chg-offer__atol-copy br {
    display: none;
  }

  .pp-chg-offer__atol-tip {
    left: 0;
    transform: none;
    width: min(220px, calc(100vw - 48px));
  }

  .pp-chg-offer__atol-tip::after {
    left: 16px;
    transform: rotate(45deg);
  }
}

.pp-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
  padding-top: 22px;
  padding-bottom: 64px;
}

.pp-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

@media (max-width: 980px) {
  /* Was left commented out (pegged to a wider, tablet-reaching 1100px breakpoint, and originally
     hid .pp-summary outright rather than reflowing it), so below this width .pp-product never
     dropped its desktop grid-template-columns: minmax(0,1fr) 340px - on a phone-width viewport
     that squeezed the main .pp-stack content down to almost nothing beside a still-340px-wide,
     still position:sticky .pp-summary card, which is what made the summary card look broken/
     floating instead of sitting normally above the hotel-details content. Reflowed the same way
     AccommodationItem.cshtml's .aip-summary is just above, rather than hiding it, so it appears
     inline like every other section here - the .pp-book-dock fixed bar + #mobPricePanel modal
     still work as the persistent "Book Now" CTA regardless, since neither depends on .pp-summary
     being hidden. Pegged to this same 980px mobile breakpoint (not a separate, wider one) since
     that's where .pp-book-dock elsewhere in this file already switches this page into its mobile
     layout - tablet widths above this keep the desktop 2-column sticky sidebar. */
  .pp-product {
    grid-template-columns: 1fr;
  }

  /* Mobile: the price/summary sidebar is hidden - it opens only from the fixed .pp-book-dock's
     "View details" (#mobPricePanel sheet, same content), matching every other journey page
     (AccommodationItem's .aip-summary, BasketPage's .bp-quote). */
  .pp-product > .pp-summary {
    display: none;
  }
}
.pp-chip-board {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--pp-primary-mist);
  color: var(--pp-primary-deep);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 720px) {
  .pp-cal-summary {
    grid-template-columns: 1fr;
  }

  .pp-cal-foot {
    display: flex;
    gap: 8px;
    padding: 10px 12px 12px;
  }

  .pp-cal-trip {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 10px 10px;
  }
  .pp-cal-price {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    text-align: left;
  }
  .pp-cal-price__note {
    display: none;
  }
  .pp-cal-price__pp span {
    font-size: 22px;
  }

  .pp-day__stay {
    display: none;
  }
  .pp-day__leg {
    display: none;
  }

  .pp-panel {
    padding: 16px;
  }

  .pp-day__plane {
    width: 11px;
    height: 11px;
  }
  .pp-day__mark {
    top: 3px;
    right: 3px;
    padding: 2px;
    gap: 0;
  }
  .pp-grid {
    gap: 3px;
    padding: 8px;
  }
  .pp-day {
    min-height: 56px;
    padding: 4px 2px 5px;
    gap: 0;
  }
  .pp-day.is-start .pp-day__price {
    font-size: 11px;
  }
  .pp-day__num {
    font-size: 11px;
  }
  .pp-day__price {
    font-size: 11px;
  }

  .pp-legend li:nth-child(n + 3) {
    display: none;
  }
  .pp-board-pick__blurb {
    display: none;
  }
  .pp-board-pick {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: start;
    gap: 2px 10px;
    padding: 12px 12px;
    min-height: 0;
    border-radius: 8px;
  }
  .pp-board-pick__icon {
    display: none;
  }
  .pp-board-pick__mark {
    position: static;
    top: auto;
    right: auto;
    width: 22px;
    height: 22px;
    margin-top: 2px;
  }
  .pp-board-pick__copy {
    gap: 6px;
    min-width: 0;
  }
  .pp-board-pick__price {
    margin: 0;
    padding: 0;
    font-size: 18px;
    text-align: right;
    white-space: nowrap;
  }
  .pp-board-meals {
    margin: 0;
    gap: 4px;
  }
  .pp-board-meals span {
    padding: 2px 7px;
    font-size: 10px;
  }
  .pp-board-pick__title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }
  .room-sheet {
    grid-template-columns: 1fr;
    padding: 16px 14px 8px;
  }
  .room-sheet__foot {
    padding: 10px 22px;
  }
  .pp-chg-offer__buy .journey-btn {
    grid-column: 1 / -1;
    white-space: normal;
  }
  .pp-chg-head {
    flex-shrink: 0;
    padding: 8px 14px 12px;
  }
  .pp-chg-handle {
    display: block;
    width: 36px;
    height: 4px;
    margin: 0 auto 8px;
    border-radius: 999px;
    background: #d0d8d8;
  }
  .pp-product {
    padding-top: 36px;
  }
  .pp-stepper,
  .pp-allowance__ok,
  .pp-allowance__total {
    grid-column: 2;
  }
  .pp-allowance__icon {
    width: 60px;
    height: 60px;
  }
}

/* ---- "Your golf" panel (AccommodationItem.cshtml GolfDetails(), golf searches only) - one row
   per course from the engine's golf quote: flag icon, course name + rounds chip/price per round,
   per-person line total on the right; party golf total underneath. ---- */
.aip-golf {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.aip-golf__line {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--aip-border);
  border-radius: 12px;
  background: #fff;
}

.aip-golf__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--aip-primary-mist);
  color: var(--aip-primary-deep);
}

.aip-golf__icon svg {
  width: 20px;
  height: 20px;
}

.aip-golf__course {
  margin: 0 0 6px;
  font-weight: 800;
  color: var(--aip-ink);
}

.aip-golf__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  color: var(--aip-text-muted);
}

.aip-golf__price {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--aip-primary-deep);
  white-space: nowrap;
}

.aip-golf__price small {
  font-size: 12px;
  font-weight: 700;
  margin-left: 2px;
}

.aip-golf__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 12px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  background: #f3f6f6;
  font-size: 14px;
  color: var(--aip-text);
}

.aip-golf__total strong {
  font-size: 16px;
  color: var(--aip-ink);
}

@media (max-width: 575px) {
  .aip-golf__line {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .aip-golf__price {
    grid-column: 2;
    font-size: 18px;
  }
}

/* ---- "Where is the [hotel]?" (#location.cp-location) - hotel-highlights prototype layout:
   description, map, then location features as a row of 5 small cards (2 per row on phones,
   first one full width). Values are the prototype's rendered ones. ---- */
#location.cp-location {
  min-width: 0;
}
#location.cp-location .product-google-map-wrap {
  margin-top: 16px;
  border-radius: 10px;
  overflow: hidden;
}
#location.cp-location .aip-times {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
#location.cp-location .aip-times li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  justify-items: center;
  min-width: 0;
  gap: 8px;
  padding: 12px 10px;
  border: 1px solid #e5eeed;
  border-radius: 10px;
  background: #f8fbfb;
  color: #3c4e5a;
  text-align: center;
}
#location.cp-location .aip-times__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: transparent;
  color: #3c4e5a;
}
#location.cp-location .aip-times__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#location.cp-location .aip-times__icon .fa {
  font-size: 16px;
}
#location.cp-location .cp-location-copy {
  min-width: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
}
@media (max-width: 767px) {
  #location.cp-location .aip-times {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #location.cp-location .aip-times li:first-child {
    grid-column: 1 / -1;
  }
}

/* ---- Hotel header right side (.cp-identity-social): wishlist heart + compact Tripadvisor
   box, as in the hotel-highlights prototype (its rendered values: both 48px tall, 10px
   corners, 1px #d8e0e0 border, no shadow). ---- */
.cp-identity-social {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.cp-favourite {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  padding: 10px;
  border: 1px solid #d8e0e0;
  border-radius: 10px;
  background: #fff;
  color: #3c4e5a;
  cursor: pointer;
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}
.cp-favourite svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill 0.15s ease;
}
.cp-favourite:hover {
  color: #c92843;
  background: #fff5f6;
}
.cp-favourite[aria-pressed="true"] {
  color: #c92843;
}
.cp-favourite[aria-pressed="true"] svg {
  fill: #c92843;
  stroke: #c92843;
}
.cp-favourite:focus-visible {
  outline: 3px solid #218887;
  outline-offset: 3px;
}
.cp-favourite.is-popping svg {
  animation: cp-fav-pop 0.3s ease;
}
@keyframes cp-fav-pop {
  50% {
    transform: scale(1.25);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cp-favourite.is-popping svg {
    animation: none;
  }
}

.cp-identity-social .aip-ta {
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: auto;
  height: 48px;
  padding: 6px 12px;
  border: 1px solid #d8e0e0;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
  text-align: center;
}
.cp-ta-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.cp-ta-owl {
  display: block;
  width: 24px;
  height: 17px;
  object-fit: contain;
}
.cp-ta-bubbles {
  display: flex;
  gap: 3px;
}
.cp-ta-bubbles span {
  box-sizing: border-box;
  width: 13px;
  height: 13px;
  border: 2px solid #00aa6c;
  border-radius: 50%;
  background: #00aa6c;
}
.cp-ta-bubbles .is-half {
  background: linear-gradient(90deg, #00aa6c 50%, #fff 50%);
}
.cp-ta-bubbles .is-empty {
  background: #fff;
}
.cp-identity-social .aip-ta__rating {
  height: 14px;
}
.cp-identity-social .aip-ta__meta {
  font-size: 10px;
  line-height: 12px;
  color: #3c4e5a;
}

@media (max-width: 767px) {
  .cp-identity-social {
    gap: 8px;
  }
  .cp-favourite {
    flex-basis: 44px;
    width: 44px;
    height: 46px;
  }
  .cp-identity-social .aip-ta {
    width: auto;
    height: 46px;
    padding: 6px;
  }
  .cp-identity-social .cp-ta-rating {
    gap: 5px;
  }
  .cp-identity-social .cp-ta-owl {
    width: 22px;
  }
  .cp-identity-social .cp-ta-bubbles {
    gap: 2px;
  }
  .cp-identity-social .cp-ta-bubbles span {
    width: 11px;
    height: 11px;
  }
}

/* ---- Hotel header on phones - hotel-highlights prototype layout: name full width with the
   stars underneath, then "place · Show on map" on the left and heart + Tripadvisor on the
   right of the same row. Holiday-type pills (not in the prototype) get their own row below. ---- */
@media (max-width: 767px) {
  .aip-identity {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }
  .aip-identity > div:first-child {
    display: contents;
  }
  .aip-identity h1 {
    grid-column: 1 / -1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 0;
    font-size: 28px;
  }
  .aip-identity .aip-stars {
    margin: 0;
    font-size: 18px;
  }
  .aip-identity .aip-place {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
    font-size: 13px;
  }
  .aip-identity .aip-place a {
    display: inline-flex;
    align-items: center;
    gap: 3px;
  }
  .aip-identity .cp-identity-social {
    grid-column: 2;
    grid-row: 2;
  }
  .aip-identity .aip-pills {
    grid-column: 1 / -1;
    grid-row: 3;
    margin: 0;
  }
  .cp-identity-social .aip-ta {
    width: 120px;
  }
}

/* ---- Hotel disclaimers (#hotel .cp-hotel-notice) - hotel-highlights prototype's soft yellow
   "Important information" box, one info-icon line per Disclaimers entry. ---- */
.cp-hotel-notice {
  display: block;
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 0;
  border-radius: 10px;
  background: #fff6d9;
}
.cp-info-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #3c4e5a;
}
.cp-info-line + .cp-info-line {
  margin-top: 10px;
}
.cp-info-line svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

/* ---- Phone gallery: the prototype's photo height (3/4 of the gallery width, as its full-width
   4:3 slides), but each slide is 90% wide so the next photo peeks in on the right.
   90 / 75 = 90% wide by 75% of the gallery width tall. Smaller labels/badge on phones. ---- */
@media (max-width: 767px) {
  .aip-gallery .aip-gallery__hero,
  .aip-gallery .aip-gallery__tiles button {
    flex: 0 0 90%;
    height: auto;
    min-height: 0;
    aspect-ratio: 90 / 75;
    scroll-snap-stop: always;
  }

  .aip-gallery__actions {
    right: auto;
    left: calc(90% - 50px);
    bottom: 10px;
  }

  .aip-gallery__flags {
    top: 10px;
    left: 10px;
    gap: 5px;
  }

  .aip-gallery__flags .aip-flag {
    padding: 5px 9px;
    border-radius: 8px;
    font-size: 13px;
    letter-spacing: 0.01em;
  }

  .aip-gallery .aip-gallery__award img {
    width: 52px;
  }

  .aip-video-btn {
    width: 40px;
    min-height: 38px;
    padding: 8px;
  }

  .aip-video-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* ---- Mobile book dock (prototype mobile-refinements.css): two equal columns - price + "£x total ·
   Details" on the left, full-width gold "Customise >" on the right. ---- */
@media (max-width: 980px) {
  .aip-book-dock {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    color: #3c4e5a;
    font-family: Lato, "Segoe UI", sans-serif;
  }

  .aip-book-dock__quote {
    display: grid;
    align-content: center;
    gap: 3px;
    min-width: 0;
    padding: 0;
    text-align: left;
    color: #3c4e5a;
  }

  .aip-book-dock .cp-dock-price {
    display: block;
    font:
      900 26px/1.05 Lato,
      "Segoe UI",
      sans-serif;
    color: #3c4e5a;
    white-space: nowrap;
  }
  .aip-book-dock .cp-dock-price .cp-price-currency {
    display: inline;
    margin: 0;
    font-size: 0.6em;
    font-weight: 900;
    color: inherit;
  }
  .aip-book-dock .cp-dock-price small {
    margin-left: 2px;
    font-size: 0.45em;
    font-weight: 700;
  }
  .aip-book-dock .cp-dock-price--text {
    font-size: 20px;
  }

  .aip-book-dock .cp-dock-meta {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin: 0;
    white-space: nowrap;
    font:
      400 12px/18px Lato,
      "Segoe UI",
      sans-serif;
    color: #3c4e5a;
  }
  .aip-book-dock .cp-dock-meta > span {
    display: inline;
    margin: 0;
    font: inherit;
    color: inherit;
  }
  .aip-book-dock .cp-dock-details {
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  .aip-book-dock > .journey-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px;
    border: 0;
    border-radius: 10px;
    background: #febb02;
    color: #3c4e5a;
    font:
      600 15px/1.3 Lato,
      "Segoe UI",
      sans-serif;
    box-shadow: none;
  }
  .aip-book-dock > .journey-btn .cp-chevron {
    width: 18px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  body {
    padding-bottom: 72px;
  }
  /* Basket: hide the bar while its summary <dialog> is open. */
  body:has(#bp-modal-summary[open]) .bp-dock {
    display: none;
  }
}

/* ---- Product page header: booking progress steps instead of the photo banner ----
   (.pp-hero--steps, ProductPage.cshtml). No image/veil any more, so the hotel card no longer
   overlaps a banner - it sits as a normal card under the steps. Steps: JourneyProgress.css. */
.pp-hero.pp-hero--steps {
  display: block;
  min-height: 0;
}

.pp-hero--steps .pp-hero__inner {
  padding-top: 24px;
}

.pp-hero--steps .cp-progress {
  margin: 0 0 18px;
}

.pp-hero--steps .pp-hero__card {
  margin: 0;
  border: 1px solid var(--pp-border, #d8e0e0);
  border-top: 3px solid var(--pp-primary, #02aaa9);
  box-shadow: none;
}

.pp-hero--steps ~ .productDetailPage {
  padding-top: 20px;
}

@media (max-width: 720px) {
  .pp-hero--steps .pp-hero__inner {
    padding-top: 16px;
  }

  .pp-hero--steps .cp-progress {
    margin-bottom: 14px;
  }

  .pp-hero--steps .pp-hero__card {
    margin: 0;
  }

  .pp-hero--steps ~ .productDetailPage {
    padding-top: 16px;
  }
}

@media (max-width: 480px) {
  .pp-hero.pp-hero--steps {
    min-height: 0;
  }
}

/* ---- Hotel page gallery on phones/small tablets: a photo collage instead of the sideways
   slider - two photos across the top, three underneath, "+N" on the last one. Each tile still
   opens the categorised photo browser (aipPhotoBrowser.js). Placed last so it overrides the
   slider rules in the 860px/767px blocks above. Overlays (labels, award, video) sit on the
   first photo via grid-area: hero. ---- */
@media (max-width: 860px) {
  .aip-gallery {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-areas:
      "hero hero hero t1 t1 t1"
      "t2 t2 t3 t3 t4 t4";
    gap: 4px;
    overflow: hidden;
    scroll-snap-type: none;
    border-radius: 12px;
  }

  .aip-gallery__tiles {
    display: contents;
  }

  .aip-gallery .aip-gallery__hero,
  .aip-gallery .aip-gallery__tiles button {
    flex: none;
    width: auto;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    border-radius: 0;
  }

  .aip-gallery .aip-gallery__hero {
    grid-area: hero;
  }
  .aip-gallery .aip-gallery__tiles button:nth-child(1) {
    grid-area: t1;
  }
  .aip-gallery .aip-gallery__tiles button:nth-child(2) {
    grid-area: t2;
    aspect-ratio: 1 / 1;
  }
  .aip-gallery .aip-gallery__tiles button:nth-child(3) {
    grid-area: t3;
    aspect-ratio: 1 / 1;
  }
  .aip-gallery .aip-gallery__tiles button:nth-child(4) {
    grid-area: t4;
    aspect-ratio: 1 / 1;
  }

  .aip-gallery .aip-gallery__hero:hover img,
  .aip-gallery .aip-gallery__tiles button:hover img {
    transform: none;
  }

  .aip-gallery__flags,
  .aip-gallery__social,
  .aip-gallery__actions {
    grid-area: hero;
  }

  .aip-gallery__flags {
    top: 8px;
    left: 8px;
    gap: 4px;
  }
  .aip-gallery__flags .aip-flag {
    padding: 3px 7px;
    font-size: 11px;
    border-radius: 6px;
  }

  .aip-gallery__social {
    left: 8px;
    bottom: 8px;
    top: auto;
  }
  .aip-gallery .aip-gallery__award img {
    width: 44px;
  }

  .aip-gallery__actions {
    left: auto;
    right: 8px;
    bottom: 8px;
  }
  .aip-video-btn {
    width: 34px;
    min-height: 32px;
    padding: 6px;
  }
  .aip-video-btn svg {
    width: 18px;
    height: 18px;
  }

  .aip-gallery .cp-gallery-more {
    font-size: 22px;
    padding: 4px;
  }

  /* Phone collage: no Tripadvisor badge on the first photo, and just "+20" on the last. */
  .aip-gallery__social {
    display: none;
  }
  .aip-gallery .cp-gallery-more__word {
    display: none;
  }
}

/* ---- Product page room cards: board items + price box (diff pill, was price, discount) ---- */
.pp-room-meals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.pp-room-meals li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px 3px 6px;
  border-radius: 999px;
  background: #e6f6ec;
  color: #1d7a3e;
  font:
    700 12px/1.4 Lato,
    "Segoe UI",
    sans-serif;
}
.pp-room-meals svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

/* Board basis badge + its meal pills on one row, under "View room details". */
.pp-room-boardrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
}
.pp-room-boardrow .pp-room-board {
  margin: 0;
  line-height: 1.4;
}
.pp-room-boardrow .pp-room-meals {
  display: contents;
}
.pp-room-boardrow .pp-room-meals li {
  line-height: 1.4;
}

/* "+£120pp" (dearer than the room picked) / "£20pp less" (cheaper). */
.pp-room__price .pp-room-price__diff {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  align-self: flex-end;
  margin: 0 0 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff4dc;
  color: #8a5a00;
  font:
    800 13px/1.3 Lato,
    "Segoe UI",
    sans-serif;
  white-space: nowrap;
}
.pp-room__price .pp-room-price__diff small {
  font-size: 0.8em;
  font-weight: 700;
  margin-right: 2px;
}
.pp-room__price .pp-room-price__diff--less {
  background: #e6f6ec;
  color: #1d7a3e;
}

.pp-room__price .pp-room-price__was {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
  color: #dd0309;
  text-decoration: line-through;
}

.pp-room__price .pp-room-price__discount.cp-discount-label {
  display: flex;
  justify-content: flex-end;
  margin: 4px 0 0;
  font:
    700 13px/1.4 Lato,
    sans-serif;
  color: #dd0309;
}
.pp-room.is-on .pp-room__price .pp-room-price__discount.cp-discount-label {
  justify-content: flex-end;
}

/* Room cards show no room price any more - only the change against the picked room, so that
   figure (or "Included") is now the card's headline price rather than a small pill. */
.pp-room__price .pp-room-price__diff,
.pp-room__price .pp-room-price__included {
  align-self: flex-end;
  margin: 4px 0 8px;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--pp-text);
  font-family: var(--pp-font-display);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.pp-room__price .pp-room-price__diff small {
  margin-left: 2px;
  font-size: 0.5em;
}
.pp-room__price .pp-room-price__diff--less,
.pp-room__price .pp-room-price__included {
  color: #1d7a3e;
}
.pp-room__price .pp-room-price__included,
.pp-room__price .pp-room-price__diff--same {
  font-size: 20px;
}
.pp-room__price .pp-room-price__diff--same {
  color: var(--pp-text-muted);
}
.pp-board-pick__price .pp-price-included {
  font-size: 16px;
  color: #1d7a3e;
}

@media (max-width: 720px) {
  .pp-room__price .pp-room-price__diff,
  .pp-room__price .pp-room-price__included {
    align-self: flex-start;
  }
  .pp-room__price .pp-room-price__discount.cp-discount-label,
  .pp-room.is-on .pp-room__price .pp-room-price__discount.cp-discount-label {
    justify-content: flex-start;
  }
}

/* Product page calendar, mobile: the "Best" pill overlapped the dates - show a small green dot
   in the same corner instead (the legend's "Best price" swatch explains it). */
@media (max-width: 720px) {
  .pp-day__best {
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    background: var(--pp-green, #23ae24);
    font-size: 0;
    line-height: 0;
    overflow: hidden;
  }
}

/* Product page calendar: unavailable days. Icon + "Not available" on desktop; on phones the
   wrapped two-line text made that week's row taller than the rest, so show the icon only. */
@media (max-width: 720px) {
  .pp-day__na-text {
    display: none;
  }
}
