/* ============================================================
   TRIPS — index + detail pages
   ============================================================ */

/* Trips index */
.trips-hero {
  padding: 11rem 0 4rem;
  text-align: center;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
}
.trips-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 1rem; }
.trips-hero .lede {
  max-width: 620px; margin: 0 auto; font-size: 1.05rem;
  color: var(--text); line-height: 1.75;
}

.trips-section {
  background: var(--navy);
  padding-top: 4rem;
  padding-bottom: var(--space-section);
}
.trips-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.trip-card {
  display: flex;
  flex-direction: column;
  background: rgba(26, 45, 80, 0.35);
  border: 1px solid var(--glass-border);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.5s var(--ease-out), background 0.5s;
}
.trip-card:hover {
  border-color: var(--glass-border-strong);
  transform: translateY(-4px);
  background: rgba(26, 45, 80, 0.5);
}
.trip-card .trip-image {
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--navy-mid);
}
.trip-card .trip-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.trip-card:hover .trip-image img { transform: scale(1.05); }
.trip-card .trip-body { padding: 2rem; flex-grow: 1; }
.trip-card .trip-tag {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.7rem;
}
.trip-card h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.2;
  color: var(--cream);
  margin-bottom: 0.6rem;
  font-weight: 500;
}
.trip-card h3 em { color: var(--gold); font-style: italic; }
.trip-card .trip-summary {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.trip-card .trip-meta {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-style: italic;
}

/* Trip detail page */
.trip-detail-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}
.trip-detail-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}
.trip-detail-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(6, 12, 24, 0.55) 0%,
    rgba(6, 12, 24, 0.3) 40%,
    rgba(6, 12, 24, 0.75) 80%,
    var(--navy-deep) 100%);
}
.trip-detail-hero .container { position: relative; }
.trip-detail-hero .breadcrumb {
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.trip-detail-hero .breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s ease;
}
.trip-detail-hero .breadcrumb a:hover { color: var(--gold); }
.trip-detail-hero .breadcrumb .sep { margin: 0 0.6rem; color: var(--text-mute); }
.trip-detail-hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  max-width: 880px;
  margin-bottom: 1rem;
}
.trip-detail-hero .trip-tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 1.4rem;
  max-width: 700px;
}

.trip-body { background: var(--navy); }
.trip-body .container { max-width: 920px; }

.trip-overview {
  margin-bottom: 4rem;
}
.trip-overview p {
  font-size: 1.08rem;
  line-height: 1.85;
  margin-bottom: 1.3rem;
  color: var(--text);
}
.trip-overview p em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 1.15em;
}

/* Bookings table */
.bookings-section { margin-top: 5rem; }
.bookings-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.bookings-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-size: 0.92rem;
}
.bookings-table thead th {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--glass-border-strong);
  text-align: left;
  background: rgba(6, 12, 24, 0.4);
}
.bookings-table tbody td {
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid var(--glass-border);
  color: var(--text);
  vertical-align: top;
  line-height: 1.55;
}
.bookings-table tbody tr:hover td {
  background: rgba(26, 45, 80, 0.3);
}
.bookings-table .route {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--cream);
  font-weight: 500;
}
.bookings-table .cost {
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 500;
}

/* Photo grid for trip */
.trip-gallery {
  margin: 5rem 0;
}
.trip-gallery h2 {
  font-size: 1.6rem;
  margin-bottom: 2rem;
}
.trip-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.trip-gallery-grid .photo {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--navy-mid);
  border: 1px solid rgba(201, 168, 76, 0.06);
}
.trip-gallery-grid .photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.trip-gallery-grid .photo:hover img { transform: scale(1.05); }
.trip-gallery-grid .photo.wide { grid-column: span 2; }

/* Trip footer nav */
.trip-foot-nav {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding: 4rem 0;
  text-align: center;
  border-top: 1px solid var(--glass-border);
}
.trip-foot-nav h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--cream);
  font-weight: 500;
}
.trip-foot-nav h3 em { color: var(--gold); font-style: italic; }
.trip-foot-nav .links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 800px) {
  .trips-list { grid-template-columns: 1fr; }
  .bookings-table { font-size: 0.85rem; }
  .bookings-table thead th, .bookings-table tbody td { padding: 0.75rem 0.6rem; }
  .trip-gallery-grid .photo.wide { grid-column: span 1; }
  /* On mobile, collapse table to stacked card view */
  .bookings-table thead { display: none; }
  .bookings-table, .bookings-table tbody, .bookings-table tr, .bookings-table td { display: block; width: 100%; }
  .bookings-table tr {
    margin-bottom: 1.5rem;
    border: 1px solid var(--glass-border);
    background: rgba(26, 45, 80, 0.3);
  }
  .bookings-table td { padding: 0.5rem 1rem; border: none; }
  .bookings-table td:first-child { padding-top: 1rem; }
  .bookings-table td:last-child { padding-bottom: 1rem; border-bottom: none; }
  .bookings-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-body);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.3rem;
  }
}
