:root {
  --ink: #102422;
  --muted: #4d6562;
  --paper: #eef4f3;
  --card: #ffffff;
  --line: #d5e4e1;
  --petrol: #0f4c4a;
  --petrol-deep: #0b3332;
  --petrol-bright: #1a7a74;
  --mist: #d7eeeb;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(11, 51, 50, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(26, 122, 116, 0.08), transparent 55%),
    var(--paper);
  font-family: Outfit, "Segoe UI", sans-serif;
  font-weight: 380;
  line-height: 1.5;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(700px 280px at 90% 0%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(145deg, #14615d 0%, var(--petrol) 48%, var(--petrol-deep) 100%);
}

.lotus { color: white; }
.lotus-bg {
  position: absolute;
  right: -20px;
  bottom: -36px;
  width: min(420px, 55vw);
  height: auto;
  opacity: 0.18;
  pointer-events: none;
}
.lotus-mark {
  width: 54px;
  height: 42px;
  flex: none;
  margin-top: 8px;
}

.top {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  max-width: 1440px;
  margin: 0 auto;
  padding: 36px 24px 28px;
}

.identity { display: flex; gap: 16px; align-items: flex-start; }

.eyebrow, .weekday, .map-note, .credit, .source {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--petrol-bright);
  margin: 0;
}

.hero .eyebrow,
.hero .weekday,
.hero .range,
.hero .month,
.hero .place-line { color: #d5efec; }

h1 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 620;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.95;
  margin: 6px 0 8px;
}

.range { margin: 0; color: var(--muted); }

.date-hero { text-align: right; min-width: 180px; }

.daynum {
  font-family: Fraunces, Georgia, serif;
  font-weight: 520;
  font-style: italic;
  font-size: clamp(72px, 10vw, 112px);
  line-height: 0.8;
  margin: 0;
  color: white;
}

.month, .place-line { margin: 4px 0 0; }
.place-line { color: var(--muted); }

.days {
  max-width: 1440px;
  margin: -18px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.stop-row, .day-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hop {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--petrol);
  background: white;
  border-radius: 999px;
  padding: 7px 8px;
  box-shadow: 0 8px 20px rgba(11, 51, 50, 0.08);
}

.hop-icon, .hop svg {
  width: 16px;
  height: 16px;
  display: block;
}

.hop svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hop-plane svg {
  fill: currentColor;
  stroke: none;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.day-row {
  margin: 10px 0 0 14px;
  padding-left: 14px;
  border-left: 2px solid var(--petrol);
}

.stop-btn, .day-btn {
  border: 1px solid transparent;
  background: white;
  color: var(--ink);
  border-radius: 16px;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 8px 20px rgba(11, 51, 50, 0.08);
}

.stop-btn span { display: block; font-weight: 640; }

.stop-btn small,
.day-btn small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stop-btn.is-on,
.day-btn.is-on {
  background: var(--petrol);
  border-color: var(--petrol);
  color: white;
}

.stop-btn.is-on small,
.day-btn.is-on small { color: #cfe8e5; }

main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 22px 24px 8px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: start;
}

.map-card, .panel, .budget, .flight, .hotel, .booked {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.map-card { overflow: hidden; }

#map { height: 640px; background: #d7e8e5; }

.map-note { padding: 10px 16px 14px; }

.leaflet-div-icon.pin-wrap { background: transparent; border: none; }
.pin {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--petrol);
  color: white;
  font-weight: 640;
  border: 2px solid white;
  box-shadow: 0 6px 14px rgba(11, 51, 50, 0.28);
}
.pin.is-on { background: white; color: var(--petrol); transform: scale(1.08); }

.panel { padding: 22px; }

.kicker {
  margin: 0;
  color: var(--petrol-bright);
  font-weight: 640;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.panel .day-row {
  margin: 2px 0 14px;
  padding: 0;
  border: none;
}

.panel h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: 34px;
  line-height: 1.05;
  margin: 4px 0 8px;
}

.summary { color: var(--muted); margin-top: 0; }

.photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
}

.photos figure { margin: 0; }
.photos img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  display: block;
  background: var(--mist);
}
.photos figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }

.choice {
  display: flex;
  gap: 8px;
  margin: 8px 0 14px;
}

.choice button, .budget-head button {
  font: inherit;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 8px 14px;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.15;
  text-align: left;
}

.choice button small {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.choice button.is-on, .budget-head button.is-on {
  background: var(--petrol);
  border-color: var(--petrol);
  color: white;
}

.choice button.is-on small { color: #d5efec; }

.plan { list-style: none; padding: 0; margin: 0 0 16px; }
.plan li { padding: 10px 0; border-top: 1px solid var(--line); }
.plan strong { display: block; }

h3 {
  font-family: Fraunces, Georgia, serif;
  font-size: 22px;
  margin: 18px 0 8px;
}

.hotels, .flights { display: grid; gap: 10px; }

.hotel, .flight, .booked {
  padding: 14px 16px;
  box-shadow: none;
  background: #f7fbfa;
}

.price {
  font-family: Fraunces, Georgia, serif;
  font-size: 26px;
  margin: 6px 0;
  color: var(--petrol);
}

.price .unit, .local {
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 14px;
  color: var(--muted);
}

.local { margin: -2px 0 8px; }

.badge {
  display: inline-block;
  background: var(--petrol);
  color: white;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.booked { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.stamp {
  border: 2px solid var(--petrol);
  color: var(--petrol);
  border-radius: 8px;
  padding: 4px 8px;
  letter-spacing: 0.14em;
  font-weight: 640;
  transform: rotate(-6deg);
}

.parts { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.source { margin-top: 8px; }
.source a { color: var(--petrol-bright); }

.budget {
  position: relative;
  overflow: hidden;
  max-width: 1440px;
  margin: 8px auto 24px;
  padding: 26px;
}

.budget::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -40px;
  width: 180px;
  height: 140px;
  opacity: 0.12;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 90'%3E%3Cg fill='none' stroke='%230f4c4a' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M60 76c0-20-7-38-18-52 12 8 18 28 18 52z'/%3E%3Cpath d='M60 76c0-20 7-38 18-52-12 8-18 28-18 52z'/%3E%3Cpath d='M60 76c0-16-16-32-34-38 16 10 26 24 34 38z'/%3E%3Cpath d='M60 76c0-16 16-32 34-38-16 10-26 24-34 38z'/%3E%3Cpath d='M60 76c0-12-24-22-42-20 18 6 34 14 42 20z'/%3E%3Cpath d='M60 76c0-12 24-22 42-20-18 6-34 14-42 20z'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}

.budget-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.budget h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: 40px;
  margin: 0;
}

.totals {
  display: flex;
  gap: 18px;
  margin: 14px 0;
}

.total-card {
  position: relative;
  overflow: hidden;
  flex: 1;
  background: linear-gradient(160deg, #14615d, var(--petrol-deep));
  color: white;
  border-radius: 20px;
  padding: 18px 20px;
}

.total-card::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: -8px;
  width: 92px;
  height: 70px;
  opacity: 0.45;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 90'%3E%3Cg fill='none' stroke='white' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M60 76c0-20-7-38-18-52 12 8 18 28 18 52z'/%3E%3Cpath d='M60 76c0-20 7-38 18-52-12 8-18 28-18 52z'/%3E%3Cpath d='M60 76c0-16-16-32-34-38 16 10 26 24 34 38z'/%3E%3Cpath d='M60 76c0-16 16-32 34-38-16 10-26 24-34 38z'/%3E%3Cpath d='M60 76c0-12-24-22-42-20 18 6 34 14 42 20z'/%3E%3Cpath d='M60 76c0-12 24-22 42-20-18 6-34 14-42 20z'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

.total-card span { display: block; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; color: #d5efec; }
.total-card strong {
  position: relative;
  z-index: 1;
  font-family: Fraunces, Georgia, serif;
  font-size: 40px;
  font-weight: 520;
}

.spend {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 8px 0 14px;
  color: var(--muted);
}

.spend input {
  width: 88px;
  font: inherit;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--petrol-bright); font-weight: 500; }
td.num, th.num { text-align: right; white-space: nowrap; }
tr.total td { font-weight: 640; border-bottom: none; color: var(--petrol-deep); }

.kinds { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }

.kind {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: #dceeea;
  color: var(--petrol-deep);
  font-weight: 640;
}

.kind-transport { background: #d7e6f2; color: #1a4d6e; }
.kind-food { background: #f3ead6; color: #6b4e1e; }

.aside { color: var(--muted); font-size: 14px; }
.foot { max-width: 1440px; margin: 0 auto 40px; padding: 0 24px; color: var(--muted); }
code { font-size: 0.95em; }

.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.85) !important;
  color: var(--muted) !important;
}

@media (min-width: 901px) {
  .board {
    max-width: 1440px;
    margin: 0 auto;
    padding: 22px 24px 32px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    gap: 18px;
    align-items: start;
  }

  .rail, .board > main { display: contents; }

  .map-card { grid-column: 1; grid-row: 1; }
  .panel { grid-column: 2; grid-row: 1; }
  .budget { grid-column: 1 / -1; grid-row: 2; margin: 0; }

  #map { height: clamp(560px, calc(100vh - 270px), 880px); }
}

@media (min-width: 1100px) {
  .board { grid-template-columns: minmax(0, 1.35fr) minmax(420px, 1fr); }
  .rail {
    display: flex;
    flex-direction: column;
    gap: 18px;
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }
  .board > main {
    display: block;
    grid-column: 2;
    grid-row: 1;
    max-width: none;
    margin: 0;
    padding: 0;
    min-width: 0;
  }
  .map-card, .budget { margin: 0; max-width: none; }
  .budget-head { align-items: start; }
  .choices { align-items: flex-start; }
}

@media (min-width: 1320px) {
  .hotels, .flights { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1500px) {
  .top, .days, .board, .foot { max-width: none; }

  .board {
    grid-template-columns: minmax(340px, 0.86fr) minmax(480px, 1.15fr) minmax(520px, 1.3fr);
  }

  .rail { display: contents; }

  .budget {
    grid-column: 1;
    grid-row: 1;
    padding: 18px 16px;
  }

  .map-card { grid-column: 2; grid-row: 1; }

  .board > main { grid-column: 3; grid-row: 1; }

  #map { height: clamp(640px, calc(100vh - 240px), 960px); }

  .budget .totals { flex-direction: column; gap: 10px; }
  .budget .total-card strong { font-size: 32px; }
  .budget th, .budget td { padding: 8px 6px; }
}

@media (max-width: 900px) {
  .board {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 18px 24px 8px;
  }
  .rail { display: contents; }
  .map-card { order: 1; position: static; }
  main { order: 2; display: block; margin: 0; padding: 0; max-width: none; }
  .budget { order: 3; margin: 0; }
  .identity { align-items: center; }
  .date-hero { text-align: left; margin-top: 18px; }
  .lotus-bg { width: 220px; opacity: 0.16; }
  #map { height: 420px; }
  .photos { grid-template-columns: 1fr; }
  .photos img { aspect-ratio: 16 / 9; }
  .totals { display: block; }
  .total-card { margin-bottom: 10px; }
  .daynum { font-size: 84px; }
  .days { margin-top: 0; padding-top: 12px; }
  .day-row { margin-left: 6px; }
}
