/* ==========================================================================
   The Untold Gold African Safaris: components
   ========================================================================== */

/* --------------------------------------------------------------------------
   Brand lockup
   -------------------------------------------------------------------------- */

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  line-height: 1;
}

.brand__mark {
  width: 40px;
  height: 40px;
  flex: none;
}

.brand__text {
  display: flex;
  flex: none;
  min-width: max-content;
  flex-direction: column;
  gap: 3px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand__name em {
  font-style: italic;
  color: var(--color-gold);
}

.brand__tag {
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.72;
}

.brand--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.brand--stack .brand__mark {
  width: 58px;
  height: 58px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--color-gold);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: var(--touch);
  padding: 0.82rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  font-size: 0.74rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease),
    transform var(--ease), box-shadow var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.btn--gold {
  --btn-bg: var(--color-gold);
  --btn-fg: #fff;
}

.btn--gold:hover {
  --btn-bg: var(--color-gold-deep);
}

.btn--ink {
  --btn-bg: var(--color-ink);
  --btn-fg: var(--color-cream);
}

.btn--ink:hover {
  --btn-bg: var(--color-ink-soft);
}

.btn--cream {
  --btn-bg: var(--color-cream);
  --btn-fg: var(--color-ink);
}

.btn--cream:hover {
  --btn-bg: #fff;
}

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--color-ink);
  border-color: rgba(23, 19, 14, 0.28);
}

.btn--outline:hover {
  --btn-bg: var(--color-ink);
  --btn-fg: var(--color-cream);
  border-color: var(--color-ink);
}

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: var(--color-cream);
  border-color: rgba(252, 248, 241, 0.45);
}

.btn--outline-light:hover {
  --btn-bg: var(--color-cream);
  --btn-fg: var(--color-ink);
}

.btn--whatsapp {
  --btn-bg: #1f7a4d;
  --btn-fg: #fff;
}

.btn--whatsapp:hover {
  --btn-bg: #186640;
}

.btn--block {
  width: 100%;
}

.btn--sm {
  min-height: 38px;
  padding: 0.55rem 1rem;
  font-size: 0.66rem;
}

.btn--lg {
  min-height: 54px;
  padding: 1rem 2rem;
  font-size: 0.78rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-deep);
  border-bottom: 1px solid rgba(190, 138, 49, 0.35);
  padding-bottom: 4px;
  transition: gap var(--ease), border-color var(--ease);
}

.link-arrow::after {
  content: "→";
  transition: transform var(--ease);
}

.link-arrow:hover {
  border-color: var(--color-gold);
  gap: 0.75rem;
}

.link-arrow:hover::after {
  transform: translateX(2px);
}

.link-arrow--light {
  color: var(--color-gold-light);
  border-color: rgba(226, 185, 104, 0.4);
}

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  padding-block: 1.15rem;
  transition: background-color var(--ease), padding var(--ease), box-shadow var(--ease);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.header .brand {
  color: var(--color-cream);
  transition: color var(--ease);
}

.header.is-solid {
  background: rgba(252, 248, 241, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(23, 19, 14, 0.08), 0 10px 40px rgba(23, 19, 14, 0.06);
  padding-block: 0.7rem;
}

.header.is-solid .brand {
  color: var(--color-ink);
}

.nav {
  display: none;
  align-items: center;
  gap: var(--space-5);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.9rem);
}

.nav__link {
  position: relative;
  font-size: 0.78rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-cream);
  padding-block: 6px;
  transition: color var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--color-gold);
  transition: width var(--ease);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  width: 100%;
}

.header.is-solid .nav__link {
  color: var(--color-ink);
}

.header.is-solid .nav__link:hover,
.header.is-solid .nav__link[aria-current="page"] {
  color: var(--color-gold-deep);
}

.nav__cta {
  display: none;
}

.header__phone {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--color-cream);
}

.header.is-solid .header__phone {
  color: var(--color-ink-soft);
}

.header .lang,
.header .currency {
  color: var(--color-cream);
}

.header.is-solid .lang,
.header.is-solid .currency {
  color: var(--color-ink);
}

.header__phone svg {
  width: 15px;
  height: 15px;
  color: var(--color-gold);
}

.nav__link,
.nav__cta,
.header__phone {
  white-space: nowrap;
}

.menu-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  align-items: center;
  border: 1px solid rgba(252, 248, 241, 0.4);
  border-radius: var(--radius-xs);
  color: var(--color-cream);
  transition: border-color var(--ease), background-color var(--ease);
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--ease), opacity var(--ease);
}

.header.is-solid .menu-btn {
  border-color: rgba(23, 19, 14, 0.2);
  color: var(--color-ink);
}

body.nav-open .menu-btn span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

body.nav-open .menu-btn span:nth-child(2) {
  opacity: 0;
}

body.nav-open .menu-btn span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }

  .nav__cta {
    display: inline-flex;
  }

  .header__phone {
    display: inline-flex;
  }

  .menu-btn {
    display: none;
  }
}

@media (max-width: 1279px) {
  .nav .currency,
  .header__phone {
    display: none;
  }
}

/* Minimal 404 header: language and currency beside the CTA, no full nav */
.nav--error {
  display: flex;
  margin-left: auto;
  gap: var(--space-4);
}

@media (max-width: 1023px) {
  .nav--error {
    display: none;
  }
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  background: var(--color-ink);
  color: var(--color-cream);
  padding: 1.4rem 1.4rem 2rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--space-5);
  transform: translateY(-102%);
  visibility: hidden;
  transition: transform 420ms cubic-bezier(0.16, 0.8, 0.3, 1), visibility 0s linear 420ms;
  overflow-y: auto;
}

.drawer.is-open {
  transform: none;
  visibility: visible;
  transition: transform 420ms cubic-bezier(0.16, 0.8, 0.3, 1), visibility 0s;
}

.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer__close {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(252, 248, 241, 0.3);
  border-radius: var(--radius-xs);
  font-size: 1.4rem;
  line-height: 1;
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  align-content: start;
}

.drawer__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.95rem;
  border-bottom: 1px solid rgba(252, 248, 241, 0.1);
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.1;
  transition: color var(--ease), padding-left var(--ease);
}

.drawer__link small {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--color-gold-light);
  min-width: 20px;
}

.drawer__link:hover {
  color: var(--color-gold-light);
  padding-left: 6px;
}

.drawer__foot {
  display: grid;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(252, 248, 241, 0.14);
}

.drawer__contact {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: rgba(252, 248, 241, 0.8);
}

.drawer__contact a {
  color: var(--color-cream);
}

@media (min-width: 1024px) {
  .drawer {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 94svh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--color-cream);
  overflow: hidden;
  background: var(--color-ink);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  animation: heroDrift 24s ease-out both;
}

@keyframes heroDrift {
  from {
    transform: scale(1.07);
  }

  to {
    transform: scale(1);
  }
}

/* A phone hero is taller than the photograph is wide, so the crop is
   horizontal. Centre it on the vehicle and the sun rather than on the empty
   sky to their right. */
@media (max-width: 640px) {
  .hero__media img {
    object-position: 44% 50%;
  }
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 12, 9, 0.62) 0%, rgba(15, 12, 9, 0.2) 34%, rgba(15, 12, 9, 0.8) 80%, rgba(15, 12, 9, 0.94) 100%),
    linear-gradient(90deg, rgba(15, 12, 9, 0.68) 0%, rgba(15, 12, 9, 0.3) 58%, rgba(15, 12, 9, 0.06) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  gap: clamp(1.6rem, 3vw, 2.6rem);
}

.hero__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(252, 248, 241, 0.82);
}

.hero__kicker span {
  width: 30px;
  height: 1px;
  background: var(--color-gold-light);
  display: inline-block;
}

.hero h1 {
  max-width: 16ch;
  font-size: clamp(2.9rem, 7.4vw, 5.6rem);
  font-weight: var(--weight-light);
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  color: var(--color-gold-light);
}

.hero__lead {
  max-width: 52ch;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.7;
  color: rgba(252, 248, 241, 0.86);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(252, 248, 241, 0.18);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(252, 248, 241, 0.72);
}

.hero__meta li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__meta li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-gold-light);
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
    align-items: end;
    gap: 3rem;
  }

  .hero__side {
    display: grid;
    gap: 1.1rem;
    padding-bottom: 0.5rem;
    align-content: end;
  }
}

.hero__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.45;
  color: rgba(252, 248, 241, 0.9);
  border-left: 1px solid rgba(226, 185, 104, 0.5);
  padding-left: 1.1rem;
}

/* Compact page hero for interior pages */
.page-hero {
  position: relative;
  min-height: 58svh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: clamp(2rem, 4vw, 3.4rem);
  color: var(--color-cream);
  overflow: hidden;
  background: var(--color-ink);
}

.page-hero__media {
  position: absolute;
  inset: 0;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 12, 9, 0.76), rgba(15, 12, 9, 0.56) 40%, rgba(15, 12, 9, 0.92)),
    linear-gradient(90deg, rgba(15, 12, 9, 0.6) 0%, rgba(15, 12, 9, 0.2) 65%, rgba(15, 12, 9, 0) 100%);
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  max-width: 800px;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  font-weight: var(--weight-light);
}

.page-hero p {
  max-width: 58ch;
  color: rgba(252, 248, 241, 0.84);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(252, 248, 241, 0.6);
}

.breadcrumbs a:hover {
  color: var(--color-gold-light);
}

.breadcrumbs span::before {
  content: "/";
  margin-right: 0.5rem;
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   Quick plan bar
   -------------------------------------------------------------------------- */

.quickplan {
  position: relative;
  z-index: 2;
  margin-top: -2.6rem;
}

.quickplan__card {
  background: var(--color-cream);
  border: 1px solid rgba(23, 19, 14, 0.08);
  box-shadow: var(--shadow-md);
  padding: clamp(1.1rem, 2.4vw, 1.7rem);
  display: grid;
  gap: 1rem;
}

.quickplan__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.quickplan__title p {
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.quickplan__form {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .quickplan__form {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .quickplan__form {
    grid-template-columns: repeat(4, 1fr) auto;
    align-items: end;
  }
}

/* --------------------------------------------------------------------------
   Fields
   -------------------------------------------------------------------------- */

/* Off-screen field for form spam: people never see it, bots fill it in. */
.field--hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field {
  display: grid;
  min-width: 0;
  gap: 0.35rem;
}

.field > label,
.field__label {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ink-mute);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: var(--touch);
  padding: 0.7rem 0.85rem;
  background: #fff;
  border: 1px solid rgba(23, 19, 14, 0.16);
  border-radius: var(--radius-xs);
  font-size: 0.95rem;
  color: var(--color-ink);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.55;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(190, 138, 49, 0.14);
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236E6455' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.2rem;
}

.field__hint {
  font-size: 0.74rem;
  color: var(--color-ink-mute);
}

.field.is-invalid .input,
.field.is-invalid .select,
.field.is-invalid .textarea,
.field.is-invalid .phone {
  border-color: #b4543a;
}

.field.is-invalid .input:focus,
.field.is-invalid .select:focus,
.field.is-invalid .textarea:focus,
.field.is-invalid .phone:focus-within {
  box-shadow: 0 0 0 3px rgba(180, 84, 58, 0.14);
}

.field__error {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.76rem;
  line-height: 1.5;
  color: #8c422b;
}

.field__fix {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* Phone field: country picker plus the number itself */
.phone {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--touch);
  background: #fff;
  border: 1px solid rgba(23, 19, 14, 0.16);
  border-radius: var(--radius-xs);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.phone:focus-within {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(190, 138, 49, 0.14);
}

.phone__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: none;
  height: calc(var(--touch) - 2px);
  padding: 0 0.6rem 0 0.75rem;
  border: 0;
  border-right: 1px solid rgba(23, 19, 14, 0.12);
  border-radius: var(--radius-xs) 0 0 var(--radius-xs);
  background: none;
  font: inherit;
  font-size: 0.9rem;
  color: var(--color-ink);
  cursor: pointer;
}

.phone__btn:hover {
  background: rgba(190, 138, 49, 0.08);
}

.phone__btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: -2px;
}

.phone__flag {
  width: 22px;
  height: 15px;
  flex: none;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(23, 19, 14, 0.1);
}

.phone__dial {
  font-variant-numeric: tabular-nums;
  color: var(--color-ink-soft, var(--color-ink));
}

.phone__caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--color-ink-mute);
}

.phone .phone__input,
.phone .phone__input:focus {
  flex: 1 1 auto;
  min-width: 0;
  min-height: calc(var(--touch) - 2px);
  padding-left: 0.7rem;
  border: 0;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  background: transparent;
  box-shadow: none;
}

.phone__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 70;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(23, 19, 14, 0.14);
  border-radius: var(--radius-xs);
  box-shadow: 0 18px 40px rgba(23, 19, 14, 0.18);
}

.phone--up .phone__panel {
  top: auto;
  bottom: calc(100% + 6px);
}

.phone__search {
  width: 100%;
  min-height: 42px;
  padding: 0.6rem 0.85rem;
  border: 0;
  border-bottom: 1px solid rgba(23, 19, 14, 0.1);
  background: #fcf8f1;
  font: inherit;
  font-size: 0.88rem;
  color: var(--color-ink);
}

.phone__search:focus {
  outline: none;
  background: #fff;
}

.phone__search::-webkit-search-decoration {
  display: none;
}

.phone__list {
  max-height: 252px;
  margin: 0;
  padding: 0.25rem 0;
  overflow-y: auto;
  list-style: none;
  overscroll-behavior: contain;
}

.phone__opt {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.88rem;
  cursor: pointer;
}

.phone__opt:hover,
.phone__opt.is-active {
  background: rgba(190, 138, 49, 0.12);
}

.phone__opt[aria-selected="true"] {
  background: rgba(190, 138, 49, 0.18);
}

.phone__opt[hidden],
.phone__empty[hidden] {
  display: none;
}

.phone__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone__code {
  flex: none;
  color: var(--color-ink-mute);
  font-variant-numeric: tabular-nums;
}

.phone__empty {
  padding: 0.75rem 0.85rem;
  font-size: 0.82rem;
  color: var(--color-ink-mute);
}

.combo {
  position: relative;
}

.field__dates {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.5rem;
}

.field__dates .input {
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.field__dates .field__dash {
  color: var(--color-ink-mute);
  font-size: 0.8rem;
}

.input[type="date"] {
  color-scheme: light;
}

.input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.55;
}

@media (max-width: 520px) {
  .field__dates {
    flex-direction: column;
    align-items: stretch;
  }

  .field__dates .field__dash {
    display: none;
  }
}

.field--dark .input,
.field--dark .select,
.field--dark .textarea {
  background: rgba(252, 248, 241, 0.06);
  border-color: rgba(252, 248, 241, 0.22);
  color: var(--color-cream);
}

.field--dark > label {
  color: rgba(252, 248, 241, 0.65);
}

.field--dark .select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23E2B968' stroke-width='1.4'/%3E%3C/svg%3E");
}

/* Choice cards (radio / checkbox) */
.choice-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.choice__body {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(23, 19, 14, 0.16);
  background: #fff;
  border-radius: var(--radius-xs);
  transition: border-color var(--ease), background-color var(--ease), box-shadow var(--ease);
  height: 100%;
}

.choice__title {
  font-size: 0.95rem;
  font-weight: var(--weight-medium);
}

.choice__note {
  font-size: 0.76rem;
  color: var(--color-ink-mute);
  line-height: 1.4;
}

.choice input:checked + .choice__body {
  border-color: var(--color-gold);
  background: var(--color-gold-wash);
  box-shadow: 0 0 0 1px var(--color-gold) inset;
}

.choice input:focus-visible + .choice__body {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Trip cards
   -------------------------------------------------------------------------- */

.trip-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
}

.trip {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(23, 19, 14, 0.09);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.trip:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(190, 138, 49, 0.45);
}

.trip__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-sand-deep);
}

.trip__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.16, 0.8, 0.3, 1);
}

.trip:hover .trip__media img {
  transform: scale(1.05);
}

.trip__body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.15rem 1.2rem 1.3rem;
  flex: 1;
}

.trip__country {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-deep);
}

.trip__title {
  font-size: 1.34rem;
  line-height: 1.15;
}

.trip__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.trip__route {
  font-size: 0.85rem;
  color: var(--color-ink-mute);
  line-height: 1.5;
}

.trip__foot {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(23, 19, 14, 0.08);
}

.trip__price {
  display: flex;
  flex-direction: column;
}

.trip__price small {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink-mute);
}

.trip__price strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: var(--weight-medium);
  line-height: 1.1;
}

.trip__price span {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--color-ink-mute);
}

.trip__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.9rem;
  font-size: 0.75rem;
  color: var(--color-ink-mute);
}

.trip__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.trip__meta svg {
  width: 13px;
  height: 13px;
  color: var(--color-gold);
}

.badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 2;
  padding: 0.3rem 0.6rem;
  background: rgba(23, 19, 14, 0.78);
  color: var(--color-cream);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.badge--gold {
  background: var(--color-gold);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Destination cards
   -------------------------------------------------------------------------- */

.dest-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.dest {
  position: relative;
  display: block;
  min-height: 340px;
  overflow: hidden;
  color: var(--color-cream);
  background: var(--color-ink);
}

.dest--tall {
  min-height: 480px;
}

.dest img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.16, 0.8, 0.3, 1);
}

.dest::after {
  content: "";
  position: absolute;
  inset: 0;
  /* The card titles and paragraphs sit in the lower half, so the gradient
     grounds that area: the client's photographs are often bright there. */
  background: linear-gradient(180deg, rgba(15, 12, 9, 0.05) 15%, rgba(15, 12, 9, 0.55) 60%, rgba(15, 12, 9, 0.92) 100%);
  transition: opacity var(--ease);
}

.dest:hover img {
  transform: scale(1.06);
}

.dest__body {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1.4rem;
}

.dest__body h3 {
  font-size: 1.7rem;
}

.dest__body p {
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(252, 248, 241, 0.8);
}

.dest__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.6rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(252, 248, 241, 0.22);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-light);
}

/* --------------------------------------------------------------------------
   Feature cards
   -------------------------------------------------------------------------- */

.feature {
  display: grid;
  gap: 0.65rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(23, 19, 14, 0.14);
}

.feature__num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--color-gold);
}

.feature h3 {
  font-size: 1.28rem;
}

.feature p {
  font-size: 0.9rem;
  color: var(--color-ink-mute);
  line-height: 1.6;
}

.section--ink .feature {
  border-color: rgba(252, 248, 241, 0.18);
}

.section--ink .feature p {
  color: rgba(252, 248, 241, 0.62);
}

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  gap: var(--space-5);
  counter-reset: step;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

.step {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.step__num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--color-gold);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.step__num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(190, 138, 49, 0.35);
}

.step h3 {
  font-size: 1.3rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--color-ink-mute);
}

.section--ink .step p {
  color: rgba(252, 248, 241, 0.64);
}

/* --------------------------------------------------------------------------
   Price table
   -------------------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(23, 19, 14, 0.12);
  background: #fff;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: 0.9rem;
}

.price-table th,
.price-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(23, 19, 14, 0.08);
  vertical-align: top;
}

.price-table thead th {
  background: var(--color-sand);
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ink-mute);
  white-space: nowrap;
}

.price-table tbody tr:hover {
  background: rgba(243, 228, 198, 0.3);
}

.price-table td strong {
  font-weight: var(--weight-medium);
}

.price-table .num {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.price-table a {
  color: var(--color-gold-deep);
  border-bottom: 1px solid rgba(190, 138, 49, 0.4);
}

/* The column name only appears inside the cells once the table stacks. */
.price-table__label {
  display: none;
}

/* Six columns cannot be read on a phone without swiping, so below 720px each
   row becomes a card and the header row is hidden visually but kept for screen
   readers, which still announce it with each cell. */
@media (max-width: 720px) {
  .table-wrap {
    overflow-x: visible;
    border: 0;
    background: transparent;
  }

  .price-table {
    display: block;
    min-width: 0;
    font-size: 0.92rem;
  }

  .price-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .price-table tbody,
  .price-table tr {
    display: block;
  }

  .price-table tr {
    padding: 1rem 1.1rem;
    margin-bottom: 0.85rem;
    border: 1px solid rgba(23, 19, 14, 0.12);
    background: #fff;
  }

  .price-table td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.3rem 0;
    border: 0;
  }

  .price-table td:first-child {
    display: block;
    padding: 0 0 0.7rem;
    margin-bottom: 0.35rem;
    border-bottom: 1px solid rgba(23, 19, 14, 0.08);
  }

  .price-table td:last-child {
    display: block;
    padding-top: 0.45rem;
  }

  .price-table td.num {
    white-space: normal;
  }

  .price-table__label {
    display: block;
    flex: none;
    font-family: var(--font-body);
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-gold-deep);
  }

  .price-table__value {
    text-align: right;
  }

  .price-table td:last-child .price-table__value {
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   Accordion
   -------------------------------------------------------------------------- */

.accordion {
  border-top: 1px solid rgba(23, 19, 14, 0.14);
}

.accordion__item {
  border-bottom: 1px solid rgba(23, 19, 14, 0.14);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.22rem;
  line-height: 1.3;
  transition: color var(--ease);
}

.accordion__trigger:hover {
  color: var(--color-gold-deep);
}

.accordion__icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
}

.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  background: var(--color-gold);
  transition: transform var(--ease), opacity var(--ease);
}

.accordion__icon::before {
  inset: 7.25px 0 auto 0;
  height: 1.5px;
}

.accordion__icon::after {
  inset: 0 7.25px 0 auto;
  width: 1.5px;
}

.accordion__item.is-open .accordion__icon::after {
  transform: scaleY(0);
  opacity: 0;
}

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--ease);
}

.accordion__item.is-open .accordion__panel {
  grid-template-rows: 1fr;
}

.accordion__panel > div {
  overflow: hidden;
}

.accordion__panel p {
  padding: 0 0 1.3rem;
  font-size: 0.94rem;
  color: var(--color-ink-mute);
  line-height: 1.7;
  max-width: 72ch;
}

/* --------------------------------------------------------------------------
   Weather strip
   -------------------------------------------------------------------------- */

.weather {
  display: grid;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  background: rgba(252, 248, 241, 0.06);
  border: 1px solid rgba(252, 248, 241, 0.16);
}

.weather__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.weather__head span {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-light);
}

.weather__list {
  display: grid;
  gap: 0.7rem;
  /* 230px keeps the longest translated label ("Nairobi · Condiciones
     variables") on one line beside its icon; narrower splits to one column. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.weather__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.weather__icon {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--color-gold-light);
}

.weather__place {
  font-size: 0.78rem;
  color: rgba(252, 248, 241, 0.7);
  display: block;
}

.weather__temp {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.1;
}

.weather__temp small {
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: rgba(252, 248, 241, 0.55);
}

/* --------------------------------------------------------------------------
   Call to action band
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
  background: var(--color-ink);
  color: var(--color-cream);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.cta__media {
  position: absolute;
  inset: 0;
}

.cta__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.cta__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 12, 9, 0.92), rgba(15, 12, 9, 0.45));
}

.cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
  max-width: 640px;
}

.cta h2 {
  font-weight: var(--weight-light);
}

.cta p {
  color: rgba(252, 248, 241, 0.78);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--color-ink);
  color: rgba(252, 248, 241, 0.72);
  padding-top: clamp(3rem, 5vw, 4.5rem);
  font-size: 0.9rem;
}

.footer a {
  transition: color var(--ease);
}

.footer a:hover {
  color: var(--color-gold-light);
}

.footer__top {
  display: grid;
  gap: var(--space-6);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid rgba(252, 248, 241, 0.12);
}

@media (min-width: 860px) {
  .footer__top {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--space-6);
  }
}

.footer .brand {
  color: var(--color-cream);
  margin-bottom: 1rem;
}

.footer__blurb {
  max-width: 34ch;
  line-height: 1.65;
  font-size: 0.88rem;
  color: rgba(252, 248, 241, 0.6);
}

.footer__motto {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-gold-light);
  margin-top: 1rem;
}

.footer__col h4 {
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-cream);
  margin-bottom: 1rem;
}

.footer__links {
  display: grid;
  gap: 0.55rem;
  font-size: 0.88rem;
}

.footer__contact {
  display: grid;
  gap: 0.7rem;
  font-size: 0.88rem;
}

.footer__contact a {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.footer__contact svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 3px;
  color: var(--color-gold-light);
}

.footer__socials {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.1rem;
  flex-wrap: wrap;
}

.footer__socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(252, 248, 241, 0.22);
  border-radius: 50%;
}

.footer__socials a:hover {
  border-color: var(--color-gold-light);
  color: var(--color-gold-light);
}

.footer__socials svg {
  width: 16px;
  height: 16px;
}

.footer__bottom {
  display: grid;
  gap: 1rem;
  padding-block: 1.5rem 1.8rem;
  font-size: 0.76rem;
  color: rgba(252, 248, 241, 0.5);
  align-items: center;
}

@media (min-width: 760px) {
  .footer__bottom {
    grid-template-columns: 1fr auto;
    gap: 2rem;
  }
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
}

.footer__legal a:hover {
  color: var(--color-gold-light);
}

/* --------------------------------------------------------------------------
   Floating actions
   -------------------------------------------------------------------------- */

.float-wa {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: var(--z-float);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 50px;
  padding: 0 1.1rem 0 0.9rem;
  background: #1f7a4d;
  color: #fff;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 26px rgba(23, 19, 14, 0.28);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  transition: transform var(--ease), background-color var(--ease), opacity var(--ease);
}

.float-wa.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.float-wa:hover {
  background: #186640;
  transform: translateY(-2px);
}

.float-wa svg {
  width: 22px;
  height: 22px;
}

.float-wa span {
  display: none;
}

@media (min-width: 720px) {
  .float-wa {
    right: 1.5rem;
    bottom: 1.5rem;
    height: 54px;
  }

  .float-wa span {
    display: inline;
  }
}

/* --------------------------------------------------------------------------
   Cookie notice
   -------------------------------------------------------------------------- */

.cookie {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: var(--z-modal);
  background: var(--color-cream);
  border: 1px solid rgba(23, 19, 14, 0.12);
  box-shadow: var(--shadow-lg);
  padding: 1.1rem 1.2rem;
  display: grid;
  gap: 0.9rem;
  max-width: 460px;
  transition: opacity var(--ease), transform var(--ease);
}

.cookie[hidden] {
  display: none;
}

/* Keep the banner out of the way while a legal dialog is open. */
body.modal-open .cookie {
  display: none;
}

.cookie p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--color-ink-mute);
}

.cookie p a {
  color: var(--color-gold-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

.cookie__settings {
  font-size: 0.82rem;
  color: var(--color-gold-deep);
  text-decoration: underline;
}

@media (min-width: 720px) {
  .cookie {
    left: auto;
    bottom: 1.5rem;
    right: 6.5rem;
  }
}

/* --------------------------------------------------------------------------
   Utility bits
   -------------------------------------------------------------------------- */

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(23, 19, 14, 0.16);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--color-ink-soft);
}

.pill--gold {
  border-color: rgba(190, 138, 49, 0.4);
  background: var(--color-gold-wash);
  color: var(--color-gold-deep);
}

.note {
  padding: 0.9rem 1rem;
  border-left: 2px solid var(--color-gold);
  background: var(--color-sand);
  font-size: 0.86rem;
  color: var(--color-ink-soft);
}

.check-list {
  display: grid;
  gap: 0.5rem;
  font-size: 0.92rem;
}

.check-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  line-height: 1.5;
}

.check-list li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  border: 1px solid var(--color-gold);
  background: var(--color-gold-wash);
}

.check-list--light li {
  color: rgba(252, 248, 241, 0.78);
}

.check-list--cross li::before {
  border-color: rgba(23, 19, 14, 0.35);
  background: transparent;
}



/* --------------------------------------------------------------------------
   Language switcher
   -------------------------------------------------------------------------- */

.lang {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-right: 0.45rem;
}

.lang__icon {
  width: 15px;
  height: 15px;
  opacity: 0.55;
  flex: none;
}

.lang__select {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0.35rem 0.1rem;
  cursor: pointer;
}

.lang__select option {
  color: var(--color-ink);
  background: var(--color-white);
}

.lang--drawer {
  justify-content: flex-start;
  margin: 0 0 1rem;
  color: rgba(252, 248, 241, 0.8);
}

.lang--drawer .lang__select {
  font-size: 0.78rem;
}

/* --------------------------------------------------------------------------
   Currency switcher
   -------------------------------------------------------------------------- */

.currency {
  display: flex;
  align-items: center;
  margin-right: 0.25rem;
}

.currency__select {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0.35rem 0.1rem;
  cursor: pointer;
}

.currency__select option {
  color: var(--color-ink);
  background: var(--color-white);
}

.currency--drawer {
  justify-content: flex-start;
  margin: 0 0 0.25rem;
  color: rgba(252, 248, 241, 0.8);
}

.currency--drawer .currency__select {
  font-size: 0.78rem;
}

/* --------------------------------------------------------------------------
   Legal modal
   -------------------------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ease), visibility 0s linear 240ms;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--ease), visibility 0s;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 19, 14, 0.6);
  opacity: 0;
  transition: opacity var(--ease);
}

.modal.is-open .modal__backdrop {
  opacity: 1;
}

.modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  max-height: min(86vh, 900px);
  background: var(--color-white);
  color: var(--color-ink);
  border: 1px solid var(--color-line);
  box-shadow: 0 30px 80px rgba(23, 19, 14, 0.25);
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: opacity var(--ease), transform var(--ease);
  will-change: opacity, transform;
}

.modal.is-open .modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.7rem 1rem;
  border-bottom: 1px solid var(--color-line);
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.15;
}

.modal__close {
  border: 0;
  background: transparent;
  color: var(--color-ink);
  font-size: 1.7rem;
  line-height: 1;
  padding: 0 0.2rem;
  cursor: pointer;
}

.modal__body {
  padding: 1.4rem 1.7rem;
  overflow-y: auto;
}

.modal__body.prose {
  max-width: none;
}

.modal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.7rem;
  border-top: 1px solid var(--color-line);
  background: var(--color-sand);
}

@media (max-width: 640px) {
  .modal {
    padding: 0;
    align-items: flex-end;
  }

  .modal__dialog {
    width: 100%;
    max-height: 92vh;
  }

  .modal__head,
  .modal__body,
  .modal__foot {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .footer__legal {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }
}

/* --------------------------------------------------------------------------
   Small helpers
   -------------------------------------------------------------------------- */

.footer__blurb {
  margin-top: 1rem;
}

.footer__contact-line {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.footer__icon {
  width: 15px;
  height: 15px;
  margin-top: 3px;
  flex: none;
  color: var(--color-gold-light);
}

.footer__hours {
  display: block;
  color: rgba(252, 248, 241, 0.5);
  padding-left: 1.35rem;
}

.link-underline {
  color: var(--color-gold-deep);
  text-decoration: underline;
}

.text-cream {
  color: rgba(252, 248, 241, 0.62);
}

.text-cream-soft {
  color: rgba(252, 248, 241, 0.7);
}

.text-cream-dim {
  color: rgba(252, 248, 241, 0.6);
}

.row--spread {
  margin-top: var(--space-6);
  justify-content: space-between;
}

.row--center {
  justify-content: center;
  margin-top: 0.6rem;
}

.heading--spaced {
  margin-bottom: 1.2rem;
}

.heading--spaced-sm {
  margin-bottom: 1rem;
}

.hero__actions--center {
  justify-content: center;
  margin-top: 1.5rem;
}

.section-head--narrow {
  max-width: 680px;
}

.park-list--spaced {
  margin-top: 1.5rem;
}

.btn--start {
  justify-self: start;
}

.note--spaced,
.cat-note--spaced {
  margin-top: 1.5rem;
}

.page-hero--short {
  min-height: 38svh;
}

.page-hero--planner {
  min-height: 44svh;
}

.section--fallback {
  padding-top: calc(var(--header-height) + 4rem);
}

.container--stack {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.display-sm {
  font-size: clamp(2rem, 4vw, 3rem);
}

.mb-1 {
  margin-bottom: 1rem;
}

.mt-08 {
  margin-top: 0.8rem;
}

.list-heading {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: var(--font-body);
  margin-bottom: 0.6rem;
}

.list-heading--gold {
  color: var(--color-gold-deep);
}

.list-heading--mute {
  color: var(--color-ink-mute);
}

/* ---------- between pages ---------- */

/* A brass bar along the top edge while the next page is on its way, then a
   short fade on arrival. The bar is built by js/page-flow.js; the fade is CSS
   only, so a script that never runs cannot leave a page blank. */

.ug-loadbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease-out;
}

html.is-leaving .ug-loadbar {
  opacity: 1;
}

.ug-loadbar span {
  display: block;
  width: 38%;
  height: 100%;
  background: linear-gradient(90deg, rgba(190, 138, 49, 0), #be8a31 55%, rgba(190, 138, 49, 0));
  animation: ugLoadbar 850ms cubic-bezier(0.45, 0, 0.25, 1) infinite;
}

@keyframes ugLoadbar {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(360%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ug-loadbar span {
    width: 100%;
    animation: none;
    opacity: 0.75;
  }
}

/* The new page fades and settles into place as it arrives, so a change of page
   reads as a transition rather than a cut. This runs with no JavaScript at
   all; the bar above is only the slower-connection cue. */

@media (prefers-reduced-motion: no-preference) {
  main {
    animation: ugPageIn 280ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }
}

@keyframes ugPageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

