/* =====================================================================
   KOHWAN — the trip a visitor builds: the floating pill, its panel, and the
   cards on /my-trip.
   Markup: partials/trip-cart.blade.php · Behaviour: js/trip-cart.js
   ===================================================================== */
.ktrip {
  --kt-navy: #2e4755;
  --kt-gold: #BD830D;
  --kt-sky: #EAF5F8;
  --kt-line: #E3E9EC;
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 940;
  width: min(360px, calc(100vw - 32px));
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.ktrip[hidden] { display: none; }

.ktrip-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-radius: 14px;
  background: var(--kt-navy);
  color: #FFFFFF;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(16, 28, 36, .32);
  transition: transform .2s ease, filter .2s ease;
}
.ktrip-pill:hover { transform: translateY(-2px); filter: brightness(1.08); }
.ktrip-pill:focus-visible { outline: 2px solid var(--kt-gold); outline-offset: 3px; }
.ktrip-pill__ico { position: relative; display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; background: rgba(255, 255, 255, .13); }
.ktrip-pill__ico svg { width: 19px; height: 19px; }
.ktrip-pill__ico i {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--kt-gold);
  font-size: .72rem;
  font-style: normal;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}
.ktrip-pill__txt { display: flex; flex-direction: column; line-height: 1.2; margin-right: auto; }
.ktrip-pill__txt b { font-size: .92rem; font-weight: 700; }
.ktrip-pill__txt small { font-size: .78rem; color: rgba(255, 255, 255, .75); }
.ktrip-pill__go {
  flex: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--kt-gold);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------- the panel */
.ktrip-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: 100%;
  max-height: min(70vh, 560px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 26px 60px rgba(16, 28, 36, .34);
  overflow: hidden;
}
.ktrip-panel[hidden] { display: none; }
.ktrip-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  background: var(--kt-navy);
  color: #FFFFFF;
}
.ktrip-panel__head h2 { margin: 0; font-size: 1.05rem; font-weight: 700; letter-spacing: .02em; }
.ktrip-panel__head button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: inherit;
  cursor: pointer;
}
.ktrip-panel__head button svg { width: 15px; height: 15px; }
.ktrip-panel__head button:hover { background: var(--kt-gold); }

.ktrip-lines { flex: 1 1 auto; margin: 0; padding: 6px 16px; list-style: none; overflow-y: auto; }
.ktrip-line { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.ktrip-line + .ktrip-line { border-top: 1px solid var(--kt-line); }
.ktrip-line__img { flex: none; width: 46px; height: 46px; border-radius: 9px; background: var(--kt-sky); overflow: hidden; }
.ktrip-line__img img { width: 100%; height: 100%; object-fit: cover; }
.ktrip-line__txt { display: flex; flex-direction: column; min-width: 0; margin-right: auto; line-height: 1.3; }
.ktrip-line__txt a, .ktrip-line__txt b {
  font-size: .9rem;
  font-weight: 700;
  color: var(--kt-navy);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ktrip-line__txt a:hover { color: var(--kt-gold); }
.ktrip-line__txt small { font-size: .76rem; color: #5f7380; }
.ktrip-line__off {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: #F2F5F6;
  color: #5f7380;
  cursor: pointer;
}
.ktrip-line__off svg { width: 13px; height: 13px; }
.ktrip-line__off:hover { background: var(--kt-navy); color: #FFFFFF; }

.ktrip-panel__foot { padding: 14px 18px 18px; border-top: 1px solid var(--kt-line); background: #FAFCFD; }
.ktrip-note { margin: 0 0 12px; font-size: .76rem; line-height: 1.55; color: #5f7380; }
.ktrip-go {
  display: block;
  padding: 13px;
  border-radius: 999px;
  background: var(--kt-gold);
  color: #FFFFFF;
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
}
.ktrip-go:hover { filter: brightness(1.08); }
.ktrip-clear {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 6px;
  border: 0;
  background: none;
  color: #5f7380;
  font: inherit;
  font-size: .78rem;
  text-decoration: underline;
  cursor: pointer;
}
.ktrip-clear:hover { color: var(--kt-navy); }

@media (max-width: 680px) {
  .ktrip { right: 12px; left: 12px; bottom: 80px; width: auto; }
  .ktrip-pill__go { padding: 7px 11px; font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ktrip-pill { transition: none; }
}
