/* Mirai Travel: page CSS shared by the home page and the tour pages.
   Tokens come from assets/system.css; nothing here sets its own colours or type sizes. */

.nav__logo img { display: block; height: 40px; width: auto; }
@media (min-width: 1024px) {
  .nav__tours { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); row-gap: var(--s-5); }
  .nav__tours > * { grid-column: auto; }
  .nav__tours .menu-card { gap: var(--s-1); }
}
.menu-card[aria-current="page"] .t-card { color: var(--accent); }
.tnum { font-variant-numeric: tabular-nums; }
/* golden line height for running text; every hero h1 takes the golden h1 size */
body { line-height: 1.618; }
h1, h2, h3, .tour-item__name, .band__steps li { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); }
/* figures stay in the sans (lining, even): dates, prices, stats */
.t-stat, .tour-item__price, .dmap__stats dd, .dmap__price, .rows__value, .hero-facts dd { font-family: var(--font-text); }
.t-stat { font-weight: 500; letter-spacing: -0.01em; }
.hero { --ly-h1: var(--t-h1); }
.peak { color: var(--accent); }

/* ------------------------------------------------------------------ home: the 3D logo hero
   The hero is two screens tall; its stage is pinned for the first one. The 3D mark is a fixed layer
   (above the nav, so it can fly into the nav logo) placed over .logo-slot by js/logo3d.min.js.
   #tours rises over the pinned stage while the mark flies. */
main > section.hero--logo { height: 200vh; height: 200svh; padding: 0; isolation: auto; }
.hero--logo .logo-stage { position: sticky; top: 0; height: 100vh; height: 100svh; box-sizing: border-box;
  padding: var(--nav) 0 var(--s-7); display: flex; align-items: center; }
.hero--logo .logo-stage > .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-6); }
.logo-slot { position: relative; aspect-ratio: 1.56;
  width: min(100%, 680px, calc((100svh - var(--nav) - 430px) * 1.56)); }
.logo-slot__img { position: absolute; left: 13%; top: 11%; width: 74%; height: 78%; object-fit: contain; }
html.logo3d-on .logo-slot__img { visibility: hidden; }
.logo3d { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 51; pointer-events: none;
  transform-origin: 50% 50%; will-change: transform; display: none; }
html.logo3d-on .logo3d { display: block; }
.logo3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
html.logo3d-on body.home .nav .nav__logo img { opacity: 0; }
/* the slogan: h1 on the golden scale (42 → 68), the director's emoji phi times its size beside it;
   gaps 16 (h1 → lead) and 26 (lead → buttons), the next steps down the same scale */
.logo-stage__text h1 { font-size: var(--t-h1); line-height: 1.04; letter-spacing: var(--display-tracking-xl); text-wrap: balance; }
.logo-stage__text h1 .nowrap { white-space: nowrap; }
.h1-emoji { display: inline-block; width: 1.618em; height: 1.618em; vertical-align: middle; margin: -.42em 0 -.14em .2em; }
.logo-stage__text .hero__lead { margin: 16px auto 0; max-width: 42ch; font-size: var(--t-lead); line-height: 1.618; color: var(--muted); }
.logo-stage__text .btn-row { justify-content: center; margin-top: 26px; }
.logo-stage__text { will-change: opacity, transform; }
main > section#tours.tours--over { margin-top: -100vh; margin-top: -100svh; z-index: 2; background: var(--bg); }
@media (prefers-reduced-motion: reduce) {
  main > section.hero--logo { height: 100vh; height: 100svh; }
  .hero--logo .logo-stage { position: relative; }
  main > section#tours.tours--over { margin-top: 0; }
}
html[data-motion="off"] main > section.hero--logo { height: 100svh; }
html[data-motion="off"] main > section#tours.tours--over { margin-top: 0; }
@media (max-width: 639px) {
  .logo-slot { width: min(100%, calc((100svh - var(--nav) - 330px) * 1.56)); }
  .hero--logo .logo-stage > .wrap { gap: var(--s-5); }
}

/* ------------------------------------------------------------------ home on the dark ground
   An editorial layout: a section's small label at the left (cols 1-3), its heading from col 4, thin
   lines between cards, photographs that run edge to edge. */
:root { --line-soft: color-mix(in oklab, var(--ink) 14%, transparent); }

/* the hero over the photograph: Zhangjiajie's misty pillars full-bleed, a navy veil darkest at the foot for the slogan */
.hero--arch .logo-stage { overflow: hidden; }
.hero-photo { position: absolute; inset: 0; z-index: 0; }
.hero-photo :is(img, video) { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; display: block; }
.hero--arch .logo-stage::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgb(18 20 19 / .5) 0%, rgb(18 20 19 / .08) 28%, rgb(18 20 19 / .22) 55%, rgb(18 20 19 / .82) 100%); }
.hero--arch .logo-stage > .wrap { position: relative; z-index: 1; }
/* the slogan takes the golden step above the h1: 46 → 110 (16 x phi^4) */
.hero--arch .logo-stage__text h1 { font-size: clamp(50px, 6.3vw + 25.4px, 116px); line-height: .95; letter-spacing: -0.045em; color: #fff; max-width: none; font-family: var(--font-display); font-weight: 600; }
.hero--arch .logo-stage__text .hero__lead { color: rgb(255 255 255 / .86); }
.hero--arch .logo-slot { width: min(100%, 600px, calc((100svh - var(--nav) - 400px) * 1.56)); }
@media (max-width: 767px) { .hero-photo :is(img, video) { object-position: 50% 50%; } }

/* section heads */
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-bottom: var(--s-8); }
.sec-head__label { grid-column: 1 / span 3; display: flex; align-items: center; gap: 10px; height: max-content;
  padding-top: .55em; font-size: var(--t-small); color: var(--muted); }
.sec-head__label::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.sec-head__main { grid-column: 4 / -1; display: grid; gap: var(--s-4); max-width: 820px; }
.sec-head__main p { color: var(--muted); font-size: var(--t-lead); line-height: 1.5; max-width: 54ch; }
@media (max-width: 1023px) {
  .sec-head { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-4); margin-bottom: var(--s-7); }
  .sec-head__label, .sec-head__main { grid-column: 1; padding-top: 0; }
}

/* the tour list: two columns of cards, each its words at the left and a square photograph at the right */
main > section#tours { height: auto; min-height: 100vh; min-height: 100svh; }
.tour-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-soft); }
.tour-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6);
  padding: var(--s-7) var(--s-6) var(--s-7) 0; border-bottom: 1px solid var(--line-soft); }
.tour-item:nth-child(2n) { padding: var(--s-7) 0 var(--s-7) var(--s-6); border-left: 1px solid var(--line-soft); }
.tour-item__text { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.tour-item__name { font-size: var(--t-h3); line-height: 1.2; letter-spacing: var(--display-tracking); text-wrap: balance; }
.tour-item__name a { color: inherit; text-decoration: none; transition: color var(--dur) var(--ease); }
.tour-item__name a:hover { color: var(--accent); }
.tour-item__price { color: var(--accent); font-size: var(--t-lead); font-weight: 600; font-variant-numeric: tabular-nums; }
.tour-item__meta { margin: 0; display: grid; gap: var(--s-2); font-size: var(--t-small); }
.tour-item__meta > div { display: flex; justify-content: space-between; gap: var(--s-4); padding-bottom: var(--s-2); border-bottom: 1px solid var(--line-soft); }
.tour-item__meta dt { color: var(--muted); }
.tour-item__meta dd { margin: 0; text-align: right; }
.tour-item__btn { margin-top: auto; align-self: flex-start; }
.tour-item__photo { position: relative; display: block; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.tour-item__photo .frame__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) {
  .tour-list { grid-template-columns: minmax(0, 1fr); }
  .tour-item, .tour-item:nth-child(2n) { padding: var(--s-7) 0; border-left: 0; }
}
@media (max-width: 639px) {
  .tour-item { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); padding: var(--s-6) 0; }
  .tour-item:nth-child(2n) { padding: var(--s-6) 0; }
  .tour-item__photo { order: -1; aspect-ratio: 4 / 3; }
}

/* every destination on one map, edge to edge */
main > section.dest { height: auto; min-height: 100vh; min-height: 100svh; padding-bottom: 0; }
.dest__map { position: relative; height: min(72vh, 720px); height: min(72svh, 720px); margin-inline: calc(50% - 50vw); background: var(--surface); }
.dest__fallback { display: none; }
.no-map .dest__map { display: none; }
.no-map .dest__fallback { display: grid; gap: var(--s-3); list-style: none; margin: 0; padding: 0 0 var(--padb); font-size: var(--t-lead); }
.dest-pin { display: grid; gap: 2px; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--ink);
  background: rgb(255 255 255 / .94); box-shadow: 0 1px 3px rgb(20 35 29 / .14); border: 1px solid rgb(242 106 33 / .55); transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.dest-pin:hover, .dest-pin:focus-visible { background: var(--action); color: var(--action-ink); }
.dest-pin__name { font-weight: 500; font-size: 15px; line-height: 1.2; white-space: nowrap; }
.dest-pin__price { font-size: 13px; line-height: 1.2; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dest-pin:hover .dest-pin__price, .dest-pin:focus-visible .dest-pin__price { color: inherit; }
.dest-origin { pointer-events: none; font-size: 13px; color: var(--ink); white-space: nowrap; }

/* the booking steps over a full-bleed photograph */
main > section.band { overflow: hidden; }
.band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
main > section.band::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgb(18 20 19 / .82) 0%, rgb(18 20 19 / .5) 55%, rgb(18 20 19 / .3) 100%); }
.band__grid { flex: 1 1 auto; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--gutter); row-gap: var(--s-7); align-items: end; }
.band__title { font-size: var(--t-h1); color: #fff; }
.band__steps { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.band__steps li { display: flex; align-items: baseline; gap: .6em; font-size: var(--t-h2); font-weight: 600; line-height: 1.2; letter-spacing: var(--display-tracking); color: #fff; }
.band__n { font-family: var(--font-text); font-size: var(--t-small); font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.band__side { display: grid; gap: var(--s-5); max-width: 46ch; }
.band__side p { color: rgb(255 255 255 / .86); }
.band__phones a { color: inherit; }
@media (max-width: 1023px) { .band__grid { grid-template-columns: minmax(0, 1fr); align-items: start; align-content: end; } }

#faq .faq__photo { aspect-ratio: 4 / 5; }

/* ------------------------------------------------------------------ tour page: hero facts */
.tour-hero .hero-facts dd { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ tour page: the scrolling map
   Day steps on the left, the map pinned on the right; on a phone the map pins under the nav and the
   days run beneath it. js/tour-map.js moves the map to the day crossing the reading line. */
main > section.itinerary { height: auto; min-height: 0; padding-bottom: var(--padb); }
.itin { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--gutter); align-items: start; }
.itin__head { grid-column: 1; grid-row: 1; min-width: 0; }
.itin__head .section-head { margin-bottom: var(--s-6); }
.itin__list { grid-column: 1; grid-row: 2; min-width: 0; }
.itin__days { list-style: none; margin: 0; padding: 0; }
.itin__map { grid-column: 2; grid-row: 1 / span 2; align-self: start; position: sticky; top: calc(var(--nav) + var(--s-5));
  height: calc(100vh - var(--nav) - 2 * var(--s-5)); height: calc(100svh - var(--nav) - 2 * var(--s-5));
  border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.itin__map .map { position: absolute; inset: 0; }
.itin__day { padding: var(--s-7) 0; min-height: 62vh; min-height: 62svh; box-sizing: border-box;
  display: grid; align-content: center; gap: var(--s-3); border-top: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
  opacity: .38; transition: opacity .4s var(--ease); }
.itin__day:first-child { border-top: 0; }
.itin__day.is-active, html[data-motion="off"] .itin__day, .no-map .itin__day { opacity: 1; }
.itin__n { color: var(--muted); font-size: var(--t-small); font-variant-numeric: tabular-nums; }
.itin__day h3 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--t-h3); line-height: 1.15; letter-spacing: var(--display-tracking); }
.itin__meta { color: var(--muted); font-size: var(--t-small); }
.itin__lines { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: grid; gap: var(--s-2); max-width: 46ch; }
.itin__lines li { line-height: 1.55; }
.itin__tip { color: var(--muted); max-width: 46ch; }
.itin__photo { margin-top: var(--s-4); aspect-ratio: 3 / 2; border-radius: var(--r-md); overflow: hidden; background: var(--surface); max-width: 520px; }
.itin__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.itin__switch { display: inline-flex; gap: var(--s-1); padding: 4px; border-radius: calc(var(--r-btn) + 4px); background: var(--surface); margin-bottom: var(--s-5); }
.itin__switch button { font: inherit; font-size: var(--t-small); font-weight: 500; border: 0; background: transparent; color: var(--muted);
  height: var(--btn-h-sm); padding: 0 var(--s-4); border-radius: var(--r-btn); cursor: pointer; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.itin__switch button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.itin__switch button:active { transform: translateY(1px); }
.itin__prog[hidden] { display: none; }
.no-map .itin { grid-template-columns: minmax(0, 1fr); }
.no-map .itin__map { display: none; }
@media (max-width: 1023px) {
  .itin { grid-template-columns: minmax(0, 1fr); }
  .itin__map { grid-column: 1; grid-row: 2; top: var(--nav); height: 42vh; height: 42svh; z-index: 3;
    margin-inline: calc(-1 * var(--gut)); border-radius: 0; }
  .itin__list { grid-row: 3; }
  .itin__day { min-height: 52vh; min-height: 52svh; align-content: start; padding: var(--s-6) 0; }
  .itin__photo { max-width: none; }
}

/* map markers and labels (HTML, so they use the page's own type) */
.map-pin { pointer-events: none; }
.map-label { display: block; pointer-events: none; font-family: var(--font-text); font-size: 13px; font-weight: 500; line-height: 1.2; color: #14231d;
  white-space: nowrap; padding: 3px 7px; border-radius: 6px; background: rgb(255 255 255 / .92); box-shadow: 0 1px 3px rgb(20 35 29 / .16);
  opacity: 0; transition: opacity .35s var(--ease); }
.map-label.is-on { opacity: 1; }
.map-label.is-now { color: #c2410c; }
.map-country { pointer-events: none; font-family: var(--font-display); font-size: 15px; color: #8f897c; letter-spacing: .02em; opacity: 0; transition: opacity .4s var(--ease); }
.map-country.is-on { opacity: 1; }
.maplibregl-ctrl-attrib { font-family: var(--font-text); font-size: 11px; }

/* ------------------------------------------------------------------ tour page: prices and what is included */
#prices .t-stat { font-variant-numeric: tabular-nums; }
#prices .prices__foot { margin-top: var(--s-7); }
.incl h3 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--t-h3); margin-bottom: var(--s-4); }
.incl ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.incl li { padding-top: var(--s-3); border-top: 1px solid color-mix(in oklab, var(--ink) 12%, transparent); line-height: 1.5; }
@media (min-width: 640px) and (max-width: 1023px) {
  #prices .grid, #included .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #prices .grid > *, #included .grid > * { grid-column: auto; }
}
#faq .faq h3 { font-family: var(--font-display); font-weight: var(--display-weight); }
@media (min-width: 640px) and (max-width: 1023px) {
  #faq .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #faq .grid > * { grid-column: auto; }
}
@media (max-width: 639px) { #faq .faq__photo { aspect-ratio: 4 / 5; } }
@media (max-width: 639px) { .h1-emoji { margin-top: -.18em; } }

/* ------------------------------------------------------------------ text effects (js/text-fx.js)
   letters out of a soft blur, words lighting up with the scroll, blocks rising in; off without JS and
   under reduced motion (the class tx-on is only set when the effects run) */
.tx-w { display: inline-block; white-space: nowrap; }
html.tx-on .tx-c { display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(.14em);
  transition: opacity .55s var(--ease), filter .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
html.tx-on .tx-in .tx-c { opacity: 1; filter: none; transform: none; }
html.tx-on .tx-word { opacity: .26; transition: opacity .35s var(--ease); }
html.tx-on .tx-word.on { opacity: 1; }
html.tx-on .tx-rise { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
html.tx-on .tx-rise.tx-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ destinations map (js/home-map.js)
   every tour a round photograph with its name and price, a line from Ulaanbaatar to each, a card at the
   foot that steps through the tours and flies the map, and a list of every tour */
.dmap { position: relative; height: min(84vh, 820px); height: min(84svh, 820px); margin-inline: calc(50% - 50vw); background: var(--surface); overflow: hidden; }
.dmap .dmap__map { position: absolute; inset: 0; width: 100%; height: 100%; }  /* two classes: MapLibre sets .maplibregl-map { position: relative } */
.no-map .dmap { display: none; }
main > section.dest--full { height: auto; min-height: 0; padding: var(--nav) 0 0; }
.dest--full .dmap { height: calc(100vh - var(--nav)); height: calc(100svh - var(--nav)); margin: 0; }
.dest--full .dest__fallback { padding-top: var(--s-7); }
.dmap__card { position: absolute; z-index: 5; left: 50%; bottom: 28px; transform: translateX(-50%); width: min(460px, calc(100% - 32px));
  display: grid; gap: 14px; padding: 20px 22px 18px; border-radius: var(--r-lg); background: rgb(255 255 255 / .96);
  box-shadow: 0 12px 40px rgb(20 35 29 / .16), 0 1px 3px rgb(20 35 29 / .1); }
.dmap__top { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: 8px; text-align: center; }
.dmap__arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-soft); background: var(--bg); display: grid; place-items: center; cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.dmap__arrow svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dmap__arrow:hover { background: var(--action); border-color: var(--action); }
.dmap__arrow:active { transform: scale(.94); }
.dmap__count { font-size: 12px; color: var(--accent); font-variant-numeric: tabular-nums; }
.dmap__title { font-family: var(--font-display); font-weight: 600; font-size: 27px; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
.dmap__lead { text-align: center; color: var(--muted); font-size: 14px; line-height: 1.45; }
.dmap__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 12px 4px; border-radius: var(--r-md); background: var(--bg); }
.dmap__stats > div { display: grid; gap: 3px; align-content: start; text-align: center; padding: 0 8px; }
.dmap__stats > div + div { border-left: 1px solid var(--line-soft); }
.dmap__stats dd { margin: 0; font-family: var(--font-text); font-weight: 600; font-size: 15px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.dmap__stats dt { font-size: 11px; color: var(--muted); }
.dmap__price { color: var(--accent); }
.dmap__actions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.dmap__actions .btn { justify-content: center; }
.dmap__sheet { position: absolute; z-index: 6; left: 50%; top: 24px; bottom: 24px; transform: translateX(-50%); width: min(460px, calc(100% - 32px));
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); background: #fff; box-shadow: 0 12px 40px rgb(20 35 29 / .18); }
.dmap__sheet[hidden] { display: none; }
.dmap__sheethead { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 8px; }
.dmap__sheethead h3 { font-family: var(--font-display); font-weight: 600; font-size: 25px; letter-spacing: -0.02em; }
.dmap__close { border: 0; background: none; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; padding: 6px; }
.dmap__close:hover { color: var(--ink); }
.dmap__items { list-style: none; margin: 0; padding: 0 10px 12px; overflow: auto; }
.dmap__item { width: 100%; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border: 0; border-radius: var(--r-md);
  background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: background var(--dur) var(--ease); }
.dmap__item:hover, .dmap__item:focus-visible { background: var(--bg); }
.dmap__item img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.dmap__itemname { display: block; font-weight: 500; line-height: 1.3; }
.dmap__itemmeta { display: block; font-size: 13px; color: var(--muted); }
.dmap__itemprice { font-size: 14px; font-weight: 500; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dpin { position: relative; width: 48px; height: 48px; padding: 0; border: 0; background: none; cursor: pointer; }
.dpin__img { position: absolute; inset: 0; border-radius: 50%; background-size: cover; background-position: center; border: 3px solid #fff;
  box-shadow: 0 2px 10px rgb(20 35 29 / .32); transition: transform .35s var(--ease), border-color .35s var(--ease); }
.dpin:hover .dpin__img { transform: scale(1.1); }
.dpin__label { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); display: grid; gap: 1px; text-align: center; white-space: nowrap;
  padding: 4px 9px; border-radius: 8px; background: #fff; box-shadow: 0 1px 3px rgb(20 35 29 / .18); line-height: 1.2; transition: top .35s var(--ease), background .35s var(--ease); }
.dpin__label b { font-size: 13px; font-weight: 500; color: var(--ink); }
.dpin__label small { font-size: 11px; color: var(--accent); font-variant-numeric: tabular-nums; }
.dpin.is-active .dpin__img { transform: scale(1.4); border-color: var(--action); }
.dpin.is-active .dpin__label { top: calc(100% + 16px); background: var(--ink); }
.dpin.is-active .dpin__label b { color: #fff; }
.dpin.is-active .dpin__label small { color: var(--action); }
.dorigin { display: flex; align-items: center; gap: 6px; pointer-events: none; }
.dorigin__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--action); border: 3px solid #fff; box-shadow: 0 0 0 6px rgb(242 106 33 / .22); }
.dorigin__label { font-size: 12px; color: #fff; background: var(--ink); padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.dcountry { pointer-events: none; font-family: var(--font-display); font-size: 14px; letter-spacing: .06em; color: #9a9384; opacity: 0; transition: opacity .4s var(--ease); }
.dcountry.is-on { opacity: 1; }
@media (max-width: 639px) {
  .dmap { height: 88vh; height: 88svh; }
  .dmap__card { bottom: 12px; gap: 10px; padding: 14px 14px 12px; }
  .dmap__title { font-size: 20px; }
  .dmap__lead { display: none; }
  .dmap__stats dd { font-size: 13px; }
  .dpin { width: 40px; height: 40px; }
}

/* labels beside the photo where two destinations sit close (tours-data dest.a) */
.dpin--right .dpin__label { top: 50%; left: calc(100% + 8px); transform: translateY(-50%); text-align: left; }
.dpin--left .dpin__label { top: 50%; left: auto; right: calc(100% + 8px); transform: translateY(-50%); text-align: right; }
.dpin--right.is-active .dpin__label { top: 50%; left: calc(100% + 18px); }
.dpin--left.is-active .dpin__label { top: 50%; right: calc(100% + 18px); }
/* on a phone the fixed booking bar sits at the screen's foot: the map card rises above it */
@media (max-width: 639px) { .dmap__card { bottom: calc(var(--bar, 64px) + 12px); } .dmap__sheet { bottom: calc(var(--bar, 64px) + 12px); } }
/* the serif reads small at text sizes: the questions take one step up */
#faq .faq h3 { font-size: 22px; line-height: 1.25; }
@media (max-width: 639px) { #faq .faq h3 { font-size: 20px; } }

/* ------------------------------------------------------------------ the programme map's overlays
   the day being read (top left), the ways this programme travels (bottom left), the vehicle on the route */
.itin__map { box-shadow: inset 0 0 0 1px rgb(20 35 29 / .08); }
.map-chip { position: absolute; z-index: 4; top: 14px; left: 14px; right: 14px; width: max-content; max-width: calc(100% - 28px);
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: rgb(255 255 255 / .94);
  box-shadow: 0 2px 10px rgb(20 35 29 / .14); font-size: 13px; line-height: 1.3; }
.map-chip__n { flex: none; font-weight: 600; color: var(--accent); }
.map-chip__t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.map-chip__icon { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); }
.map-chip__icon svg { width: 14px; height: 14px; fill: var(--ink); }
.map-legend { position: absolute; z-index: 4; left: 14px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.map-legend[hidden] { display: none; }
.map-legend__item { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 999px; background: rgb(255 255 255 / .92);
  box-shadow: 0 1px 4px rgb(20 35 29 / .12); font-size: 12px; font-weight: 500; }
.map-legend__icon { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--action); }
.map-legend__icon svg { width: 13px; height: 13px; fill: #fff; }
.veh { width: 38px; height: 38px; display: none; place-items: center; border-radius: 50%; background: #fff; border: 2px solid var(--action);
  box-shadow: 0 4px 14px rgb(20 35 29 / .28); pointer-events: none; }
.veh.is-on { display: grid; }
.veh__icon { width: 22px; height: 22px; display: grid; place-items: center; transition: transform .15s linear; }
.veh__icon svg { width: 22px; height: 22px; fill: var(--action); }
.veh[data-mode="flight"] { background: var(--action); }
.veh[data-mode="flight"] .veh__icon svg { fill: #fff; }
@media (max-width: 1023px) {
  .map-chip { top: 10px; left: 10px; padding: 6px 10px; font-size: 12px; }
  .map-legend { left: 10px; bottom: 10px; }
  .map-legend__item { font-size: 11px; padding: 4px 8px 4px 4px; }
  .veh { width: 32px; height: 32px; }
  .veh__icon, .veh__icon svg { width: 18px; height: 18px; }
}

/* the hotel: one large photograph and two beside it */
main > section.hotel { height: auto; min-height: 0; }
.hotel__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: var(--gutter); height: min(62vh, 600px); }
.hotel__ph { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--surface); }
.hotel__ph--main { grid-row: 1 / span 2; }
.hotel__ph .frame__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 639px) {
  .hotel__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; height: auto; }
  .hotel__ph--main { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 3 / 2; }
  .hotel__ph { aspect-ratio: 1; }
}
