:root {
  --ink: #143744;
  --muted: #506d78;
  --teal: #0b6172;
  --border: #dce7ea;
  --meal-border: #eadbc5;
  --space-1: .5rem;
  --space-2: .75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: #f6f8fa;
  color: var(--ink);
  font: 1rem/1.6 system-ui, -apple-system, sans-serif;
}
a { color: inherit; text-underline-offset: .2em; }
button, a, summary { -webkit-tap-highlight-color: #0b617220; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
  border-radius: 4px;
}
p, h2, h3, h4, h5 { overflow-wrap: break-word; }

header {
  position: relative;
  overflow: hidden;
  background: #073e51;
  color: #fff;
  padding: 1.75rem 1.25rem;
}
header::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -40px;
  width: 210px;
  height: 210px;
  border: 1px solid #ffffff25;
  border-radius: 50%;
  box-shadow: 0 0 0 35px #ffffff08, 0 0 0 70px #ffffff05;
  pointer-events: none;
}
header .inner { max-width: 1000px; margin: auto; }
.eyebrow {
  color: #b9e5eb;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1 {
  margin: .75rem 0;
  font: 400 clamp(2.5rem, 8vw, 4.5rem)/1.1 Georgia, serif;
}
header p { margin: .75rem 0 0; color: #d1e8eb; }
.route { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.route span {
  border: 1px solid #ffffff35;
  border-radius: 30px;
  padding: .25rem .875rem;
  font-size: .875rem;
}
.cover { height: 145px; overflow: hidden; background: #0d6074; }
.cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }

nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #ffffffed;
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border);
}
nav .strip {
  position: relative;
  max-width: 1044px;
  margin: auto;
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: .75rem 1rem;
  scrollbar-width: none;
}
nav a {
  flex: none;
  min-width: 65px;
  padding: .5rem .75rem;
  border-radius: 12px;
  background: #edf3f5;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.35;
}
nav a small { display: block; font-size: .75rem; font-weight: 400; }
nav a.active { background: var(--teal); color: #fff; }
main { max-width: 1044px; margin: auto; padding: 1.5rem 1rem 2.5rem; }

.trip-map {
  padding: .5rem;
  margin-bottom: var(--space-5);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 30px #1437440a;
}
.map-copy { padding: .75rem .75rem 1rem; }
.map-copy h2 { margin: 0 0 .5rem; font: 1.625rem/1.2 Georgia, serif; }
.map-copy p { margin: 0; color: var(--muted); font-size: .875rem; }
.map-frame { height: 330px; border-radius: 12px; overflow: hidden; background: #dce9ec; z-index: 1; }
.leaflet-container { font-family: system-ui, -apple-system, sans-serif; }
.leaflet-control-attribution { font-size: 10px; }
.leaflet-container img.leaflet-tile { max-width: none !important; max-height: none !important; }
.day-pin {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--teal);
  color: #fff;
  box-shadow: 0 3px 10px #072e3b66;
  font-size: 12px;
  font-weight: 800;
  transform: rotate(-45deg);
}
.day-pin span { transform: rotate(45deg); }
.leaflet-tooltip.place-label {
  padding: 5px 8px;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 2px 10px #14374426;
  color: var(--ink);
  font-weight: 700;
}
.map-places { display: flex; gap: .5rem; overflow-x: auto; padding: .75rem .25rem .25rem; scrollbar-width: none; }
.map-places a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem .75rem;
  border-radius: 999px;
  background: #edf4f6;
  color: #195261;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
}
.map-places a:active { background: #d6e9ed; }
.intro { display: grid; gap: 1rem; margin-bottom: var(--space-5); }
.intro-copy { display: grid; gap: .75rem; }
.intro p { margin: 0; color: var(--muted); font-size: .875rem; }
.legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .8125rem; }
.legend span::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: .375rem;
  border-radius: 50%;
  background: #00798b;
}
.legend span:last-child::before { background: #cc933c; }

.day { display: grid; gap: 1.25rem; margin-bottom: 2.5rem; }
.dayhead { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0 1rem; }
.date { grid-row: 1 / 4; color: #087385; }
.number { font: 2.5rem/1 Georgia, serif; }
.date div { margin-top: .375rem; font-size: .75rem; line-height: 1.5; text-transform: uppercase; font-weight: 700; }
.day h2 { margin: 0 0 .375rem; font: 1.75rem/1.2 Georgia, serif; }
.subtitle { margin: 0; color: var(--muted); font-size: .875rem; }
.city { margin-top: .5rem; color: #98601c; font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; }
.events { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: 0 5px 22px #14374404; }
.event { position: relative; padding: 1.25rem 1rem; border-bottom: 1px solid #e8eef1; }
.event:last-child { border-bottom: 0; }
.time { color: #137182; font-size: .875rem; font-weight: 700; }
.event h3 { margin: .375rem 0 .625rem; font-size: 1.125rem; line-height: 1.4; }
.event p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.event > p + p { margin-top: .5rem; }
.fixed { border-left: 3px solid #0b8293; }
.stay { background: #f0f7f9; }
.option .time { color: #95611e; }
.event-links, .meal-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1.25rem; }
.event-links { margin-top: .625rem; }
.event-links a, .meal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: .875rem;
  font-weight: 650;
}
.event-links .map { text-decoration: underline; text-decoration-color: #98bac2; }

.meal { background: #fff8ed; border-left: 3px solid #b86b21; }
.meal-accordion > summary {
  position: relative;
  display: block;
  min-height: 44px;
  padding-right: 2rem;
  list-style: none;
  cursor: pointer;
}
.meal-accordion > summary::-webkit-details-marker { display: none; }
.meal-accordion > summary .time { display: block; margin-bottom: .25rem; }
.meal-title { display: block; font-size: 1.375rem; font-weight: 700; line-height: 1.4; }
.meal-accordion > summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #744a11;
  font-size: 1.75rem;
  line-height: 1;
}
.meal-accordion[open] > summary::after { content: '−'; }
.meal-body { display: grid; gap: var(--space-3); padding-top: 1rem; }
.meal-body .meal-note { color: #594b3c; }
.meal-body .meal-price-note { color: #796245; font-size: .8125rem; margin-top: -.5rem; }
.meal-route-group { min-width: 0; }
.meal-route-group + .meal-route-group { margin-top: .5rem; }
.meal-route-heading { display: grid; gap: .25rem; margin-bottom: .875rem; }
.meal-route-heading h4 { margin: 0; font-size: 1rem; line-height: 1.5; }
.meal-route-heading span { color: #796245; font-size: .8125rem; }
.meal-choices { display: grid; gap: var(--space-3); }
.meal-choice {
  display: grid;
  gap: .875rem;
  min-width: 0;
  padding: .875rem;
  border: 1px solid var(--meal-border);
  border-radius: 12px;
  background: #fff;
}
.meal-choice > * { min-width: 0; margin: 0; }
.meal-name { display: grid; gap: .375rem; }
.meal-budget { display: inline-block; width: fit-content; padding: .25rem .55rem; border-radius: .4rem; background: #eaf2e3; color: #365222; font-size: .75rem; font-weight: 700; }
.meal-name h4 { margin: 0; font-size: 1.125rem; line-height: 1.4; }
.meal-name .meal-price { color: #744a11; font-size: .875rem; font-weight: 700; }
.meal-price span { font-weight: 400; }
.meal-choice .meal-why { padding: .625rem .75rem; border-left: 3px solid #d48a45; border-radius: 4px; background: #be8b4f12; }
.meal-choice .meal-hours { font-size: .875rem; line-height: 1.5; }
.meal-ratings {
  display: grid;
  gap: .375rem;
  padding: .5rem .625rem;
  border: 1px solid #c8dfe5;
  border-radius: 8px;
  background: #eff7f9;
  line-height: 1.4;
}
.rating-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem .75rem; }
.meal-ratings h5 { margin: 0; color: #073e51; font-size: .8125rem; }
.rating-source { color: #315c69; font-size: .8125rem; }
.rating-row { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; }
.rating-platform { flex: 1 1 5rem; font-size: .8125rem; font-weight: 500; }
.rating-score { color: #073e51; font-size: .8125rem; white-space: nowrap; }
.rating-stars {
  font-size: .8125rem;
  letter-spacing: .3px;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(to right, #a15e00 var(--rating), #c8d6da var(--rating));
  background-clip: text;
  -webkit-background-clip: text;
}
.meal-ratings .rating-extra { margin: 0; font-size: .8125rem; line-height: 1.45; }

.sight-accordion { margin-top: 1.25rem; border: 1px solid #c6dfe4; border-radius: 12px; background: #f0f8fa; }
.sight-accordion > summary { padding: .875rem 2.75rem .875rem .875rem; min-height: 58px; }
.sight-accordion > summary::after { right: .875rem; color: #0d6074; }
.sight-title { display: block; color: #073e51; font-size: 1rem; font-weight: 750; }
.sight-meta { display: block; margin-top: .125rem; color: #4c6974; font-size: .875rem; }
.sight-body { display: grid; gap: 1rem; padding: 0 .875rem 1rem; }
.sight-body .sight-note { font-size: .875rem; }
.sight-choice { padding: .875rem; border: 1px solid #d7e6e9; border-radius: 8px; background: #fff; }
.sight-choice h4 { margin: 0 0 .5rem; font-size: 1rem; line-height: 1.4; }
.sight-choice p + p { margin-top: .5rem; }
.sight-choice .meal-links { margin-top: .5rem; }
.sight-trivia { display: grid; gap: .5rem; padding-top: 1rem; border-top: 1px solid #c6dfe4; }
.sight-trivia strong { color: #073e51; }
.sight-trivia a { padding: .25rem 0; font-size: .875rem; }


.weather { padding: 1rem; border-bottom: 1px solid #d8e9ed; background: linear-gradient(135deg, #eaf6f8, #f5fbfc); }
.weather-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem .75rem; margin-bottom: .75rem; }
.weather-title { color: #176779; font-size: .8125rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.weather-live { color: #506d78; font-size: .75rem; }
.weather-row { display: flex; gap: .625rem; overflow-x: auto; padding-bottom: .125rem; scrollbar-width: none; }
.weather-place { display: grid; grid-template-columns: auto 1fr; flex: 0 0 180px; gap: .25rem .5rem; padding: .75rem; border: 1px solid #dcebed; border-radius: 12px; background: #fff; }
.weather-place:only-child { flex-basis: 100%; }
.weather-icon { grid-row: 1 / 3; font-size: 1.625rem; line-height: 1.2; }
.weather-city { font-size: .875rem; font-weight: 800; line-height: 1.3; }
.weather-temp { font-size: .875rem; font-weight: 700; }
.weather-detail { grid-column: 1 / 3; color: var(--muted); font-size: .8125rem; line-height: 1.45; }
.weather-note { margin: 0; color: var(--muted); font-size: .875rem; }
.weather-error { color: #895c1f; }

.bottom { padding: 1.5rem; border-radius: 16px; background: #073e51; color: #fff; }
.bottom h2 { margin: 0 0 .875rem; font: 1.625rem/1.2 Georgia, serif; }
.bottom p { margin: .75rem 0 0; color: #d1e8eb; font-size: .875rem; }
.bottom strong { color: #fff; }
.foot { margin: 1.5rem 0 0; text-align: center; color: #5b7884; font-size: .75rem; }
.boot-message { max-width: 1044px; margin: auto; padding: 1.5rem; }
.noscript-message { padding: 1.25rem; }

@media (min-width: 651px) {
  header { padding: 2.25rem 1.375rem 1.875rem; }
  .cover { height: 170px; }
  nav .strip { padding-inline: 1.25rem; }
  main { padding: 2rem 1.25rem 3.75rem; }
  .map-frame { height: 390px; }
  .trip-map { border-radius: 20px; }
  .map-copy h2 { font-size: 1.75rem; }
  .intro { grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 2rem; }
  .legend { display: grid; gap: .5rem; padding-top: .125rem; }
  .day { grid-template-columns: 210px minmax(0, 1fr); gap: 2rem; margin-bottom: 3rem; }
  .dayhead { position: sticky; top: 6.25rem; align-self: start; display: block; }
  .date { display: flex; align-items: center; gap: .75rem; }
  .number { font-size: 3rem; }
  .date div { margin: 0; font-size: .8125rem; }
  .day h2 { margin: 1rem 0 .5rem; }
  .city { display: inline-block; margin-top: .875rem; }
  .event { padding: 1.5rem; }
  .meal-choice { padding: 1rem; }
  .weather { padding: 1rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
