/**
 * Dynamic Itinerary Cards — real, published eas_itinerary posts.
 * Homepage Platinum section + all 5 identity pages (2026-07-24 session).
 *
 * LAW 18 (component self-containment): every rule below defines its own
 * font-family/color/background — zero inheritance from the host page.
 *
 * Deliberately a SEPARATE class namespace (.eas-dyncard*) from
 * .eas-comp-itinerary__* — that older namespace is reused verbatim by the
 * live Offers/Departures archive signature cards (archive-eas_offer.php,
 * archive-eas_departure.php); redesigning it in place would have broken
 * both already-live pages. See functions.php's eas-dyncards enqueue
 * comment for the same note.
 */

.eas-dyncard-section {
  padding: 90px 6vw 100px;
  background: #FAF7F0;
}

.eas-dyncard-section__label {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #924F08;
  text-align: center;
  margin: 0 0 18px;
}

.eas-dyncard-section__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 20px;
}

.eas-dyncard-section__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.12;
  color: #1A0F06;
  margin: 0;
}

.eas-dyncard-section__title-em {
  font-style: normal;
  color: #B8780A;
}

.eas-dyncard-section__intro {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(26, 15, 6, 0.72);
  max-width: 640px;
  margin: 18px auto 0;
  text-align: center;
}

.eas-dyncard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1360px;
  margin: 46px auto 0;
}

@media (max-width: 1024px) {
  .eas-dyncard-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .eas-dyncard-grid { grid-template-columns: 1fr; }
}

/* ─── Card ─── */

.eas-dyncard {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #1A0F06;
  border: 1px solid rgba(201, 150, 60, 0.28);
  overflow: visible;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.eas-dyncard:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(26, 15, 6, 0.24);
}

.eas-dyncard__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: #2C2013;
  overflow: hidden;
}

.eas-dyncard__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 16, 10, 0.02) 55%, rgba(20, 16, 10, 0.5) 100%);
  pointer-events: none;
}

.eas-dyncard__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #F7F1E3;
  background-color: rgba(20, 16, 10, 0.44);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(247, 241, 227, 0.38);
  padding: 6px 12px;
}

.eas-dyncard__rule {
  height: 2px;
  background: linear-gradient(90deg, #B8780A, rgba(184, 120, 10, 0.15));
}

.eas-dyncard__text {
  padding: 22px 24px 18px;
}

.eas-dyncard__route {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C9963C;
  margin: 0 0 10px;
}

.eas-dyncard__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.14;
  color: #F7F1E3;
  margin: 0;
}

/* ─── Frosted panel — below the title/route text, never over the photo ─── */

.eas-dyncard__panel {
  margin: 0 24px 24px;
  padding: 16px 18px;
  background-color: rgba(247, 241, 227, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 150, 60, 0.3);
}

.eas-dyncard__pace {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
}

.eas-dyncard__pace-label {
  font-family: 'Jost', sans-serif;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 241, 227, 0.78);
}

.eas-dyncard__info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid rgba(247, 241, 227, 0.5);
  color: rgba(247, 241, 227, 0.75);
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  font-style: italic;
  line-height: 1;
  cursor: help;
  flex-shrink: 0;
}

.eas-dyncard__tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 220px;
  background-color: #1A0F06;
  border: 1px solid rgba(201, 150, 60, 0.4);
  color: rgba(247, 241, 227, 0.92);
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 10px 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 5;
  box-shadow: 0 12px 30px rgba(26, 15, 6, 0.35);
}

.eas-dyncard__info:hover .eas-dyncard__tooltip,
.eas-dyncard__info:focus .eas-dyncard__tooltip,
.eas-dyncard__info:focus-visible .eas-dyncard__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.eas-dyncard__ledger {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid rgba(201, 150, 60, 0.32);
  padding-top: 12px;
  margin-bottom: 14px;
}

.eas-dyncard__ledger-item dt {
  font-family: 'Jost', sans-serif;
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 241, 227, 0.6);
  margin: 0 0 4px;
}

.eas-dyncard__ledger-item dd {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 17px;
  color: #E8C06A;
  margin: 0;
}

.eas-dyncard__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 241, 227, 0.55);
  transition: color 0.3s ease;
}

.eas-dyncard:hover .eas-dyncard__foot {
  color: rgba(247, 241, 227, 0.92);
}

.eas-dyncard__arrow {
  display: inline-block;
  transition: transform 0.4s ease;
}

.eas-dyncard:hover .eas-dyncard__arrow {
  transform: translateX(6px);
}

/* ─── Empty state — no fabricated cards, an honest message instead ─── */

.eas-dyncard-empty {
  max-width: 640px;
  margin: 40px auto 0;
  text-align: center;
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: rgba(26, 15, 6, 0.55);
}
