/* ================================================================
   TRAVEL CAMPAIGNS — Globe page styles
   ================================================================ */

/* ---- Travel Hero ---- */
.travel-hero {
  padding: calc(var(--nav-height) + 5rem) 0 clamp(3rem, 6vw, 5rem);
}

.travel-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  line-height: 1.05;
  color: var(--color-ink);
  letter-spacing: -0.015em;
  margin-bottom: 1.25rem;
}

.travel-hero__sub {
  font-size: clamp(0.9375rem, 1.3vw, 1.0625rem);
  line-height: 1.7;
  color: var(--color-ink-soft);
  max-width: 48ch;
}


/* ---- Matador feature slot ---- */
.feature {
  padding: 0 0 clamp(2rem, 5vw, 4rem);
}

.feature__card {
  display: block;
  border-radius: 1.75rem;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.feature__media {
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--color-border);
}

.feature__poster,
.feature__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature__poster {
  transition: transform 1s var(--ease-spring);
}

.feature__card:hover .feature__poster {
  transform: scale(1.03);
}

.feature__video {
  opacity: 0;
  transition: opacity 0.7s var(--ease-smooth);
}

.feature__card.is-playing .feature__video {
  opacity: 1;
}

.feature__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 18, 16, 0.7) 0%,
    rgba(20, 18, 16, 0.15) 45%,
    rgba(20, 18, 16, 0.05) 100%
  );
  z-index: 1;
}

.feature__content {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: clamp(1.5rem, 4vw, 3rem);
  max-width: 40rem;
}

.feature__eyebrow {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1rem;
}

.feature__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.05;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.feature__desc {
  font-size: clamp(0.9375rem, 1.3vw, 1.0625rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 36ch;
  margin-bottom: 1.5rem;
}

.feature__play {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-ink);
  background: #fff;
  border-radius: 100px;
  padding: 0.7rem 1.4rem;
  transition: transform 0.4s var(--ease-spring),
              background 0.4s var(--ease-smooth);
}

.feature__card:hover .feature__play {
  transform: translateY(-2px);
  background: #F0EBE3;
}


/* ---- Globe section ---- */
/* ================================================================
   FLAT EDITORIAL MAP
   ================================================================ */
.map-section {
  position: relative;
  padding: 1.5rem 0 clamp(4rem, 8vw, 6rem);
}

/* Outer "plate" (double-bezel: outer shell + inner viewport) */
.map {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  box-shadow: 0 30px 80px -40px rgba(26, 24, 22, 0.25);
}

.map__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: calc(1.25rem - 0.5rem);
  background: var(--color-canvas);
}

.map__scene {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: 0 0;
  will-change: transform;
}

.map__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* Pins are absolutely positioned by lat/lng → percentage.
   Button bounds = dot + padding only (small hit area).
   Label is positioned absolutely so it doesn't intercept clicks
   for an adjacent pin. */
.map__pin {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem;
  margin: 0;
  background: none;
  border: 0;
  cursor: pointer;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: var(--color-ink);
  transition: transform 0.4s var(--ease-spring);
}

.map__pin:hover,
.map__pin:focus-visible {
  z-index: 3;
}

.map__pin-dot {
  display: block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.9),
    0 0 0 3.5px rgba(26, 24, 22, 0.15);
  transition: box-shadow 0.4s var(--ease-spring);
}

.map__pin-label {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, -0.1rem);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  line-height: 1.1;
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 0.2rem 0.7rem;
  white-space: nowrap;
  pointer-events: none;
  transition: color 0.3s var(--ease-smooth);
}

/* Per-pin label direction (set via class on the button) to avoid overlap
   between adjacent destinations (e.g., Guatemala vs Costa Rica). */
.map__pin--label-above .map__pin-label {
  top: auto;
  bottom: 100%;
  transform: translate(-50%, 0.1rem);
}

.map__pin--label-right .map__pin-label {
  top: 50%;
  left: 100%;
  transform: translate(0.1rem, -50%);
}

.map__pin--label-left .map__pin-label {
  top: 50%;
  left: auto;
  right: 100%;
  transform: translate(-0.1rem, -50%);
}

/* Live pin hover: dot pulses, label highlights */
.map:not(.is-zooming) .map__pin:hover .map__pin-dot,
.map:not(.is-zooming) .map__pin:focus-visible .map__pin-dot {
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.96),
    0 0 0 10px rgba(139, 115, 85, 0.18);
}

.map:not(.is-zooming) .map__pin:hover .map__pin-label,
.map:not(.is-zooming) .map__pin:focus-visible .map__pin-label {
  color: var(--color-accent);
}

/* Coming soon pins: muted */
.map__pin--soon {
  color: #9E948A;
}

.map__pin--soon .map__pin-label {
  color: var(--color-ink-muted);
}

/* No-hover (touch) variant: skip the pulse */
.map--no-hover .map__pin {
  cursor: default;
}

/* Helper text below the map */
.map-hint {
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-ink-muted);
  text-align: center;
}

/* Cursor tooltip (fixed; follows the mouse) */
.map-tooltip {
  position: fixed;
  z-index: 30;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  transform: translate(-50%, -100%) translateY(-6px);
  opacity: 0;
  transition: opacity 0.3s var(--ease-spring);
}

.map-tooltip.is-visible {
  opacity: 1;
}

.map-tooltip__name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
  white-space: nowrap;
}

.map-tooltip__cta {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent);
}

.map-tooltip--soon .map-tooltip__cta {
  color: var(--color-ink-muted);
}


/* ---- Destination cards (below globe) ---- */
.destinations {
  padding: 0 0 clamp(5rem, 10vw, 8rem);
}

.destinations__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.dest-card {
  display: block;
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: transform 0.6s var(--ease-spring),
              box-shadow 0.6s var(--ease-spring);
}

.dest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(26, 24, 22, 0.08);
}

.dest-card__inner {
  display: flex;
  flex-direction: column;
}

.dest-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.dest-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #E8E4DE 0%, #D4CFC7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--color-ink-muted);
}

.dest-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-spring);
}

.dest-card:hover .dest-card__img {
  transform: scale(1.04);
}

.dest-card__info {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dest-card__country {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-ink);
}

.dest-card__type {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-ink-muted);
}


/* ---- Responsive ---- */
@media (max-width: 768px) {
  .destinations__grid {
    grid-template-columns: 1fr;
  }

  .map__pin-label {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
  }

  .map__pin-dot {
    width: 0.6rem;
    height: 0.6rem;
  }

  /* Hide the cursor tooltip on touch — pin labels already show the name */
  .map-tooltip {
    display: none;
  }
}


/* ================================================================
   BOLD CREAM overrides (2026-06-10)
   Watercolor map renders natively on cream; pins go dark.
   ================================================================ */
.travel-hero__title {
  color: var(--color-ink);
}
.travel-hero__sub {
  color: var(--color-ink-soft);
}

.map {
  background: var(--color-surface);
  border-color: var(--color-border);
  box-shadow: 0 30px 80px -40px rgba(31, 26, 20, 0.20);
}
.map__viewport {
  background: var(--color-canvas);
}
/* Watercolor map renders natively (no invert) on cream */
.map__image {
  filter: none;
}

.map__pin-dot {
  background: var(--color-ink);
  box-shadow:
    0 0 0 3px rgba(240, 232, 214, 0.95),
    0 0 0 3.5px rgba(31, 26, 20, 0.18);
}
.map__pin-label {
  background: rgba(255, 250, 240, 0.96);
  color: var(--color-ink);
  border-color: var(--color-border);
}
.map__pin--soon .map__pin-label {
  color: var(--color-ink-muted);
}
.map__pin--soon {
  color: rgba(31, 26, 20, 0.45);
}
.map-hint {
  color: var(--color-ink-muted);
}

.map-tooltip__name {
  background: rgba(255, 250, 240, 0.96);
  color: var(--color-ink);
  border-color: var(--color-border);
}

.dest-card {
  background: var(--color-surface);
  border-color: var(--color-border);
}
.dest-card:hover {
  box-shadow: 0 20px 60px rgba(31, 26, 20, 0.16);
}
.dest-card__placeholder {
  background: linear-gradient(135deg, #DCCFB1 0%, #C8BC9E 100%);
  color: var(--color-ink-muted);
}
.dest-card__country {
  font-weight: 700;
}

/* ---- Matador feature "Watch the film" pill — dark espresso on cream ---- */
.feature__play {
  background: var(--color-ink);
  color: var(--color-canvas);
  font-weight: 700;
}
.feature__card:hover .feature__play {
  background: var(--color-accent);
}
