/* ===== DESTINATIONS CARDS ===== */
#destinations {
  padding: 7rem 3rem;
  position: relative;
}

#destinations::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(27,55,41,0.15), rgba(208,93,62,0.35), rgba(27,55,41,0.15), transparent);
}

#destinations h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 0.6rem;
  line-height: 1.15;
}

/* ── Grid ── */
.cards-grid {
  max-width: 1250px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.4rem;
}

/* ── Card — full-bleed portrait photo ── */
.dest-card {
  aspect-ratio: 3/4;
  background: var(--deep);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow:
    0 6px 28px rgba(27,55,41,0.22),
    0 2px 8px  rgba(27,55,41,0.10);
  transition:
    transform  var(--duration-hover) var(--ease-out),
    box-shadow var(--duration-hover) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .dest-card:hover {
    transform: translateY(-8px);
    box-shadow:
      0 24px 60px rgba(27,55,41,0.32),
      0 0 0 1px rgba(208,93,62,0.22);
  }
  .dest-card:hover .card-img { transform: scale(1.07); }
}
.dest-card:active { transform: scale(0.98); }

/* ── Imagen — fills entire card ── */
.card-img {
  position: absolute;
  inset: 0;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.55s var(--ease-out);
}

/* Scrim: dark at bottom fading to transparent at top */
.card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(27,55,41,0.97) 0%,
    rgba(27,55,41,0.68) 32%,
    rgba(27,55,41,0.18) 62%,
    transparent 100%
  );
  pointer-events: none;
}

/* ── Flag — top-right corner ── */
.card-flag {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  font-size: 1.75rem;
  z-index: 2;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(27,55,41,0.60));
}
.card-flag .flag-icon { width: 30px; box-shadow: 0 0 0 1.5px rgba(255,255,255,0.75); }

/* ── Content — anchored to bottom of photo ── */
.card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 1.4rem 1.4rem;
  z-index: 2;
}

.card-content h3 {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
  line-height: 1.2;
}

.card-content .card-tagline {
  color: var(--coastal);
  font-size: 0.84rem;
  font-weight: 300;
  line-height: 1.55;
  margin-bottom: 0.65rem;
  opacity: 0.90;
}

/* ── Rating ── */
.rating-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
}

.stars         { color: var(--gold); }
.rating-score  { color: var(--gold-light); font-weight: 500; }
.reviews-count { color: rgba(143,191,174,0.65); }

/* ── CTA — separator line + label ── */
.card-cta {
  font-family: 'Montserrat', sans-serif;
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(143,191,174,0.18);
  transition: color var(--duration-fast) var(--ease-out);
}

.card-cta::after {
  content: ' →';
  display: inline-block;
  opacity: 0.55;
  transform: translateX(0);
  transition:
    transform var(--duration-base) var(--ease-out),
    opacity   var(--duration-fast) var(--ease-out);
}

.dest-card:hover .card-cta           { color: var(--gold-light); }
.dest-card:hover .card-cta::after    { transform: translateX(7px); opacity: 1; }

/* ── Responsive ── */
@media (max-width: 768px) {
  #destinations { padding: 4rem 1.5rem; }
  .cards-grid   { gap: 1rem; }
}

@media (max-width: 560px) {
  .cards-grid { grid-template-columns: 1fr; }
  .dest-card  { aspect-ratio: 4/5; }
}
