/* The chosen photograph fills its section, including the heading and controls. */
.destination-world {
  --inset: clamp(20px, 5.5vw, 104px);
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(5rem, 25vh, 17rem);
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(32px, 5.5vh, 72px) var(--inset) max(156px, calc(64px + 11svh));
  scroll-margin-top: 76px;
  color: #fffaf0;
  background: #153731;
}
.destination-world [hidden] { display: none; }
#destination-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  margin: 0;
}
.destination-photo, .destination-world::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.destination-photo {
  z-index: -2;
  display: block;
  object-fit: cover;
  object-position: var(--photo-focus, center);
}
.destination-world::before {
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, rgb(5 19 21 / 78%), transparent 32%),
              linear-gradient(0deg, rgb(5 19 21 / 93%), rgb(5 19 21 / 52%) 26%, transparent 58%);
}
.destination-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}
.home-page .destination-heading h2 {
  margin: 0;
  color: #fffaf0;
  font-size: clamp(2.15rem, 3.7vw, 4.3rem);
  line-height: 1.05;
  text-wrap: balance;
  text-shadow: 0 2px 12px #061a26a6;
}
.home-page .destination-heading h2 em { color: #ffdc8b; }
.destination-selector {
  flex: 0 1 18rem;
  display: grid;
  gap: 6px;
  min-width: 0;
  color: white;
  font: 600 .82rem/1.4 var(--font-ui, sans-serif);
  text-shadow: 0 1px 5px #071923;
}
.destination-selector select {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #fff7d7a6;
  border-radius: 4px;
  background: #102420df;
  color: white;
  font: 500 1rem/1.35 var(--font-ui, sans-serif);
  cursor: pointer;
}
.destination-selector option { background: #fffaf0; color: #152b28; }
.destination-content { width: 100%; }
.destination-scene, .destination-scene figcaption { margin: 0; }
.destination-identity {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.1vw, 17px);
  margin-bottom: .65rem;
}
.destination-flag-mount {
  display: grid;
  align-items: center;
  flex: none;
  border-inline-start: 2px solid #edc474;
  padding: 3px 0 3px 4px;
  filter: drop-shadow(0 2px 5px #061a26a6);
}
.destination-flag-mount:has([hidden]) { visibility: hidden; }
#destination-flag {
  display: block;
  width: clamp(50px, 5vw, 80px);
  height: auto;
  outline: 1px solid rgb(255 249 228 / 53%);
}
#destination-flag[hidden] { display: none; }
#destination-region {
  display: block;
  color: #ffe4a5;
  font: 600 .75rem/1.35 var(--font-ui, sans-serif);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px #051819, 0 2px 10px #071b1b;
}
.home-page #destination-name {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(3.6rem, 7.7vw, 8.5rem);
  line-height: 1;
  letter-spacing: -.025em;
  color: #fffaf0;
  text-wrap: balance;
  overflow-wrap: break-word;
  text-shadow: 0 3px 20px #041a2196;
}
.home-page #destination-tagline {
  margin: .5rem 0 1.25rem;
  max-width: 36ch;
  color: #fff9ec;
  font-size: clamp(1.2rem, 1.8vw, 1.8rem);
  line-height: 1.2;
  text-shadow: 0 1px 6px #081a20;
}
.destination-actions { display: flex; flex-wrap: wrap; align-items: start; gap: .25rem 1.35rem; }
.destination-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 3px;
  background: #f5ce77;
  color: #102923;
  font: 600 .94rem/1.35 var(--font-ui, sans-serif);
  text-decoration: none;
}
.destination-cta:hover { background: #ffe3a2; }
.destination-guide { max-width: 34rem; min-width: 0; }
.destination-guide summary {
  width: fit-content;
  padding: .75rem 0;
  color: #fffaf0;
  font: 600 .92rem/1.5 var(--font-ui, sans-serif);
  text-decoration: underline;
  text-underline-offset: .22em;
  cursor: pointer;
}
.destination-guide[open] {
  padding: 0 1rem 1rem;
  border-radius: 4px;
  background: #0d2523ef;
}
#destination-description { margin: 0 0 .55rem; color: #fff9ed; }
.destination-cues {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  margin: 0 0 .6rem;
  padding: 0;
  list-style: none;
  font-size: .83rem;
  color: #ffde98;
}
#destination-source, .destination-attribution a { color: inherit; text-decoration: underline; text-underline-offset: .18em; }
#destination-source { font-size: .82rem; }
.destination-attribution {
  max-width: 70ch;
  margin: 1.1rem 0 0;
  color: #fff7e7;
  font: .73rem/1.5 var(--font-ui, sans-serif);
  overflow-wrap: anywhere;
}
.destination-world :focus-visible { outline: 3px solid #63dfff; outline-offset: 4px; }
@media (max-width: 700px) {
  .destination-world {
    gap: clamp(4rem, 12svh, 8rem);
    padding-bottom: max(186px, calc(166px + env(safe-area-inset-bottom)));
    scroll-margin-top: 0;
  }
  .destination-heading { flex-direction: column; gap: .95rem; }
  .destination-selector { flex: none; width: min(100%, 17rem); }
  .home-page #destination-name { font-size: clamp(2.85rem, 11vw, 4.8rem); }
  .destination-actions { column-gap: 1rem; }
  .destination-guide[open] { width: 100%; }
  .destination-attribution { max-width: calc(100% - 65px); }
}
/* Keep the landmark in frame when a wide photograph fills a tall screen. */
@media (orientation: portrait) {
  .destination-content[data-market="Guyana"] { --photo-focus: 40% center; }
  .destination-content[data-market="Dominica"] { --photo-focus: 8% center; }
  .destination-content[data-market="Colombia"] { --photo-focus: 19% center; }
  .destination-content[data-market="Barbados"] { --photo-focus: 71% center; }
  .destination-content[data-market="Cuba"] { --photo-focus: 61% center; }
  .destination-content[data-market="Jamaica"] { --photo-focus: 73% center; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .destination-world { gap: 2.5rem; padding-block: 1.35rem; }
  .destination-heading { flex-direction: row; }
  .destination-selector { flex: 0 1 15rem; }
  .home-page #destination-name { max-width: none; font-size: clamp(2.6rem, 5vw, 3.6rem); }
}

