/* Tour package components. Loaded on the three package pages and the packages hub,
   after styles.css + landing.css, and uses only :root tokens from styles.css.
   Mobile-first: base rules are the phone layout, min-width queries add the rest.
   The .mk- prefix is this file's namespace and nothing else uses it.

   Layout: the main column is nothing but the day-by-day timeline. Everything the
   traveller needs alongside it - cost, flights, visa, weather - lives in a sidebar
   sized to 20.5rem, so every sidebar component is designed narrow-first.

   The "Download itinerary" button does NOT print this page. It prints a separate
   document with its own stylesheet - see _build_itinerary_doc.py and itinerary.css. */

/* ---------- package chooser: the hub, and cross-sell on each page ----------
   The cards themselves are the site's ordinary .landing-story-grid/.content-card
   component (styles.css + landing.css) - grid, image height, equalised rows, the
   stretched text link and the one-column phone layout all come from there. All this
   file adds is the price, because that is the only thing a package card has that an
   article card does not. */
/* The price row. Display type at the size the offer cards use, with the basis
   sitting on the same baseline beside it rather than orphaned on its own line.
   A hairline rule above separates it from the route without adding a box.

   Long selector on purpose: landing.css line-clamps every <p> in a card body
   with ".landing-story-grid .content-card-body p", which outranks a bare class
   and would turn this row back into a -webkit-box. */
.landing-story-grid .content-card-body p.mk-card-price {
  display: flex; flex-wrap: nowrap; align-items: baseline; gap: .5rem;
  /* margin-top:auto pins the price and the link together at the foot of the
     card, so the three cards in a row line up however long the names run. */
  margin: auto 0 .85rem; padding-top: .85rem;
  border-top: 1px solid var(--color-mist);
}
.mk-card-price strong { flex: none; color: var(--color-bronze-deep); font: 600 clamp(1.5rem, 1.9vw, 1.8rem)/1 var(--font-display); letter-spacing: -.025em; }
/* Takes the slack beside the price and wraps inside its own column rather than
   dropping under it - a card body is only ~12rem wide at three across. */
.mk-card-price > span { flex: 1 1 4rem; min-width: 0; color: var(--color-ink-soft); font-size: .64rem; line-height: 1.35; }
/* ...which means the link must give up the auto margin landing.css gives it,
   or the free space is split between the two and they drift apart. */
.landing-story-grid.mk-chooser .content-card-body .text-link { margin-top: 0; }

/* Hub H1 is display type at a line-height of .92, which clips Thai glyphs
   (they sit taller than Latin in the same em). Smaller and looser, scoped
   here so destination heroes stay as they are. */
.landing-hero .hero-overlay h1 {
  font-size: clamp(1.65rem, 5.2vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -.02em;
}
html[lang="th"] .landing-hero .hero-overlay h1 {
  line-height: 1.3;
  letter-spacing: 0;
}

/* print-only furniture, hidden on screen */
.mk-print { display: none; }

/* ---------- shared building blocks ---------- */
.mk-card { position: relative; padding: 1.1rem; background: var(--color-cloud); border: 1px solid var(--color-mist); border-radius: var(--radius-md); box-shadow: var(--shadow-subtle); }
.mk-card-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .85rem; color: var(--color-ink-soft); font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mk-card-head svg { width: 1rem; height: 1rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mk-card--gold { background: var(--color-gold-soft); border-color: #efdca6; }
.mk-card--taupe { background: var(--color-taupe-soft); border-color: #ddd0bb; }
.mk-note { margin: .8rem 0 0; color: var(--color-ink-soft); font-size: .68rem; line-height: 1.5; }

/* ---------- price ---------- */
.mk-price { display: grid; gap: .2rem; }
.mk-price-from { color: var(--color-ink-soft); font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mk-price-amount { font: 600 clamp(2.1rem, 7vw, 2.9rem)/1 var(--font-display); letter-spacing: -.035em; }
.mk-price-amount small { font-size: .42em; font-weight: 700; letter-spacing: 0; }
.mk-price-basis { margin: .3rem 0 0; color: var(--color-ink-soft); font-size: .72rem; line-height: 1.45; }
.mk-price-cta { display: grid; gap: .5rem; margin-top: 1rem; }
.mk-price-cta .button { width: 100%; }
.mk-price-cta svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- flights, sized for the sidebar ----------
   Not the production .flight-schedule-card: that one needs ~23rem for its three
   columns. This echoes it - same dashed gold edge, same code/time hierarchy - in a
   column narrow enough to sit beside the itinerary. */
.mk-flight { overflow: hidden; padding-top: 1.45rem; }
.mk-flight::before { content: ""; position: absolute; inset: 0 0 auto; height: .35rem; background-color: var(--color-gold); background-image: linear-gradient(45deg, var(--color-bronze) 25%, transparent 25%, transparent 75%, var(--color-bronze) 75%), linear-gradient(45deg, var(--color-bronze) 25%, transparent 25%, transparent 75%, var(--color-bronze) 75%); background-position: 0 0, .4rem .4rem; background-size: .8rem .8rem; }
.mk-flight-legs { margin: 0; padding: 0; display: grid; gap: .7rem; list-style: none; }
.mk-flight-leg { padding: .75rem .8rem; background: var(--color-paper); border: 1px solid var(--color-mist); border-radius: var(--radius-sm); }
.mk-flight-legtop { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .5rem; }
.mk-flight-legtop span { color: var(--color-gold-dark); font-size: .58rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.mk-flight-legtop strong { padding: .18rem .5rem; color: var(--color-bronze-deep); background: var(--color-gold-soft); border: 1px solid var(--color-gold); border-radius: var(--radius-pill); font-size: .62rem; letter-spacing: .05em; }
.mk-flight-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; }
.mk-flight-point time { display: block; font: 600 1.5rem/1 var(--font-display); letter-spacing: -.03em; }
.mk-flight-point b { display: inline-block; margin-top: .3rem; color: var(--color-bronze-deep); font-size: .68rem; letter-spacing: .07em; }
.mk-flight-point small { display: block; color: var(--color-ink-soft); font-size: .62rem; }
.mk-flight-point--arr { text-align: right; }
.mk-flight-mid { display: grid; justify-items: center; gap: .1rem; color: var(--color-gold-dark); }
.mk-flight-mid svg { width: 1.15rem; height: 1.15rem; fill: currentColor; stroke: none; transform: rotate(90deg); }
.mk-flight-mid span { color: var(--color-ink); font: 600 .68rem var(--font-display); }
.mk-flight-note { margin: .5rem 0 0; padding-top: .45rem; border-top: 1px dotted var(--color-mist); color: var(--color-ink-soft); font-size: .62rem; }

/* ---------- visa: vertical step-by-step graphic ---------- */
.mk-visaflow { margin: 0; padding: 0; display: grid; gap: 1.15rem; list-style: none; }
.mk-visa-step { position: relative; display: grid; grid-template-columns: 2.85rem 1fr; gap: .8rem; align-items: start; }
.mk-visa-step:not(:last-child)::after { content: ""; position: absolute; top: 3.2rem; bottom: -1.15rem; left: 1.35rem; border-left: 2px dashed var(--color-taupe); }
.mk-visa-icon { position: relative; width: 2.85rem; height: 2.85rem; display: grid; place-items: center; background: var(--color-cloud); border: 2px solid var(--color-gold); border-radius: 50%; }
.mk-visa-icon svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: var(--color-bronze-deep); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mk-visa-num { position: absolute; right: -.3rem; bottom: -.3rem; width: 1.2rem; height: 1.2rem; display: grid; place-items: center; color: var(--color-ink); background: var(--color-gold); border: 2px solid var(--color-cloud); border-radius: 50%; font-size: .56rem; font-weight: 700; }
.mk-visa-copy h3 { margin: .15rem 0 .25rem; font: 600 .88rem/1.25 var(--font-display); }
.mk-visa-copy p { margin: 0; color: var(--color-ink-soft); font-size: .7rem; line-height: 1.5; }
.mk-visa-tag { display: inline-block; margin-top: .4rem; padding: .12rem .45rem; color: #25533d; background: #dcece3; border-radius: var(--radius-pill); font-size: .55rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.mk-visa-facts { margin: 1rem 0 0; padding: .75rem .85rem; display: grid; gap: .4rem; background: var(--color-paper); border-radius: var(--radius-sm); }
.mk-visa-facts > div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .6rem; font-size: .68rem; }
.mk-visa-facts dt { color: var(--color-ink-soft); }
.mk-visa-facts dd { margin: 0; font-weight: 700; text-align: right; }

/* ---------- weather: current month leads ---------- */
.mk-weather-now { display: flex; align-items: center; gap: .9rem; padding-bottom: .85rem; border-bottom: 1px solid var(--color-mist); }
.mk-weather-temp { font: 600 2.6rem/1 var(--font-display); letter-spacing: -.03em; }
.mk-weather-meta { display: grid; gap: .1rem; }
.mk-weather-month { font: 600 1rem/1.1 var(--font-display); }
.mk-weather-meta small { color: var(--color-ink-soft); font-size: .68rem; }
.mk-climate { width: 100%; margin-top: .85rem; border-collapse: collapse; font-size: .68rem; }
.mk-climate th { padding: .3rem .2rem; color: var(--color-ink-soft); font-size: .56rem; font-weight: 700; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.mk-climate td { padding: .3rem .2rem; border-top: 1px solid var(--color-mist); font-variant-numeric: tabular-nums; }
.mk-climate td:first-child { font-weight: 700; }
.mk-climate th:not(:first-child), .mk-climate td:not(:first-child) { text-align: right; }
/* the only highlighted row is "now" - no best/worst labels, every month sells */
.mk-climate tr.is-now td { background: var(--color-gold-soft); font-weight: 700; }

/* ---------- how we travel ---------- */
.mk-trust { margin: 0; padding: 0; display: grid; gap: 1rem; list-style: none; }
/* align-content:start, or equal-height cards push the title away from the icon by
   however much spare room that particular card has */
.mk-trust li { display: grid; align-content: start; gap: .65rem; padding: 1.1rem; background: var(--color-cloud); border: 1px solid var(--color-mist); border-radius: var(--radius-md); box-shadow: var(--shadow-subtle); }
.mk-trust svg { width: 2.6rem; height: 2.6rem; padding: .6rem; color: var(--color-bronze-deep); background: var(--color-gold-soft); border-radius: 50%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mk-trust b { display: block; margin-bottom: .25rem; font: 600 1.05rem/1.2 var(--font-display); }
.mk-trust span { color: var(--color-ink-soft); font-size: .8rem; line-height: 1.55; }

/* ---------- day-by-day timeline ---------- */
.mk-timeline { margin: 0; padding: 0; list-style: none; }
.mk-day { position: relative; padding: 0 0 1.75rem 1.85rem; }
.mk-day::before { content: ""; position: absolute; top: .45rem; left: .52rem; bottom: 0; width: 2px; background: var(--color-mist); }
.mk-day:last-child::before { display: none; }
.mk-day-dot { position: absolute; top: .3rem; left: 0; width: 1.15rem; height: 1.15rem; display: grid; place-items: center; color: var(--color-ink); background: var(--color-gold); border-radius: 50%; font-size: .58rem; font-weight: 700; box-shadow: 0 0 0 4px #fbf9f5; }
.mk-day-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .7rem; }
.mk-day-label { color: var(--color-bronze-deep); font-size: .67rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.mk-day-head h3 { width: 100%; margin: .1rem 0 .5rem; font: 600 1.3rem/1.15 var(--font-display); letter-spacing: -.02em; }
.mk-day-meta { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .75rem; }
.mk-meta-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .55rem; color: var(--color-ink-soft); background: var(--color-paper); border: 1px solid var(--color-mist); border-radius: var(--radius-pill); font-size: .63rem; font-weight: 600; }
.mk-meta-chip svg { width: .8rem; height: .8rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* activity rows inside a day */
.mk-acts { margin: 0; padding: 0; display: grid; gap: .55rem; list-style: none; }
.mk-act { display: grid; grid-template-columns: 5rem 1fr; gap: .85rem; padding: .6rem; background: var(--color-cloud); border: 1px solid var(--color-mist); border-radius: var(--radius-sm); }
.mk-act img { width: 5rem; height: 5rem; object-fit: cover; border-radius: .35rem; }
.mk-act-copy { min-width: 0; }
.mk-act-line { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; }
.mk-act-time { color: var(--color-gold-dark); font-size: .66rem; font-weight: 700; letter-spacing: .06em; }
.mk-act-dur { display: inline-flex; align-items: center; gap: .25rem; color: var(--color-ink-soft); font-size: .66rem; font-weight: 600; }
.mk-act-dur svg { width: .75rem; height: .75rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mk-act h4 { margin: .15rem 0 .25rem; font: 600 1.02rem/1.2 var(--font-display); }
.mk-act p { margin: 0; color: var(--color-ink-soft); font-size: .82rem; line-height: 1.55; }
.mk-act-tip { display: block; margin-top: .4rem; padding-left: .6rem; border-left: 2px solid var(--color-gold); color: var(--color-bronze-deep); font-size: .74rem; line-height: 1.5; }
.mk-act-drive { display: flex; align-items: center; gap: .4rem; padding: .15rem 0 .15rem 5.85rem; color: var(--color-ink-soft); font-size: .7rem; }
.mk-act-drive svg { width: .85rem; height: .85rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* what the day includes, pinned to the foot of each day */
.mk-day-foot { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin-top: .6rem; padding: .55rem .75rem; color: var(--color-ink-soft); background: var(--color-paper); border-radius: var(--radius-sm); font-size: .73rem; }
.mk-day-foot span { display: inline-flex; align-items: center; gap: .35rem; }
.mk-day-foot strong { color: var(--color-ink); }
.mk-day-foot a { color: var(--color-bronze-deep); font-weight: 700; text-decoration: none; }
.mk-hotel-note { margin: .25rem 0 0; padding: .8rem .9rem .8rem 1.7rem; color: var(--color-ink-soft); background: var(--color-paper); border-left: 3px solid var(--color-gold); border-radius: var(--radius-sm); font-size: .72rem; line-height: 1.55; text-indent: -.8rem; scroll-margin-top: 5rem; }
.mk-hotel-note span { margin-right: .3rem; color: var(--color-bronze-deep); font-weight: 700; }
.mk-hotel-note strong { color: var(--color-ink); }
.mk-day-foot svg { width: .85rem; height: .85rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- attraction collage + lightbox ----------
   Photo grid on phones, mosaic on desktop. Every tile is a button that opens a
   native <dialog>, so Esc, focus trapping and focus return are the platform's job. */
.mk-collage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.mk-tile { position: relative; display: block; overflow: hidden; width: 100%; aspect-ratio: 1; padding: 0; background: var(--color-mist); border: 0; border-radius: var(--radius-md); box-shadow: var(--shadow-subtle); cursor: pointer; }
.mk-tile:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
.mk-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease, ease); }
.mk-tile:hover img, .mk-tile:focus-visible img { transform: scale(1.06); }
.mk-tile:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 2px; }
.mk-tile-label { position: absolute; inset: auto 0 0; display: grid; gap: .15rem; padding: 2.75rem .8rem .7rem; color: #fffefb; text-align: left; background: linear-gradient(to top, rgb(23 22 18 / 88%), rgb(23 22 18 / 45%) 45%, transparent); }
.mk-tile-label small { color: #f4dfa6; font-size: .58rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.mk-tile-label b { font: 600 .95rem/1.15 var(--font-display); text-wrap: balance; }
/* a "+" corner badge so the tiles read as openable rather than decorative */
.mk-tile::after { content: "+"; position: absolute; top: .5rem; right: .5rem; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; color: var(--color-ink); background: rgb(255 254 251 / 92%); border-radius: 50%; font: 700 1rem/1 var(--font-display); }

/* The panel never scrolls. It is a flex column capped at the viewport, and the
   photograph is the only item allowed to shrink - so however long the copy runs,
   the text is shown in full and the image gives up the height instead. */
.mk-sheet { width: min(40rem, calc(100% - 1.5rem)); max-height: 92dvh; padding: 0; overflow: hidden; background: var(--color-cloud); border: 0; border-radius: var(--radius-md); box-shadow: 0 24px 60px rgb(23 22 18 / 35%); }
.mk-sheet::backdrop { background: rgb(23 22 18 / 62%); backdrop-filter: blur(3px); }
.mk-sheet-inner { position: relative; display: flex; flex-direction: column; max-height: 92dvh; }
.mk-sheet img { display: block; flex: 0 1 auto; min-height: 5rem; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.mk-sheet-body { flex: 0 0 auto; padding: 1.1rem; }
.mk-sheet-body h3 { margin: .3rem 0 .5rem; font: 600 clamp(1.25rem, 4vw, 1.6rem)/1.12 var(--font-display); letter-spacing: -.02em; text-wrap: balance; }
.mk-sheet-body p { margin: 0 0 .9rem; color: var(--color-ink-soft); font-size: .82rem; line-height: 1.55; }
.mk-sheet-close { position: absolute; z-index: 2; top: .7rem; right: .7rem; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; color: var(--color-ink); background: rgb(255 254 251 / 92%); border: 0; border-radius: 50%; cursor: pointer; }
.mk-sheet-close svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mk-sheet-close:hover { background: #fffefb; }

.mk-attraction-facts { margin: 0; padding: .6rem 0 0; display: grid; gap: .3rem; border-top: 1px solid var(--color-mist); }
.mk-attraction-facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; font-size: .73rem; }
.mk-attraction-facts dt { color: var(--color-ink-soft); }
.mk-attraction-facts dd { margin: 0; font-weight: 700; text-align: right; }

/* ---------- sticky mobile action bar ---------- */
.mk-stickybar { position: fixed; z-index: 200; inset: auto 0 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: rgb(255 254 251 / 96%); border-top: 1px solid var(--color-mist); box-shadow: 0 -8px 24px rgb(23 22 18 / 10%); backdrop-filter: blur(12px); }
.mk-stickybar .button { min-height: 2.7rem; width: 100%; gap: .4rem; padding-inline: .6rem; font-size: .72rem; }
.mk-stickybar svg { width: .95rem; height: .95rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
body.mk-has-stickybar { padding-bottom: 4.5rem; }

/* ---------- itinerary + sidebar split ----------
   On phones the sidebar collapses into the single column with display:contents so the
   price can sit above the itinerary rather than five days below it. The rest of the
   sidebar follows the itinerary. */
.mk-split { display: grid; gap: 1.25rem; }
.mk-aside { display: contents; }
.mk-split > div { order: 1; }
.mk-aside > * { order: 2; }
.mk-aside > .mk-card--price { order: 0; }

/* ---------- hero ---------- */
.mk-hero { position: relative; display: grid; }
.mk-hero > img { width: 100%; height: clamp(15rem, 46vw, 25rem); object-fit: cover; }
/* the bottom padding is the gap between the tags and the photograph below them -
   without it the pills sit flush against the image edge */
.mk-hero-copy { padding: 1.25rem var(--edge) 1.5rem; }
.mk-hero-copy h1 { margin: .4rem 0 .6rem; font: 600 clamp(1.9rem, 6.5vw, 3rem)/1.02 var(--font-display); letter-spacing: -.035em; }
.mk-hero-copy > p { margin: 0; max-width: 34rem; color: var(--color-ink-soft); font-size: .85rem; line-height: 1.6; }
.mk-hero-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .9rem 0 0; padding: 0; list-style: none; }
.mk-hero-tags li { padding: .25rem .6rem; color: var(--color-bronze-deep); background: var(--color-taupe-soft); border-radius: var(--radius-pill); font-size: .64rem; font-weight: 600; }
/* The luxury badge sits inline with the last word of the title so it never orphans.
   Every size here is absolute, not em: inside an h1 at clamp(1.9rem, 6.5vw, 3rem)
   any relative unit makes the pill as tall as the headline. */
.mk-hero-tag { display: inline-flex; align-items: center; gap: .3rem; margin-left: .6rem; padding: .22rem .6rem .26rem; color: var(--color-bronze-deep); background: var(--color-gold); border-radius: var(--radius-pill); font-family: var(--font-ui); font-size: .62rem; font-weight: 700; line-height: 1.1; letter-spacing: .14em; text-transform: uppercase; vertical-align: middle; white-space: nowrap; }
.mk-hero-tag svg { width: .7rem; height: .7rem; fill: currentColor; stroke: none; }

/* ---------- hotels (luxury package only) ---------- */
.mk-hotels { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.mk-hotel { overflow: hidden; background: var(--color-cloud); border: 1px solid var(--color-mist); border-radius: var(--radius-md); box-shadow: var(--shadow-subtle); }

/* One photograph at a time. The strip is a native scroll-snap carousel, so swiping
   works with no JS at all; packages.js only adds the arrows and the dots on top. */
.mk-hotel-gallery { position: relative; }
.mk-hotel-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.mk-hotel-strip::-webkit-scrollbar { display: none; }
.mk-hotel-strip img { flex: 0 0 100%; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; scroll-snap-align: center; }
.mk-hotel-nav { position: absolute; top: 50%; left: .5rem; z-index: 1; display: none; place-items: center; width: 2rem; height: 2rem; padding: 0; color: var(--color-ink); background: rgb(255 254 251 / 88%); border: 0; border-radius: 50%; box-shadow: 0 2px 8px rgb(23 22 18 / 22%); cursor: pointer; transform: translateY(-50%); }
.mk-hotel-nav--next { right: .5rem; left: auto; }
.mk-hotel-nav svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mk-hotel-nav[hidden] { display: none !important; }
.mk-hotel-gallery.is-live .mk-hotel-nav { display: grid; }
.mk-hotel-dots { position: absolute; bottom: .55rem; left: 0; right: 0; display: flex; justify-content: center; gap: .3rem; }
.mk-hotel-dots button { width: .45rem; height: .45rem; padding: 0; background: rgb(255 254 251 / 55%); border: 0; border-radius: 50%; box-shadow: 0 1px 3px rgb(23 22 18 / 35%); cursor: pointer; }
.mk-hotel-dots button[aria-current="true"] { width: 1.3rem; border-radius: var(--radius-pill); background: var(--color-gold); }

.mk-hotel-body { padding: 1rem 1.1rem 1.1rem; }
.mk-hotel-body h3 { margin: .25rem 0 .45rem; font: 600 clamp(1.2rem, 3.6vw, 1.45rem)/1.14 var(--font-display); letter-spacing: -.02em; }
.mk-hotel-body > p { margin: 0; color: var(--color-ink-soft); font-size: .81rem; line-height: 1.58; }
.mk-hotel-room { display: flex; align-items: center; gap: .4rem; margin: 0 0 .65rem !important; padding: .28rem .6rem; color: var(--color-bronze-deep); background: var(--color-gold-soft); border-radius: var(--radius-pill); font-size: .7rem; font-weight: 700; width: fit-content; }
.mk-hotel-room svg { width: .9rem; height: .9rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mk-hotel-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: .85rem 0 0; padding-top: .75rem; border-top: 1px solid var(--color-mist); }
.mk-hotel-facts dt { color: var(--color-ink-soft); font-size: .6rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.mk-hotel-facts dd { margin: .1rem 0 0; font-size: .79rem; font-weight: 600; }
.mk-hotel-link { display: inline-flex; align-items: baseline; gap: .35rem; margin-top: .9rem; color: var(--color-bronze-deep); font-size: .76rem; font-weight: 700; text-decoration: none; }
.mk-hotel-link small { color: var(--color-ink-soft); font-weight: 400; }
.mk-hotel-link svg { align-self: center; width: .85rem; height: .85rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mk-hotel-link:hover { text-decoration: underline; }

/* ---------- responsive: tablet ---------- */
@media (min-width: 40rem) {
  .mk-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-act { grid-template-columns: 7rem 1fr; }
  .mk-act img { width: 7rem; height: 5.6rem; }
  .mk-act-drive { padding-left: 7.85rem; }
  .mk-card { padding: 1.25rem; }
}

/* ---------- responsive: desktop ---------- */
@media (min-width: 56.25rem) {
  /* stretch so the sticky price card can ride the full height of the itinerary */
  .mk-split { grid-template-columns: minmax(0, 1fr) 20.5rem; gap: 2rem; align-items: stretch; }
  .mk-aside { display: grid; gap: .85rem; align-content: start; height: 100%; }
  .mk-split > div, .mk-aside > * { order: 0; }
  .mk-aside > .mk-card--price { position: sticky; top: 1.25rem; }
  .mk-trust { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  /* 4 x 3 mosaic: feature tile 2x2, then a 2-wide, two 1x1, a 2-wide, two 1x1 */
  .mk-collage { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 10.5rem; gap: .7rem; }
  .mk-tile, .mk-tile:first-child { aspect-ratio: auto; }
  .mk-tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .mk-tile:nth-child(2), .mk-tile:nth-child(5) { grid-column: span 2; }
  .mk-tile:nth-child(1) .mk-tile-label b { font-size: 1.4rem; }
  .mk-tile:nth-child(2) .mk-tile-label b, .mk-tile:nth-child(5) .mk-tile-label b { font-size: 1.1rem; }

  /* Landscape viewport, landscape panel: the copy sets the height and the
     photograph stretches to match, so the whole thing stays well inside the
     window without a scrollbar in either direction. */
  .mk-sheet { width: min(54rem, calc(100% - 3rem)); max-height: 88dvh; }
  /* grid, not flex: the copy column sets the height and the photograph stretches
     to match it, so the panel is only ever as tall as the text needs */
  .mk-sheet-inner { display: grid; grid-template-columns: 5fr 6fr; max-height: 88dvh; }
  .mk-sheet img { align-self: stretch; width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; }
  .mk-sheet-body { align-self: center; min-width: 0; padding: 1.6rem 1.7rem; }
  .mk-sheet-body p { font-size: .86rem; line-height: 1.6; }

  .mk-hero { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding: clamp(1.75rem, 4vw, 2.75rem) var(--edge); }
  .mk-hero > img { order: 2; height: auto; aspect-ratio: 16 / 11; border-radius: var(--radius-md); }
  .mk-hero-copy { padding: 0; }
  /* the sticky bar is a phone pattern only - desktop gets both buttons in the card */
  .mk-stickybar { display: none; }
  body.mk-has-stickybar { padding-bottom: 0; }

  /* carousel left, copy right, alternating so the two cards are not identical */
  .mk-hotel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: stretch; }
  /* the whole chain needs a definite height or the strip sizes to the image and
     leaves the card's stretched cell showing white underneath */
  .mk-hotel-gallery, .mk-hotel-strip { height: 100%; }
  .mk-hotel-strip img { height: 100%; aspect-ratio: auto; min-height: 15rem; }
  .mk-hotel-body { align-self: center; padding: 1.4rem 1.6rem; }
  .mk-hotel:nth-child(even) .mk-hotel-gallery { order: 2; }

}

@media (prefers-reduced-motion: reduce) {
  .mk-tile img { transition: none; }
}

/* The downloadable itinerary is its own document (see _build_itinerary_doc.py), so
   this page has no print stylesheet. If someone prints the page anyway, at least
   drop the review chrome. */
@media print {
  .mk-stickybar { display: none; }
}
