/* trip page — extends style.css */

.trip-page {
  max-width: 1440px;
  padding-top: 48px;
}

.trip-page .trip-hero,
.trip-page .links {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.trip-page .trip-details {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* --- hero --- */

.trip-hero {
  margin-bottom: 0;
  text-align: center;
}

.trip-hero h1 {
  font-size: clamp(32px, 4.2vw, 48px);
  margin-bottom: 10px;
}

.trip-hero .role {
  justify-content: center;
}

.trip-hero .role {
  margin-bottom: 0;
}

.trip-hero h1 .arrow-glyph {
  color: var(--accent);
  font-style: normal;
  margin: 0 0.08em;
}

/* --- map figure (hero) --- */

.trip-map {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(ellipse at center, rgba(212, 165, 116, 0.05), transparent 70%);
}

.trip-map img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- combined details section (itinerary | stats + states) --- */

.trip-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 24px;
  padding-top: 48px;
  border-top: 1px solid var(--hair);
}

.trip-details-right {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Inside the combined section, reset borders/margins so it reads as one unit */
.trip-details .itinerary,
.trip-details .trip-stats,
.trip-details .stack.states-crossed {
  margin: 0;
  padding: 0;
  border: none;
  max-width: none;
}

/* --- stats strip --- */

.trip-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0;
  border: none;
}

.trip-stat {
  text-align: center;
}

.trip-stat .stat-value {
  display: block;
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 52px);
  line-height: 1;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.trip-stat .stat-value em {
  font-style: italic;
  color: var(--accent);
}

.trip-stat .stat-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-subtle);
}

/* --- itinerary (used inside .trip-details) --- */

.itinerary {
  margin: 0;
}

/* --- embedded interactive map --- */

.embedded-map {
  margin-top: 80px;
  padding-top: 44px;
  border-top: 1px solid var(--hair);
}

.embedded-map-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-subtle);
  margin-bottom: 24px;
  text-align: center;
}

.embedded-map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: #2E312F;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.embedded-map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 640px) {
  .embedded-map-frame {
    aspect-ratio: 4 / 3;
  }
}

.itinerary-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-subtle);
  margin-bottom: 24px;
}

.itinerary-list {
  position: relative;
  padding-left: 0;
  list-style: none;
}

.itinerary-list::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--accent) 0%,
    var(--accent) 50%,
    rgba(212, 165, 116, 0.25) 100%
  );
}

.itinerary-item {
  position: relative;
  padding: 6px 0 20px 32px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text);
}

.itinerary-item::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 12px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--bg);
}

.itinerary-item.endpoint::before {
  background: var(--text);
  width: 11px;
  height: 11px;
  left: 1px;
  top: 11px;
}

.itinerary-item .stop-name {
  color: var(--text);
}

.itinerary-item.endpoint .stop-name {
  color: var(--text);
  font-weight: 500;
}

.itinerary-item .stop-note {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- responsive --- */

@media (max-width: 880px) {
  .trip-details {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 640px) {
  .trip-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .trip-hero h1 {
    font-size: clamp(28px, 8vw, 40px);
  }
}
