/* =========================================================
   OKINAWA SAMPLE ITINERARY
========================================================= */

:root {
  --it-blue: #087e9e;
  --it-blue-dark: #07566b;
  --it-aqua: #26b8b0;
  --it-sand: #f4efe5;
  --it-cream: #fbfaf7;
  --it-navy: #12333d;
  --it-text: #26373b;
  --it-muted: #68787c;
  --it-line: #dce5e6;
  --it-white: #fff;
  --it-shadow: 0 12px 35px rgba(13,54,64,.09);
  --it-radius: 20px;
  --it-container: 1040px;
}

.itinerary-page,
.itinerary-page * {
  box-sizing: border-box;
}

.itinerary-page {
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--it-cream);
  color: var(--it-text);
  font-family: "Lato", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

.itinerary-container {
  width: min(calc(100% - 40px), var(--it-container));
  margin: 0 auto;
}

.itinerary-eyebrow {
  margin: 0 0 10px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
}

.itinerary-eyebrow.dark {
  color: var(--it-blue);
}

/* HERO */
.itinerary-hero {
  padding: 92px 0 72px;
  background: linear-gradient(135deg, var(--it-blue-dark), var(--it-blue));
  color: #fff;
  text-align: center;
}

.itinerary-hero h1 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 1.04;
}

.itinerary-subtitle {
  margin: 0;
  color: rgba(255,255,255,.84);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.itinerary-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.itinerary-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.itinerary-nav a:hover {
  background: #fff;
  color: var(--it-blue-dark);
}

/* INTRO */
.itinerary-intro {
  padding: 38px 0;
  border-bottom: 1px solid var(--it-line);
  background: #fff;
  text-align: center;
}

.itinerary-intro p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--it-muted);
  font-size: 1.04rem;
}

/* DAY */
.day-section {
  padding: 82px 0;
  background: #fff;
  scroll-margin-top: 30px;
}

.day-section-soft {
  background: var(--it-sand);
}

.day-header {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  overflow: hidden;
  margin-bottom: 45px;
  border-radius: var(--it-radius);
  background: var(--it-navy);
  box-shadow: var(--it-shadow);
}

.day-header.reverse {
  grid-template-columns: .88fr 1.12fr;
}

.day-header.reverse .day-image {
  order: 2;
}

.day-image {
  min-height: 340px;
  background: #dce5e6;
}

.day-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.day-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 58px);
  color: #fff;
}

.day-number {
  display: block;
  margin-bottom: 12px;
  color: #8fe6e1;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
}

.day-title h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.12;
}

.day-title p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-weight: 700;
}

/* ROUTE */
.route-list {
  position: relative;
  max-width: 850px;
  margin: 0 auto;
}

.route-stop {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
  position: relative;
  padding: 0 0 10px;
}

.route-marker {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--it-blue);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(8,126,158,.18);
}

.route-content {
  padding: 0 0 25px;
  border-bottom: 1px solid var(--it-line);
}

.route-content h3 {
  margin: 0 0 8px;
  color: var(--it-navy);
  font-size: 1.4rem;
  line-height: 1.3;
}

.route-content p {
  margin: 0;
  color: var(--it-muted);
}

.route-content .time-required {
  margin-bottom: 9px;
  color: var(--it-blue-dark);
  font-size: .93rem;
}

.route-stop.compact .route-content {
  padding-bottom: 18px;
}

.travel-time {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 24px 18px;
  padding-left: 58px;
  color: var(--it-muted);
  font-size: .92rem;
}

.travel-icon {
  color: var(--it-aqua);
  font-size: 1.2rem;
}

.overnight-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 0 78px;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--it-cream);
  color: var(--it-navy);
}

.overnight-note span {
  color: var(--it-aqua);
  font-size: .7rem;
}

.final-stop .route-content {
  border-bottom: 0;
}

#back-top {
  clear: both;
}

/* RESPONSIVE */
@media (max-width: 760px) {
  .itinerary-container {
    width: min(calc(100% - 28px), var(--it-container));
  }

  .itinerary-hero {
    padding: 72px 0 56px;
  }

  .day-section {
    padding: 58px 0;
  }

  .day-header,
  .day-header.reverse {
    grid-template-columns: 1fr;
  }

  .day-header.reverse .day-image {
    order: 0;
  }

  .day-image,
  .day-image img {
    min-height: 240px;
    max-height: 320px;
  }

  .day-title {
    padding: 28px 24px 32px;
  }

  .route-stop {
    grid-template-columns: 46px 1fr;
    gap: 14px;
  }

  .route-marker {
    width: 40px;
    height: 40px;
    font-size: .72rem;
  }

  .travel-time {
    margin-left: 8px;
    padding-left: 46px;
  }

  .overnight-note {
    margin-left: 54px;
  }

  .itinerary-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .itinerary-nav a {
    width: 100%;
  }
}
