/* ============================================================
   Contadora Island — Pearl Islands guide.

   Editorial variant of the tour-detail language: immersive hero,
   an overlapping fact strip, pink section labels over large navy
   headings, image-led activity cards, and a navy closing band.
   Self-contained — this page loads no other page stylesheet.
   Logical properties throughout so Hebrew needs no overrides.
   ============================================================ */

.ci-page {
  --ci-ink: var(--primary-color);
  --ci-berry: var(--secondary-color);
  --ci-hover: var(--tertiary-color);
  --ci-muted: var(--ink-soft);
  --ci-soft-text: var(--muted);
  --ci-line: rgba(30, 29, 73, .13);
  --ci-mist: var(--light-blue);
  --ci-shadow: 0 18px 46px rgba(16, 22, 40, .08);
  overflow: clip;
  background: #fff;
  color: var(--ci-ink);
}

.ci-shell {
  width: 100%; max-width: var(--container-max-width); padding-inline: var(--site-gutter);
  margin-inline: auto;
}

.ci-page h1,
.ci-page h2,
.ci-page h3,
.ci-page p,
.ci-page ul {
  margin: 0;
}

.ci-page h1,
.ci-page h2,
.ci-page h3 {
  text-transform: none;
  text-wrap: balance;
}

.ci-page p {
  text-wrap: pretty;
}

.ci-page ul {
  padding: 0;
  list-style: none;
}

/* ---------- Shared type ---------- */

.ci-label {
  display: block;
  margin-bottom: 14px;
  color: var(--ci-berry);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.ci-page h2 {
  color: var(--ci-ink);
  font-size: clamp(32px, 3.4vw, 50px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.06;
}

.ci-page h2 em {
  color: var(--ci-berry);
  font-style: normal;
  font-weight: 700;
}

.ci-page h3 {
  color: var(--ci-ink);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.ci-lede {
  color: var(--ci-muted);
  font-size: 17px;
  line-height: 1.75;
}

.ci-section {
  padding: 100px 0;
}

.ci-section-mist {
  background: var(--ci-mist);
}

.ci-heading {
  max-width: 760px;
  margin-bottom: 52px;
}

.ci-heading p {
  margin-top: 18px;
  color: var(--ci-muted);
  font-size: 17px;
  line-height: 1.72;
}

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

.ci-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.ci-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border: 2px solid transparent;
  border-radius: var(--button-radius);
  font-family: var(--font-secondary);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
}

.ci-button:hover,
.ci-button:focus-visible {
  transform: translateY(-2px);
}

.ci-button-primary {
  background: var(--ci-berry);
  color: #fff;
}

.ci-button-primary:hover,
.ci-button-primary:focus-visible {
  background: var(--button-primary-hover);
  color: #fff;
}

.ci-button-ghost {
  border-color: rgba(255, 255, 255, .6);
  color: #fff;
}

.ci-button-ghost:hover,
.ci-button-ghost:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, .14);
  color: #fff;
}

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

.ci-hero {
  position: relative;
  min-height: min(86vh, 820px);
  margin-top: calc(var(--navbar-height, 73px) * -1);
  padding: calc(var(--navbar-height, 73px) + 64px) 0 122px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #202020;
  color: #fff;
}

.ci-hero-media,
.ci-hero-scrim {
  position: absolute;
  inset: 0;
}

.ci-hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Flat, light, neutral-grey scrim — never a navy tint or a gradient.
   The headline carries its own shadow so the photo stays bright. */
.ci-hero-scrim {
  z-index: 2;
  background: rgba(20, 20, 20, .34);
}

.ci-hero-inner {
  position: relative;
  z-index: 3;
}

.ci-hero .ci-label {
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .55);
}

.ci-hero h1 {
  max-width: 15ch;
  margin-bottom: 24px;
  color: #fff;
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .94;
  text-shadow: 0 2px 26px rgba(0, 0, 0, .55), 0 1px 4px rgba(0, 0, 0, .4);
}

.ci-hero-lede {
  max-width: 52ch;
  color: rgba(255, 255, 255, .95);
  font-size: 18px;
  line-height: 1.7;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .6), 0 1px 3px rgba(0, 0, 0, .45);
}

.ci-hero-lede strong {
  color: #fff;
  font-weight: 700;
}

.ci-media-credit {
  position: absolute;
  z-index: 4;
  inset-inline-end: 22px;
  bottom: 76px;
  color: rgba(255, 255, 255, .6);
  font-size: 14px;
  text-decoration: none;
}

.ci-media-credit:hover,
.ci-media-credit:focus-visible {
  color: #fff;
}

/* ---------- Fact strip, overlapping the hero ---------- */

.ci-facts {
  position: relative;
  z-index: 5;
  margin-top: -62px;
}

.ci-facts-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--ci-line);
  box-shadow: 0 22px 60px rgba(16, 22, 40, .16);
}

.ci-fact {
  padding: 26px 24px 28px;
  background: #fff;
}

.ci-fact i {
  display: block;
  margin-bottom: 16px;
  color: var(--ci-berry);
  font-size: 19px;
}

.ci-fact strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ci-ink);
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.ci-fact span {
  display: block;
  color: var(--ci-soft-text);
  font-size: 14px;
  line-height: 1.45;
}

/* ---------- Intro ---------- */

.ci-intro {
  padding: 104px 0 96px;
}

.ci-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 60px;
  align-items: start;
}

.ci-intro-copy p + p {
  margin-top: 18px;
}

/* ---------- Getting there ---------- */

.ci-transport-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 34px;
  align-items: stretch;
}

.ci-transport-figure {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: 18px;
  background: #e8edf6;
}

.ci-transport-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ci-options {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 18px;
}

.ci-option {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 20px;
  padding: 30px 32px;
  border: 1px solid var(--ci-line);
  border-radius: 18px;
  background: #fff;
}

.ci-option-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--ci-line);
  border-radius: 50%;
  color: var(--ci-berry);
  font-size: 18px;
}

.ci-option-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  margin-bottom: 14px;
}

.ci-option-time {
  color: var(--ci-berry);
  font-family: var(--font-primary);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.ci-option-specs {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ci-line);
}

.ci-option-specs li {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--ci-line);
  color: var(--ci-muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.ci-option-specs li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ci-option-specs .ci-spec-key {
  color: var(--ci-soft-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.9;
  text-transform: uppercase;
}

/* ---------- What to do ---------- */

.ci-do-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.ci-do-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: var(--ci-shadow);
}

.ci-do-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8edf6;
}

.ci-do-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .5s ease;
}

.ci-do-card:hover .ci-do-image img {
  transform: scale(1.04);
}

.ci-do-copy {
  padding: 22px 22px 26px;
}

.ci-do-copy .ci-label {
  margin-bottom: 8px;
  font-size: 14px;
}

.ci-do-copy h3 {
  margin-bottom: 9px;
  font-size: 19px;
}

.ci-do-copy p {
  color: var(--ci-muted);
  font-size: 14.5px;
  line-height: 1.62;
}

.ci-do-footnote {
  margin-top: 30px;
  color: var(--ci-muted);
  font-size: 15px;
  line-height: 1.7;
}

.ci-page a.ci-link {
  color: var(--ci-berry);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ci-page a.ci-link:hover,
.ci-page a.ci-link:focus-visible {
  color: var(--button-primary-hover);
}

/* ---------- Mar y Oro day pass ---------- */

.ci-daypass {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  background: var(--ci-mist);
}

.ci-daypass-figure {
  position: relative;
  min-height: 520px;
}

.ci-daypass-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ci-daypass-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px clamp(28px, 5vw, 92px);
}

.ci-daypass-copy .ci-lede {
  margin-top: 20px;
  max-width: 52ch;
}

.ci-checks {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.ci-checks li {
  display: flex;
  gap: 11px;
  color: var(--ci-muted);
  font-size: 15px;
  line-height: 1.6;
}

.ci-checks i {
  margin-top: 4px;
  color: var(--ci-berry);
  font-size: 14px;
}

/* ---------- Gallery ---------- */

.ci-gallery {
  display: grid;
  grid-template-columns: 1.3fr .85fr .85fr;
  grid-auto-rows: 224px;
  gap: 16px;
}

.ci-gallery figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 14px;
  background: #e8edf6;
}

.ci-gallery figure:first-child {
  grid-row: span 2;
}

.ci-gallery figure:nth-child(2) {
  grid-column: span 2;
}

.ci-gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ci-gallery figcaption {
  position: absolute;
  z-index: 2;
  inset-inline: 14px;
  bottom: 14px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(30, 29, 73, .82);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: none;
}

.ci-gallery figure:hover figcaption,
.ci-gallery figure:focus-within figcaption {
  opacity: 1;
  transform: translateY(0);
}

.ci-gallery-credit {
  margin-top: 22px;
  color: var(--ci-soft-text);
  font-size: 14px;
}

.ci-gallery-credit a {
  color: var(--ci-soft-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ci-gallery-credit a:hover,
.ci-gallery-credit a:focus-visible {
  color: var(--ci-berry);
}

/* ---------- Know before you go ---------- */

.ci-know-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.ci-know-card {
  padding: 36px 38px 38px;
  border-radius: var(--card-radius);
  background: #fff;
  box-shadow: var(--ci-shadow);
}

.ci-know-card h3 {
  margin-bottom: 20px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .ci-facts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Five facts over three columns: widen one so the second row closes. */
  .ci-fact:nth-child(4) {
    grid-column: span 2;
  }

  .ci-intro-grid,
  .ci-transport-grid,
  .ci-daypass {
    grid-template-columns: minmax(0, 1fr);
  }

  .ci-intro-grid {
    gap: 30px;
  }

  .ci-transport-figure {
    min-height: 320px;
  }

  .ci-daypass-figure {
    min-height: 380px;
  }

  .ci-daypass-copy {
    padding: 64px 24px 72px;
  }

  .ci-do-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ci-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 200px;
  }

  .ci-gallery figure:first-child {
    grid-row: auto;
  }

  .ci-gallery figure:nth-child(2) {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .ci-shell {
    width: 100%; max-width: var(--container-max-width); padding-inline: var(--site-gutter);
  }

  .ci-section {
    padding: 68px 0;
  }

  .ci-intro {
    padding: 72px 0 66px;
  }

  .ci-heading {
    margin-bottom: 36px;
  }

  .ci-hero {
    min-height: 640px;
    padding-bottom: 104px;
  }

  .ci-hero h1 {
    max-width: none;
    font-size: clamp(42px, 13vw, 62px);
  }

  .ci-hero-lede {
    font-size: 16px;
  }

  .ci-facts {
    margin-top: -54px;
  }

  .ci-facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ci-fact:nth-child(4) {
    grid-column: auto;
  }

  .ci-fact:last-child {
    grid-column: span 2;
  }

  .ci-option {
    grid-template-columns: minmax(0, 1fr);
    padding: 26px 24px;
  }

  .ci-option-icon {
    margin-bottom: 16px;
  }

  .ci-option-specs li {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .ci-do-grid,
  .ci-know-grid,
  .ci-gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .ci-gallery {
    grid-auto-rows: 220px;
  }

  .ci-know-card {
    padding: 30px 26px 32px;
  }
}

@media (max-width: 440px) {
  .ci-facts-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ci-fact:last-child {
    grid-column: auto;
  }
}
