/* Shared destination page layout (from the Masai Mara / Tanzania / Gulf references).
   The illustration sits in the centre, cards hug the edges and overlap it.
   Colours come from the destination theme in themes.css. */

:root { --rail: 88px; }

body {
  background:
    radial-gradient(1200px 700px at 55% 30%, rgba(255, 253, 249, .7) 0%, transparent 70%),
    var(--bg);
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--primary); color: var(--on-primary);
  padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700;
}
.skip:focus { top: 16px; }

/* ---------- rail ---------- */
.rail {
  position: fixed; inset: 0 auto 0 0; z-index: 40;
  width: var(--rail);
  display: flex; flex-direction: column; align-items: center; gap: var(--s-4);
  padding: var(--s-6) 0;
}
.rail::after {
  content: ""; position: absolute; right: 0; top: 104px; bottom: 24px;
  width: 1px; background: linear-gradient(transparent, var(--border) 10%, var(--border) 90%, transparent);
}
.rail__logo {
  width: 64px; height: 64px; margin-bottom: var(--s-6);
  display: grid; place-items: center;
  background: var(--surface-raised); color: var(--on-primary);
  border-radius: var(--r-md); box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.25);
}
.rail__logo .i { font-size: 28px; }
.rail__logo .lg { --lg-h: 40px; }
.rail__item {
  position: relative;
  width: 70px; height: 64px;
  display: grid; place-items: center; align-content: center; gap: 4px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm), var(--highlight);
  color: var(--ink-muted);
  font-size: 11px; font-weight: 700; letter-spacing: -0.01em;
  transition: color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.rail__item .i { font-size: 24px; }
.rail__item:hover { color: var(--ink); transform: translateY(-1px); }
.rail__item[aria-current="true"] { color: var(--primary-deep); background: var(--surface-raised); box-shadow: var(--shadow-md), var(--highlight); }
.rail__item--end { margin-top: auto; }
.rail__badge {
  position: absolute; top: 6px; right: 8px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--r-full); background: var(--primary-deep); color: var(--on-primary);
  font-size: 11px; line-height: 18px; text-align: center;
}

main, .footer { padding-left: var(--rail); }

/* ---------- stage (hero) ---------- */
.stage {
  position: relative;
  max-width: 1360px; margin-inline: auto;
  padding: var(--s-8) var(--gutter) 0;
  height: 1010px;
}
.stage > * { position: absolute; }
.stage__greet { top: var(--s-8); left: var(--gutter); width: min(52%, 660px); display: grid; gap: var(--s-2); }
.stage__art {
  left: 50%; top: 150px; transform: translateX(-50%);
  width: min(1000px, 76%); height: auto;
  pointer-events: none; user-select: none;
}
/* The destination illustration comes in two kinds:
   cutout: an island on a transparent background that floats above the page;
   scene:  a full scene with sky whose edges fade into the page background. */
.stage__art--cutout { width: min(1060px, 80%); top: 210px; filter: drop-shadow(0 28px 34px rgba(74, 52, 24, .22)); }
.stage__art--scene {
  width: min(560px, 42%); top: 150px;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(74, 52, 24, .06);
}
.stage__ticket { top: 196px; left: var(--gutter); width: 452px; z-index: 2; }
.stage__weather { top: var(--s-8); right: var(--gutter); width: 340px; z-index: 2; }
.stage__map { top: 268px; right: var(--gutter); width: 360px; z-index: 2; }
.stage__tip { bottom: 70px; left: var(--gutter); width: 300px; z-index: 2; }
.stage__list { bottom: 10px; right: var(--gutter); width: 360px; z-index: 2; }

.stage__ticket .ticket__buy { padding-top: var(--s-3); }

/* one choreography on load: the diorama first, then the cards "land" on it */
@media (prefers-reduced-motion: no-preference) {
  .stage__art { animation: art-in 900ms var(--ease) both; }
  .stage__ticket, .stage__weather, .stage__map, .stage__tip, .stage__list { animation: land 700ms var(--ease) both; }
  .stage__weather { animation-delay: 260ms; }
  .stage__ticket { animation-delay: 320ms; }
  .stage__map { animation-delay: 380ms; }
  .stage__tip { animation-delay: 440ms; }
  .stage__list { animation-delay: 500ms; }
}
@keyframes art-in { from { opacity: 0; transform: translateX(-50%) translateY(24px) scale(.97); } }
@keyframes land { from { opacity: 0; transform: translateY(14px); } }

/* ---------- climate card ---------- */
.climate {
  color: var(--on-primary);
  padding: var(--s-5) var(--s-6);
}
.climate__now { display: flex; align-items: center; gap: var(--s-4); }
.climate__now .wx { margin: -10px -4px -10px -8px; }
.climate__now:has(.clock:not([hidden])) { gap: var(--s-3); }
.climate__now:has(.clock:not([hidden])) .t-stat { font-size: 32px; }
.climate__now:has(.clock:not([hidden])) .climate__label {
  font-size: 13px; line-height: 1.25;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.climate__now:has(.clock:not([hidden])) .wx { --wx-size: 56px; margin: -8px -6px -8px -6px; }
.climate__label { opacity: .85; margin-top: 4px; line-height: 1.3; }
.climate__now > div { min-width: 0; }
.climate .clock { padding-right: var(--s-3); margin-right: 0; }
.climate .clock b { font-size: 24px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.climate .clock span { font-size: 11px; opacity: .85; }
.climate__months {
  display: grid; grid-template-columns: repeat(5, 1fr);
  margin: var(--s-5) 0 0; padding: var(--s-4) 0 0; list-style: none;
  border-top: 1px solid var(--climate-line);
}
.climate__months li { display: grid; justify-items: center; gap: 4px; font-size: 12px; }
.climate__months span { opacity: .8; }
.climate__months .wx { --wx-size: 40px; }
.climate__months b { font-size: 14px; }

/* ---------- map card ---------- */
.mapcard { padding: var(--s-4); }
.mapcard__head { display: flex; justify-content: space-between; align-items: center; padding: 0 0 var(--s-3) var(--s-1); }
.mapcard__head .icon-btn { margin: -8px -6px -8px 0; }
.mapcard__link { display: inline-flex; align-items: center; gap: 4px; }
.mapcard__map {
  position: relative; aspect-ratio: 16 / 11;
  background: var(--map-bg); border-radius: var(--r-md); overflow: hidden;
}
.mapcard__map > svg, .mapcard__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.mapcard__img { object-fit: cover; }
.mapcard__map:has(.mapcard__img) text { paint-order: stroke; stroke: rgba(255, 253, 249, .75); stroke-width: 3px; stroke-linejoin: round; }
.mapcard__map text { font-family: var(--font-sans); font-size: 11px; font-weight: 800; letter-spacing: 1.5px; fill: var(--map-ink); }
.pin {
  position: absolute; transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-raised); color: var(--primary-deep);
  box-shadow: var(--shadow-md);
  transition: transform var(--t-fast) var(--ease);
}
.pin .i { font-size: 18px; }
.pin:hover, .pin:focus-visible { transform: translate(-50%, -50%) scale(1.1); z-index: 2; }
.pin--home { background: var(--pin); color: #fff; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: translate(-50%, -100%) rotate(-45deg); }
.pin--home .i { transform: rotate(45deg); font-size: 14px; }
.pin--home:hover, .pin--home:focus-visible { transform: translate(-50%, -100%) rotate(-45deg) scale(1.1); }
/* pin name: one tooltip per map, region.js places it over the pin and keeps it inside the map */
.map-tip {
  position: absolute; left: 0; top: 0; z-index: 3;
  white-space: nowrap; pointer-events: none;
  background: var(--ink); color: var(--surface);
  font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 8px;
  opacity: 0; transition: opacity var(--t-fast) var(--ease);
}
.map-tip.is-on { opacity: 1; }
.mapcard__go { position: absolute; left: 12px; bottom: 12px; background: var(--mapbtn-bg); color: var(--mapbtn-ink); }

/* ---------- tip card ---------- */
.tip {
  background: var(--tint);
  padding: var(--s-5);
  display: grid; grid-template-columns: 1fr 76px; gap: var(--s-3); align-items: end;
}
.tip__title { font-weight: 800; }
.tip__when { font-size: 15px; font-weight: 800; color: var(--gold); margin: 4px 0 6px; }
.tip__art {
  width: 76px; height: 76px; border-radius: var(--r-sm); overflow: hidden;
  background: linear-gradient(170deg, var(--stub-from), var(--stub-to));
}
.tip__art svg { width: 100%; height: 100%; }

/* ---------- list card ---------- */
.list { padding: var(--s-5); }
.list__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--s-3); }
.list__items { display: grid; gap: var(--s-2); }
.row { display: grid; grid-template-columns: 52px 1fr auto; gap: var(--s-3); align-items: center; }
.row__title { font-size: 14px; font-weight: 700; line-height: 1.3; }
.row__meta { font-size: 12px; color: var(--ink-muted); }

.thumb {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--thumb-from), var(--thumb-to));
  color: var(--primary-deep);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 0 0 1px rgba(74,52,24,.06);
}
.thumb .i { font-size: 26px; }
.thumb { position: relative; overflow: hidden; }
.thumb__photo, .tip__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tip__art { position: relative; }
.thumb[data-tone="night"] { background: linear-gradient(160deg, #4A5366, #262C38); color: #F6E7CF; }
.thumb[data-tone="sea"] { background: linear-gradient(160deg, #BFE3E4, #6FB3B8); color: #154E52; }

/* ---------- sections ---------- */
.section--tint { background: linear-gradient(180deg, transparent, var(--bg-deep) 18%, var(--bg-deep) 82%, transparent); }

.ticket.is-flash { animation: flash 1.4s var(--ease); }
@keyframes flash { 0%, 100% { box-shadow: var(--shadow-md), var(--highlight); } 30% { box-shadow: 0 0 0 4px var(--primary), var(--shadow-lg); } }

/* extras */
.extras { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.extra {
  display: grid; grid-template-columns: 72px 1fr auto; gap: var(--s-4); align-items: center;
  padding: var(--s-4); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm), var(--highlight);
}
.extra .thumb { width: 72px; height: 72px; border-radius: var(--r-md); }
.extra .thumb .i { font-size: 34px; }
.extra__price { font-size: 13px; font-weight: 800; margin-top: 4px; }
.extra .btn { padding: 0 var(--s-4); }

/* route */
.route { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--s-12); align-items: start; }
.route__plan { display: grid; gap: var(--s-8); }
.route__side { display: grid; gap: var(--s-6); }

.day { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: var(--s-5); padding-bottom: var(--s-8); }
.day::before {
  content: ""; position: absolute; left: 23px; top: 52px; bottom: 4px;
  border-left: 2px dashed var(--border);
}
.day:last-child { padding-bottom: 0; }
.day:last-child::before { display: none; }
.day__num {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-raised); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm), var(--highlight);
  font-size: 18px; font-weight: 800; color: var(--primary-deep);
}
.day > div { display: grid; gap: 6px; padding-top: 10px; }

.season, .included { padding: var(--s-6); display: grid; gap: var(--s-4); }
.season__bar { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; padding: 0; margin: 0; list-style: none; }
.season__bar li {
  height: 56px; border-radius: 8px;
  display: grid; align-items: end; justify-items: center; padding-bottom: 6px;
  font-size: 11px; font-weight: 700;
  background: var(--c); color: var(--t);
}
[data-s="best"] { --c: var(--primary); --t: var(--on-primary); }
[data-s="good"] { --c: var(--season-good); --t: #2A251F; }
[data-s="ok"]   { --c: var(--season-ok); --t: #4E4434; }
[data-s="low"]  { --c: var(--season-low); --t: #4E4434; }
.season__legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px var(--s-4); font-size: 12px; color: var(--ink-muted); }
.season__legend li { display: flex; gap: 8px; align-items: center; }
.season__legend li::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--c); flex: none; }

.included__list { display: grid; gap: 10px; font-size: 14px; }
.included__list li { display: flex; gap: 10px; align-items: start; }
.included__list .i { color: var(--primary); margin-top: 3px; }

/* cta */
.cta {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center;
  background: var(--primary); color: var(--on-primary);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.2);
  min-height: 380px;
}
.cta__text { padding: var(--s-12); display: grid; gap: var(--s-4); position: relative; z-index: 1; }
.cta__text .t-body { opacity: .92; max-width: 460px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); align-items: center; margin-top: var(--s-2); }
.btn--light { background: var(--surface-raised); color: var(--primary-deep); box-shadow: var(--shadow-md); }
.btn--light:hover { background: #fff; }
.cta__contact { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 700; opacity: .92; }
.cta__contact:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.cta__art { width: 125%; max-width: none; margin: -40px -18% -120px 0; justify-self: end; }
.cta__art--cutout {
  width: calc(100% - var(--s-12)); max-width: 620px; height: auto;
  margin: var(--s-8) var(--s-12) var(--s-8) 0;
  justify-self: center; align-self: center;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .25));
}
.cta__art--scene {
  position: absolute; top: 0; right: 0; width: 52%; height: 100%; margin: 0;
  object-fit: cover; object-position: 50% 62%;
}


/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .stage { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); padding-bottom: var(--s-8); }
  .stage > * { position: relative; width: auto; inset: auto; }
  .stage__greet { grid-column: 1 / -1; max-width: 620px; }
  .stage__art { grid-column: 1 / -1; transform: none; width: min(860px, 100%); justify-self: center; margin: -20px 0 -120px; }
  .stage__art--scene { width: min(520px, 100%); margin: 0; }
  .stage__art--cutout { margin: 0 0 var(--s-2); }
  .stage__ticket { grid-column: 1 / -1; max-width: 560px; justify-self: center; width: 100%; }
  @keyframes art-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
}

@media (max-width: 900px) {
  :root { --rail: 0px; }
  .rail { display: none; }
  body { padding-bottom: 96px; }
  .route { grid-template-columns: 1fr; gap: var(--s-12); }
  .cta { grid-template-columns: 1fr; }
  .cta__text { padding: var(--s-8) var(--s-6) 0; }
  .cta__art { width: 110%; margin: 0 -5% -60px; justify-self: center; }
  .cta__art--cutout { width: calc(100% - var(--s-8)); max-width: 560px; margin: var(--s-6) auto var(--s-8); }
  .cta__art--scene {
    position: static; width: 100%; height: 300px; margin-top: var(--s-6);
  }

}

@media (max-width: 720px) {
  .stage { grid-template-columns: 1fr; padding-top: var(--s-6); }
  .stage__art { margin: -10px 0 -70px; width: 112%; }
  .stage__art--scene { width: 100%; margin: 0; border-radius: var(--r-lg); }
  .stage__art--cutout { width: 100%; margin: var(--s-2) 0 var(--s-4); }
  .stage__ticket { max-width: none; }
  .season__bar { gap: 3px; }
  .season__bar li { height: 44px; font-size: 11px; letter-spacing: -0.02em; }
  .season__legend { grid-template-columns: 1fr; }
  .extra { grid-template-columns: 56px 1fr; }
  .extra .thumb { width: 56px; height: 56px; }
  .extra .thumb .i { font-size: 28px; }
  .extra .btn { grid-column: 1 / -1; }
}

/* language switcher: in the side panel on a computer, in the stage corner on a phone */
.rail__lang { margin-top: auto; }
.rail__lang .lang__btn { width: 70px; height: 44px; justify-content: center; padding: 0; border-radius: var(--r-md); }
.rail__lang .lang__menu { top: auto; bottom: 0; right: auto; left: calc(100% + 10px); }
.stage__lang { display: none; }
@media (max-width: 900px) {
  .stage > .stage__lang { display: block; position: absolute; z-index: 5; top: var(--s-6); right: var(--gutter); }
  .stage__greet { padding-right: 76px; }
}
