:root {
  color-scheme: light;
  --canvas: #f4f2e9;
  --paper: #fffefa;
  --ink: #192d24;
  --muted: #526359;
  --line: #dddcd1;
  --green: #204e3d;
  --deep: #142e24;
  --lime: #d9ed9c;
  --pending-bg: #fbefd0;
  --pending-fg: #694a0d;
  --confirmed-bg: #e1efdd;
  --confirmed-fg: #244e38;
  --declined-bg: #f8e5df;
  --declined-fg: #853b31;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
a, button { touch-action: manipulation; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #487659; outline-offset: 3px; }
h1, h2, p, dl, dd { margin: 0; }
h1 { font-size: clamp(2rem, 7vw, 3.05rem); line-height: 1.13; font-weight: 780; letter-spacing: -.045em; }
h2 { font-size: 1.125rem; line-height: 1.4; }
strong { font-weight: 690; }

.top {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: env(safe-area-inset-top) max(1rem, env(safe-area-inset-right)) 0 max(1rem, env(safe-area-inset-left));
}
.top-inner {
  max-width: 1000px;
  margin-inline: auto;
  min-height: 66px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
}
.wordmark, .nav-link, .back {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.wordmark { font-weight: 750; }
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--deep);
  display: grid;
  place-items: center;
}
.brand-mark i {
  width: 15px;
  height: 9px;
  border: 1.5px solid var(--lime);
  border-radius: 4px;
  position: relative;
}
.brand-mark i::before, .brand-mark i::after {
  content: "";
  width: 2px;
  height: 2px;
  background: var(--lime);
  position: absolute;
  bottom: -3px;
}
.brand-mark i::before { left: 1px; }
.brand-mark i::after { right: 1px; }
.nav-link {
  color: var(--green);
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding-inline: .65rem;
  font-size: .875rem;
  font-weight: 680;
}
.nav-link:hover { background: var(--confirmed-bg); }

.shell {
  max-width: 680px;
  margin-inline: auto;
  padding: 1rem max(1rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}
.intro {
  min-height: 143px;
  display: flex;
  position: relative;
  isolation: isolate;
  align-items: center;
  overflow: hidden;
  padding: 1.35rem;
  color: var(--paper);
  background: var(--deep);
  border-radius: 23px;
  margin-bottom: .85rem;
}
.intro h1 { font-size: clamp(1.75rem, 6.5vw, 2.25rem); }
.intro-copy { width: 100%; }
.intro-greeting { margin-top: .7rem; max-width: 24em; }
.intro-contact { display: flex; align-items: center; flex-wrap: wrap; margin-top: .1rem; }
.intro-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--lime);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .25em;
  font-variant-numeric: tabular-nums;
}
.intro-contact a:focus-visible { outline-color: var(--lime); }
.intro-instruction { margin-top: .35rem; font-size: .86rem; color: #d2dfd1; }
.route-art {
  position: absolute;
  z-index: -1;
  width: 110px;
  height: 110px;
  right: -12px;
  top: -2px;
  opacity: .28;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 52%, #799785 53% 54%, transparent 55% 68%, #799785 69% 70%, transparent 71%);
}
.route-line {
  position: absolute;
  width: 56%;
  height: 53%;
  left: 15%;
  top: 14%;
  border-left: 2px solid var(--lime);
  border-bottom: 2px solid var(--lime);
  border-radius: 0 0 0 55%;
  rotate: -26deg;
}
.route-from, .route-to {
  display: block;
  width: 10%;
  aspect-ratio: 1;
  position: absolute;
  border-radius: 50%;
  background: var(--lime);
}
.route-from { top: 27%; left: 8%; }
.route-to { top: 47%; left: 67%; box-shadow: 0 0 0 6px #d9ed9c32; }

.card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  padding: 1.2rem;
  margin-bottom: .8rem;
  overflow-wrap: anywhere;
}
.card h2 { margin-bottom: .9rem; }
.field { margin-bottom: .95rem; min-width: 0; }
.field label { display: block; margin-bottom: .35rem; font-size: .92rem; font-weight: 680; }
.optional { margin-left: .2em; color: var(--muted); font-size: .77rem; font-weight: 500; }
.field input, .field textarea, [data-link-fallback] {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 47px;
  border: 1px solid #cccfc3;
  border-radius: 11px;
  padding: .62rem .75rem;
  background: #fbfbf5;
  color: var(--ink);
  font-size: 1rem;
}
.field input::placeholder, .field textarea::placeholder { color: #626f62; }
.field input[type="datetime-local"] { max-width: 100%; }
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--declined-fg); }
.errorlist {
  margin: .35rem 0 .7rem;
  padding: 0;
  list-style: none;
  color: var(--declined-fg);
  font-size: .875rem;
}
.route-fields { padding-left: .88rem; border-left: 2px solid #b9c9b3; }
.form-columns { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: .9rem; }
.stepper { display: flex; gap: .45rem; }
.stepper input { text-align: center; flex: 1; }
.stepper input::-webkit-inner-spin-button { appearance: none; }
.stepper input { appearance: textfield; }
.stepper button {
  background: var(--confirmed-bg);
  color: var(--green);
  border: 0;
  border-radius: 11px;
  width: 48px;
  min-height: 47px;
  flex: 0 0 auto;
  font-size: 1.2rem;
  font-weight: 750;
}
.stepper button:disabled { opacity: .55; cursor: default; }
.form-divider { border-top: 1px solid var(--line); margin: .1rem 0 1rem; }
.hint { color: var(--muted); font-size: .83rem; margin: -.55rem 0 .95rem; }

.button {
  display: inline-flex;
  min-width: 0;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: .58rem .9rem;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  text-align: center;
  font-weight: 690;
  overflow-wrap: anywhere;
}
.button:disabled { opacity: .65; cursor: wait; }
.primary { background: var(--green); color: white; }
.primary:hover { background: var(--deep); }
.secondary { border-color: #c7cfc2; color: var(--green); background: var(--paper); }
.secondary:hover { background: var(--confirmed-bg); }
.full { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.actions > .button { flex: 1 1 8.2rem; }
.result-actions { margin-block: 1rem; }
.copy-message { flex-basis: 100%; color: var(--muted); font-size: .875rem; }
.copy-message:empty { display: none; }
.plain-heading { padding: .65rem 0 1rem; }
.plain-heading p { color: var(--muted); margin-top: .55rem; }
.order-heading { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: .65rem; }
.back { color: var(--green); font-weight: 650; font-size: .9rem; }

.status-hero {
  border-radius: 22px;
  padding: 1.35rem;
  margin-bottom: .85rem;
}
.status-hero h1 { font-size: clamp(1.8rem, 6.5vw, 2.4rem); margin-top: .5rem; }
.status-hero p { margin-top: .6rem; }
.status-symbol {
  border: 1px solid currentColor;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 1.2rem;
  font-weight: 750;
}
.pending { color: var(--pending-fg); background: var(--pending-bg); }
.confirmed, .notice { color: var(--confirmed-fg); background: var(--confirmed-bg); }
.declined { color: var(--declined-fg); background: var(--declined-bg); }
.notice { padding: .65rem .85rem; border-radius: 12px; margin-bottom: .8rem; }
.badge { display: inline-flex; align-items: center; border-radius: 99px; padding: .2rem .7rem; font-size: .82rem; font-weight: 690; white-space: nowrap; }
.result-card { border-color: #bfcfbd; }
.itinerary {
  display: grid;
  gap: .7rem;
  padding: .85rem;
  border-radius: 11px;
  background: var(--canvas);
  margin-bottom: .65rem;
}
.itinerary > div { display: grid; grid-template-columns: 10px 5em minmax(0, 1fr); align-items: baseline; gap: .45rem; }
.itinerary span, .facts dt { font-size: .875rem; color: var(--muted); }
.itinerary i { width: 8px; height: 8px; border: 2px solid var(--green); border-radius: 50%; }
.itinerary .destination { background: var(--green); }
.facts > div {
  display: grid;
  grid-template-columns: minmax(5.6rem, 30%) minmax(0, 1fr);
  gap: .6rem;
  padding: .6rem 0;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
}
.facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dd { white-space: pre-line; }
.telephone { color: var(--green); font-weight: 690; display: inline-flex; align-items: center; min-height: 44px; gap: .4rem; flex-wrap: wrap; }
.telephone span { font-size: .82rem; text-decoration: underline; text-underline-offset: 2px; }
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem; margin-bottom: .85rem; }
.filters a {
  display: grid;
  place-items: center;
  padding: .25rem;
  text-align: center;
  min-height: 44px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: .86rem;
}
.filters a[aria-current] { background: var(--green); color: white; border-color: var(--green); font-weight: 680; }
.tile-top, .tile-bottom { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.tile-top time, .tile-bottom p { font-size: .86rem; color: var(--muted); }
.order-tile h2 { margin-top: .6rem; margin-bottom: .65rem; }
.arrow { margin-inline: .25em; color: var(--green); }
.empty { text-align: center; color: var(--muted); padding-block: 2rem; }
.empty p { margin-block: .8rem 1rem; }
.pagination { display: flex; align-items: center; justify-content: center; gap: .65rem; }

@media (min-width: 520px) {
  .shell { padding-top: 1.65rem; }
  .card { padding: 1.55rem; }
  .intro { padding: 1.85rem; }
  .form-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 850px) {
  .booking-layout {
    max-width: 1032px;
    padding-top: 3rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.34fr);
    gap: 1.15rem;
    align-items: stretch;
  }
  .booking-layout .card, .intro { margin-bottom: 0; }
  .intro { padding: 2.35rem; align-items: flex-start; }
  .intro h1 { margin-top: 1rem; font-size: clamp(2.2rem, 4vw, 3.2rem); }
  .intro-greeting { margin-top: 1.05rem; font-size: 1.05rem; }
  .route-art { width: 88%; height: auto; aspect-ratio: 1; top: auto; bottom: -9%; right: -5%; opacity: .73; }
}
@media (prefers-reduced-motion: no-preference) {
  .button, .stepper button, .nav-link { transition: background-color .16s ease, opacity .16s ease; }
}
