/* Amazing Exploration — binary loop, drawn in the house palette */

.plan-pending { color: var(--muted); min-height: 88px; }

.plan-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) auto;
  gap: 22px;
  align-items: center;
  padding: 26px;
  border-radius: 28px;
  color: white;
  background:
    linear-gradient(115deg, rgba(16, 42, 67, 0.94) 8%, rgba(16, 42, 67, 0.62) 68%, rgba(7, 91, 134, 0.45)),
    url("../images/destinations/bangkok.jpg") center/cover;
  box-shadow: var(--shadow);
}
.plan-strip h2 { color: white; font-size: clamp(28px, 3vw, 42px); line-height: 1.1; }
.plan-strip p { color: rgba(255, 255, 255, 0.84); max-width: 58ch; margin-top: 8px; }
.plan-strip .eyebrow { color: #f3d78a; }
.plan-strip .btn-ghost { border-color: rgba(255, 255, 255, 0.45); }

.ratio-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 16px 22px;
  text-align: center;
  min-width: 168px;
  backdrop-filter: blur(8px);
}
.ratio-card span,
.ratio-card em { color: rgba(255, 255, 255, 0.75); font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.ratio-card strong {
  font-family: var(--display);
  font-size: 52px;
  color: #f6e2ad;
  display: block;
  line-height: 1;
  margin: 6px 0;
  letter-spacing: 0.03em;
}

.plan-session {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: #fff4df;
  color: var(--warn);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 14px;
}

.plan-cols { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 16px; align-items: start; }
.plan-note { font-size: 13px; color: var(--muted); }

.trip-reward {
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
  border-radius: 26px;
  background: white;
  border: 1px solid rgba(16, 42, 67, 0.05);
  box-shadow: var(--shadow-sm);
}
.trip-reward img { width: 100%; height: 100%; min-height: 190px; object-fit: cover; }
.trip-reward div { padding: 22px; }
.trip-reward h2 { font-size: clamp(26px, 3vw, 36px); color: var(--navy); }

.pair-flow {
  display: grid;
  grid-template-columns: 1fr 32px 1fr 32px 1fr;
  gap: 8px;
  align-items: stretch;
}
.pair-step {
  background: white;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(16, 42, 67, 0.06);
}
.pair-step strong {
  font-family: var(--display);
  font-size: 34px;
  color: var(--navy);
  display: block;
  line-height: 1;
  margin: 6px 0;
}
.pair-step.is-now {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(214, 166, 56, 0.22);
  background: #fffaf0;
}
.pair-arrow { display: grid; place-items: center; color: var(--gold-deep); font-size: 22px; }

.board-stage {
  overflow-x: auto;
  padding: 18px 8px 22px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(214, 166, 56, 0.16), transparent 46%),
    linear-gradient(180deg, #fffaf0, #fff);
  border: 1px solid rgba(16, 42, 67, 0.05);
}
.gtree, .gtree ul {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 28px 0 0;
  list-style: none;
  position: relative;
}
.gtree { padding-top: 8px; min-width: 760px; }
.gtree li {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 28px 8px 0;
  list-style: none;
}
.gtree > li { padding-top: 0; }
.gtree li::before,
.gtree li::after {
  content: "";
  position: absolute;
  top: 0;
  width: 50%;
  height: 28px;
  border-top: 2px solid rgba(167, 123, 32, 0.45);
}
.gtree li::before { right: 50%; }
.gtree li::after { left: 50%; border-left: 2px solid rgba(167, 123, 32, 0.45); }
.gtree li:first-child::before { border: 0; }
.gtree li:last-child::after { border: 0; }
.gtree li:last-child::before { border-right: 2px solid rgba(167, 123, 32, 0.45); }
.gtree li:first-child::after { border-top: 2px solid rgba(167, 123, 32, 0.45); }
.gtree li:only-child::before,
.gtree li:only-child::after,
.gtree > li::before,
.gtree > li::after { display: none; }

.seat {
  width: 188px;
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
  background: white;
  border: 1px solid rgba(16, 42, 67, 0.08);
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
  transition: transform 0.2s var(--ease);
}
.seat:hover { transform: translateY(-2px); }
.seat strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; }
.seat small { display: block; color: var(--muted); font-size: 11px; line-height: 1.35; }
.seat.is-you { background: var(--navy); color: white; border-color: transparent; }
.seat.is-you small { color: rgba(255, 255, 255, 0.72); }
.seat.is-you .avatar { background: #f6e2ad; color: var(--navy); }
.seat.is-open {
  background: transparent;
  border-style: dashed;
  box-shadow: none;
  color: var(--navy);
}
.seat.is-next { border-color: var(--gold-deep); background: #fff; box-shadow: 0 0 0 3px rgba(214, 166, 56, 0.28); }
.seat .avatar { width: 36px; height: 36px; font-size: 12px; }

.legend-row { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); }
.legend-row i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
  background: var(--navy);
}
.legend-row i.open { background: transparent; border: 1.5px dashed var(--gold-deep); }
.legend-row i.next { background: var(--gold); }

.rule { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.rule b {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #f6e2ad;
  font-family: var(--display);
  font-size: 18px;
}
.rule:last-child { border-bottom: 0; }

.issue-form { display: flex; gap: 8px; align-items: center; }
.issue-form input { max-width: 160px; padding: 8px 10px; }

.person-meta { display: grid; grid-template-columns: 110px 1fr; gap: 4px 10px; font-size: 14px; }
.person-meta span { color: var(--muted); }

.desk-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.desk-action {
  display: block;
  padding: 16px 18px;
  border-radius: 20px;
  background: white;
  border: 1px solid rgba(16, 42, 67, 0.06);
  box-shadow: var(--shadow-sm);
}
.desk-action span, .desk-action em { display: block; color: var(--muted); font-style: normal; font-size: 12px; font-weight: 600; }
.desk-action strong { display: block; margin: 4px 0; color: var(--navy); font-family: var(--display); font-size: 28px; line-height: 1; }
.desk-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.desk-split strong { display: block; color: var(--navy); font-size: 22px; }
.loop-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.loop-row:last-child { border-bottom: 0; padding-bottom: 0; }
.desk-alert {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
}
.desk-alert:last-child { border-bottom: 0; padding-bottom: 0; }
.desk-alert strong { color: var(--navy); }
.wallet-id { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; word-break: break-all; }
.pack-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pack-pick .is-on { background: var(--navy); color: #f6e2ad; border-color: var(--navy); }

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) auto;
  gap: 22px;
  align-items: center;
  padding: 28px;
  border-radius: 28px;
  color: white;
  background:
    linear-gradient(115deg, rgba(16, 42, 67, 0.94) 8%, rgba(16, 42, 67, 0.72) 58%, rgba(7, 91, 134, 0.35)),
    url("../images/destinations/bangkok.jpg") center/cover;
  box-shadow: var(--shadow);
}
.home-hero h2 { color: white; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; }
.home-hero p { color: rgba(255, 255, 255, 0.86); max-width: 62ch; }
.home-hero .eyebrow { color: #f3d78a; }
.home-hero .plan-note { color: rgba(255, 255, 255, 0.72); }
.home-hero .btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: white; }
.home-hero .progress-track { background: rgba(255, 255, 255, 0.18); }
.home-side { display: grid; gap: 12px; }
.home-payout {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 16px 22px;
  text-align: center;
  backdrop-filter: blur(8px);
}
.home-payout span, .home-payout em { color: rgba(255, 255, 255, 0.75); font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.home-payout strong { display: block; margin: 4px 0; font-family: var(--display); font-size: 36px; color: #f6e2ad; line-height: 1; }

.seat-rail { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; }
.rail-seat {
  border: 1px solid rgba(167, 123, 32, 0.2);
  border-radius: 16px;
  padding: 12px 8px;
  text-align: center;
  background: #fffaf0;
}
.rail-seat b { display: block; font-family: var(--display); font-size: 18px; }
.rail-seat span, .rail-seat small { display: block; color: var(--muted); font-size: 11px; }
.rail-seat.is-filled { background: var(--navy); color: white; border-color: transparent; }
.rail-seat.is-filled span, .rail-seat.is-filled small { color: rgba(255, 255, 255, 0.72); }
.rail-seat.is-next { border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(214, 166, 56, 0.28); background: white; }
.side-meters { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.side-meters span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }

.home-trip {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: 22px;
  background: white;
  border: 1px solid rgba(167, 123, 32, 0.14);
  box-shadow: 0 14px 32px rgba(16, 42, 67, 0.06);
}
.home-trip img { width: 100%; height: 100%; object-fit: cover; min-height: 180px; }
.home-trip div { padding: 18px; }
.home-trip h3 { font-size: 28px; }
.direct-list { display: grid; gap: 8px; }
.home-direct {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
}
.home-direct:hover { background: #fff8ea; }
.home-direct small, .home-direct em { display: block; color: var(--muted); font-style: normal; font-size: 12px; }
.home-direct em { font-weight: 600; color: var(--gold-deep); }
.activity { align-items: center; }

@media (max-width: 1024px) {
  .plan-cols, .trip-reward, .plan-strip, .home-hero, .desk-actions { grid-template-columns: 1fr; }
  .desk-actions { grid-template-columns: 1fr 1fr; }
  .ratio-card { justify-self: start; }
}

@media (max-width: 767px) {
  .desk-actions, .desk-split { grid-template-columns: 1fr; }
  .pair-flow { grid-template-columns: 1fr; }
  .pair-arrow { transform: rotate(90deg); height: 18px; }
  .plan-session { flex-direction: column; align-items: flex-start; }
  .seat { width: 156px; }
  .seat-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-trip { grid-template-columns: 1fr; }
  .home-trip img { min-height: 140px; max-height: 180px; }
  .gtree { min-width: 680px; }
}
