:root {
  color-scheme: light;
  --paper: #f6f4ed;
  --ink: #172f28;
  --muted: #4c6057;
  --line: #d9ddd0;
  --white: #fffdf6;
  --gold: #f0c37e;
  --green: #204c3d;
  --serif: Georgia, 'Times New Roman', serif;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, :is(input, select, textarea):focus-visible {
  outline: 3px solid #a75519;
  outline-offset: 3px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0 0 .6em; }
h1 { font-size: clamp(2.65rem, 7.3vw, 6.5rem); letter-spacing: -.05em; }
h2 { font-size: clamp(2rem, 4vw, 3.7rem); letter-spacing: -.04em; }
h3 { font-size: clamp(1.7rem, 3vw, 2.6rem); letter-spacing: -.035em; }
p { margin: 0 0 1rem; }
.wrap { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.top, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.65rem; }
.top nav { display: flex; align-items: center; gap: clamp(.7rem, 2vw, 2rem); }
.top a { text-decoration: none; }
.top a:hover, .footer a:hover { text-decoration: underline; }
.brand { display: inline-flex; gap: .55rem; align-items: center; font: 700 clamp(1.15rem, 2.4vw, 1.55rem)/1.05 var(--serif); }
.brand span { color: #a2511b; }
.lang { border: 1px solid var(--line); padding: .35rem .65rem; border-radius: 2rem; }
.skip { position: absolute; top: .75rem; left: .75rem; z-index: 3; transform: translateY(-180%); background: var(--white); padding: .6rem; }
.skip:focus { transform: none; }
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  overflow: hidden;
  min-height: clamp(35rem, 49vw, 44rem);
  border-radius: 1.35rem;
  color: var(--white);
  background: #203d36;
}
.cover { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero .cover, .hero::after { position: absolute; inset: 0; z-index: -1; }
.hero::after { content: ''; background: linear-gradient(18deg, #0b231cf7, #102b25ad 39%, #132b260a 85%); }
.hero-content { width: 100%; padding: clamp(1.35rem, 5.5vw, 5rem); }
.hero-content h1 { margin-bottom: .22em; }
.eyebrow { font-size: .875rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.hero .eyebrow { color: var(--gold); margin-bottom: 1rem; }
.lede { font-size: clamp(1.05rem, 1.8vw, 1.35rem); max-width: 38rem; }
.button { display: inline-block; padding: .72rem 1.15rem; min-height: 2.8rem; border: 1px solid transparent; border-radius: .5rem; background: var(--green); color: white; font: 650 1rem/1.35 system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.button:hover { background: #123a2d; }
.button.light { background: var(--gold); color: #192d26; }
.button.light:hover { background: #ffe0a4; }
.button.outline { border-color: #ffffffac; background: #192e2799; }
.button.outline:hover { background: #172f28; }
.button:disabled { opacity: .65; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.cards, .partner-options, .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; }
.card a { display: block; text-decoration: none; height: 100%; }
.card a:focus-visible { outline-offset: -4px; }
.card a:hover .text-link { text-decoration: underline; }
.card-photo { position: relative; aspect-ratio: 2.05; background: #d2ddce; }
.pill { display: inline-block; border-radius: 2rem; padding: .28rem .72rem; background: var(--white); color: var(--ink); font-size: .875rem; font-weight: 650; }
.card-photo .pill { position: absolute; top: .85rem; left: .85rem; }
.card-body { padding: clamp(1.15rem, 3vw, 2rem); }
.card-body h3 { margin-bottom: .28em; }
.card-body .eyebrow, .stop .eyebrow { color: var(--muted); }
.quiet { color: var(--muted); font-size: .9rem; }
.image-note { margin: .7rem 0 0; }
.text-link { color: var(--green); font-weight: 650; text-underline-offset: .2em; }
.band { background: #e4eadc; border-radius: .9rem; padding: clamp(1.25rem, 4vw, 3rem); display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.band h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); margin-bottom: .2em; }
.band p { margin: 0; }
.band .button { flex-shrink: 0; }
.footer { margin-top: 2.5rem; border-top: 1px solid var(--line); color: var(--muted); }
.back { display: inline-block; margin: .25rem 0 .85rem; color: var(--green); text-underline-offset: .2em; }
.form-page { width: min(100%, 47rem); margin: 3rem auto; }
.form-page h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
.partner-options { margin-block: 1.5rem; }
.partner-options article { background: #e4eadc; border-radius: .8rem; padding: 1rem; }
.partner-options h2 { font-size: 1.55rem; }
.partner-options p { margin-bottom: 0; }
.form { padding: clamp(1rem, 4vw, 2rem); border-radius: 1rem; border: 1px solid var(--line); background: var(--white); }
.form label { display: block; font-weight: 650; margin-bottom: .9rem; }
.form :is(input, select, textarea) { display: block; width: 100%; min-height: 2.8rem; margin-top: .3rem; border-radius: .35rem; border: 1px solid #849389; padding: .5rem; background: white; font: inherit; font-weight: 400; color: var(--ink); }
.form textarea { resize: vertical; }
.form-status { margin: .7rem 0 0; font-weight: 650; }
.form-status:empty { margin: 0; }
.trap { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 43rem) {
  .wrap { width: calc(100% - 1.6rem); }
  .top { min-height: 4rem; }
  .top nav { font-size: .875rem; }
  .hero { min-height: 32rem; }
  .cards { grid-template-columns: 1fr; }
  .band { align-items: start; flex-direction: column; }
}
@media (max-width: 27rem) {
  .top { gap: .4rem; }
  .top nav { gap: .55rem; }
  .fields, .partner-options { grid-template-columns: 1fr; gap: 0; }
  .partner-options { gap: .65rem; }
}

/* Route guide */
.trip-hero { min-height: clamp(32rem, 50vw, 47rem); }
.trip-hero .hero-content h1 { max-width: 12ch; font-size: clamp(2.8rem, 7vw, 6.65rem); }
.trip-hero .hero-content { padding-bottom: clamp(1.7rem, 6vw, 4.5rem); }
.trip-metrics { display: flex; flex-wrap: wrap; gap: .5rem .7rem; margin-block: 1.5rem; }
.trip-metrics span { padding: .15rem .8rem .15rem .6rem; border-left: 2px solid var(--gold); }
.trip-jump {
  display: flex;
  flex-wrap: wrap;
  gap: .1rem .5rem;
  margin: .9rem 0 0;
  padding: .3rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 500;
}
.trip-jump a { flex: none; padding: .6rem .75rem; font-weight: 650; text-decoration: none; border-radius: .35rem; }
.trip-jump a:is(:hover, :focus-visible) { background: #e4eadc; }

.route-section { padding: clamp(2.6rem, 6vw, 5rem) 0; border-bottom: 1px solid var(--line); }
.route-section:last-of-type { border: 0; }
.route-section[id], .route-section [id] { scroll-margin-top: 4.25rem; }
.route-heading { max-width: 49rem; margin-bottom: 1.7rem; }
.route-heading h2 { margin-bottom: .35em; }
.route-heading p { color: var(--muted); }
.overview-stops {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
  gap: .75rem;
}
.overview-stops li { padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--white); }
.overview-meta { margin-bottom: .85rem; color: var(--muted); font-size: .9rem; }
.overview-meta span { margin-right: .35rem; color: #7c491e; font-weight: 750; }
.overview-stops h3 { font-size: clamp(1.55rem, 2.4vw, 2.15rem); }
.overview-stops p { margin: 0; }
.overview-stops a, .program-nav a, .day-places a, .map-stops a, .place-actions a { text-underline-offset: .2em; }

.map-explorer {
  --panel: #f2efe6;
  --stop-red: #b8402b;
  --stay-red: #8f2d1b;
  display: grid;
  grid-template-columns: minmax(0, 2.35fr) minmax(16rem, 1fr);
  gap: 1rem;
  align-items: start;
}
.map-main { min-width: 0; }
.map-card { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; }
.map-toolbar { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .7rem; }
.map-toolbar[hidden] { display: none; }
.map-zoom { display: flex; gap: .45rem; }
.map-button {
  min-width: 2.6rem;
  min-height: 2.6rem;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: .55rem;
  background: var(--white);
  padding: .4rem .85rem;
  font: inherit;
  cursor: pointer;
}
.map-zoom .map-button { padding-inline: 0; font-size: 1.35rem; line-height: 1; }
.map-button:hover { background: #e4eadc; }
.map-button:disabled { color: #9aa59f; background: var(--white); cursor: default; }
.route-map {
  width: 100%;
  height: clamp(25rem, 45vw, 36rem);
  background: #ece8dd;
  isolation: isolate;
}
.route-map .leaflet-control-scale-line { border-color: var(--ink); color: var(--ink); background: #fffdf6cc; font: 11px/1.4 system-ui, sans-serif; }
.map-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .45rem 1rem; padding: .7rem .9rem; }
.map-caption { margin: 0; font-weight: 650; }
.map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; margin: 0; font-size: .9rem; color: var(--muted); }
.route-key::before { display: inline-block; content: ''; width: 1.15rem; margin: 0 .3rem .24rem 0; border-top: 3px solid #1d594a; }
.route-key.flight-key::before { border-top: 3px dashed #915024; }
.key-stay, .key-place { display: inline-block; width: 1.15rem; margin-right: .3rem; border-radius: 50%; color: white; background: var(--green); font-size: .7rem; font-weight: 700; line-height: 1.15rem; text-align: center; }
.key-stay { background: var(--stay-red); }
.map-explorer[data-view="route"] .stop-key, .map-explorer[data-view="stop"] .route-key { display: none; }
.map-error { margin: .5rem 0; }
.map-note { margin: .6rem 0 0; }
.map-stops { min-width: 0; max-height: clamp(30rem, 52vw, 42rem); overflow-y: auto; }
.map-stops details { border: 1px solid var(--line); border-radius: 1rem; background: var(--panel); margin-bottom: .6rem; }
.map-stops details[open] { border-color: #c9c2b0; }
.map-stops summary {
  list-style: none;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: .8rem;
  padding: .95rem 1rem;
  cursor: pointer;
}
.map-stops summary::-webkit-details-marker { display: none; }
.map-stops summary::after { content: '+'; color: var(--ink); font-size: 1.15rem; grid-column: 3; grid-row: 1 / span 2; }
.map-stops details[open] summary::after { content: '−'; }
.map-stops summary strong { font-size: 1.1rem; }
.stop-number {
  grid-row: 1 / span 2;
  background: var(--stop-red);
  color: white;
  border: 2px solid white;
  box-shadow: 0 1px 4px #0003;
  border-radius: 50%;
  min-width: 2.2rem;
  line-height: 2rem;
  font-weight: 650;
  text-align: center;
}
.map-nights { grid-column: 2; font-size: .92rem; color: var(--muted); }
.stop-points { padding: 0 1rem .8rem; }
.stop-stay { display: block; padding: .3rem 0 .85rem; color: var(--stay-red); font-weight: 650; font-size: 1.05rem; }
.stop-day { border-top: 1px solid var(--line); padding: .7rem 0 .35rem; }
.stop-day-title { margin: 0 0 .35rem; color: var(--muted); font-size: .88rem; font-weight: 650; }
.map-stops ul { list-style: none; padding: 0; margin: 0; }
.map-stops li { margin: .15rem 0 .4rem; }
.map-stops li a { color: var(--ink); }
.point-key { font-variant-numeric: tabular-nums; }
.city-marker, .place-marker {
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 5px #0006;
  color: white;
  text-align: center;
}
.city-marker { background: var(--stop-red); font: 700 16px/30px system-ui, sans-serif; }
.place-marker { background: var(--green); font: 700 14px/26px system-ui, sans-serif; }
.stay-marker { background: var(--stay-red); }
.city-marker:hover, .city-marker:focus, .place-marker:hover, .place-marker:focus { background: #6b2010; }
.map-popup { display: grid; gap: .35rem; font: .92rem/1.4 system-ui, sans-serif; }

.program-layout { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(0, 3.5fr); gap: clamp(.75rem, 4vw, 3rem); }
.program-nav { align-self: start; position: sticky; top: 4.3rem; display: grid; gap: .6rem; padding: 1rem; border-radius: .8rem; background: #e4eadc; }
.day-group { margin-bottom: 2rem; }
.day-group h3 { margin-top: .9rem; }
.day-card {
  display: grid;
  grid-template-columns: minmax(3.85rem, 5.4rem) minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: .8rem;
  margin-bottom: .6rem;
}
.day-index { border-right: 1px solid var(--line); color: #7d3f1d; font-size: .9rem; line-height: 1.2; }
.day-index strong { display: block; font: 500 clamp(2rem, 4vw, 3rem)/1 var(--serif); }
.day-card h4, .guide-card h4 { font: 500 clamp(1.4rem, 2.7vw, 2.15rem)/1.1 var(--serif); margin: 0 0 .45em; }
.day-card p { margin-bottom: .55rem; }
.day-card p:last-child { margin-bottom: 0; }
.day-places { display: flex; flex-wrap: wrap; gap: .32rem .55rem; margin: .55rem 0 0; padding: 0; list-style: none; }
.day-places a { display: inline-block; background: #e8eddf; border-radius: .28rem; padding: .22rem .5rem; font-size: .92rem; }
.day-transfer { color: var(--muted); font-size: .9rem; }

.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); gap: .85rem; }
.place-group + .place-group { margin-top: 2.5rem; }
.guide-card { padding: clamp(1rem, 2vw, 1.45rem); background: var(--white); border: 1px solid var(--line); border-radius: .8rem; min-width: 0; }
.guide-card:target, .day-card:target { border-color: #88532d; background: #fff9ea; }
.guide-card h3 { font-size: clamp(1.55rem, 2.7vw, 2.25rem); }
.guide-day { display: inline-block; color: #7d3f1d; font-weight: 750; margin-bottom: .6rem; text-underline-offset: .2em; }
.guide-tip { border-left: 2px solid #b48a57; padding-left: .65rem; color: var(--muted); }
.guide-card p:last-child { margin-bottom: 0; }
.place-actions { display: flex; flex-wrap: wrap; gap: .45rem 1rem; color: var(--green); font-weight: 650; font-size: .92rem; }
.food-list { margin: 0; }
.food-list dt { font-weight: 750; }
.food-list dd { margin: .2rem 0 .75rem; }
.food-list dd:last-child { margin-bottom: 0; }
.essentials-list { margin: 0; padding-left: 1.2rem; }
.essentials-list li + li { margin-top: .55rem; }
.transfers { padding: 0; margin: 0; list-style: none; max-width: 56rem; }
.transfers li { border-left: 2px solid #a3b6a6; padding: .25rem 0 1rem 1rem; }
.transfers li:last-child { padding-bottom: 0; }
.transfers li:target { border-color: #88532d; }
.transfer-mode { background: #e4eadc; padding: .2rem .5rem; border-radius: .25rem; margin-left: .45rem; }
.transfers h3 { font-size: clamp(1.5rem, 3vw, 2.3rem); margin-bottom: .3em; }

@media (max-width: 62rem) {
  .trip-jump { flex-wrap: nowrap; overflow-x: auto; }
  .trip-jump a { padding: .58rem .65rem; }
}
@media (max-width: 48rem) {
  .map-explorer, .program-layout { grid-template-columns: 1fr; }
  .route-map { height: clamp(18rem, 53vh, 27rem); }
  .map-stops { max-height: none; overflow: visible; }
  .program-nav { position: static; display: flex; flex-wrap: wrap; }
}
@media (max-width: 29rem) {
  .trip-hero .hero-content h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .day-card { grid-template-columns: 2.65rem minmax(0, 1fr); gap: .7rem; padding: .75rem; }
}
