/* GENERATED FILE - DO NOT EDIT.
   Source: shared/trip-card.css - run `npm run sync:shared` after editing. */

/* One trip card for web and app (shared/trip-card.css). Sizes: hero · grid · compact. */
.tc-card {
  --tc-ink: #263b32;
  --tc-soft: #66706a;
  --tc-line: #e2ddd0;
  --tc-paper: #fffdf8;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--tc-line);
  border-radius: 14px;
  background: var(--tc-paper);
  color: var(--tc-ink);
  text-align: left;
  font: inherit;
}

button.tc-card {
  width: 100%;
  padding: 0;
  cursor: pointer;
}

/* One cover shape everywhere (web + app): landscape 16:9, the shape the crop sheet saves.
   The photo always fills it (object-fit: cover), so no dark bars show. */
.tc-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(140deg, var(--tc-forest), var(--tc-deep));
}

.tc-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.tc-cover-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  background: none;
  cursor: pointer;
}

.tc-slot {
  position: absolute;
  z-index: 2;
  display: flex;
  gap: 0.35rem;
  max-width: calc(100% - 1.5rem);
}

.tc-slot--tl { top: 0.75rem; left: 0.75rem; }
.tc-slot--tr { top: 0.75rem; right: 0.75rem; }
.tc-slot--bl { bottom: 0.75rem; left: 0.75rem; }
.tc-slot--br { bottom: 0.75rem; right: 0.75rem; }

/* Chips on the photo (all cards speak the same chip). */
.tc-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(20, 28, 24, 0.72);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.tc-chip.is-light {
  background: rgba(255, 253, 248, 0.92);
  color: var(--tc-ink);
}

.tc-chip.is-live {
  background: #2f7d57;
}

.tc-chip.is-soon {
  background: #b8892f;
}

.tc-pulse {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  position: relative;
}

/* Same look as the old box-shadow pulse (0.45rem ring = 3x the dot), but as a
   transform/opacity ring on ::before it runs on the compositor instead of repainting
   on the main thread every frame. The dot itself is ::after, above the ring. */
.tc-pulse::before,
.tc-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.tc-pulse::before {
  inset: -0.45rem; /* full ring size, scaled down to the dot at the start */
  background: rgba(143, 224, 179, 0.7);
  opacity: 0;
  animation: tc-pulse 2s ease-out infinite;
}

.tc-pulse::after {
  background: #8fe0b3;
}

@keyframes tc-pulse {
  0% { transform: scale(0.3333); opacity: 1; }
  70% { transform: scale(1); opacity: 0; }
  100% { transform: scale(0.3333); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tc-pulse::before { animation: none; }
}

.tc-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.95rem 1.1rem 1rem;
}

.tc-kicker {
  overflow: hidden;
  color: var(--tc-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tc-title {
  margin: 0;
  color: var(--tc-ink);
  font-family: "Playfair Display", var(--serif, Georgia), serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.2;
}

.tc-title a,
.tc-title-hit {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.tc-title em {
  color: #a17b35;
  font-style: italic;
}

.tc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.45rem;
  color: var(--tc-soft);
  font-size: 0.82rem;
}

.tc-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.8rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--tc-line);
}

.tc-foot-left,
.tc-foot-right {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.tc-foot-right {
  margin-left: auto;
}

/* Status tags + buttons inside cards. */
.tc-tag {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #efeee6;
  color: var(--tc-ink);
  font-size: 0.72rem;
  font-weight: 600;
}

.tc-tag.is-now { background: #eaf4ed; color: #1f5a3d; }
.tc-tag.is-soon { background: #f6f0de; color: #6d5325; }
.tc-tag.is-draft { background: #fbeee0; color: #8a5a1f; }
.tc-tag.is-past { background: #efeee6; color: #5d655f; }
.tc-tag.is-shared { background: #e4eef5; color: #2d5f82; }
.tc-tag.is-public { background: #fff; border: 1px solid var(--tc-line); }

.tc-link,
.tc-btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0 0.2rem;
  border: 0;
  background: none;
  color: var(--tc-ink);
  font: 700 0.82rem inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.tc-btn {
  padding: 0 0.8rem;
  border: 1px solid var(--tc-line);
  border-radius: 999px;
  background: var(--tc-paper);
  font-weight: 600;
}

.tc-moment {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.35rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid #cfe0d4;
  border-radius: 10px;
  background: #eef5f0;
  font-size: 0.86rem;
}

.tc-moment small {
  color: #2f7d57;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tc-desc {
  color: var(--tc-soft);
  font-size: 0.86rem;
}

/* ——— hero: a wide banner (Happening now) — same 16:9 cover as every card ——— */
.tc--hero .tc-cover {
  aspect-ratio: 16 / 9;
}

.tc--hero .tc-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

/* ——— compact: a row (thumbnail left) ——— */
.tc--compact {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
}

.tc--compact .tc-cover {
  height: 100%;
  min-height: 7.5rem;
  aspect-ratio: auto;
}

.tc--compact .tc-body {
  gap: 0.25rem;
  padding: 0.75rem 0.9rem 0.8rem;
}

/* Row cards keep one shape whatever the content: title on one line, tags + link on one row. */
.tc--compact .tc-title {
  overflow: hidden;
  font-size: 1.15rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tc--compact .tc-foot {
  flex-wrap: nowrap;
  padding-top: 0.5rem;
}

/* Tags wrap in full (never cut); the link stays on the right. */
.tc--compact .tc-foot-left {
  flex: 0 1 auto;
  gap: 0.3rem;
}

.tc--compact .tc-foot-right {
  flex: none;
}

.tc--compact .tc-tag {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 30rem) {
  .tc--compact {
    grid-template-columns: 6rem minmax(0, 1fr);
  }
}


/* Trip label + tags on any trip card (World, Explore, My trips) */
.tc-story {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin: 0.15rem 0 0;
}
.tc-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.45rem 0 0; }
.tc-tags span {
  padding: 0.22rem 0.55rem;
  border-radius: 0.3rem;
  background: #eef0e7;
  color: #617059;
  font-size: 0.68rem;
  font-weight: 500;
  white-space: nowrap;
}

/* A long place list on the photo ends with "…" instead of running off the card. */
.tc-slot {
  min-width: 0;
}
.tc-slot--bl .tc-chip,
.tc-slot--br .tc-chip {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Itinerary rating chip (World / Explore cards, web + app) */
.tc-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.05rem 0.45rem;
  border: 1px solid rgba(217, 165, 58, 0.4);
  border-radius: 999px;
  background: #fff8ea;
  color: #1f3d30;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}
.tc-rating-star { color: #d9a53a; }
.tc-rating small { font-size: 0.72rem; font-weight: 500; color: #6f7a70; }
.tc-meta .tc-rating { margin-left: 0.1rem; }
/* On the photo: a pill left of the like pill, same family (cream, soft shadow). */
.tc-slot--tr { align-items: stretch; }
.tc-rating.is-cover {
  gap: 0.25rem;
  min-height: 2.5rem;
  padding: 0 0.7rem;
  border: 0;
  background: rgba(255, 253, 243, 0.93);
  box-shadow: 0 2px 8px rgba(19, 37, 30, 0.18);
  color: #183e30;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
}
.tc-rating.is-cover small { font-size: 0.68rem; }
/* 👁 views (owner 2026-10-14): the rating pill's family, grey instead of gold */
.tc-views { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.05rem 0.45rem; border: 1px solid rgba(31, 61, 48, 0.18); border-radius: 999px; background: #f6f3ea; color: #3b4a40; font-size: 0.76rem; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.tc-views svg { flex: none; opacity: 0.8; }
.tc-views.is-cover { min-height: 2.5rem; padding: 0 0.7rem; border: 0; background: rgba(255, 253, 243, 0.93); box-shadow: 0 2px 8px rgba(19, 37, 30, 0.18); color: #183e30; font-size: 0.74rem; font-weight: 600; line-height: 1; pointer-events: none; }
@media (max-width: 22rem) {
  .tc-rating.is-cover small { display: none; }
}
