:root {
  --paper: #f7f1e6;
  --panel: #fffaf1;
  --mist: #e8eee5;
  --ink: #262d28;
  --muted: #66695f;
  --olive: #586e50;
  --terracotta: #a5553a;
  --gold: #a98243;
  --blue: #4d6f86;
  --line: rgba(38, 45, 40, 0.16);
  --shadow: 0 18px 45px rgba(37, 32, 25, 0.12);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.map-embed img {
  max-width: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-hero {
  min-height: 86vh;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.site-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(21, 26, 22, 0.16), rgba(21, 26, 22, 0.42) 52%, rgba(21, 26, 22, 0.74)),
    linear-gradient(90deg, rgba(21, 26, 22, 0.75), rgba(21, 26, 22, 0.1) 70%);
  z-index: -1;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(38, 45, 40, 0.82);
  backdrop-filter: blur(18px);
}

.topbar a {
  color: #fffaf1;
  font-size: 13px;
  line-height: 1;
  padding: 10px 12px;
  white-space: nowrap;
}

.topbar a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-copy {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 9vh;
  color: #fffaf1;
}

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

.hero-copy .eyebrow {
  color: #e2c27d;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(52px, 9vw, 116px);
  line-height: 0.9;
}

.hero-copy p:last-child {
  max-width: 720px;
  margin: 22px 0 0;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.35;
}

main {
  /* clip horizontal bleed without becoming a scroll container, so the sticky
     daily board can still pin to the viewport */
  overflow-x: clip;
}

section {
  padding: 84px max(24px, calc((100vw - 1160px) / 2));
}

.route-band {
  background: #fffaf1;
}

.section-intro,
.region-head {
  max-width: 820px;
  margin-bottom: 32px;
}

h2 {
  color: var(--olive);
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
}

.section-intro p:last-child,
.region-head p:last-child {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  margin: 16px 0 0;
}

.route-layout,
.media-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

figure {
  margin: 0;
}

.map-figure,
.media-pair figure {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.map-figure img:not(.map-embed *),
.media-pair img:not(.map-embed *) {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.map-embed {
  display: block;
  position: relative;
  width: 100%;
  height: 420px;
  min-height: 360px;
  border: 0;
  background: var(--mist);
  overflow: hidden;
}

.media-pair figure:has(.map-embed),
.map-figure:has(.map-embed) {
  min-height: 420px;
}

.map-fallback {
  display: grid;
  place-items: center;
  padding: 24px;
}

.map-fallback-copy {
  max-width: 34ch;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.map-fallback-copy p {
  margin: 0 0 12px;
}

.map-fallback-copy strong {
  color: var(--ink);
}

.map-fallback-copy code {
  font-size: 12px;
  color: var(--terracotta);
}

.map-figure figcaption {
  padding: 14px 18px 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.region-map-stack {
  display: grid;
  gap: 0;
}

.planned-route-card {
  border-bottom: 1px solid var(--line);
}

.planned-route-map {
  height: 300px;
  min-height: 280px;
}

.planned-route-copy {
  display: grid;
  gap: 5px;
  padding: 12px 16px 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.planned-route-copy strong {
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.planned-route-copy span {
  color: var(--muted);
}

.decision-grid,
.split-notes,
.day-grid {
  display: grid;
  gap: 12px;
}

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

.decision-grid article,
.split-notes article,
.day-grid article {
  padding: 22px;
  background: var(--mist);
  border: 1px solid var(--line);
}

.decision-grid span,
.split-notes span,
.day-grid time {
  display: block;
  margin-bottom: 10px;
  color: var(--terracotta);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.decision-grid p,
.split-notes p,
.day-grid p {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

.timeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(17, minmax(160px, 1fr));
  gap: 10px;
  overflow-x: auto;
  margin: 34px 0 0;
  padding: 4px 0 16px;
  scrollbar-color: var(--gold) rgba(169, 130, 67, 0.18);
}

.timeline li {
  min-height: 168px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.timeline time {
  color: var(--terracotta);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.timeline strong {
  display: block;
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.15;
}

.timeline span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.region {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.region.alt {
  background: #eef2e9;
}

.region .media-pair {
  margin-bottom: 24px;
}

.region-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.38fr);
  gap: 26px;
  align-items: stretch;
}

.region-main {
  min-width: 0;
}

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

.day-grid.two {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.day-grid h3 {
  color: var(--ink);
  font-size: 26px;
  line-height: 1.12;
  margin-bottom: 12px;
}

.split-notes {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 24px;
  align-items: center;
  margin-top: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.feature-row img {
  height: 420px;
  object-fit: cover;
}

.feature-row div {
  padding: 32px;
}

.feature-row h3 {
  color: var(--olive);
  font-size: 38px;
  line-height: 1.05;
}

.feature-row p:last-child {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.activity-bank,
.stay-bank {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.bank-head {
  grid-column: 1 / -1;
}

.bank-head h3 {
  color: var(--olive);
  font-size: 36px;
  line-height: 1.05;
}

.drag-activity {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 210px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(37, 32, 25, 0.08);
  cursor: grab;
}

.drag-activity:active {
  cursor: grabbing;
}

.drag-activity h4 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.12;
}

.drag-activity p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.card-carousel {
  position: relative;
  overflow: hidden;
  margin: -18px -18px 4px;
  background: #d8c7a5;
  border-bottom: 1px solid var(--line);
  aspect-ratio: 1.55;
}

.carousel-frame,
.carousel-frame img {
  width: 100%;
  height: 100%;
}

.carousel-frame img {
  display: block;
  object-fit: cover;
}

.carousel-control {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 250, 241, 0.78);
  border-radius: 50%;
  background: rgba(38, 45, 40, 0.68);
  color: #fffaf1;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.carousel-control.prev {
  left: 10px;
}

.carousel-control.next {
  right: 10px;
}

.carousel-control:hover,
.carousel-control:focus-visible {
  background: var(--terracotta);
}

.carousel-dots {
  position: absolute;
  right: 12px;
  bottom: 10px;
  display: flex;
  gap: 5px;
  padding: 5px 6px;
  background: rgba(38, 45, 40, 0.58);
}

.carousel-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 250, 241, 0.46);
}

.carousel-dots span.is-active {
  background: #fffaf1;
}

.card-details {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card-details li {
  position: relative;
  padding-left: 13px;
  color: #6e675e;
  font-size: 13px;
  line-height: 1.35;
}

.card-details li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--terracotta);
}

.add-activity,
.add-hotel,
.reset-plan,
.planned-item button {
  justify-self: start;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--terracotta);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.add-activity,
.add-hotel,
.reset-plan {
  align-self: end;
  padding: 9px 11px;
}

.add-activity:hover,
.add-hotel:hover,
.reset-plan:hover,
.planned-item button:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fffaf1;
}

.itinerary-board {
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  align-self: start;
  gap: 14px;
  width: 100%;
  height: clamp(680px, calc(100vh - 92px), 940px);
  max-height: calc(100vh - 92px);
  overflow: hidden;
  padding: 18px;
  background: #26302a;
  border: 1px solid rgba(255, 250, 241, 0.22);
  color: #fffaf1;
  box-shadow: var(--shadow);
  scrollbar-color: #e2c27d rgba(255, 250, 241, 0.14);
}

.board-scroll {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  min-height: 0;
  overflow-y: scroll;
  padding: 2px 6px 2px 20px;
  scrollbar-color: #e2c27d rgba(255, 250, 241, 0.14);
}

.board-scroll::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 7px;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(226, 194, 125, 0.15),
    rgba(226, 194, 125, 0.72) 18%,
    rgba(226, 194, 125, 0.72) 82%,
    rgba(226, 194, 125, 0.15)
  );
}

.board-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: end;
}

.board-head .eyebrow {
  grid-column: 1 / -1;
  color: #e2c27d;
}

.board-head h3 {
  color: #fffaf1;
  font-size: 32px;
  line-height: 1.02;
}

.reset-plan {
  color: #fffaf1;
}

.day-plan {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 12px;
  background: rgba(255, 250, 241, 0.08);
  border: 1px solid rgba(255, 250, 241, 0.18);
}

.day-plan::before {
  content: "";
  position: absolute;
  top: 18px;
  left: -18px;
  width: 11px;
  height: 11px;
  border: 2px solid #e2c27d;
  background: #26302a;
}

.day-plan:has(.fixed-slot)::before {
  background: #e2c27d;
}

.day-plan:has(.fixed-slot) {
  border-color: rgba(226, 194, 125, 0.48);
  background: rgba(226, 194, 125, 0.1);
}

.day-plan-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.day-plan-head time {
  color: #e2c27d;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

.day-plan-head strong {
  color: #fffaf1;
  font-size: 15px;
  line-height: 1.2;
  text-align: right;
}

.fixed-slot,
.drop-slot {
  min-height: 46px;
  padding: 10px;
  border: 1px solid rgba(255, 250, 241, 0.18);
  font-size: 13px;
  line-height: 1.35;
}

.fixed-slot {
  background: rgba(226, 194, 125, 0.14);
  color: rgba(255, 250, 241, 0.92);
}

.drop-slot {
  display: grid;
  gap: 8px;
  background: rgba(255, 250, 241, 0.05);
  color: rgba(255, 250, 241, 0.62);
  transition: background 160ms ease, border-color 160ms ease, min-height 160ms ease;
}

/* Drag-in-progress affordances: hint every slot, but keep them compact so the
   outer day box doesn't balloon. Only the targeted inner box grows (.is-over). */
.itinerary-board.dragging .drop-slot {
  border-style: dashed;
  border-color: rgba(226, 194, 125, 0.5);
  background: rgba(255, 250, 241, 0.1);
}

.itinerary-board.dragging .drop-slot > span {
  color: rgba(255, 250, 241, 0.92);
}

.itinerary-board.dragging .day-plan {
  transition: opacity 160ms ease, border-color 160ms ease, background 160ms ease;
}

.itinerary-board.dragging .day-plan:not(.is-target) {
  opacity: 0.42;
}

.day-plan.is-target {
  border-color: rgba(226, 194, 125, 0.7);
  background: rgba(226, 194, 125, 0.14);
}

/* Compact ghost used as the custom drag image; rendered off-screen so the
   browser can snapshot it, never visible in normal flow. */
.planned-item.drag-ghost {
  position: fixed;
  top: -1000px;
  left: -1000px;
  pointer-events: none;
  cursor: default;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

/* The hovered slot grows to match the box being dragged, so the drop target
   reads as a clear placeholder the size of what's about to land there. */
.drop-slot.is-over {
  min-height: calc(var(--drop-preview-height, 90px) + 22px);
  align-content: center;
  background: rgba(226, 194, 125, 0.3);
  border-color: #e2c27d;
  border-style: solid;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.drop-slot.has-items > span {
  display: none;
}

/* Lodging row: cooler olive tint so it reads as stay, not activity */
.drop-slot-hotel {
  flex: 0 0 auto;
  min-height: 40px;
  background: rgba(163, 176, 154, 0.1);
  border-color: rgba(163, 176, 154, 0.32);
  color: rgba(214, 222, 206, 0.72);
}

.itinerary-board.dragging .drop-slot-hotel {
  border-color: rgba(163, 176, 154, 0.58);
  background: rgba(163, 176, 154, 0.16);
}

.itinerary-board.dragging .drop-slot-hotel > span {
  color: rgba(232, 238, 226, 0.95);
}

.drop-slot-hotel.is-over {
  background: rgba(163, 176, 154, 0.34);
  border-color: #a8b89a;
}

.planned-hotel {
  background: #eef1ea;
  border-color: rgba(92, 108, 84, 0.2);
}

.planned-hotel strong {
  color: #3d4a38;
}

.planned-hotel span {
  color: #6a7564;
}

.drag-hotel {
  cursor: grab;
  box-shadow: 0 12px 30px rgba(37, 32, 25, 0.08);
}

.drag-hotel:active {
  cursor: grabbing;
}

.planned-item {
  display: grid;
  gap: 5px;
  padding: 10px;
  background: #fffaf1;
  color: var(--ink);
  border: 1px solid rgba(38, 45, 40, 0.12);
  cursor: grab;
}

.planned-item strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.12;
}

.planned-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.planned-item button {
  padding: 7px 8px;
}

/* Travel-leg connectors between region chapters (right column) */
.travel-leg {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.38fr);
  gap: 26px;
  padding: 18px max(24px, calc((100vw - 1160px) / 2));
  background: var(--paper);
}

.travel-leg-card {
  position: relative;
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #efe3c6;
  border: 1px solid rgba(95, 59, 44, 0.22);
  color: #5f3b2c;
}

.travel-leg-card::before {
  content: "";
  position: absolute;
  top: -18px;
  bottom: -18px;
  left: 35px;
  border-left: 2px dashed rgba(169, 130, 67, 0.55);
  z-index: 0;
}

.leg-icon {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #5f3b2c;
  color: #efe3c6;
  font-size: 17px;
}

.leg-text {
  display: grid;
  gap: 2px;
}

.leg-mode {
  color: var(--terracotta);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.leg-route {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
}

.leg-note {
  margin: 3px 0 0;
  color: #6b4a3a;
  font-size: 13px;
  line-height: 1.35;
}

.research-block {
  margin-top: 46px;
}

.research-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.research-heading h3 {
  color: var(--ink);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.04;
  text-align: right;
}

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

.option-card,
.hotel-board article,
.activity-list article {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(37, 32, 25, 0.08);
}

.option-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.option-card.priority {
  background: #26302a;
  color: #fffaf1;
}

.option-card span,
.activity-list span {
  display: block;
  margin-bottom: 12px;
  color: var(--terracotta);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.option-card.priority span {
  color: #e2c27d;
}

.option-card h4,
.hotel-board h4,
.activity-list h4 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
}

.option-card h4 {
  font-size: 26px;
  line-height: 1.1;
}

.option-card p {
  flex: 1;
  margin: 14px 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.48;
}

.option-card.priority p {
  color: rgba(255, 250, 241, 0.82);
}

.option-card a,
.activity-list a {
  align-self: flex-start;
  padding: 10px 12px;
  border: 1px solid currentColor;
  color: var(--terracotta);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.option-card.priority a {
  color: #fffaf1;
}

.option-card a:hover,
.activity-list a:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fffaf1;
}

.hotel-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.hotel-board article {
  padding: 20px;
}

.hotel-board h4 {
  min-height: 56px;
  color: var(--olive);
  font-size: 25px;
  line-height: 1.12;
}

.hotel-board ul {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
}

.hotel-board li {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.hotel-board a {
  display: inline;
  color: var(--terracotta);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hotel-board span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.38;
}

.activity-list {
  display: grid;
  gap: 12px;
}

.activity-list article {
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
}

.activity-list h4 {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.12;
}

.activity-list p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.activity-list a {
  white-space: nowrap;
}

.hotel-option {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 18px;
  background: var(--panel);
  border: 1px solid rgba(38, 45, 40, 0.12);
}

.hotel-option h5 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.12;
}

.hotel-option p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.price-chip {
  justify-self: start;
  display: inline-flex;
  max-width: 100%;
  padding: 7px 9px;
  background: #e7d7b6;
  color: #5f3b2c;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.1;
  text-transform: uppercase;
}

.drag-activity a,
.hotel-option a {
  justify-self: start;
  display: inline-flex;
  margin-right: 8px;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  color: var(--terracotta);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
}

.drag-activity a:hover,
.hotel-option a:hover {
  color: var(--olive);
}

.transport-strip {
  margin-top: 56px;
}

.option-card a + a {
  margin-top: 8px;
}

.practical {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 42px;
  background: #26302a;
  color: #fffaf1;
}

.practical h2 {
  color: #fffaf1;
}

.practical ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.practical li {
  padding: 18px 20px;
  border: 1px solid rgba(255, 250, 241, 0.2);
  background: rgba(255, 250, 241, 0.08);
  color: rgba(255, 250, 241, 0.9);
  line-height: 1.45;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px max(24px, calc((100vw - 1160px) / 2));
  background: #18201b;
  color: rgba(255, 250, 241, 0.74);
  font-size: 14px;
}

footer p {
  margin: 0;
}

footer a {
  color: #fffaf1;
}

/* Desktop: one continuous dark rail down the right column */
@media (min-width: 901px) {
  .regions {
    position: relative;
  }

  .regions::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: max(24px, calc((100vw - 1160px) / 2));
    width: 360px;
    background: #26302a;
    z-index: 0;
  }

  .regions > section,
  .regions > .travel-leg {
    position: relative;
    z-index: 1;
  }

  .regions .region,
  .regions .region.alt {
    background: transparent;
    border-top: none;
  }

  .regions .region-head {
    max-width: calc(100% - 386px);
  }

  .region-workspace {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  /* Sticky daily board: pins beside the region and follows the page scroll,
     while its inner list scrolls on its own when the days overflow. */
  .itinerary-board {
    position: sticky;
    top: 72px;
    align-self: start;
    height: clamp(680px, calc(100vh - 92px), 940px);
    max-height: calc(100vh - 92px);
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 16px 18px 30px;
  }

  .board-scroll {
    overflow-y: auto;
    justify-content: space-between;
  }

  /* Day cards grow to fill the board height when sparse, and let the inner
     list scroll once the days stop fitting. */
  .day-plan {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 0 auto;
  }

  .day-plan .drop-slot:not(.drop-slot-hotel) {
    flex: 1 1 auto;
  }

  .day-plan .drop-slot-hotel {
    flex: 0 0 auto;
  }

  .travel-leg {
    grid-template-columns: minmax(0, 1fr) 360px;
    background: transparent;
    padding-top: 0;
    padding-bottom: 0;
  }

  .travel-leg-card {
    background: transparent;
    border: none;
    color: #fffaf1;
    padding: 8px 18px;
  }

  .travel-leg-card::before {
    top: -28px;
    bottom: -28px;
    left: 36px;
  }

  .travel-leg-card .leg-route {
    color: #fffaf1;
  }

  .travel-leg-card .leg-note {
    color: rgba(255, 250, 241, 0.6);
  }

  .travel-leg-card .leg-icon {
    background: #e2c27d;
    color: #26302a;
  }
}

@media (max-width: 900px) {
  .topbar {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .hero-copy {
    width: min(100% - 28px, 1160px);
    padding-bottom: 7vh;
  }

  section {
    padding: 62px 18px;
  }

  .route-layout,
  .media-pair,
  .feature-row,
  .practical,
  .region-workspace,
  .travel-leg {
    grid-template-columns: 1fr;
  }

  .travel-leg-card {
    grid-column: 1;
  }

  .travel-leg-card::before {
    display: none;
  }

  .itinerary-board {
    position: static;
    min-height: 0;
    height: auto;
    max-height: none;
  }

  .board-scroll {
    max-height: 72vh;
    justify-content: flex-start;
    overflow-y: auto;
  }

  .map-figure img:not(.map-embed *),
  .media-pair img:not(.map-embed *),
  .feature-row img {
    min-height: 0;
    height: auto;
    aspect-ratio: 1.35;
  }

  .map-embed {
    height: 320px;
    min-height: 320px;
  }

  .day-grid,
  .day-grid.two,
  .split-notes {
    grid-template-columns: 1fr;
  }

  .research-heading {
    display: block;
  }

  .research-heading h3 {
    margin-top: 8px;
    text-align: left;
  }

  .option-grid,
  .hotel-board,
  .activity-bank,
  .stay-bank,
  .activity-list article {
    grid-template-columns: 1fr;
  }

  .option-card {
    min-height: 0;
  }

  .hotel-board h4 {
    min-height: 0;
  }

  .activity-list article {
    align-items: start;
  }

  .hotel-option {
    padding: 16px;
  }

  .feature-row div {
    padding: 24px;
  }

  footer {
    display: block;
  }

  footer a {
    display: inline-block;
    margin-top: 14px;
  }
}

@media (max-width: 560px) {
  .site-hero {
    min-height: 82vh;
  }

  .topbar a {
    font-size: 12px;
    padding: 10px;
  }

  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 36px;
  }

  .hero-copy p:last-child,
  .section-intro p:last-child,
  .region-head p:last-child {
    font-size: 16px;
  }

  .timeline {
    grid-template-columns: repeat(17, 148px);
  }

  .timeline li {
    min-height: 158px;
  }

  .board-head {
    display: block;
  }

  .reset-plan {
    margin-top: 12px;
  }
}
