/* ============================================================
   VIETNAM WITH TRAVELLING TEACHERS
   Page-specific styles. Loaded only by travelling-teachers-vietnam.php,
   after snow-squad.css.
   ============================================================ */

/* ── Structured pitch ─────────────────────────────────────────
   Lead lines, a ticked list and a closing line, left aligned in the
   reading width rather than centred like the rest of the section.
   Markup from trip_pitch_structured() in the template. */
.page-trip .pitch-body {
  max-width: var(--measure);
  margin-inline: auto;
  text-align: left;
}

.page-trip .pitch-body > * + * {
  margin-top: var(--flow);
}

/* Each lead line starts a new group, so it gets more room above it,
   and the line or list under it sits close. */
.page-trip .pitch-body > .pitch-lead + * {
  margin-top: 0.5rem;
}

/* The first lead line is a question, so the line under it gets a touch
   more room than the second lead's list does. */
.page-trip .pitch-body > .pitch-lead:first-child + * {
  margin-top: 0.75rem;
}

.page-trip .pitch-body > * + .pitch-lead,
.page-trip .pitch-body > * + .pitch-close {
  margin-top: calc(var(--flow) * 2);
}

.page-trip .pitch-lead {
  font-weight: 700;
  color: var(--white);
}

/* The same tick as the What's Included list. */
.page-trip .pitch-ticks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: rgba(255,255,255,0.85);
}

.page-trip .pitch-ticks li {
  position: relative;
  padding-left: 1.4rem;
}

.page-trip .pitch-ticks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.page-trip .pitch-close {
  color: var(--teal);
  font-style: italic;
}

/* ── Accommodation: stop tabs and hotel mosaics ───────────────
   Small pills inside the Accommodation tab, one per stop, then each
   stop's hotels in the same style as the day by day mosaics: 3:2 tiles,
   2px gaps, at most 720px wide. Each hotel is its own row with rounded
   outside corners, and its name and amenities sit underneath as text.
   Markup from the `stops` and `hotel-mosaic` blocks in the template. */
.page-trip #stays-tabs .tab-pills {
  margin-top: 1rem;
  gap: 0.4rem;
  /* All four fit on a phone, so no fade at the edges. */
  -webkit-mask-image: none;
  mask-image: none;
}

.page-trip #stays-tabs .tab-pill {
  font-size: 0.78rem;
  padding: 0.4rem 0.75rem;
}

.page-trip .hotel-mosaic {
  display: grid;
  gap: 1.25rem;                /* room for each hotel's caption */
  max-width: 720px;
  margin: 1.25rem auto 0;
  grid-template-columns: minmax(0, 1fr);
}

.page-trip .hotel-mosaic--per-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-trip .hotel-mosaic--per-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* One hotel: its photos side by side, then its caption across the row. */
.page-trip .hotel-group {
  display: grid;
  column-gap: 2px;
  row-gap: 0.6rem;
  margin: 0;
  grid-template-columns: minmax(0, 1fr);
}

/* Round the outside corners of each hotel's row. The caption is the
   group's last child, so the last photo is the one before it. */
.page-trip .hotel-group > .mosaic-tile:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.page-trip .hotel-group > .mosaic-tile:nth-last-child(2) {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.page-trip .hotel-group--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-trip .hotel-mosaic .placeholder--media {
  display: flex;
  aspect-ratio: 3 / 2;
  min-height: 0;
  overflow: hidden;            /* a long file name must not stretch the tile */
  margin: 0;
  padding: 0.35rem;
  border-radius: 0;
}

.page-trip .hotel-mosaic .placeholder--media span {
  font-size: 0.58rem;
  padding: 0.25rem 0.4rem;
  overflow-wrap: anywhere;
}

/* The pixel size is the same on every tile and crowds the small ones. */
.page-trip .hotel-mosaic .placeholder-size {
  display: none;
}

.page-trip .hotel-mosaic .placeholder.mosaic-empty {
  aspect-ratio: 3 / 2;
  height: auto;
  margin: 0;
  border-radius: 0;
}

/* Plain text under the row: the hotel's name in bold. */
.page-trip .hotel-caption {
  grid-column: 1 / -1;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--white);
  text-align: left;
}

/* ── Price & What's Included ──────────────────────────────────
   The line above the price, with its link to the Payment Plan tab.
   The link matches the links in the FAQ answers. */
.page-trip .price-intro-link a {
  color: var(--teal);
  text-decoration: underline;
}

/* A hotel's amenities line, under its name: smaller and lighter. */
.page-trip .hotel-note {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255,255,255,0.75);
}
