/* Mobile Collab Board + Trip Detail
 * Responsive variant of #live-collab-board for viewports <768px.
 * Visual design locked from airmango_mobile_collab_board_and_trip_detail.html
 * — pixel/copy/structure must not change.
 *
 * Class prefix: .m-lcb-* (mobile live collab board) — no collision with the
 * existing desktop .lcb-* classes.
 */

/* ─── Visibility toggling ────────────────────────────────────────────── */

/* Default: hide mobile DOM. Mobile breakpoint flips it on. */
#m-view-board, #m-view-detail, .m-lcb-only { display: none; }

@media (max-width: 767px) {
  /* Hide the desktop board + detail entirely on phone viewports */
  #view-board, #view-detail { display: none !important; }
  .m-lcb-only { display: revert; }

  /* Show the mobile board by default; show detail when body.show-detail */
  #m-view-board { display: block; }
  #m-view-detail { display: none; }
  body.show-detail #m-view-board { display: none; }
  body.show-detail #m-view-detail { display: block; }

  /* On mobile the boss's design is the full chrome: hide the homepage's
     top nav (logo + Creators/Operators/Investors + Sign In + Apply CTA)
     and the site footer so the mobile board's own topbar/dropbar are
     the only navigation. Desktop is unaffected. */
  body > nav.nav,
  body > footer.site-footer {
    display: none !important;
  }
}

/* ─── Page-level mobile container ───────────────────────────────────── */

.m-lcb-page {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #fff;
  color: #000;
  min-height: 100vh;
  padding-bottom: 96px; /* room for sticky bottom bar */
}

/* ─── Top bar ───────────────────────────────────────────────────────── */

.m-lcb-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 0.5px solid #f0f0f0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}
.m-lcb-topbar-logo {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  color: #000;
  letter-spacing: -0.3px;
}
.m-lcb-topbar-signin {
  font-size: 12px;
  color: #666;
  text-decoration: none;
}
.m-lcb-topbar-signin.m-lcb-authenticated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.m-lcb-topbar-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

/* ─── Eyebrow + headline ───────────────────────────────────────────── */

.m-lcb-hero {
  padding: 16px 16px 14px;
}
.m-lcb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #fef0f3;
  border-radius: 100px;
  margin-bottom: 10px;
}
.m-lcb-eyebrow-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #E8475F;
}
.m-lcb-eyebrow-text {
  font-size: 10px;
  color: #E8475F;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.m-lcb-title {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 8px;
  line-height: 1.2;
  color: #000;
  letter-spacing: -0.5px;
}
.m-lcb-lead {
  font-size: 12px;
  line-height: 1.5;
  color: #666;
  margin: 0 0 10px;
}
.m-lcb-wishlist {
  font-size: 12px;
  color: #E8475F;
  font-weight: 500;
  margin: 0;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
}

/* ─── Filter chips ─────────────────────────────────────────────────── */

.m-lcb-filters {
  display: flex;
  gap: 6px;
  padding: 0 16px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.m-lcb-filters::-webkit-scrollbar { display: none; }
.m-lcb-filter-chip {
  padding: 6px 12px;
  background: #fff;
  color: #555;
  border: 0.5px solid #ddd;
  border-radius: 100px;
  font-size: 12px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  cursor: pointer;
  font-weight: 400;
}
.m-lcb-filter-chip.is-active {
  background: #000;
  color: #fff;
  font-weight: 500;
  border-color: #000;
}
.m-lcb-filter-count {
  font-size: 10px;
}
.m-lcb-filter-chip:not(.is-active) .m-lcb-filter-count {
  color: #E8475F;
  font-weight: 500;
}
.m-lcb-filter-chip.is-active .m-lcb-filter-count {
  background: rgba(255,255,255,0.25);
  padding: 1px 6px;
  border-radius: 100px;
}

/* ─── Trip rows ────────────────────────────────────────────────────── */

.m-lcb-rows {
  padding: 0 16px;
}
.m-lcb-row {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 0.5px solid #f0f0f0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.m-lcb-row.is-claimed {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}
.m-lcb-row:last-child {
  border-bottom: 0;
}
.m-lcb-row-thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, #1a2940, #4a3a52);
}
.m-lcb-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.m-lcb-row-thumb-aurora {
  position: absolute;
  top: 30%;
  left: -10%;
  width: 130%;
  height: 25%;
  background: linear-gradient(90deg, transparent, #5dcaa5, transparent);
  opacity: 0.5;
  transform: rotate(-8deg);
  filter: blur(4px);
}
.m-lcb-row-thumb-mountain {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: #0a0a0a;
  clip-path: polygon(0 100%, 0 60%, 30% 30%, 60% 50%, 100% 35%, 100% 100%);
}
.m-lcb-row-body {
  flex: 1;
  min-width: 0;
}
.m-lcb-row-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}
.m-lcb-row-newpill {
  padding: 1px 6px;
  background: #fef0f3;
  color: #E8475F;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.m-lcb-row-meta-text {
  font-size: 10px;
  color: #888;
}
.m-lcb-row-title {
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 4px;
  color: #000;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.m-lcb-row-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #666;
}
.m-lcb-row-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.m-lcb-row-status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.m-lcb-row-status-dot.is-open    { background: #1d9e75; }
.m-lcb-row-status-dot.is-1spot   { background: #BA7517; }
.m-lcb-row-status-dot.is-claimed { background: #999; }
.m-lcb-row-status-sep {
  color: #ddd;
}
.m-lcb-row-chev {
  flex-shrink: 0;
  align-self: center;
  color: #999;
}

/* ─── Empty + loading states ──────────────────────────────────────── */

.m-lcb-empty,
.m-lcb-loading,
.m-lcb-error {
  padding: 40px 24px;
  text-align: center;
  color: #888;
  font-size: 13px;
}
.m-lcb-error a {
  color: #E8475F;
  font-weight: 500;
}
.m-lcb-skeleton {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 0.5px solid #f0f0f0;
}
.m-lcb-skeleton-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
  background-size: 200% 100%;
  animation: m-lcb-shimmer 1.4s infinite;
}
.m-lcb-skeleton-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0;
}
.m-lcb-skeleton-line {
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
  background-size: 200% 100%;
  animation: m-lcb-shimmer 1.4s infinite;
}
.m-lcb-skeleton-line:nth-child(1) { width: 40%; }
.m-lcb-skeleton-line:nth-child(2) { width: 80%; }
.m-lcb-skeleton-line:nth-child(3) { width: 60%; }
@keyframes m-lcb-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Bottom drop counter ─────────────────────────────────────────── */

.m-lcb-dropbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 0.5px solid #eee;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 12px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
}
.m-lcb-dropbar-meta-line1 {
  font-size: 11px;
  color: #888;
  margin: 0;
}
.m-lcb-dropbar-meta-line2 {
  font-size: 12px;
  color: #000;
  margin: 0;
  font-weight: 500;
}
.m-lcb-apply-btn {
  padding: 10px 16px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

/* ─── Trip detail view ────────────────────────────────────────────── */

.m-lcb-detail {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #fff;
  color: #000;
  min-height: 100vh;
  padding-bottom: 96px;
}

.m-lcb-detail-hero {
  position: relative;
  width: 100%;
  height: 240px;
  background: linear-gradient(180deg, #1a2940 0%, #4a3a52 50%, #2d1f33 100%);
  overflow: hidden;
}
.m-lcb-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.m-lcb-detail-hero-aurora1 {
  position: absolute;
  top: 25%;
  left: -20%;
  width: 140%;
  height: 25%;
  background: linear-gradient(90deg, transparent, #5dcaa5 30%, #97c459 50%, transparent);
  opacity: 0.5;
  transform: rotate(-8deg);
  filter: blur(10px);
  pointer-events: none;
}
.m-lcb-detail-hero-aurora2 {
  position: absolute;
  top: 38%;
  left: -10%;
  width: 120%;
  height: 18%;
  background: linear-gradient(90deg, transparent, #afa9ec 40%, transparent);
  opacity: 0.4;
  transform: rotate(-5deg);
  filter: blur(12px);
  pointer-events: none;
}
.m-lcb-detail-hero-mountain {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: #0a0a0a;
  clip-path: polygon(0 100%, 0 60%, 15% 30%, 30% 50%, 50% 20%, 70% 45%, 85% 35%, 100% 55%, 100% 100%);
  pointer-events: none;
}
.m-lcb-detail-hero-actions {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}
.m-lcb-detail-hero-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.m-lcb-detail-hero-counter {
  position: absolute;
  bottom: 10px;
  right: 12px;
  padding: 3px 9px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  border-radius: 100px;
  color: #fff;
  font-size: 10px;
  z-index: 2;
}

.m-lcb-detail-content {
  padding: 14px 16px 16px;
}

.m-lcb-detail-statusrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.m-lcb-detail-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: #e8f5ee;
  border-radius: 100px;
}
.m-lcb-detail-status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1d9e75;
}
.m-lcb-detail-status-text {
  font-size: 10px;
  color: #0f6e56;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.m-lcb-detail-statusmeta {
  font-size: 11px;
  color: #888;
}
.m-lcb-detail-title {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 12px;
  line-height: 1.15;
  color: #000;
  letter-spacing: -0.5px;
}

.m-lcb-detail-operator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 0.5px solid #eee;
  border-bottom: 0.5px solid #eee;
  margin-bottom: 14px;
}
.m-lcb-detail-operator-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E8475F, #f0997b);
  flex-shrink: 0;
}
.m-lcb-detail-operator-info { flex: 1; min-width: 0; }
.m-lcb-detail-operator-eyebrow {
  font-size: 11px;
  color: #888;
  margin: 0;
  letter-spacing: 0.3px;
}
.m-lcb-detail-operator-name {
  font-size: 13px;
  font-weight: 500;
  margin: 0;
  color: #000;
}
.m-lcb-detail-operator-view {
  font-size: 11px;
  color: #E8475F;
}

.m-lcb-detail-deal {
  background: #faf7f2;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}
.m-lcb-detail-deal-eyebrow {
  font-size: 11px;
  color: #888;
  margin: 0 0 8px;
  letter-spacing: 0.3px;
}
.m-lcb-detail-deal-row {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}
.m-lcb-detail-deal-row:last-child { margin-bottom: 0; }
.m-lcb-detail-deal-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.m-lcb-detail-deal-line1 {
  font-size: 12px;
  color: #000;
  margin: 0;
  font-weight: 500;
}
.m-lcb-detail-deal-line2 {
  font-size: 12px;
  color: #555;
  margin: 0;
  line-height: 1.4;
}

.m-lcb-detail-h2 {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 8px;
  color: #000;
}
.m-lcb-detail-window {
  font-size: 13px;
  color: #444;
  margin: 0 0 16px;
  line-height: 1.5;
}
.m-lcb-detail-window strong { color: #000; font-weight: 500; }

.m-lcb-detail-itinerary {
  position: relative;
  padding-left: 18px;
  margin-bottom: 16px;
}
.m-lcb-detail-itinerary::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: #ddd;
}
.m-lcb-detail-day {
  position: relative;
  margin-bottom: 10px;
}
.m-lcb-detail-day:last-child { margin-bottom: 0; }
.m-lcb-detail-day-dot {
  position: absolute;
  left: -18px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #ccc;
}
.m-lcb-detail-day:first-child .m-lcb-detail-day-dot {
  background: #E8475F;
  border-color: #E8475F;
}
.m-lcb-detail-day-eyebrow {
  font-size: 11px;
  color: #888;
  margin: 0;
  letter-spacing: 0.3px;
}
.m-lcb-detail-day-text {
  font-size: 12px;
  color: #000;
  margin: 0;
}

.m-lcb-detail-expectations {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.m-lcb-detail-expect-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #444;
}
.m-lcb-detail-expect-bullet {
  color: #E8475F;
  flex-shrink: 0;
}

/* ─── Sticky claim bar ────────────────────────────────────────────── */

.m-lcb-claimbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 0.5px solid #eee;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 12px));
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 20;
}
.m-lcb-claimbar-meta { flex-shrink: 0; }
.m-lcb-claimbar-meta-line1 {
  font-size: 10px;
  color: #888;
  margin: 0;
  letter-spacing: 0.3px;
}
.m-lcb-claimbar-meta-line2 {
  font-size: 13px;
  font-weight: 500;
  margin: 0;
  color: #000;
}
.m-lcb-claimbar-btn {
  flex: 1;
  padding: 13px;
  background: #E8475F;
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.m-lcb-claimbar-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ─── Toast (claim feedback) ──────────────────────────────────────── */

.m-lcb-toast {
  position: fixed;
  bottom: 100px;
  left: 16px;
  right: 16px;
  background: #000;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  z-index: 30;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.m-lcb-toast.is-show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.m-lcb-toast a {
  color: #fff;
  text-decoration: underline;
  font-weight: 500;
  margin-left: 8px;
}
