/* Oregon Loop 2026 — refined mobile-first travel companion
   All typography uses the native system sans-serif stack. No serif or web fonts. */

:root {
  --navy: #123746;
  --navy-deep: #0b2a36;
  --forest: #276253;
  --teal: #247d78;
  --teal-dark: #1b6664;
  --teal-soft: #e4efed;
  --stone: #f3f4f1;
  --paper: #fbfcfa;
  --white: #ffffff;
  --ink: #24363d;
  --muted: #66767b;
  --muted-2: #819094;
  --rust: #b75a38;
  --rust-dark: #91442c;
  --rust-soft: #f7e9e2;
  --gold: #ae8244;
  --gold-soft: #f5ecdc;
  --road: #9b6a22;
  --road-soft: #fbf3e3;
  --line: #dbe2df;
  --line-strong: #c9d4d0;
  --shadow-sm: 0 2px 10px rgba(16, 48, 59, .055);
  --shadow: 0 10px 30px rgba(16, 48, 59, .075);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --page: 1140px;
  --header-offset: 120px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
  background: var(--stone);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.58;
  color: var(--ink);
  background: var(--stone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
[hidden], .is-hidden { display: none !important; }

:focus-visible {
  outline: 3px solid #e7a35d;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* Accessibility ---------------------------------------------------------- */
.skip-link {
  position: fixed;
  z-index: 3000;
  left: 14px;
  top: -80px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 14px; }

/* Sticky navigation ------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  color: #edf4f3;
  background: rgba(11, 42, 54, .985);
  box-shadow: 0 3px 16px rgba(0, 0, 0, .14);
  backdrop-filter: blur(10px);
}
.nav-shell {
  width: min(100%, 1240px);
  height: 58px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  text-decoration: none;
  font-size: .98rem;
  font-weight: 500;
  letter-spacing: -.005em;
  white-space: nowrap;
}
.brand-mark {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 50%;
  color: #f0c88f;
  font-size: .78rem;
  font-weight: 650;
}
.brand strong { font-weight: 650; }
.section-nav {
  display: none;
  margin-left: auto;
  gap: 2px;
}
.section-nav a,
.mobile-menu a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  color: #dbe8e5;
  border-radius: 8px;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
}
.section-nav a:hover,
.section-nav a:focus-visible,
.mobile-menu a:hover,
.mobile-menu a:focus-visible {
  color: #fff;
  background: rgba(255,255,255,.09);
}
.mobile-sections {
  position: relative;
  margin-left: auto;
}
.mobile-sections summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  cursor: pointer;
  list-style: none;
  border: 1px solid rgba(255,255,255,.23);
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
}
.mobile-sections summary::-webkit-details-marker { display: none; }
.mobile-menu {
  position: absolute;
  right: 0;
  top: 49px;
  z-index: 20;
  min-width: 220px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  background: var(--navy-deep);
  box-shadow: var(--shadow);
}
.mobile-menu a { border-bottom: 1px solid rgba(255,255,255,.07); }
.mobile-menu a:last-child { border-bottom: 0; }

.day-strip {
  width: 100%;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 6px max(16px, calc((100vw - 1240px) / 2 + 16px));
  border-top: 1px solid rgba(255,255,255,.07);
  scrollbar-width: none;
}
.day-strip::-webkit-scrollbar { display: none; }
.day-strip a {
  flex: 0 0 auto;
  min-width: 68px;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 5px 11px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 9px;
  background: rgba(255,255,255,.055);
  color: #dce8e5;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.1;
}
.day-strip a .day-chip-label { font-size: .82rem; }
.day-strip a .day-chip-date {
  color: #9fb8b3;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .03em;
}
.day-strip a:hover,
.day-strip a:focus-visible { background: rgba(255,255,255,.11); }
.day-strip a.is-active {
  color: var(--navy-deep);
  background: #fff;
  border-color: #fff;
}
.day-strip a.is-active .day-chip-date { color: #61777b; }
.day-strip a.is-today:not(.is-active) { border-color: #e6b16e; }

/* Hero ------------------------------------------------------------------- */
.hero {
  width: 100%;
  margin: 0;
  padding: 38px max(16px, calc((100vw - var(--page)) / 2));
  display: grid;
  gap: 28px;
  color: #eef4f2;
  background:
    radial-gradient(110% 110% at 86% 5%, rgba(36,125,120,.27), transparent 57%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-bottom: 3px solid var(--rust);
}
.hero-copy {
  align-self: center;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.hero-copy::after { display: none; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero .eyebrow,
.map-dialog .eyebrow { color: #87c8c1; }
.hero h1 {
  max-width: 9ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2.65rem, 11vw, 4.45rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.045em;
}
.hero h1 span { color: #fff; }
.hero-dates {
  margin: 12px 0 0;
  color: #c9d8d4;
  font-size: 1.08rem;
  font-weight: 450;
}
.countdown {
  display: inline-flex;
  margin: 18px 0 0;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  color: #d9e8e5;
  background: rgba(255,255,255,.075);
  font-size: .88rem;
  font-weight: 550;
}
.hero-stats {
  max-width: 540px;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,.17);
  border-bottom: 1px solid rgba(255,255,255,.17);
}
.hero-stats > div {
  min-width: 0;
  padding: 13px 10px;
  text-align: center;
  border-left: 1px solid rgba(255,255,255,.15);
}
.hero-stats > div:first-child { border-left: 0; }
.hero-stats strong {
  display: block;
  color: #fff;
  font-size: clamp(1.45rem, 7vw, 2rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -.025em;
}
.hero-stats span {
  display: block;
  margin-top: 5px;
  color: #9fbdb7;
  font-size: .76rem;
  font-weight: 550;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.25;
}
.button:hover { filter: brightness(.98); }
.button.primary {
  color: #fff;
  background: var(--rust);
}
.button.primary:hover { background: var(--rust-dark); }
.hero .button.secondary {
  color: #eff5f3;
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.07);
}
.hero .button.secondary:hover { background: rgba(255,255,255,.13); }

/* Map cards --------------------------------------------------------------- */
.map-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.hero-map {
  align-self: center;
  padding: 8px;
  border-color: rgba(255,255,255,.20);
  background: rgba(255,255,255,.075);
  box-shadow: none;
}
.map-card figcaption {
  padding: 8px 5px 3px;
  color: var(--muted);
  text-align: center;
  font-size: .8rem;
  font-weight: 500;
}
.hero-map figcaption { color: #aac1bc; }
.map-open {
  position: relative;
  width: 100%;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #eef2ef;
  cursor: zoom-in;
}
.map-open img {
  width: 100%;
  object-fit: contain;
  background: #eef2ef;
}
.hero-map .map-open img { max-height: 375px; }
.map-zoom-label {
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 6px 9px;
  border-radius: 7px;
  color: #fff;
  background: rgba(11,42,54,.92);
  font-size: .76rem;
  font-weight: 600;
}
.map-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 9px 0 0;
}
.map-actions .button { width: 100%; }
.map-actions .button.secondary,
.map-actions .map-open.button.secondary {
  position: static;
  display: inline-flex;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  overflow: visible;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--navy);
  background: #fff;
  cursor: pointer;
}
.map-actions .button.primary { color: #fff; background: var(--forest); }
.map-actions .button.primary:hover { background: #1f5548; }

/* Generic sections -------------------------------------------------------- */
.section,
.day-section {
  width: min(100%, var(--page));
  margin: 0 auto;
  padding: 50px 16px;
  scroll-margin-top: 0;
}
.section-heading {
  max-width: 780px;
  margin: 0 0 23px;
}
.section-heading h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: clamp(1.9rem, 6vw, 2.65rem);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -.028em;
}
.section-heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

/* Overview ---------------------------------------------------------------- */
.trip-timeline {
  display: block;
  border-top: 1px solid var(--line);
}
.trip-timeline::before { display: none; }
.overview-day {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  text-decoration: none;
  box-shadow: none;
}
.overview-day:hover,
.overview-day:focus-visible { background: rgba(36,125,120,.045); }
.overview-number {
  width: auto;
  height: auto;
  margin: 0;
  display: block;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--teal-dark);
  font-size: 1rem;
  font-weight: 650;
  text-align: center;
}
.overview-day.is-today .overview-number {
  color: var(--rust);
  background: transparent;
  box-shadow: none;
}
.overview-copy { min-width: 0; }
.overview-copy h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}
.overview-copy p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .88rem;
}
.overview-date {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 500;
  white-space: nowrap;
}
.overview-meta { display: none; }
.resource-panel {
  margin-top: 30px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #edf1ee;
  box-shadow: none;
}
.resource-panel h3 {
  margin: 0 0 11px;
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -.015em;
}
.resource-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.resource-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--forest);
  background: rgba(255,255,255,.66);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
}
.resource-link:hover,
.resource-link:focus-visible { background: #fff; }

/* Parking and passes ------------------------------------------------------ */
.passes-section { width: min(100%, 1220px); }
.deadline-banner {
  display: flex;
  gap: 11px;
  align-items: center;
  margin: 0 0 17px;
  padding: 13px 14px;
  border: 1px solid #e2b7a8;
  border-radius: 10px;
  color: #75331f;
  background: var(--rust-soft);
}
.callout-icon {
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--rust);
  font-weight: 650;
}
.deadline-banner strong,
.deadline-banner span { display: block; }
.deadline-banner span { font-size: .88rem; }
.pass-table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.pass-table { width: 100%; border-collapse: collapse; }
.pass-table th { display: none; }
.pass-table tbody,
.pass-table tr,
.pass-table td { display: block; }
.pass-table tr {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}
.pass-table tr:last-child { border-bottom: 0; }
.pass-table td {
  display: grid;
  grid-template-columns: 92px minmax(0,1fr);
  gap: 8px;
  padding: 3px 0;
  overflow-wrap: anywhere;
  font-size: .91rem;
}
.pass-table td::before {
  content: attr(data-label);
  color: var(--muted);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.pass-day { color: var(--teal-dark); font-weight: 650; }
.pass-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 9px;
  border-radius: 7px;
  color: var(--forest);
  background: var(--teal-soft);
  text-decoration: none;
  font-size: .84rem;
  font-weight: 600;
}
.pass-badge[data-pass="timed"] { color: #803c27; background: var(--rust-soft); }
.pass-badge[data-pass="county"] { color: #785a2e; background: var(--gold-soft); }
.pass-badge[data-pass="kitty"] { color: #644d76; background: #eee8f2; }
.optional-tag,
.status-tag,
.must-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.optional-tag { color: #687046; background: #eef0e8; }
.status-tag { color: #7a3d29; background: var(--rust-soft); }

/* Day sections ------------------------------------------------------------ */
.day-section {
  border-top: 1px solid var(--line);
  padding-top: 48px;
  padding-bottom: 52px;
}
.day-section.is-today .day-head {
  border-left-color: var(--rust);
}
.day-head {
  padding: 0 0 0 14px;
  border-left: 3px solid var(--teal);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}
.day-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  color: var(--teal-dark);
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.day-kicker .day-date-inline {
  color: var(--muted);
  font-weight: 550;
  letter-spacing: .05em;
}
.today-pill {
  padding: 3px 7px;
  border-radius: 999px;
  color: #713622;
  background: var(--rust-soft);
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .04em;
}
.day-head h2 {
  margin: 0;
  max-width: 900px;
  color: var(--navy);
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.032em;
}
.day-date,
.day-route-title { display: none; }
.day-metrics {
  margin-top: 17px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.metric {
  min-width: 0;
  padding: 10px 11px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric:nth-child(2n) { border-right: 0; }
.metric:nth-last-child(-n+2) { border-bottom: 0; }
.metric span {
  display: block;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.metric strong {
  display: block;
  margin-top: 2px;
  color: var(--navy);
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.day-layout {
  margin-top: 22px;
  display: grid;
  gap: 26px;
}
.day-aside { min-width: 0; order: 0; }
.day-main { min-width: 0; order: 1; }
.day-map-card {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 8px;
}
.day-map-card .map-open:first-child {
  display: grid;
  place-items: center;
}
.day-map-card .map-open:first-child img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.itinerary-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
}
.itinerary-heading h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.55rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.day-progress {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 500;
  text-align: right;
}

/* Stop timeline ----------------------------------------------------------- */
.stop-timeline {
  position: relative;
  display: grid;
  gap: 12px;
}
.stop-timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: #cbd8d4;
}
.stop {
  position: relative;
  margin-left: 34px;
  padding: 15px 15px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.stop::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 21px;
  width: 12px;
  height: 12px;
  border: 3px solid var(--stone);
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 1px #91aaa5;
}
.stop[data-category="Hotel"] { border-left-color: var(--forest); }
.stop[data-category="Hotel"]::before { background: var(--forest); }
.stop[data-category="Dining"] { border-left-color: var(--gold); }
.stop[data-category="Dining"]::before { background: var(--gold); }
.stop[data-category="Arrival"],
.stop[data-category="Departure"] { border-left-color: var(--muted-2); }
.stop[data-category="Arrival"]::before,
.stop[data-category="Departure"]::before { background: var(--muted-2); }
.stop.is-complete { opacity: .62; }
.stop-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.stop-top > div:first-child { min-width: 0; flex: 1 1 auto; }
.stop-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.stop-time {
  color: var(--teal-dark);
  font-size: .9rem;
  font-weight: 650;
}
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #42625b;
  background: #e9f0ee;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.category-badge svg { width: 13px; height: 13px; }
.stop-title {
  margin: 7px 0 0;
  color: var(--navy);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -.012em;
}
.stop-title a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: #a7c0bb;
}
.stop-title a:hover { color: var(--teal-dark); }
.complete-control {
  flex: 0 0 auto;
  position: relative;
  display: block;
}
.complete-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.complete-control span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #cbd6d2;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.complete-control span::before {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #9eb2ad;
  border-bottom: 2px solid #9eb2ad;
  transform: rotate(-45deg) translateY(-1px);
}
.complete-control input:checked + span {
  border-color: var(--teal);
  background: var(--teal-soft);
}
.complete-control input:checked + span::before { border-color: var(--teal-dark); }
.stop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}
.inline-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--forest);
  background: #fff;
  text-decoration: none;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.inline-action:hover { border-color: #91aca5; background: #f8faf8; }
.detail-list {
  list-style: none;
  display: grid;
  gap: 3px;
  margin: 11px 0 0;
  padding: 0;
}
.detail-line {
  position: relative;
  padding: 5px 0 5px 17px;
  color: #46585e;
  background: transparent;
  font-size: .94rem;
  line-height: 1.5;
}
.detail-line::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .9em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #99aaa7;
}
.detail-line[data-tone="parking"] {
  margin: 3px 0;
  padding: 8px 9px 8px 25px;
  border-radius: 7px;
  color: #235651;
  background: var(--teal-soft);
}
.detail-line[data-tone="parking"]::before {
  left: 10px;
  top: 1.1em;
  background: var(--teal);
}
.detail-line[data-tone="critical"] {
  margin: 3px 0;
  padding: 8px 9px 8px 25px;
  border-radius: 7px;
  color: #7c3523;
  background: var(--rust-soft);
  font-weight: 600;
}
.detail-line[data-tone="critical"]::before {
  left: 10px;
  top: 1.1em;
  background: var(--rust);
}
.detail-line[data-tone="optional"] { color: #667579; }
.detail-line[data-tone="optional"]::before {
  background: transparent;
  border: 1px solid #91a09d;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}
.hotel-private {
  display: inline-flex;
  margin-top: 10px;
  padding: 5px 8px;
  border-radius: 7px;
  color: #355d50;
  background: #e9f1ed;
  font-size: .8rem;
  font-weight: 600;
}

/* Day notes --------------------------------------------------------------- */
.notes-panel {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}
.note-callout {
  display: grid;
  grid-template-columns: minmax(112px, auto) 1fr;
  gap: 10px;
  align-items: start;
  padding: 9px 11px;
  border-left: 3px solid #aebcb8;
  border-radius: 8px;
  background: #eef1ef;
  font-size: .9rem;
}
.note-label {
  color: #596b70;
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.note-text { min-width: 0; color: #405258; }
.note-text a { color: inherit; font-weight: 600; }
.note-callout[data-tone="critical"] {
  border-left-color: var(--rust);
  color: #71311f;
  background: var(--rust-soft);
}
.note-callout[data-tone="critical"] .note-label,
.note-callout[data-tone="critical"] .note-text { color: #71311f; }
.note-callout[data-tone="road"] {
  border-left-color: #c18c37;
  background: var(--road-soft);
}
.note-callout[data-tone="road"] .note-label,
.note-callout[data-tone="road"] .note-text { color: #6f521d; }
.note-callout[data-tone="parking"] {
  border-left-color: var(--teal);
  background: var(--teal-soft);
}
.note-callout[data-tone="optional"] { background: #f0f1ed; }

/* Crater Lake special ----------------------------------------------------- */
.crater-special {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.crater-special-head { margin-bottom: 14px; }
.crater-special .eyebrow { margin-bottom: 5px; }
.crater-special h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.5rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.crater-special-head > p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .9rem;
}
.crater-reference {
  margin: 0 0 16px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f8f5;
}
.crater-reference .map-open img {
  width: 100%;
  max-height: 390px;
  object-fit: contain;
}
.crater-reference figcaption {
  margin-top: 7px;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.42;
}
.hike-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.hike-card {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-left: 3px solid #9db5af;
  border-radius: 9px;
  background: #fbfcfa;
}
.hike-card.recommended { border-left-color: var(--gold); }
.hike-card.unavailable {
  border-left-color: var(--rust);
  background: #fbf3f0;
}
.hike-card h4 {
  margin: 0;
  color: var(--navy);
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.3;
}
.hike-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .85rem;
}
.hike-card.unavailable p { color: #744638; }
.hike-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}
.hike-meta span {
  padding: 3px 7px;
  border-radius: 999px;
  color: #4e6266;
  background: #eef2ef;
  font-size: .75rem;
  font-weight: 600;
}
.hike-card.unavailable .hike-meta span:last-child {
  color: #7b3724;
  background: var(--rust-soft);
}

/* Restaurants ------------------------------------------------------------- */
.restaurants-section { width: min(100%, 1080px); }
.restaurant-summary {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.restaurant-summary div {
  padding: 12px 8px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.restaurant-summary div:last-child { border-right: 0; }
.restaurant-summary strong {
  display: block;
  color: var(--navy);
  font-size: 1.5rem;
  font-weight: 650;
  line-height: 1.1;
}
.restaurant-summary span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.restaurant-tools {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #edf1ef;
}
.restaurant-tools label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.restaurant-tools input[type="search"],
.restaurant-tools select {
  width: 100%;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid #b9c7c3;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}
.toggle-field {
  min-height: 46px;
  display: grid !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  align-self: end;
  padding: 0 10px;
  border: 1px solid #b9c7c3;
  border-radius: 8px;
  background: #fff;
}
.toggle-field input { width: 20px; height: 20px; }
.text-button {
  min-height: 44px;
  padding: 0 6px;
  border: 0;
  color: var(--forest);
  background: transparent;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-button.danger { color: #8b4131; }
.filter-result {
  margin: 7px 0 18px;
  color: var(--muted);
  font-size: .88rem;
}
.restaurant-town { margin: 25px 0; }
.restaurant-town h3 {
  margin: 0 0 9px;
  padding-bottom: 7px;
  border-bottom: 2px solid #bfd0cb;
  color: var(--navy);
  font-size: 1.4rem;
  font-weight: 650;
  line-height: 1.2;
}
.restaurant-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.restaurant-card {
  padding: 11px 12px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}
.restaurant-card.must-try { border-left: 4px solid var(--gold); }
.restaurant-card h4 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}
.restaurant-card h4 a { text-underline-offset: 3px; }
.must-badge { margin-left: 5px; color: #75532b; background: var(--gold-soft); vertical-align: middle; }
.restaurant-card p { margin: 0; color: var(--muted); font-size: .88rem; }

/* Packing ----------------------------------------------------------------- */
.packing-section { width: min(100%, 920px); }
.packing-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 11px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 550;
}
.packing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}
.packing-item {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}
.packing-item:hover { border-color: #9db5af; }
.packing-item input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  accent-color: var(--forest);
}
.packing-item span { font-weight: 500; }
.packing-item:has(input:checked) span { color: #83918d; text-decoration: line-through; }

/* Footer and utilities ---------------------------------------------------- */
.site-footer {
  margin-top: 28px;
  padding: 27px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  color: #dfeae7;
  background: var(--navy-deep);
}
.site-footer strong,
.site-footer span { display: block; }
.site-footer strong { font-size: 1.2rem; font-weight: 650; }
.site-footer span,
.site-footer p { margin: 0; color: #a8bfba; font-size: .8rem; }
.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 850;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--forest);
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .2s;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.noscript {
  padding: 18px;
  color: #6f3021;
  background: var(--rust-soft);
  font-weight: 600;
}

/* Full-screen map viewer -------------------------------------------------- */
.map-dialog {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  background: #111c21;
}
.map-dialog::backdrop { background: rgba(0,0,0,.82); }
.map-dialog-head {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,.13);
}
.map-dialog-head .eyebrow { margin: 0; font-size: .75rem; }
.map-dialog-head h2 { margin: 0; font-size: 1.2rem; font-weight: 650; }
.dialog-close {
  min-width: 64px;
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 8px;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
}
.map-dialog-body {
  height: calc(100dvh - 74px);
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 10px;
}
.map-dialog-body img {
  width: auto;
  height: auto;
  max-width: none;
  max-height: calc(100dvh - 94px);
  object-fit: contain;
  background: #fff;
}

/* Tablet ------------------------------------------------------------------ */
@media (min-width: 720px) {
  :root { --header-offset: 120px; }
  .section-nav { display: flex; }
  .mobile-sections { display: none; }
  .hero {
    grid-template-columns: minmax(0, .95fr) minmax(360px, .8fr);
    align-items: center;
    gap: 38px;
    padding-top: 44px;
    padding-bottom: 42px;
  }
  .hero h1 { max-width: 10ch; }
  .resource-grid { grid-template-columns: repeat(3,1fr); }
  .pass-table thead { display: table-header-group; }
  .pass-table tbody { display: table-row-group; }
  .pass-table tr { display: table-row; padding: 0; }
  .pass-table th,
  .pass-table td {
    display: table-cell;
    padding: 12px 13px;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
  }
  .pass-table th {
    color: #fff;
    background: var(--navy);
    text-align: left;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .055em;
    text-transform: uppercase;
  }
  .pass-table td { font-size: .87rem; }
  .pass-table td::before { display: none; }
  .day-metrics { grid-template-columns: repeat(4,1fr); }
  .metric { border-bottom: 0; }
  .metric:nth-child(2n) { border-right: 1px solid var(--line); }
  .metric:last-child { border-right: 0; }
  .stop { margin-left: 42px; padding: 17px 18px 16px; }
  .stop-timeline::before { left: 16px; }
  .stop::before { left: -34px; }
  .stop-title { font-size: 1.22rem; }
  .hike-grid { grid-template-columns: repeat(2,1fr); }
  .restaurant-tools {
    grid-template-columns: minmax(260px,1.7fr) minmax(160px,.8fr) auto auto;
    align-items: end;
  }
  .restaurant-list { grid-template-columns: repeat(2,1fr); }
  .packing-grid { grid-template-columns: repeat(2,1fr); }
  .site-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 28px max(24px, calc((100vw - var(--page)) / 2));
    text-align: left;
  }
}

/* Desktop: itinerary first, compact sticky map to the right --------------- */
@media (min-width: 980px) {
  .day-layout {
    grid-template-columns: minmax(0,1fr) 326px;
    grid-template-areas: "main aside";
    align-items: start;
    gap: 30px;
  }
  .day-main { grid-area: main; order: initial; }
  .day-aside {
    grid-area: aside;
    order: initial;
    position: sticky;
    top: calc(var(--header-offset) + 16px);
  }
  .day-map-card { max-width: none; padding: 7px; }
  .day-map-card .map-open:first-child img {
    width: auto;
    max-width: 100%;
    max-height: 285px;
    margin: 0 auto;
  }
  .day-map-card .map-actions { grid-template-columns: 1fr; }
  .day-map-card .button { font-size: .84rem; }
  .itinerary-heading { margin-top: 0; }
}

@media (min-width: 1120px) {
  .day-layout { grid-template-columns: minmax(0,1fr) 342px; gap: 34px; }
  .day-map-card .map-open:first-child img { max-height: 300px; }
}

/* Phone-specific readability --------------------------------------------- */
@media (max-width: 719px) {
  body { font-size: 17px; line-height: 1.58; }
  .nav-shell { height: 56px; }
  .brand { font-size: .9rem; }
  .brand-mark { width: 30px; height: 30px; }
  .day-strip { height: 60px; }
  .day-strip a { min-width: 66px; min-height: 46px; }
  .day-strip a .day-chip-label { font-size: .8rem; }
  .day-strip a .day-chip-date { font-size: .75rem; }
  .hero { padding-top: 30px; padding-bottom: 30px; }
  .hero h1 { font-size: clamp(2.55rem, 13vw, 3.35rem); }
  .hero-dates { font-size: 1.02rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .hero-map .map-open img { max-height: none; }
  .section,
  .day-section { padding-left: 14px; padding-right: 14px; }
  .section { padding-top: 44px; padding-bottom: 44px; }
  .day-section { padding-top: 42px; padding-bottom: 46px; }
  .day-head h2 { font-size: clamp(2rem, 9.5vw, 2.55rem); }
  .day-kicker { font-size: .76rem; }
  .metric { padding: 10px 9px; }
  .metric span { font-size: .76rem; }
  .metric strong { font-size: 1rem; }
  .day-layout { gap: 22px; }
  .day-map-card { max-width: none; }
  .day-map-card .map-open:first-child img { width: 100%; max-height: none; }
  .map-actions { grid-template-columns: 1fr 1fr; }
  .map-actions .button { padding-left: 9px; padding-right: 9px; font-size: .83rem; }
  .itinerary-heading h3 { font-size: 1.45rem; }
  .day-progress { max-width: 44%; font-size: .78rem; line-height: 1.35; }
  .stop { margin-left: 30px; padding: 14px 13px; }
  .stop-timeline::before { left: 10px; }
  .stop::before { left: -27px; }
  .stop-title { font-size: 1.15rem; }
  .detail-line { font-size: .94rem; }
  .inline-action { font-size: .83rem; }
  .note-callout {
    grid-template-columns: 1fr;
    gap: 3px;
    font-size: .9rem;
  }
  .crater-special { padding: 14px; }
  .crater-reference .map-open img { max-height: none; }
  .packing-toolbar { align-items: flex-start; }
}

@media (max-width: 380px) {
  .map-actions { grid-template-columns: 1fr; }
  .overview-day { grid-template-columns: 34px minmax(0,1fr); }
  .overview-date { grid-column: 2; margin-top: -7px; }
}

/* Print ------------------------------------------------------------------- */
@media print {
  * { box-shadow: none !important; }
  html, body { background: #fff; color: #111; font-size: 10.5pt; }
  .site-header,
  .hero-actions,
  .map-zoom-label,
  .map-actions,
  .complete-control,
  .restaurant-tools,
  .filter-result,
  .packing-toolbar,
  .back-to-top,
  .site-footer,
  .dialog-close,
  .noscript,
  .skip-link { display: none !important; }
  .hero {
    display: block;
    padding: 0 0 12pt;
    color: #111;
    background: #fff;
    border-bottom: 2px solid #111;
  }
  .hero h1,
  .hero-stats strong { color: #111; }
  .hero-dates,
  .hero .eyebrow,
  .countdown,
  .hero-stats span { color: #444; }
  .hero-map { margin-top: 10pt; border: 1px solid #999; background: #fff; }
  .section,
  .day-section { width: 100%; padding: 14pt 0; }
  .section-heading h2,
  .day-head h2,
  .stop-title,
  .itinerary-heading h3,
  .restaurant-town h3,
  .crater-special h3 { color: #111; }
  .day-head { padding-left: 8pt; border-left: 2pt solid #555; }
  .day-metrics { border: 1px solid #999; }
  .day-layout { display: block; }
  .day-aside { position: static; margin: 10pt 0; }
  .day-map-card,
  .crater-reference { break-inside: avoid; }
  .day-map-card img,
  .hero-map img,
  .crater-reference img { max-height: 5.5in !important; object-fit: contain; }
  .stop { break-inside: avoid; margin-left: 0; border: 1px solid #aaa; }
  .stop::before,
  .stop-timeline::before { display: none; }
  .notes-panel,
  .crater-special,
  .restaurant-town,
  .hike-card { break-inside: avoid; }
  .crater-special { border: 1px solid #777; background: #fff; }
  .restaurant-card[hidden],
  .restaurant-town[hidden] { display: block !important; }
  .packing-item { break-inside: avoid; }
  .packing-item input {
    appearance: none;
    width: 12pt;
    height: 12pt;
    border: 1px solid #555;
  }
  .pass-table thead { display: table-header-group; }
  .pass-table tbody { display: table-row-group; }
  .pass-table tr { display: table-row; }
  .pass-table th,
  .pass-table td { display: table-cell; border-bottom: 1px solid #ddd; }
  .pass-table th { color: #111; background: #eee; }
  .pass-table td::before { display: none; }
  .button,
  .inline-action,
  .resource-link { min-height: 0; padding: 0; border: 0; color: #111; background: #fff; text-decoration: underline; }
  a[href] { text-decoration: underline; }
  .map-dialog { display: none !important; }
}

/* Final readability and image-ratio safeguards --------------------------- */
body { font-size: 16.5px; }
.resource-link { font-size: .92rem; }
.overview-copy p { font-size: .91rem; }
.pass-table td { font-size: .93rem; }
.detail-line { font-size: .97rem; }
.note-callout { font-size: .93rem; }
.hike-card p { font-size: .88rem; }
.restaurant-card p { font-size: .91rem; }

.hero-map .map-open,
.crater-reference .map-open {
  display: grid;
  place-items: center;
}
.hero-map .map-open img {
  width: auto;
  max-width: 100%;
  max-height: 375px;
  margin-inline: auto;
}
.crater-reference .map-open img {
  width: auto;
  max-width: 100%;
  max-height: 390px;
  margin-inline: auto;
}

@media (max-width: 719px) {
  body { font-size: 17px; }
  .detail-line { font-size: .97rem; }
  .note-callout { font-size: .92rem; }
  .hero-map .map-open img,
  .crater-reference .map-open img {
    width: 100%;
    height: auto;
    max-height: none;
  }
}
.resource-link, .pass-badge { overflow-wrap: anywhere; }
