/* ================= Destinations hero ================= */
/* An open road at golden hour — the literal answer to "where will your journey
   begin?". Shell, veil and grain come from the shared hero rule in
   flight-search.css. This hero has no floating card beneath it, so the veil is
   allowed to finish sooner via a tighter bottom padding. */
.destinations-hero {
  --hero-photo: url("https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?fm=jpg&q=72&w=1800&auto=format&fit=crop&ixlib=rb-4.1.0");
  --hero-photo-pos: center 58%;
  /* No floating card here, so the tail is just the dissolve itself. */
  --hero-tail: 200px;
  padding: 3.5rem 0 3rem;
}

@media (max-width: 767.98px) {
  .destinations-hero {
    padding-top: 3rem;
  }
}

/* ================= Theme filter pills ================= */
.dest-theme-bar {
  position: relative;
  z-index: 5;
  margin-top: -1.75rem;
  margin-bottom: 2.5rem;
}

.dest-theme-card {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 25px 55px rgba(11, 31, 58, 0.16);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.dest-theme-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid #dde3ec;
  background: #fff;
  color: var(--brand-navy);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.15s ease;
}

.dest-theme-pill:hover {
  border-color: var(--brand-gold);
}

.dest-theme-pill.active {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #fff;
}

/* ================= Destination guide grid ================= */
.dest-guide-section {
  padding-bottom: 2rem;
}

.dest-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.dest-guide-card {
  position: relative;
  display: block;
  border-radius: 1rem;
  overflow: hidden;
  height: 280px;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.dest-guide-card:hover {
  transform: translateY(-4px);
}

.dest-guide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 16, 32, 0) 40%, rgba(6, 16, 32, 0.88) 100%);
}

.dest-guide-theme-tag {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-navy);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.dest-guide-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.1rem;
  color: #fff;
}

.dest-guide-body .city {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
}

.dest-guide-body .country {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.35rem;
}

.dest-guide-body .tagline {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.5rem;
}

.dest-guide-best-time {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-gold);
}

.dest-guide-best-time .icon {
  width: 13px;
  height: 13px;
}

.dest-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #566273;
}

@media (max-width: 991.98px) {
  .dest-guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .dest-guide-grid {
    grid-template-columns: 1fr;
  }

  .dest-theme-card {
    justify-content: center;
  }
}

/* hero photo: phone-sized variant. The hero is this page's Largest Contentful Paint element, and the
   1800px crop is ~450 KB for a viewport a fifth as wide. Phones get a 760px
   version instead.

   This repeats the hero's own selector rather than overriding :root: the base
   rule sets --hero-photo on the hero element itself, and a property set on the
   element always beats one inherited from an ancestor, whatever the source
   order. */
@media (max-width: 767.98px) {
  .destinations-hero {
    --hero-photo: url("https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?fm=jpg&q=68&w=760&auto=format&fit=crop&ixlib=rb-4.1.0");
  }
}
