:root {
  --bg: #f6f3ee;
  --card: #ffffff;
  --ink: #2b2620;
  --ink-soft: #6b6258;
  --accent: #b4532a;       /* terracotta */
  --accent-soft: #f3e2d8;
  --green: #3d6b4f;
  --alert-bg: #fdf0e7;
  --alert-edge: #d97742;
  --line: #e7e0d6;
  --chip: #efe9e0;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { font-size: 17px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.45;
  padding-bottom: 40px;
}

header {
  position: sticky; top: 0; z-index: 10;
  background: linear-gradient(160deg, #7c3a1d, #b4532a);
  color: #fff; padding: 14px 16px 0;
  box-shadow: 0 2px 10px rgba(60,30,10,.25);
}
.head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; max-width: 760px; margin: 0 auto; }
h1 { font-size: 1.25rem; font-weight: 800; letter-spacing: .2px; }
.net { font-size: .72rem; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.net.on  { background: rgba(255,255,255,.18); color: #ffe9dc; }
.net.off { background: #2e5941; color: #d7f5e3; }

#nav {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 12px;
  max-width: 760px; margin: 0 auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
#nav::-webkit-scrollbar { display: none; }
.navchip {
  flex: 0 0 auto; border: 0; border-radius: 14px; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff;
  padding: 8px 13px; font-size: .88rem; font-weight: 650;
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
}
.navchip small { font-weight: 500; font-size: .68rem; opacity: .82; }
.navchip.active { background: #fff; color: var(--accent); }
.navchip.active small { opacity: .7; }

#app { max-width: 760px; margin: 0 auto; padding: 16px 14px; }

.stop-head { margin: 6px 2px 14px; }
.stop-title { font-size: 1.45rem; font-weight: 800; }
.stop-dates { color: var(--ink-soft); font-size: .92rem; margin-top: 2px; }

.alert {
  background: var(--alert-bg); border-left: 4px solid var(--alert-edge);
  border-radius: 10px; padding: 11px 13px; margin: 0 0 10px;
  font-size: .92rem; font-weight: 550;
}

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; margin: 0 0 12px;
}
.card-label { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--accent); margin-bottom: 8px; }

.flight { padding: 9px 0; border-top: 1px solid var(--line); }
.flight:first-of-type { border-top: 0; padding-top: 2px; }
.flight-no { font-weight: 800; font-size: .95rem; }
.flight-r { font-weight: 650; }
.flight-t { color: var(--ink-soft); font-size: .9rem; }
.flight-note { font-size: .85rem; color: var(--ink-soft); margin-top: 3px; }

details.sec {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  margin: 0 0 12px; overflow: hidden;
}
details.sec summary {
  list-style: none; cursor: pointer; user-select: none;
  font-weight: 750; font-size: 1.02rem; padding: 13px 14px;
  display: flex; align-items: center; gap: 4px;
}
details.sec summary::-webkit-details-marker { display: none; }
details.sec summary::after { content: "▾"; margin-left: auto; color: var(--ink-soft); transition: transform .15s; }
details.sec[open] summary::after { transform: rotate(180deg); }
.sec-body { padding: 0 14px 12px; }

.place { padding: 10px 0; border-top: 1px solid var(--line); }
.place:first-child { border-top: 0; }
.place-n { font-weight: 750; }
.place-a { color: var(--ink-soft); font-size: .88rem; }
.place-d { font-size: .92rem; margin-top: 3px; }
.place-links { display: flex; gap: 8px; margin-top: 7px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-size: .84rem; font-weight: 700;
  background: var(--accent-soft); color: var(--accent);
  padding: 6px 12px; border-radius: 99px;
}
.btn:active { opacity: .7; }

.tip {
  background: var(--chip); border-radius: 10px; padding: 10px 12px;
  font-size: .92rem; margin: 8px 0;
}

.dayblock { border-top: 1px solid var(--line); padding: 11px 0; }
.dayblock:first-child { border-top: 0; }
.dayhead { font-weight: 800; color: var(--green); margin-bottom: 3px; }
.daybody { font-size: .94rem; }

.sos-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 4px; border-top: 1px solid var(--line);
  text-decoration: none; color: var(--ink); font-weight: 600;
}
.sos-row:first-of-type { border-top: 0; }
.sos-num { color: var(--accent); font-weight: 800; white-space: nowrap; }

.conv-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.conv-cur { font-weight: 800; font-size: 1.2rem; }
#aud {
  flex: 1; font-size: 1.3rem; font-weight: 700; padding: 8px 12px;
  border: 2px solid var(--line); border-radius: 10px; width: 100%;
  background: var(--bg); color: var(--ink);
}
.conv-line { font-size: 1.08rem; font-weight: 700; padding: 6px 2px; }
.rate-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 2px; border-top: 1px solid var(--line); }
.rate-row:first-of-type { border-top: 0; }
.rate-btn {
  border: 0; background: var(--accent-soft); color: var(--accent);
  font-weight: 800; font-size: .95rem; padding: 6px 14px; border-radius: 99px; cursor: pointer;
}

.check { display: flex; gap: 11px; padding: 11px 2px; border-top: 1px solid var(--line); cursor: pointer; font-size: .93rem; }
.check:first-child { border-top: 0; }
.check input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--green); }
.check.done span { opacity: .45; text-decoration: line-through; }

footer { text-align: center; color: var(--ink-soft); font-size: .78rem; padding: 18px 0 8px; }
