:root {
  color-scheme: light;
  --ink: #16201d;
  --muted: #63706a;
  --paper: #f7f4ed;
  --line: #d8d2c4;
  --green: #245c4c;
  --blue: #246377;
  --yellow: #e6b84f;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(18, 29, 25, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #1c2a25;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.heroOverlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 18, 17, 0.84) 0%, rgba(10, 18, 17, 0.56) 43%, rgba(10, 18, 17, 0.12) 100%),
    linear-gradient(0deg, rgba(10, 18, 17, 0.72) 0%, rgba(10, 18, 17, 0) 54%);
}

.topbar {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 32px));
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.topbar a,
.heroActions a,
.mapButtons a,
.card a,
.destinationCard a,
.parkingGrid a,
.bathPlan a,
.sourceLinks a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.93rem;
}

.topbar a {
  padding: 8px 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.heroText {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 120px 0 88px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--yellow);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.45rem, 5.2vw, 5rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.nowrap {
  white-space: nowrap;
}

.heroText > p:not(.eyebrow) {
  max-width: 640px;
  margin: 22px 0 0;
  font-size: clamp(1rem, 2vw, 1.22rem);
  color: rgba(255, 255, 255, 0.86);
}

.heroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary,
.secondary {
  padding: 12px 18px;
}

.primary {
  background: var(--yellow);
  color: #1c2014;
}

.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
}

main {
  overflow: hidden;
}

.summaryBand {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ink);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.summaryBand div {
  padding: 24px clamp(18px, 3vw, 38px);
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.summaryBand span,
.timeControl p,
.sectionHead p,
.card p,
.planCard p,
.routeGrid p,
.parkingGrid p,
.sidequestPlan p,
.spotGrid p,
.bathPlan p,
.stopList p,
.sources p {
  color: var(--muted);
}

.summaryBand span {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}

.summaryBand strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(1.1rem, 2.3vw, 1.6rem);
  line-height: 1.25;
}

.destinations {
  padding-top: 58px;
}

.routeRibbon {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(18, 29, 25, 0.06);
}

.routeRibbon span {
  position: relative;
  min-height: 52px;
  display: grid;
  place-items: center;
  padding: 10px 18px;
  color: var(--green);
  font-weight: 900;
  text-align: center;
  font-size: 0.92rem;
}

.routeRibbon span + span {
  border-left: 1px solid var(--line);
}

.routeRibbon span + span::before {
  content: "→";
  position: absolute;
  left: -11px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: #2d2112;
  font-size: 0.75rem;
  box-shadow: 0 0 0 4px var(--paper);
}

.destinationGrid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.destinationCard {
  grid-column: span 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(18, 29, 25, 0.08);
}

.destinationCardLarge {
  grid-column: span 3;
}

.destinationCard img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #d8d2c4;
}

.destinationCard div {
  padding: 18px;
}

.destinationCard span {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 4px 10px;
  margin-bottom: 10px;
  border-radius: 999px;
  color: var(--green);
  background: #eaf1ef;
  font-size: 0.78rem;
  font-weight: 900;
}

.destinationCard h3 {
  margin: 0 0 8px;
  font-size: 1.16rem;
  line-height: 1.35;
}

.destinationCard p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.destinationCard a {
  width: fit-content;
  margin-top: 16px;
  padding: 10px 14px;
  background: #eaf1ef;
  color: var(--green);
}

section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0;
}

.sectionHead {
  max-width: 760px;
  margin-bottom: 28px;
}

.sectionHead h2,
.mapPanel h2,
.notes h2,
.sources h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 3rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.sectionHead p:not(.eyebrow) {
  margin: 12px 0 0;
}

.timeControl {
  display: grid;
  grid-template-columns: auto 156px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.timeControl label {
  font-weight: 800;
}

.timeControl input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #bcb5a7;
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  color: var(--ink);
  background: #fffdfa;
}

.timeControl p {
  margin: 0;
  font-size: 0.94rem;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 26px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.timeline time {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--blue);
}

.timeline h3,
.routeGrid h3,
.card h3,
.planCard h3,
.parkingGrid h3,
.sidequestPlan h3,
.spotGrid h3,
.bathPlan h3,
.stopList h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.35;
}

.timeline p,
.routeGrid p,
.card p,
.planCard p,
.parkingGrid p,
.sidequestPlan p,
.spotGrid p,
.bathPlan p,
.stopList p {
  margin: 8px 0 0;
}

.routeCompare {
  padding-bottom: 36px;
}

.planCompare {
  padding-bottom: 38px;
}

.planGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.planCard {
  width: 100%;
  font: inherit;
  text-align: left;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(18, 29, 25, 0.07);
  cursor: pointer;
}

.planCard.recommended,
.planCard.is-selected {
  border-color: rgba(230, 184, 79, 0.9);
  box-shadow: 0 18px 42px rgba(112, 86, 22, 0.16);
}

.planCard.is-selected {
  outline: 3px solid rgba(230, 184, 79, 0.35);
}

.planCard > span {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 4px 10px;
  margin-bottom: 14px;
  border-radius: 999px;
  color: var(--green);
  background: #eaf1ef;
  font-size: 0.78rem;
  font-weight: 900;
}

.planCard.recommended > span {
  color: #2d2112;
  background: #f1c85c;
}

.planCard dl {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.planCard dl div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.planCard dt,
.planCard dd {
  margin: 0;
}

.planCard dt {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.planCard dd {
  font-weight: 900;
}

.selectedPlan {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: start;
  margin-top: 16px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid rgba(230, 184, 79, 0.9);
  background: #fffdfa;
  box-shadow: var(--shadow);
}

.selectedPlan h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  line-height: 1.18;
}

.selectedPlan p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
}

.selectedPlan ol {
  margin: 0;
  padding-left: 1.2em;
}

.selectedPlan li {
  padding: 7px 0;
  font-weight: 800;
}

.modeSwitch {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 6px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.modeSwitch label {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 7px;
  font-weight: 900;
  cursor: pointer;
}

.modeSwitch input {
  position: absolute;
  opacity: 0;
}

.modeSwitch label:has(input:checked) {
  color: var(--white);
  background: var(--green);
}

.modeSummary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.modeSummary div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(18, 29, 25, 0.07);
}

.modeSummary span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.modeSummary strong {
  display: block;
  margin-top: 4px;
  font-size: 1.15rem;
  line-height: 1.3;
}

.routeLine {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.routeLine li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 134px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(18, 29, 25, 0.08);
}

.routePoint {
  display: grid;
  grid-template-columns: 38px 1fr;
  column-gap: 10px;
  align-items: center;
}

.stepNo {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: #2d2112;
  font-weight: 900;
  box-shadow: 0 0 0 5px rgba(230, 184, 79, 0.18);
}

.segmentFrom,
.segmentTo {
  display: block;
  line-height: 1.25;
}

.segmentTo {
  grid-column: 2;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.segmentMeta {
  min-width: 156px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #eaf1ef;
  text-align: left;
}

.segmentMeta span,
.segmentCost span {
  display: block;
  color: var(--muted);
  font-weight: 900;
  font-size: 0.78rem;
}

.segmentMeta strong {
  display: block;
  margin-top: 3px;
  font-size: 1.22rem;
  color: var(--blue);
  line-height: 1.25;
}

.segmentCost {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.segmentCost strong {
  color: var(--ink);
}

.routeSection {
  padding-top: 38px;
}

.routeGrid,
.cards,
.parkingGrid,
.cruiseGrid,
.sidequestPlan,
.spotGrid,
.bathPlan,
.stopList {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.routeGrid article,
.card,
.parkingGrid article,
.cruiseGrid article,
.sidequestPlan article,
.spotGrid article,
.bathPlan article,
.stopList article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(18, 29, 25, 0.07);
}

.routeNo {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 900;
}

.mapPanel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
  background: var(--green);
  color: var(--white);
  width: 100%;
  max-width: none;
  padding: 56px max(16px, calc((100vw - 1120px) / 2));
}

.mapPanel .eyebrow {
  color: #f1c85c;
}

.mapButtons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.mapButtons a {
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.cards {
  grid-template-columns: repeat(3, 1fr);
}

.card a {
  width: fit-content;
  margin-top: 18px;
  padding: 10px 14px;
  background: #eaf1ef;
  color: var(--green);
}

.parkingGrid {
  grid-template-columns: repeat(3, 1fr);
}

.parkingGrid article > span,
.cruiseGrid article > span {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 4px 10px;
  margin-bottom: 12px;
  border-radius: 999px;
  color: var(--green);
  background: #eaf1ef;
  font-size: 0.78rem;
  font-weight: 900;
}

.parkingGrid a {
  width: fit-content;
  margin-top: 18px;
  padding: 10px 14px;
  background: #eaf1ef;
  color: var(--green);
}

.cruiseGrid {
  grid-template-columns: repeat(4, 1fr);
}

.cruiseGrid article {
  border-top: 4px solid var(--blue);
}

.cruiseGrid h3 {
  color: var(--blue);
}

.sidequestPlan {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 14px;
}

.spotGrid {
  grid-template-columns: repeat(5, 1fr);
}

.spotGrid article > span {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 4px 10px;
  margin-bottom: 12px;
  border-radius: 999px;
  color: #2d2112;
  background: #f1c85c;
  font-size: 0.78rem;
  font-weight: 900;
}

.spotGrid small {
  display: block;
  margin-top: 12px;
  color: var(--green);
  font-weight: 900;
  line-height: 1.45;
}

.bathPlan {
  grid-template-columns: repeat(3, 1fr);
}

.bathPlan a {
  width: fit-content;
  margin-top: 18px;
  padding: 10px 14px;
  background: #eaf1ef;
  color: var(--green);
}

.stopList {
  grid-template-columns: repeat(2, 1fr);
}

.notes {
  width: 100%;
  max-width: none;
  background: #efe6d7;
  padding: 64px max(16px, calc((100vw - 1120px) / 2));
}

.notes > div {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 30px;
}

.notes ul {
  margin: 0;
  padding-left: 1.2em;
}

.notes li + li {
  margin-top: 8px;
}

.sources {
  padding-bottom: 52px;
}

.sourceLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.sourceLinks a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--white);
}

footer {
  padding: 24px 16px 36px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 860px) {
  .topbar {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .summaryBand,
  .routeRibbon,
  .modeSummary,
  .planGrid,
  .selectedPlan,
  .destinationGrid,
  .routeGrid,
  .cards,
  .parkingGrid,
  .cruiseGrid,
  .sidequestPlan,
  .spotGrid,
  .bathPlan,
  .stopList,
  .mapPanel,
  .notes > div {
    grid-template-columns: 1fr;
  }

  .summaryBand div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  }

  .routeRibbon {
    overflow: visible;
  }

  .routeRibbon span + span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .routeRibbon span + span::before {
    left: 50%;
    top: -11px;
    transform: translateX(-50%) rotate(90deg);
  }

  .destinationCard,
  .destinationCardLarge {
    grid-column: span 1;
  }

  .timeControl {
    grid-template-columns: 1fr;
  }

  .modeSwitch {
    display: grid;
    width: 100%;
  }

  .routeLine li {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .segmentMeta {
    min-width: 0;
    text-align: left;
  }

  .timeline li {
    grid-template-columns: 88px 1fr;
    gap: 14px;
  }

  .timeline time {
    font-size: 1.2rem;
  }

}

@media (max-width: 520px) {
  .hero {
    min-height: 88vh;
  }

  .heroText {
    padding-bottom: 56px;
  }

  .heroActions,
  .mapButtons {
    grid-template-columns: 1fr;
    display: grid;
  }

  section {
    padding: 56px 0;
  }
}
