/* =========================================================================
   TRIPS PAGE — page-specific styles (loads only on page-trips.php)
   --------------------------------------------------------------------
   Inherits site.css + tokens.css. Includes:
     - trip-detail blocks (split image+body, stamp-border)
     - itinerary day cards (4 grid)
     - departures table
   ========================================================================= */

/* TRIP DETAIL BLOCKS */
.trip-detail {
  --stamp-bg: var(--parchment);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.trip-detail::before { inset: 16px; }
.trip-detail .td-img {
  height: 100%;
  min-height: 460px;
  margin: 16px 0 16px 16px;
  border-radius: 2px;
  /* PASS 13: support real <img> inside an <a> wrapper */
  display: block;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}
/* When image sits on the right side (.alt rows), flip margin */
.page-section.alt .trip-detail .td-img {
  margin: 16px 16px 16px 0;
}
.trip-detail .td-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.trip-detail .td-img:hover img {
  transform: scale(1.03);
}
/* Empty-state compass placeholder — used when trip has no featured image */
.trip-detail .td-img-empty {
  background: var(--parchment-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}
.trip-detail .td-img-placeholder {
  display: block;
  width: 100px;
  height: 100px;
  color: var(--oxide-rust);
  opacity: .35;
}
.trip-detail .td-img-placeholder svg {
  width: 100%;
  height: 100%;
}
.trip-detail .td-body { padding: 36px 38px 36px 30px; }
.trip-detail .ribbon { top: 36px; }
.trip-detail h3 {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--lon-blue);
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.trip-detail h3 em { font-style: italic; font-weight: 700; }
.trip-detail .pkg-kicker {
  font-family: var(--f-stamp);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--oxide-rust);
  margin-bottom: 14px;
}
.trip-detail .price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(46,74,92,.15);
  border-bottom: 1px solid rgba(46,74,92,.15);
  margin: 18px 0 22px;
}
.trip-detail .price {
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--lon-blue);
  letter-spacing: -.01em;
}
.trip-detail .price-sub {
  font-family: var(--f-stamp);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--stone);
}
.trip-detail .td-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--basalt-ink);
  opacity: .85;
  margin-bottom: 18px;
  text-wrap: pretty;
}
.trip-detail .td-incl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  list-style: none;
  font-size: 13px;
  margin-bottom: 22px;
}
.trip-detail .td-incl li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; }
.trip-detail .td-incl .check {
  color: var(--moss); flex: none; font-weight: 700;
}

/* Departures table */

/* DEPARTURES TABLE */
.departures {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 20px;
}
.departures th, .departures td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(46,74,92,.15);
}
.departures th {
  font-family: var(--f-stamp);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--stone);
  font-weight: 400;
  background: rgba(244,237,225,.4);
}
.departures td.date {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--lon-blue);
}
.departures .status {
  font-family: var(--f-stamp);
  font-size: 10px;
  letter-spacing: .18em;
  padding: 4px 10px;
  border-radius: 2px;
  display: inline-block;
}
.departures .status.open { background: rgba(107,122,76,.15); color: var(--moss); }
.departures .status.few  { background: rgba(176,138,74,.18); color: var(--brass); }
.departures .status.full { background: rgba(28,30,34,.08); color: var(--stone); }
.departures .book-btn {
  font-family: var(--f-body);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--oxide-rust);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.departures .book-btn.disabled { color: var(--stone); pointer-events: none; border-color: transparent; }

/* About / team */

/* ITINERARY — 4-day grid */
.itin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 38px;
  max-width: 1100px;
  margin: 0 auto;
}
.itin-day {
  border-left: 1px solid rgba(244, 237, 225, 0.25);
  padding-left: 30px;
}
.itin-day-num {
  font-family: var(--f-stamp);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--brass);
  margin-bottom: 8px;
}
.itin-day-route {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--parchment);
  margin-bottom: 6px;
}
.itin-day-stats {
  font-family: var(--f-stamp);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--parchment-tint);
  opacity: 0.75;
  margin-bottom: 14px;
}
.itin-day-desc {
  font-size: 14.5px;
  line-height: 1.7;
  opacity: 0.85;
  color: var(--parchment);
}

/* DEPARTURES — empty/coming-soon banner */
.departures-empty {
  --stamp-bg: var(--parchment-tint);
  text-align: center;
  padding: 48px 36px;
  margin: 0 auto;
  max-width: 720px;
}
.departures-empty p {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 17px;
  color: var(--basalt-ink);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* MOBILE — trips-specific */
@media (max-width: 960px) {
  .trip-detail, .trip-detail .td-incl {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .trip-detail .td-img { min-height: 240px; margin: 16px 16px 0 16px; }
  .trip-detail .td-body { padding: 24px; }
  .itin-grid { grid-template-columns: 1fr; gap: 28px; }
  .departures { font-size: 13px; }
  .departures th, .departures td { padding: 10px 6px; }
  .departures .book-btn { padding: 6px 10px; font-size: 11px; }
}

/* ==========================================================================
   PASS 12: WPTE TRIP CARDS on /ferdir
   --------------------------------------------------------------------
   Grid of trip cards pulled dynamically from WP Travel Engine. Each
   card links to /trip/{slug}/ where WPTE renders booking widget,
   pricing, calendar, itinerary tabs, etc.
   ========================================================================== */

.wpte-trip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.wpte-trip-card {
  background: var(--parchment);
  border: 1px solid rgba(46, 74, 92, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.wpte-trip-card:hover {
  border-color: var(--brass);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(28,30,34,.08);
}

.wpte-trip-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--parchment-tint);
}
.wpte-trip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.wpte-trip-thumb:hover img {
  transform: scale(1.04);
}
.wpte-trip-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--parchment-tint);
}
.wpte-trip-thumb-placeholder {
  display: block;
  width: 80px;
  height: 80px;
  color: var(--oxide-rust);
  opacity: .35;
}
.wpte-trip-thumb-placeholder svg {
  width: 100%;
  height: 100%;
}

.wpte-trip-body {
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.wpte-trip-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.25;
  letter-spacing: -.005em;
  color: var(--lon-blue);
  margin: 0 0 14px;
}
.wpte-trip-title a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}
.wpte-trip-title a:hover {
  color: var(--oxide-rust);
}

.wpte-trip-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--basalt-ink);
  margin: 0 0 22px;
  flex-grow: 1;
}

.wpte-trip-cta {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* Empty state — no WPTE trips yet */
.trips-empty {
  text-align: center;
  padding: 60px 32px;
  background: var(--parchment-tint);
  max-width: 640px;
  margin: 0 auto;
}
.trips-empty p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--stone);
  margin-bottom: 22px;
}

/* Mobile */
@media (max-width: 640px) {
  .wpte-trip-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .wpte-trip-body {
    padding: 22px 20px 24px;
  }
}


/* =========================================================================
   TRIP DETAIL — price strikethrough (when a sale is active) and the
   facts list (duration, group size, difficulty). The base .price-row,
   .price, and .price-sub rules already exist above; these add only the
   bits introduced when we wired the cards up to live WPTE meta.
   ========================================================================= */
.trip-detail .price-was {
  font-family: var(--f-display);
  font-size: 18px;
  color: var(--stone);
  opacity: .8;
  align-self: center;
}
.trip-detail .price-was s {
  text-decoration-color: var(--oxide-rust);
  text-decoration-thickness: 1.5px;
}

.trip-detail .td-facts {
  list-style: none;
  margin: 0 0 22px;
  padding: 14px 16px;
  background: rgba(244,237,225,.45);
  border-left: 2px solid var(--brass);
  display: grid;
  gap: 6px 18px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.trip-detail .td-facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}
.trip-detail .td-facts-label {
  font-family: var(--f-stamp);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--stone);
}
.trip-detail .td-facts-value {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--basalt-ink);
}

@media (max-width: 720px) {
  .trip-detail .td-facts { grid-template-columns: 1fr 1fr; }

  /* PASS 18: hide the long blurb on the /ferdir overview cards. The full
     description still shows on each trip's own page (/trip/{slug}/) where
     people are evaluating one option in depth; the overview page is for
     comparison and the title + price + facts + image carry that load. */
  .trip-detail .td-desc { display: none; }
}
