/* ════════════════════════════════════════════════════════════════════
   ops.css — Pre-departure Operations Hub
   Reuses chinatrip design tokens: --ink/--paper/--jade/--terracotta/--gold
   ════════════════════════════════════════════════════════════════════ */

.ops-page {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-dark) 100%);
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--ff-ui);
}

.ops-page .ops-back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .65;
  text-decoration: none;
  padding: .5rem 0;
}
.ops-page .ops-back:hover { opacity: 1; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.ops-hero {
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  border-bottom: 1px solid rgba(26, 24, 20, .08);
}
.ops-hero__kicker {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: .5rem;
}
.ops-hero__title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 .5rem;
  letter-spacing: -.01em;
  font-weight: 500;
}
.ops-hero__sub {
  font-size: 14px;
  color: var(--ink);
  opacity: .7;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}
.ops-hero__countdown {
  display: inline-block;
  margin-top: 1.25rem;
  padding: .65rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 13px;
  letter-spacing: .04em;
}

/* ── Section shells ───────────────────────────────────────────────── */
.ops-section {
  max-width: 880px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}
.ops-section__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(26, 24, 20, .08);
}
.ops-section__title {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0;
  letter-spacing: -.005em;
}
.ops-section__status {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .55;
  font-family: ui-monospace, monospace;
}
.ops-section__status.live { color: var(--jade); opacity: 1; }
.ops-section__status.stub { color: var(--terracotta); opacity: 1; }

/* ── Booking checklist ────────────────────────────────────────────── */
.booking-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.booking-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid rgba(26, 24, 20, .08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 140ms cubic-bezier(.23,1,.32,1), box-shadow 140ms;
}
.booking-card:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

.booking-card__check {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(26, 24, 20, .25);
  background: transparent;
  cursor: pointer;
  transition: all 140ms;
}
.booking-card.done .booking-card__check {
  background: var(--jade);
  border-color: var(--jade);
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px;
}
.booking-card.done .booking-card__title { text-decoration: line-through; opacity: .5; }

.booking-card__body { min-width: 0; }
.booking-card__title { font-weight: 600; font-size: 14.5px; margin: 0; }
.booking-card__meta {
  display: flex; flex-wrap: wrap; gap: .65rem;
  margin-top: .35rem;
  font-size: 11.5px;
  color: var(--ink);
  opacity: .7;
}
.booking-card__meta b { color: var(--terracotta); font-weight: 600; opacity: 1; }
.booking-card__tip {
  margin-top: .35rem;
  font-size: 11.5px;
  color: var(--jade);
  font-style: italic;
}
.booking-card__deadline {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  white-space: nowrap;
  text-align: right;
  color: var(--ink);
  opacity: .8;
}
.booking-card__deadline.urgent { color: var(--terracotta); font-weight: 600; opacity: 1; }
.booking-card__deadline small { display: block; font-size: 9.5px; opacity: .7; letter-spacing: .08em; text-transform: uppercase; }

.booking-card__cta {
  display: inline-block;
  margin-top: .5rem;
  padding: .35rem .8rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 11.5px;
  letter-spacing: .04em;
  border-radius: 4px;
  transition: background 140ms;
}
.booking-card__cta:hover { background: var(--terracotta); }

/* ── Survival kit ─────────────────────────────────────────────────── */
.survival-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.survival-card {
  background: var(--white);
  border: 1px solid rgba(26, 24, 20, .08);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.survival-card__title {
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin: 0 0 .75rem;
}
.survival-card__body {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
}
.survival-card__body p { margin: 0 0 .5rem; }
.survival-card__body ul { padding-left: 1.1rem; margin: 0; }
.survival-card__body li { margin-bottom: .25rem; }

.shimmer {
  display: block;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(26,24,20,.06) 0%, rgba(26,24,20,.12) 50%, rgba(26,24,20,.06) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  margin-bottom: .5rem;
}
.shimmer.short { width: 65%; }
.shimmer.long  { width: 92%; }
@keyframes shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ── PWA install prompt ───────────────────────────────────────────── */
.pwa-prompt {
  position: fixed;
  bottom: 1rem; left: 1rem; right: 1rem;
  max-width: 480px;
  margin: 0 auto;
  padding: .85rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: .85rem;
  box-shadow: 0 8px 32px rgba(26, 24, 20, .35);
  font-size: 13px;
  z-index: 100;
  transform: translateY(120%);
  transition: transform 280ms cubic-bezier(.23,1,.32,1);
}
.pwa-prompt.show { transform: translateY(0); }
.pwa-prompt__icon { font-size: 22px; }
.pwa-prompt__msg { flex: 1; line-height: 1.35; }
.pwa-prompt__msg b { color: var(--gold-light); display: block; margin-bottom: .15rem; }
.pwa-prompt__cta {
  background: var(--terracotta);
  color: var(--white);
  border: none;
  padding: .5rem .9rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}
.pwa-prompt__close {
  background: transparent;
  color: var(--paper);
  opacity: .5;
  border: none;
  cursor: pointer;
  font-size: 18px;
  padding: 0 .25rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 600px) {
  .booking-card { grid-template-columns: auto 1fr; }
  .booking-card__deadline { grid-column: 1 / -1; text-align: left; padding-left: 32px; }
}
