/* ============================================
   Destination Grid — Elementor Widget Styles
   ============================================ */

/* Wrapper */
.tfdp-dest-grid-wrap {
  font-family:
    "Jost",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

/* Section Header */
.tfdp-grid-header {
  text-align: center;
  margin-bottom: 40px;
}

.tfdp-grid-subtitle {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  color: #3fd0d4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.tfdp-grid-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 42px;
  font-weight: 700;
  color: #102039;
  margin: 0;
  line-height: 1.2;
}

/* Grid Layout */
.tfdp-dest-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tfdp-grid-row {
  display: grid;
  gap: 20px;
}

.tfdp-grid-row--2 {
  grid-template-columns: 1fr 1.4fr;
}

.tfdp-grid-row--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Alternate the 2-col pattern: odd rows = 1fr 1.4fr, even rows = 1.4fr 1fr */
.tfdp-grid-row--2:nth-of-type(even) {
  direction: rtl;
}

.tfdp-grid-row--2:nth-of-type(even) > * {
  direction: ltr;
}

/* Card */
.tfdp-grid-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 320px;
  border-radius: 8px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.tfdp-grid-card:hover {
  transform: scale(1.015);
}

/* Gradient overlay */
.tfdp-grid-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(16, 32, 57, 0.55) 0%, transparent 60%);
  border-radius: inherit;
  transition: background 0.3s ease;
  pointer-events: none;
}

.tfdp-grid-card:hover::after {
  background: linear-gradient(0deg, rgba(16, 32, 57, 0.7) 0%, transparent 70%);
}

/* Card content */
.tfdp-grid-card__content {
  position: relative;
  z-index: 2;
  padding: 24px 28px;
  width: 100%;
}

.tfdp-grid-card__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 4px;
  line-height: 1.25;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.tfdp-grid-card__meta {
  font-family: "Jost", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .tfdp-grid-row--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .tfdp-grid-title {
    font-size: 34px;
  }
}

@media (max-width: 767px) {
  .tfdp-grid-row--2,
  .tfdp-grid-row--3 {
    grid-template-columns: 1fr;
  }

  .tfdp-grid-row--2:nth-of-type(even) {
    direction: ltr;
  }

  .tfdp-grid-card {
    height: 260px;
  }

  .tfdp-grid-card__title {
    font-size: 22px;
  }

  .tfdp-grid-title {
    font-size: 28px;
  }

  .tfdp-grid-header {
    margin-bottom: 28px;
  }
}
