:root {
  --color-text: #02211A;
  --color-text-subdued: rgba(2, 33, 26, 0.7);
  --color-text-subtle: rgba(2, 33, 26, 0.5);
  --color-text-on-interactive: #FFFFFF;
  --color-interactive: #0A7E62;
  --color-interactive-unselected: #E6F2EF;
  --color-bg: #FBFBFB;
  --color-card: #FFFFFF;
  --color-border: #E6F2EF;
  --color-border-subtle: rgba(230, 242, 239, 0.1);
  --color-loved: #820038;
  --color-loved-bg: rgba(130, 0, 56, 0.1);
  --color-liked: #0A7E62;
  --color-liked-bg: rgba(10, 126, 98, 0.1);
  --radius-lg: 24px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 20px;
  --shadow: 0 2px 8px rgba(2, 33, 26, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Hero image */
.hero-image {
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: var(--color-interactive-unselected);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Card overlapping the hero */
.share-card {
  background: var(--color-card);
  flex: 1;
}

.card-body {
  background: var(--color-card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin-top: -24px;
  position: relative;
  z-index: 1;
}

.card-content {
  padding: 24px 20px;
}

/* Header section — centered like the app */
.header-section {
  text-align: center;
  padding-bottom: 16px;
}

.card-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: 12px;
}

/* Meta row with dividers — matches the app's rating | type | status layout */
.meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.meta-item {
  padding: 0 16px;
  text-align: center;
}

.meta-divider {
  width: 1px;
  height: 32px;
  background: var(--color-border);
  flex-shrink: 0;
}

.meta-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.meta-sublabel {
  font-size: 13px;
  color: var(--color-text-subdued);
  margin-top: 2px;
}

/* Rating badge — styled like the app's StatusBadge */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
}

.rating-badge.loved {
  background: var(--color-loved-bg);
  color: var(--color-loved);
}

.rating-badge.liked {
  background: var(--color-liked-bg);
  color: var(--color-liked);
}

/* Description section */
.section {
  padding: 0 20px 20px;
}

.description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
}

/* Duration / details row */
.details-row {
  display: flex;
  align-items: flex-end;
  padding: 0 20px 20px;
  gap: 16px;
}

.detail-item {
  flex: 1;
}

.detail-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
}

.detail-label {
  font-size: 13px;
  color: var(--color-text-subdued);
  margin-top: 2px;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--color-border);
  margin: 0 20px 20px;
}

/* CTA section */
.cta-section {
  padding: 0 20px 8px;
}

.btn {
  display: block;
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-sm);
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: opacity 0.15s;
}

.btn:active {
  opacity: 0.85;
}

.btn-primary {
  background: var(--color-interactive);
  color: var(--color-text-on-interactive);
}

.btn-secondary {
  background: var(--color-interactive-unselected);
  color: var(--color-interactive);
}

.cta-section .btn + .btn {
  margin-top: 8px;
}

.store-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 12px;
  padding-bottom: 8px;
}

.store-link {
  font-size: 14px;
  color: var(--color-interactive);
  text-decoration: none;
  font-weight: 600;
}

/* Brand header */
.brand-bar {
  text-align: center;
  padding: 16px 20px 4px;
}

.brand-bar img {
  height: 28px;
}

.brand-text {
  font-size: 13px;
  color: var(--color-text-subtle);
  font-weight: 500;
}

/* Trip-specific styles */
.trip-header {
  padding-bottom: 8px;
}

.trip-subtitle {
  font-size: 15px;
  color: var(--color-text-subdued);
  margin-top: 4px;
}

.activity-list {
  padding: 0 20px 8px;
}

.activity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.activity-row:last-child {
  border-bottom: none;
}

.stop-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-interactive);
  color: var(--color-text-on-interactive);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.activity-thumb-placeholder {
  background: var(--color-interactive-unselected);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.activity-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.activity-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-meta {
  font-size: 13px;
  color: var(--color-text-subdued);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* Trip footer */
.trip-footer {
  padding: 20px;
  border-top: 1px solid var(--color-border);
}

.trip-footer .btn + .btn {
  margin-top: 8px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 16px;
  font-size: 12px;
  color: var(--color-text-subtle);
}
