/* ==========================================================================
   WILD & NATURE SAFARIS — destinations.css
   Destinations landing page + destination detail pages
   Built exclusively on the project's existing design tokens and components.
   --------------------------------------------------------------------------
   TABLE OF CONTENTS
   01. Shared — nav state, breadcrumb, prose & facts
   02. Destinations landing — intro hero & collection head
   03. Destinations landing — destination cards & closing CTA
   04. Detail — wildlife & natural highlights
   05. Detail — best time to visit
   06. Detail — safari experiences
   07. Detail — travel information
   08. Responsive
   ========================================================================== */

/* ==========================================================================
   01. SHARED — NAV STATE, BREADCRUMB, PROSE & FACTS
   ========================================================================== */
.nav__link[aria-current="page"] {
  opacity: 1;
  color: var(--sand);
}

.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(245, 242, 234, 0.72);
}

.breadcrumb a {
  color: inherit;
  transition: color 0.35s var(--ease);
}

.breadcrumb a:hover { color: var(--sand-soft); }

.breadcrumb__sep { opacity: 0.5; }

.breadcrumb [aria-current="page"] { color: var(--sand-soft); }

/* overview paragraphs */
.dprose {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.65rem;
}

.dprose .section__lead {
  margin-top: 0;
  margin-bottom: 0;
}

/* key-facts strip */
.d-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.65rem 2.25rem;
  margin-top: 2.85rem;
  padding-top: 1.95rem;
  border-top: 1px solid var(--line);
}

.d-facts__item dt {
  margin-bottom: 0.6rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(37, 41, 35, 0.55);
}

.d-facts__item dd {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.45;
  color: var(--charcoal);
}

/* ==========================================================================
   02. DESTINATIONS LANDING — INTRO HERO & COLLECTION HEAD
   ========================================================================== */

/* full-height cinematic introduction hero */
.dest-hero .page-hero__lead { max-width: 58ch; }

/* full-height hero, neutral (no green cast) */
.dest-hero {
  min-height: 100vh;
  min-height: 100svh;
  background: #121212;
}

.dest-hero .page-hero__veil {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.15) 42%, rgba(0, 0, 0, 0.72) 100%);
}

.dest-hero--full {
  min-height: 100vh;
  min-height: 100svh;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + clamp(3.5rem, 10vh, 7.5rem));
  padding-bottom: clamp(5.75rem, 11vh, 8.5rem);
}

.dest-hero--full .page-hero__bg {
  transform: scale(1.02);
  transform-origin: 50% 42%;
  animation: dest-hero-zoom 26s var(--ease-out) forwards;
}

@keyframes dest-hero-zoom {
  from { transform: scale(1.02); }
  to   { transform: scale(1.13); }
}

.dest-hero--full .page-hero__veil {
  background:
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.10) 30%,
      rgba(0, 0, 0, 0.22) 58%,
              rgba(0, 0, 0, 0.85) 100%),
    radial-gradient(130% 95% at 50% 38%,
      rgba(0, 0, 0, 0) 42%,
      rgba(0, 0, 0, 0.45) 100%);
}

.dest-hero--full .page-hero__title {
  font-size: clamp(2.85rem, 6.4vw, 5.5rem);
  letter-spacing: -0.02em;
}

.dest-hero--full .page-hero__lead {
  margin-top: 1.75rem;
  max-width: 54ch;
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  line-height: 1.88;
  color: rgba(245, 242, 234, 0.86);
}

/* editorial collection head */
.dest-collection {
  background: var(--ivory-deep);
  border-top: 1px solid var(--line-soft);
}

.dest-collection .section__title {
  font-size: clamp(2.4rem, 4.2vw, 3.65rem);
}

.dcol-head {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2.25rem, 5vw, 5.5rem);
  align-items: end;
  margin-bottom: clamp(2.75rem, 5vw, 4.5rem);
  padding-top: clamp(1.85rem, 3vw, 2.65rem);
  border-top: 1px solid var(--line);
}

.dcol-head__title .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
}

.dcol-head__title .eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--sand);
}

.dcol-head__lead {
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 1.4vw, 1.3rem);
  line-height: 1.78;
  color: var(--text);
}

.dcol-head__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.15rem;
  padding-top: 1.65rem;
  border-top: 1px solid var(--line);
}

.dcol-stat__num {
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.95rem, 2.7vw, 2.55rem);
  line-height: 1;
  color: var(--sand);
}

.dcol-stat__label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(37, 41, 35, 0.55);
}

/* ==========================================================================
   03. DESTINATIONS LANDING — DESTINATION CARDS & CLOSING CTA
   ========================================================================== */
.dgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 2.6vw, 2.35rem);
}

/* --- card shell --- */
.dcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ivory);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.6s var(--ease-out),
              border-color 0.55s var(--ease);
}

.dcard:hover {
  transform: translateY(-5px);
  border-color: rgba(197, 167, 125, 0.65);
}

.dcard__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
}

.dcard__media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ivory-deep);
}

.dcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.15s var(--ease-out);
}

.dcard:hover .dcard__media img { transform: scale(1.1); }

/* --- card body --- */
.dcard__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.55rem 1.65rem 1.8rem;
}

.dcard__place {
  margin-bottom: 0.95rem;
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(37, 41, 35, 0.55);
}

.dcard__title {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.45rem, 1.9vw, 1.72rem);
  line-height: 1.22;
  color: var(--charcoal);
  transition: color 0.45s var(--ease);
}

.dcard:hover .dcard__title { color: var(--sand); }

.dcard__text {
  margin-bottom: 1.35rem;
  font-size: 0.925rem;
  line-height: 1.78;
  color: var(--text);
  opacity: 0.88;
}

.dcard__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sand);
  transition: color 0.4s var(--ease);
}

.dcard__cta svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  transition: transform 0.55s var(--ease-out);
}

.dcard:hover .dcard__cta { color: var(--sand-soft); }

.dcard:hover .dcard__cta svg { transform: translateX(5px); }

/* --- closing call to action --- */
.jcta {
  position: relative;
  padding-block: clamp(5.5rem, 10vw, 9rem);
  background: var(--forest-deep);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.jcta__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.jcta__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
              rgba(11, 18, 14, 0.68) 0%,
              rgba(11, 18, 14, 0.55) 45%,
              rgba(11, 18, 14, 0.76) 100%);
}

.jcta__content {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  margin-inline: auto;
}

.jcta__content .section__lead {
  margin-inline: auto;
}

.jcta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* ==========================================================================
   04. DETAIL — WILDLIFE & NATURAL HIGHLIGHTS (dark band)
   ========================================================================== */
.dwild {
  background: transparent;
  color: var(--text);
}

.dwild__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2.5rem, 5.5vw, 6rem);
  align-items: start;
}

.dwild__media {
  position: sticky;
  top: calc(var(--header-h) + 2.5rem);
  overflow: hidden;
}

.dwild__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1.15s var(--ease-out);
}

.dwild__media:hover img { transform: scale(1.04); }

.dwild__list {
  border-top: 1px solid var(--line);
}

.dwild__item {
  padding-block: clamp(1.55rem, 2.6vw, 2.15rem);
  border-bottom: 1px solid var(--line);
}

.dwild__title {
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 1.8vw, 1.68rem);
  line-height: 1.25;
  color: var(--charcoal);
  transition: color 0.45s var(--ease);
}

.dwild__item:hover .dwild__title { color: var(--sand); }

.dwild__text {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text);
  opacity: 0.88;
}

/* ==========================================================================
   05. DETAIL — BEST TIME TO VISIT
   ========================================================================== */
.dseasons {
  background: var(--ivory-deep);
  border-top: 1px solid var(--line-soft);
}

.dseasons__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.75rem, 3vw, 2.85rem);
}

.dseason {
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  transition: border-color 0.5s var(--ease);
}

.dseason:hover { border-top-color: var(--sand); }

.dseason__months {
  margin-bottom: 0.85rem;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sand);
}

.dseason__name {
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  line-height: 1.22;
  color: var(--charcoal);
}

.dseason__text {
  font-size: 0.93rem;
  line-height: 1.82;
  color: var(--text);
  opacity: 0.88;
}

/* ==========================================================================
   06. DETAIL — SAFARI EXPERIENCES
   ========================================================================== */
.dexp__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4.5vw, 5rem);
  align-items: start;
}

/* ==========================================================================
   07. DETAIL — TRAVEL INFORMATION
   ========================================================================== */
.dinfo__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.75rem, 3vw, 2.85rem);
}

.dinfo__item {
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  transition: border-color 0.5s var(--ease);
}

.dinfo__item:hover { border-top-color: var(--sand); }

.dinfo__label {
  margin-bottom: 1.05rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sand);
}

.dinfo__text {
  font-size: 0.93rem;
  line-height: 1.85;
  color: var(--text);
}

/* ==========================================================================
   08. RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {

  .dseasons__row,
  .dinfo__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.75rem, 3vw, 2.5rem) clamp(1.75rem, 3vw, 2.85rem);
  }
}

@media (max-width: 1024px) {

  .dgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.35rem, 2.6vw, 2rem);
  }

  .dwild__grid {
    grid-template-columns: 1fr;
    gap: clamp(2.25rem, 5vw, 3.5rem);
  }

  .dwild__media {
    position: relative;
    top: auto;
  }

  .dwild__media img { aspect-ratio: 16 / 10; }
}

@media (max-width: 860px) {

  .dcol-head {
    grid-template-columns: 1fr;
    gap: 1.85rem;
    align-items: start;
  }

  .dcol-head__stats { margin-top: 1.85rem; }

  .dest-hero--full {
    padding-top: calc(var(--header-h) + clamp(3rem, 8vh, 5.5rem));
    padding-bottom: clamp(5.25rem, 10vh, 7rem);
  }

  .dest-hero--full .page-hero__title {
    font-size: clamp(2.5rem, 8vw, 3.65rem);
  }

  .dexp__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .dexp__grid .values + .values {
    border-top: 0;
    margin-top: -1px;
  }

  .dprose .section__lead { font-size: 1.02rem; }

  .dcard__body {
    padding: 1.45rem 1.45rem 1.65rem;
  }

  .dcard__title { font-size: 1.55rem; }

  .dcard__text {
    font-size: 0.92rem;
    line-height: 1.72;
  }
}

@media (max-width: 640px) {

  .dgrid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .dcard__media { aspect-ratio: 3 / 2; }

  .d-facts {
    gap: 1.35rem 1.5rem;
  }

  .dseasons__row,
  .dinfo__grid {
    grid-template-columns: 1fr;
    gap: 1.65rem;
  }

  .dseason,
  .dinfo__item { padding-top: 1.45rem; }

  .jcta__actions .btn { width: 100%; }
}

@media (max-width: 420px) {

  .breadcrumb {
    gap: 0.55rem;
    font-size: 0.62rem;
    letter-spacing: 0.22em;
  }

  .dcol-head__stats {
    gap: 1rem;
  }

  .dcol-stat__num { font-size: 1.75rem; }

  .dcol-stat__label {
    font-size: 0.56rem;
    letter-spacing: 0.18em;
  }

  .dcard__text {
    font-size: 0.885rem;
    line-height: 1.68;
  }

  .dcard__cta svg {
    width: 30px;
    height: 30px;
  }

  .d-facts {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  .dest-hero--full .page-hero__bg {
    animation: none;
    transform: scale(1.02);
  }

  .dcard,
  .dcard__media img,
  .dcard__cta svg,
  .dwild__media img {
    transition: none;
  }

  .dcard:hover { transform: none; }

  .dcard:hover .dcard__media img,
  .dwild__media:hover img { transform: none; }
}
