:root {
  --bg: #F0F0F0;
  --text: #262838;
  --muted: #6d7080;
  --blue: #0000FF;
  --lime: #CDF75C;
}
* { box-sizing: border-box; }
html, body, .app { height: 100%; margin: 0; }
body { font-family: Raleway, system-ui, sans-serif; color: var(--text); background: var(--bg); }
.app { display: grid; grid-template-columns: 400px 1fr; width: 100%; height: 100vh; max-width: none; margin: 0; background: var(--bg); }
.panel { background: var(--bg); padding: 18px 16px 28px; overflow: auto; height: 100vh; }
.bar { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 6px; color: #111; font-weight: 800; font-size: 28px; letter-spacing: -0.04em; text-decoration: none; }
.pin {
  width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: linear-gradient(135deg, #2ee6a6, #2f62ff);
}
.bar-right { display: flex; align-items: center; gap: 8px; }
.ver { color: var(--muted); font-size: 12px; font-weight: 800; }
.iconbtn, button.lang {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; color: #333;
  font-weight: 800; cursor: pointer; font-family: inherit;
}
.bar { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; }
.logo { justify-self: center; color: #262838; font-weight: 800; letter-spacing: -0.04em; }
.logo img { height: 42px; width: auto; display: block; }
.ver { color: var(--muted); font-size: 11px; font-weight: 800; }
.place-card { position: relative; background: #fff; border-radius: 22px; padding: 6px 14px; margin-top: 8px; }
.place-line { display: flex; align-items: center; gap: 10px; padding: 8px 28px 8px 0; }
.place-line + .to-line { border-top: 1px solid #d5d5de; margin-top: 2px; }
.pico { width: 22px; color: #9aa0aa; font-size: 18px; text-align: center; }
.place-card .field { margin: 0; flex: 1; }
.place-card .field span { color: #9aa0aa; font-size: 12px; font-weight: 600; }
.place-card input { background: transparent; padding: 2px 0 0; border-radius: 0; font-size: 16px; }
.swap-float {
  position: absolute; right: -8px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.12); color: #7aa2ff; font-weight: 800; cursor: pointer;
}
button.ghost-ico { border: 0; background: transparent; color: var(--blue); font-size: 18px; cursor: pointer; }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.mini-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  background: #fff; border-radius: 16px; border: 0; padding: 12px 14px; text-align: left;
  font-family: inherit; color: #222; width: 100%;
}
.pax-card { margin-top: 10px; cursor: pointer; }
.mlabel { color: #9aa0aa; font-size: 13px; font-weight: 600; }
.mlabel em { font-style: normal; }
.mini-card input { border: 0; background: transparent; padding: 0; margin: 0; font-weight: 800; font-size: 16px; width: 100%; }
.pax-box { display: flex; gap: 8px; margin-top: 8px; }
button#go { margin-top: 22px; border-radius: 16px; padding: 16px; font-size: 18px; }
.tabbar {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 22px;
  padding-top: 10px; border-top: 1px solid #e4e4ea;
}
.tabbar button { border: 0; background: transparent; color: #8d8d95; font-weight: 700; font-family: inherit; cursor: pointer; }
.tabbar button.on { color: var(--blue); }
.chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.chip {
  background: #fff; border-radius: 999px; padding: 6px 10px; font-size: 13px; color: #444;
  display: flex; gap: 4px; align-items: center;
}
.chip input { border: 0; background: transparent; font: inherit; font-weight: 800; width: 168px; color: #111; }
.stepper b { min-width: 14px; text-align: center; font-size: 16px; color: #111; }
.stepper button { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #ececf1; font-weight: 800; cursor: pointer; }
.fromrow { display: flex; align-items: flex-end; gap: 8px; }
.fromrow .field { flex: 1; }
button.locate { margin-bottom: 2px; font-size: 20px; color: var(--blue); }
.swapline { display: flex; justify-content: center; margin: 2px 0; }
.map-picks { display: flex; gap: 8px; }
.map-picks .textbtn { flex: 1; }
.jicons { font-size: 26px; letter-spacing: 2px; line-height: 1; }
#map { height: 100vh; min-height: 100%; }
.map-arm { cursor: crosshair !important; }
.field { display: block; font-size: 13px; font-weight: 700; margin: 8px 0; position: relative; }
.field input, input {
  width: 100%; margin-top: 4px; border: 0; background: #fff; border-radius: 14px;
  padding: 12px; font: inherit; color: #111;
}
.suggest {
  list-style: none; margin: 4px 0 0; padding: 0; background: #fff; border-radius: 12px;
  position: absolute; left: 0; right: 0; z-index: 20; box-shadow: 0 8px 24px rgba(0,0,0,.08); max-height: 200px; overflow: auto;
}
.suggest li { padding: 8px 12px; cursor: pointer; font-weight: 500; }
.suggest li:hover { background: #f4f5fb; }
.row { display: flex; gap: 8px; margin-top: 8px; }
button#go {
  flex: 1; border: 0; border-radius: 14px; background: var(--blue); color: #fff;
  font-weight: 800; padding: 14px; font-family: inherit; cursor: pointer;
}
button.textbtn { width: 100%; border: 0; background: transparent; color: var(--blue); font-weight: 700; cursor: pointer; font-family: inherit; }
.status { color: var(--muted); font-size: 13px; min-height: 1.2em; }
.jcard {
  background: #fff; border-radius: 18px; padding: 14px 14px 12px; margin: 10px 0; cursor: pointer;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}
.jcard.active { outline: 2px solid #d9defe; }
.jtop { display: flex; justify-content: space-between; align-items: center; }
.pill { border-radius: 999px; padding: 3px 8px; font-size: 12px; font-weight: 800; }
.pill.fast { background: #ece9ff; color: #5b4cdb; }
.pill.easy { background: #e5f8d8; color: #3c8d2a; }
.big { color: var(--blue); font-size: 28px; letter-spacing: -0.03em; }
.big small { font-size: 14px; margin-left: 2px; }
.jtimes { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; margin-top: 8px; }
.jtimes b { display: block; font-size: 18px; }
.jtimes span { color: var(--muted); font-size: 12px; }
.arrow { color: #bbb; align-self: center; }
.jmeta { display: flex; gap: 8px; align-items: center; color: #666; font-size: 13px; margin-top: 10px; flex-wrap: wrap; }
.timeline { background: #fff; border-radius: 18px; padding: 8px 14px 14px; margin-top: 8px; }
.trow { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; padding: 10px 0; border-left: 2px solid #d9dff5; margin-left: 10px; }
.trow .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--blue); margin-left: -17px; margin-top: 4px; }
.tname { font-weight: 800; font-size: 18px; }
.tsub { color: var(--muted); font-size: 13px; }
.ext { color: #e15b64; font-size: 12px; font-weight: 700; text-align: right; }
button.confirm {
  width: 100%; margin-top: 12px; border: 0; border-radius: 12px; background: var(--blue); color: #fff;
  font-weight: 800; padding: 14px; font-family: inherit;
}
.legal { display: flex; gap: 12px; margin-top: 18px; font-size: 12px; }
.legal a { color: var(--blue); }
#map { height: 100vh; }
.mode-pin {
  width: 26px; height: 26px; border-radius: 50%; background: #fff; display: flex;
  align-items: center; justify-content: center; font-size: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
@media (max-width: 860px) {
  body { background: var(--bg); }
  .app { grid-template-columns: 1fr; height: auto; }
  .panel { height: auto; }
  #map { height: 52vh; }
}
