.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 button,
.aip-page input,
.aip-page select {
  font: inherit;
}

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

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

.aip-wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- 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;
}

/* ---- Search summary bar ----
   Ported from the prototype's .search-bar - the real gold 5-field + button row, not just a
   collapsed summary pill (that was the wrong call the first time round). Each field is a
   read-only display of the actual booking values (this project's real airport/date/room
   pickers live in SearchTabModals.cshtml/HolidaySearchTab.cshtml, a shared, page-agnostic
   component with its own hero/styling, not part of this page's own design system) - clicking
   any field or the search button opens that same real widget via the same
   $('.editSearch').slideToggle() toggle the old .back-bar used, just restyled as this. */
.aip-search-bar {
  margin: 14px 0 0;
  background: var(--aip-gold);
  border-radius: 14px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 6px;
  box-shadow: 0 16px 40px rgba(16, 68, 67, 0.18);
}

.aip-search-bar__field {
  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;
}

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

.aip-search-bar__field strong {
  min-height: 24px;
  color: var(--aip-ink);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

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

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

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

/* ---- 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: center;
  text-align: left;
  gap: 14px;
  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-photos-btn {
  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);
}

.aip-gallery__flags {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.aip-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 5px 8px;
  border-radius: 4px;
  line-height: 1;
  background: var(--aip-primary-deep);
}

.aip-flag--deal {
  background: var(--aip-green-text);
}

.aip-photos-btn {
  position: absolute;
  left: auto;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  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;
}

/* ---- 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);
}

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

@media (max-width: 860px) {
  .aip-wrap {
    padding: 0 12px;
  }

  .aip-crumbs {
    display: none;
  }

  .aip-identity {
    margin-bottom: 8px;
  }

  .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;
  }

  .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;
  }
}

/* ============================================================================
   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: 800;
  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;
} */

.aip-prose.is-collapsed > :nth-child(n + 3) {
  display: none;
}

.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;
}

.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 {
  cursor: pointer;
  font-weight: 800;
  color: var(--aip-primary);
  list-style: none;
}

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

.aip-panel summary::after {
  content: " +";
  font-weight: 700;
}

.aip-panel details[open] summary::after {
  content: " \2013";
}

.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;
}

.aip-hl-cards 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 {
  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);
}

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

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

/* ---- Mobile fold-accordion (Hotel Info feature blocks) ---- */

@media (max-width: 860px) {
  .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;
  }

  .aip-fold:not(.is-open) .aip-fold-body,
  .aip-fold:not(.is-open) .aip-hl-media {
    display: none;
  }

  .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;
  }

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

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

.aip-ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  margin-bottom: 14px;
  border: 1px solid var(--aip-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

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

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

.aip-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: var(--aip-primary-dark);
}

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

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

.aip-ticket__city {
  min-width: 0;
}

.aip-ticket__time {
  display: block;
  font-family: var(--aip-font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--aip-ink);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.aip-ticket__air {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--aip-text);
  line-height: 1.3;
}

.aip-ticket__iata {
  color: var(--aip-text-muted);
  font-weight: 700;
}

.aip-ticket__date {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  color: var(--aip-text-muted);
}

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

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

.aip-ticket__dur {
  font-size: 12px;
  font-weight: 700;
  color: var(--aip-text-muted);
}

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

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

.aip-ticket__stop {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  background: #eef1f1;
  color: var(--aip-text);
  font-size: 11px;
  font-weight: 700;
}

.aip-ticket__stop.is-direct {
  background: #dff6e1;
  color: var(--aip-green-text);
}

.aip-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;
}

.aip-ticket__flight-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--aip-text-muted);
}

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

.aip-ticket__no {
  font-family: var(--aip-font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--aip-primary);
  line-height: 1.1;
}

.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.is-selected {
  border-color: var(--aip-primary);
  box-shadow: 0 0 0 2px var(--aip-primary-mist);
}

.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);
}

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

.aip-room-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
}

.aip-room-card__was {
  font-size: 14px;
  color: var(--aip-text-muted);
  text-decoration: line-through;
}

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

.aip-room-card__pernight {
  font-size: 12px;
  color: var(--aip-text-muted);
}

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

.aip-room-card .aip-perks li {
  font-size: 13px;
  font-weight: 700;
  color: var(--aip-text-muted);
}

.aip-room-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--aip-primary);
  background: #fff;
  color: var(--aip-primary-deep);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.aip-room-select.is-selected {
  background: var(--aip-primary);
  border-color: var(--aip-primary);
  color: #fff;
}

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

/* ============================================================================
   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: 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-muted);
}

@media (max-width: 860px) {
  .aip-times li {
    grid-template-columns: 100px minmax(0, 1fr);
  }
}

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

.aip-summary {
  position: sticky;
  top: 16px;
  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);
}

.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-summary .aip-atol {
  margin: 10px 0 0;
  justify-content: flex-start;
}

.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 {
  position: relative;
  margin: 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: help;
}

.aip-atol__logo {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.aip-atol__label {
  font-size: 11px;
  font-weight: 800;
  color: var(--aip-green-text);
  border-bottom: 1px dotted currentColor;
}

.aip-atol__tip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 6;
  width: min(220px, calc(100% + 8px));
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--aip-primary-deep);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: 0 10px 22px rgba(60, 78, 90, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.aip-atol__tip::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: var(--aip-primary-deep);
  transform: rotate(45deg);
}

.aip-atol:hover .aip-atol__tip,
.aip-atol:focus .aip-atol__tip,
.aip-atol:focus-visible .aip-atol__tip {
  opacity: 1;
  visibility: visible;
}

.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;
}

.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;
}

/* "See all details" popup (Highlights 2 - Show Popup / Popup Custom HTML / Images fields) */
.aip-guide-dialog {
  max-width: 640px;
}

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

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

.aip-guide-hero img {
  display: none;
  width: 100%;
  height: 100%;
  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 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

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

.aip-btn--primary.aip-btn--gold {
  background: var(--aip-gold);
  color: var(--aip-primary-deep);
}

.aip-btn--primary.aip-btn--gold:hover {
  background: #e5a800;
}

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

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

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

@media (max-width: 1140px) {
  .aip-product {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .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);
  }

  .aip-book-dock__quote span::after {
    content: " \00B7 View details";
    color: var(--aip-primary);
    font-weight: 800;
  }

  body {
    padding-bottom: 68px;
  }
}

.aip-summary-sheet .modal-content {
  border: 0;
  border-radius: 18px 18px 0 0;
}

.aip-summary-sheet .modal-dialog {
  margin: auto 0 0;
  max-width: 100%;
  height: min(92dvh, 820px);
  max-height: 92dvh;
  display: flex;
  align-items: flex-end;
}

.aip-summary-sheet .modal-body {
  overflow: auto;
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
}

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

.aip-summary-sheet__handle {
  display: block;
  width: 36px;
  height: 4px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: #d0d8d8;
}

/* ---- 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;
}
