/* =====================================================================
   SECTION 1 — Overview / The Trip
   ===================================================================== */

/* ---------- HERO ---------- */

.overview-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #f4ead0;             /* always light text on darkened photo */
  text-align: center;
  border-bottom: none;
}

.overview-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 18, 14, 0.30) 0%,
    rgba(20, 18, 14, 0.55) 60%,
    rgba(20, 18, 14, 0.75) 100%
  );
  pointer-events: none;
}

.overview-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 50rem;
}

.overview-hero-eyebrow {
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: #f4ead0;
  opacity: 0.85;
  margin: 0 0 1rem;
}

.overview-hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
  color: #f4ead0;
  line-height: 1.1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.overview-hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: #f4ead0;
  opacity: 0.92;
  max-width: 38rem;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

.overview-hero-trip-type {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0;
  font-size: 0.95rem;
}

.trip-type-badge {
  display: inline-block;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  background: var(--color-accent);
  color: #f4ead0;
  padding: 0.375rem 0.75rem;
  border-radius: 2px;
}

.trip-type-browse {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: #f4ead0;
  text-decoration: none;
  border-bottom: 1px dashed rgba(244, 234, 208, 0.5);
  padding-bottom: 1px;
}
.trip-type-browse:hover {
  color: #f4ead0;
  border-bottom-color: rgba(244, 234, 208, 0.9);
}

@media (max-width: 768px) {
  .overview-hero { min-height: 60vh; }
}

/* ---------- LEAD ---------- */

.overview-lead {
  max-width: var(--container-narrow);
  padding: 4rem 1.5rem 2rem;
}

/* ---------- SECTION TITLES ---------- */

.overview-section-title {
  margin: 0 0 2rem;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.overview-section-title .eyebrow {
  display: block;
  margin-bottom: 0.25rem;
}

/* ---------- FAMILY ---------- */

.overview-family {
  padding: 3rem 1.5rem 2rem;
}

.family-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.family-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-divider);
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.family-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.family-card-avatar {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: block;
  object-fit: cover;
  border: 2px solid var(--color-neutral);
}

.family-card-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 0 0 0.25rem;
  color: var(--color-fg);
}

.family-card-role {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--color-fg-muted);
  margin: 0;
}

.family-cards-note {
  font-size: 0.875rem;
  color: var(--color-fg-muted);
  font-style: italic;
  margin: 0;
  text-align: center;
}

@media (max-width: 768px) {
  .family-cards { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

/* ---------- STATS ---------- */

.overview-stats {
  padding: 3rem 1.5rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  border: 1px solid var(--color-divider);
  border-radius: 6px;
  background: var(--color-bg-elevated);
  overflow: hidden;
}

.stat {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.stat:nth-child(3n) { border-right: none; }
.stat:nth-last-child(-n+3) { border-bottom: none; }

.stat-label {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--color-fg-muted);
  margin: 0 0 0.5rem;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--color-accent);
  line-height: 1;
}

.stat-detail {
  font-size: 0.85rem;
  color: var(--color-fg-muted);
  margin: 0.5rem 0 0;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); }
  .stat:nth-child(3n) { border-right: 1px solid var(--color-divider); }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-last-child(-n+3) { border-bottom: 1px solid var(--color-divider); }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 540px) {
  .stat-grid { grid-template-columns: 1fr; }
  .stat,
  .stat:nth-child(2n),
  .stat:nth-child(3n) { border-right: none; }
  .stat { border-bottom: 1px solid var(--color-divider); }
  .stat:last-child { border-bottom: none; }
}

/* ---------- ROUTE MAP (stylized SVG) ---------- */

.overview-route {
  padding: 3rem 1.5rem;
}

.route-map {
  margin: 0 auto 2.5rem;
  max-width: 600px;
}

.route-map-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Card background behind the route */
.route-map-bg {
  fill: var(--color-bg-elevated);
  stroke: var(--color-divider);
  stroke-width: 1;
}

/* Watermark state names — very subtle */
.route-map-states text {
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  font-size: 14px;
  fill: var(--color-neutral);
  opacity: 0.32;
  pointer-events: none;
}

/* Route polyline */
.route-line {
  stroke: var(--color-accent);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 0.95;
}

/* Pins — shared base */
.pin {
  stroke: var(--color-bg-elevated);
  stroke-width: 1.5;
}
.pin-stop     { fill: var(--color-accent-2); }
.pin-park     { fill: var(--color-accent); }
.pin-personal {
  fill: #b34a2c;
  stroke: var(--color-accent-2);
  stroke-width: 2;
}

/* Pin labels */
.route-labels text {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  fill: var(--color-fg);
  dominant-baseline: middle;
}
.route-labels .label-personal {
  font-weight: 700;
  fill: var(--color-accent);
}

/* Legend */
.route-legend rect {
  fill: var(--color-bg);
  stroke: var(--color-divider);
  stroke-width: 1;
}
.route-legend text {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 10px;
  fill: var(--color-fg-muted);
  dominant-baseline: middle;
}

.route-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 3px solid var(--color-accent-2);
  padding-left: 1.5rem;
}

.route-list li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  column-gap: 1rem;
  align-items: baseline;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.5;
}

.route-list li strong {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--color-accent);
  white-space: nowrap;        /* prevents "Day 5" from breaking onto two lines */
}

.route-list li .route-text {
  /* Grid cell handles width; wrapped lines stay in this column. */
  min-width: 0;
}

@media (max-width: 540px) {
  .route-list li {
    grid-template-columns: 1fr;  /* day label stacks above route on narrow screens */
    row-gap: 0.25rem;
    column-gap: 0;
  }
}

/* ---------- DAY 7 ORIGIN-STORY CALLOUT ---------- */

.overview-origin {
  padding: 3rem 1.5rem;
}

.origin-callout {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--color-accent) 8%, var(--color-bg-elevated)) 0%,
    var(--color-bg-elevated) 100%
  );
  border-left: 4px solid var(--color-accent);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  max-width: 50rem;
  margin: 0 auto;
}

.origin-callout .eyebrow { margin-bottom: 0.5rem; }

.origin-callout-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 1rem;
  font-style: italic;
}

.origin-callout-body {
  font-size: 1.0625rem;
  line-height: 1.65;
  margin: 0;
  color: var(--color-fg);
}

/* ---------- CTA ---------- */

.overview-cta {
  padding: 2rem 1.5rem 5rem;
  text-align: center;
}

