@import url("https://fonts.googleapis.com/css2?family=Pacifico&family=Nunito:wght@400;600;800&display=swap");

:root {
  --sea: #0e9fb3;
  --sea-deep: #0a6f8a;
  --lagoon: #d8f5f2;
  --sand: #fbf3e2;
  --sand-2: #f3e3c0;
  --coral: #ff7a59;
  --sun: #ffc94d;
  --palm: #1d5c4d;
  --ink: #12343b;
  --muted: #5a7a80;
  --card: #ffffff;
  --line: #e6ddc8;
  --shadow: 0 10px 30px rgba(10, 80, 100, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.5;
}
a { color: var(--sea-deep); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  background: url("/art.svg") center bottom / cover no-repeat, #8fe0d8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 16px 160px;
  color: #fff;
}
.hero h1 {
  font-family: "Pacifico", cursive;
  font-weight: 400;
  font-size: clamp(3rem, 11vw, 6.5rem);
  margin: 0;
  line-height: 1.1;
  text-shadow: 0 4px 18px rgba(10, 80, 100, .35);
}
.hero .sub {
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: clamp(.8rem, 2.4vw, 1rem);
  text-shadow: 0 2px 10px rgba(10, 80, 100, .4);
}
.countdown {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.countdown div {
  background: rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 18px;
  padding: 12px 16px;
  min-width: 82px;
}
.countdown b { display: block; font-size: 2rem; line-height: 1; }
.countdown span { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }

nav.tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 10px 16px;
  background: rgba(251, 243, 226, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  justify-content: center;
}
nav.tabs a {
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 999px;
}
nav.tabs a:hover { background: var(--lagoon); }

main { max-width: 980px; margin: 0 auto; padding: 0 16px 80px; }
section { padding-top: 48px; scroll-margin-top: 60px; }
h2 {
  font-family: "Pacifico", cursive;
  font-weight: 400;
  color: var(--sea-deep);
  font-size: 2rem;
  margin: 0 0 16px;
}
h3 { margin: 0 0 6px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
  background: var(--card);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid #f1e8d4;
}
.label { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.big { font-size: 1.3rem; font-weight: 800; }

/* travelers */
.family h3 { color: var(--sea-deep); }
.people { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.person {
  display: flex; align-items: center; gap: 8px;
  background: var(--lagoon); border-radius: 999px; padding: 6px 14px 6px 6px; font-weight: 700;
}
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 800;
  background: linear-gradient(135deg, var(--sea), var(--palm));
}
.person.kid .avatar { background: linear-gradient(135deg, var(--sun), var(--coral)); }

/* itinerary */
.days { display: grid; gap: 12px; }
.day {
  display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: start;
  background: var(--card); border-radius: 18px; padding: 16px; box-shadow: var(--shadow);
}
.day .date {
  text-align: center; border-radius: 14px; padding: 8px 0;
  background: linear-gradient(160deg, var(--sea), var(--sea-deep)); color: #fff;
}
.day .date b { display: block; font-size: 1.6rem; line-height: 1; }
.day .date span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.day ul { margin: 6px 0 0; padding-left: 18px; }
.day .tbd { color: var(--muted); font-style: italic; }

/* checklist */
.who {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; color: var(--muted);
}
select, input[type=text], input[type=password] {
  font: inherit; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.group { margin-bottom: 20px; }
.item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff;
  border-radius: 14px; margin-bottom: 8px; border: 1px solid #f1e8d4;
}
.item input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--sea); flex: none; }
.item .text { flex: 1; }
.item.done .text { text-decoration: line-through; color: var(--muted); }
.item .by { font-size: .78rem; color: var(--sea-deep); font-weight: 700; }
.item button { border: 0; background: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; }
.add { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.add input { flex: 1; min-width: 180px; }
.btn {
  font: inherit; font-weight: 800; border: 0; border-radius: 12px; padding: 10px 18px; cursor: pointer;
  background: var(--coral); color: #fff;
}
.btn:hover { filter: brightness(1.05); }
.progress { height: 10px; background: var(--sand-2); border-radius: 999px; overflow: hidden; margin: 6px 0 18px; }
.progress div { height: 100%; background: linear-gradient(90deg, var(--sea), var(--sun)); width: 0; transition: width .4s; }

/* ideas */
.idea { border-top: 6px solid var(--sea); }
.idea:nth-child(3n+2) { border-top-color: var(--sun); }
.idea:nth-child(3n+3) { border-top-color: var(--coral); }
.idea p { margin: 6px 0 0; color: var(--muted); }

footer { text-align: center; padding: 30px 16px 50px; color: var(--muted); }
footer a { font-weight: 700; }

/* login */
.login {
  min-height: 100vh; display: grid; place-items: center; padding: 16px;
  background: url("/art.svg") center bottom / cover no-repeat, #8fe0d8;
}
.login form {
  width: min(380px, 100%); text-align: center; padding: 28px 24px;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 24px; box-shadow: var(--shadow);
}
.login h1 { font-family: "Pacifico", cursive; font-weight: 400; color: var(--sea-deep); font-size: 2.6rem; margin: 0 0 4px; }
.login p { margin: 0 0 18px; color: var(--muted); }
.login input { width: 100%; margin-bottom: 12px; }
.login .btn { width: 100%; }
.login .wrong { color: #c2410c; font-weight: 700; }

@media (max-width: 520px) {
  nav.tabs { justify-content: flex-start; }
  .day { grid-template-columns: 60px 1fr; gap: 12px; }
  .countdown div { min-width: 68px; padding: 10px 12px; }
}

/* ---------- v2: collaboration ---------- */
.muted { color: var(--muted); }
.subhead { margin: 28px 0 6px; color: var(--sea-deep); }
.x { border: 0; background: none; color: var(--muted); font-size: 1rem; cursor: pointer; padding: 0 4px; }
.x:hover { color: var(--coral); }
.by { font-size: .78rem; color: var(--sea-deep); font-weight: 700; margin-left: 4px; }
.pill { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: var(--lagoon); color: var(--sea-deep); border-radius: 999px; padding: 2px 8px; margin-right: 4px; }
.flight { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.flight:last-child { border-bottom: 0; }
.form-card { margin-top: 16px; }
.form-card summary { cursor: pointer; font-weight: 800; color: var(--sea-deep); }
.form-card .add input, .form-card .add select { min-width: 140px; flex: 1; }
form.card.add { margin-top: 16px; }

a.fare { text-decoration: none; color: inherit; transition: transform .15s; }
a.fare:hover { transform: translateY(-2px); }
.down { color: #0f8a5f; font-size: .9rem; }
.up { color: #c2410c; font-size: .9rem; }

.wx-strip { grid-column: 1 / -1; }
.wx-days { display: flex; gap: 10px; overflow-x: auto; padding-top: 8px; }
.wx-days > div { flex: 1 0 74px; text-align: center; background: var(--lagoon); border-radius: 14px; padding: 10px 6px; font-weight: 700; }
.wx-days span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.wx-days b { display: block; font-size: 1.5rem; margin: 4px 0; }
.wx-days small { display: block; color: var(--muted); font-weight: 600; }

.prog .progress { margin: 8px 0 4px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; margin: 20px 0 16px; }
.seg button { font: inherit; font-weight: 800; border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.seg button.on { background: var(--sea); border-color: var(--sea); color: #fff; }

.vote-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.vote { font: inherit; font-weight: 800; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.vote.on { background: var(--sun); border-color: var(--sun); }
.vote-row .muted { font-size: .85rem; }

.act { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.act:last-child { border-bottom: 0; }
.act .muted { font-size: .8rem; margin-left: 6px; }
.day li { margin-bottom: 4px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 20;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow); font-weight: 700; }
.small { font-size: .82rem; margin-top: 4px; }

/* ---------- v3: fare scan ---------- */
.outlook { margin-bottom: 16px; border-left: 6px solid var(--sea); }
.outlook p { margin: 8px 0 0; }
.chart-card { margin-top: 16px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin: 6px 0 4px; font-weight: 700; font-size: .85rem; }
.legend i, .tip i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.chart-wrap { position: relative; }
.chart-wrap svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
.chart-wrap .grid { stroke: #ece4d2; stroke-width: 1; }
.chart-wrap .axis { fill: var(--muted); font-size: 11px; }
.chart-wrap .lbl { fill: var(--ink); font-size: 12px; font-weight: 800; }
.chart-wrap .xh { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.tip { position: absolute; top: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px;
  box-shadow: var(--shadow); font-size: .85rem; pointer-events: none; min-width: 120px; }
.pill.late { background: #fde7df; color: #9a3412; }
.price { font-size: 1.6rem; font-weight: 800; line-height: 1.2; }
.outlook ul { margin: 8px 0 0; padding-left: 20px; }
.outlook li { margin-bottom: 4px; }

/* route line: 8:00 AM ──●── 3:09 PM */
.route { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; }
.rt-end { display: flex; flex-direction: column; white-space: nowrap; }
.rt-end b { font-size: 1rem; }
.rt-end span { font-size: .78rem; color: var(--muted); font-weight: 700; }
.rt-line { flex: 1; position: relative; display: flex; justify-content: space-evenly; min-height: 44px; }
.rt-line::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--sea); border-radius: 2px; }
.rt-stop { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.rt-stop i { width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--sea); margin-top: 5px; }
.rt-stop span { font-size: .72rem; font-weight: 700; color: var(--muted); line-height: 1.2; margin-top: 3px; }
.rt-stop.night i { border-color: #c2410c; background: #fde7df; }
.rt-stop.night span { color: #9a3412; }
.tags { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.tag { font-size: .72rem; font-weight: 800; border-radius: 999px; padding: 2px 9px; background: var(--lagoon); color: var(--sea-deep); }
.tag.good { background: #dcf3e6; color: #0f6b44; }
.tag.bad { background: #fde7df; color: #9a3412; }
.opt { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.opt:last-child { border-bottom: 0; }
.opt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.price-sm { font-weight: 800; font-size: 1.1rem; text-align: right; }
.price-sm small { display: block; font-size: .75rem; color: var(--muted); font-weight: 600; }
#optTable { max-width: 560px; }

/* ---------- v4: pages + dashboard ---------- */
.hero.compact { min-height: 0; padding: 26px 16px 60px; background-position: center 62%; }
.hero.compact h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); }
.hero.compact .sub:first-child { display: none; }
.hero.compact .countdown { margin-top: 10px; }
.hero.compact .countdown div { padding: 6px 10px; min-width: 0; }
.hero.compact .countdown b { font-size: 1.2rem; display: inline; margin-right: 4px; }
nav.tabs a.on { background: var(--sea); color: #fff; }
.dash { margin-top: 0; }
.tile { text-decoration: none; color: inherit; display: block; transition: transform .15s; }
.tile:hover { transform: translateY(-2px); }
.tile .go { float: right; color: var(--sea-deep); }
.tile .big { font-size: 1.05rem; margin-bottom: 6px; }
.tile .row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.tile .row:last-of-type { border-bottom: 0; }
/* label + percent on one line, the bar under it: fits the narrowest tile */
.mini-prog { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; padding: 5px 0; font-weight: 700; font-size: .9rem; }
.mini-prog .progress { grid-column: 1 / -1; grid-row: 2; margin: 4px 0 0; }
.mini-prog b { text-align: right; }
.tile .row span { min-width: 0; }
.tile .row b { white-space: nowrap; }
.deal-leg { margin-top: 8px; }
.deal-math { margin: 10px 0 6px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: .88rem; }
.deal-math div { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.deal-math span { color: var(--muted); }

/* ---------- v5: guide ---------- */
.guide a { text-decoration: none; }
.timeline .when { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.timeline .when:last-child { border-bottom: 0; }
.timeline .when > b { color: var(--sea-deep); }
.timeline p { margin: 0 0 8px; }
.timeline p:last-child { margin: 0; }
.gsec { margin-top: 14px; }
.gsec summary { cursor: pointer; font-weight: 800; font-size: 1.1rem; color: var(--sea-deep); }
.gsec ul { padding-left: 20px; margin: 12px 0 0; }
.gsec li { margin-bottom: 8px; }
.gsec ul.cols { columns: 2; column-gap: 24px; }
.gtable { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .9rem; }
.gtable th { text-align: left; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 6px; border-bottom: 1px solid var(--line); }
.gtable td { padding: 8px 6px; border-bottom: 1px dashed var(--line); vertical-align: top; }
.gtable .ok { color: #0f6b44; font-weight: 800; }
.gtable .no { color: #9a3412; font-weight: 800; }
@media (max-width: 520px) {
  .timeline .when { grid-template-columns: 1fr; gap: 4px; }
  .gsec ul.cols { columns: 1; }
  .gtable { font-size: .82rem; }
}
