/* Trip detail view — shared styles (free-trips B9).
   Used inside any container with id="view-detail" so the same
   renderer in js/live-board.js produces the same layout on the
   homepage (index.html inline copy) and the creator panel
   (creators/panel.html loads this file). Tokens are scoped to the
   container so they do not leak into the host page. */

#view-detail {
  --pink: #E8366D;
  --pink-soft: #fce7ee;
  --pink-softer: #fef7fa;
  --pink-light: #f7a8bf;
  --black: #111418;
  --ink: #1a1d22;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --line: #e5e7eb;
  --line-soft: #f3f4f6;
  --amber: #d97706;
  --amber-soft: #fef3c7;
  --bg-soft: #f9fafb;
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#view-detail .back-bar{
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 56px 0;
}
#view-detail .back-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
#view-detail .back-link:hover{ color: var(--pink); }

#view-detail .hero{
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 56px 24px;
}
#view-detail .hero-meta{
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
#view-detail .hero-tag{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: #f3f4f6;
  color: #4b5563;
}
#view-detail .hero-tag.pink{
  background: var(--pink-soft);
  color: var(--pink);
}
#view-detail .hero-tag .dot{
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}
#view-detail h1{
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 16px;
  max-width: 900px;
}
#view-detail .hero-lead{
  font-size: 18px;
  line-height: 1.55;
  color: #3a3f47;
  max-width: 720px;
}

#view-detail .inspiration-banner{
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 56px 16px;
}
#view-detail .inspiration-banner-inner{
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  background: var(--pink-softer);
  border: 1px solid var(--pink-soft);
  border-radius: 10px;
}
#view-detail .inspiration-banner-icon{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
#view-detail .inspiration-banner-body{
  flex: 1;
  min-width: 0;
}
#view-detail .inspiration-banner-title{
  font-size: 13.5px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
#view-detail .inspiration-banner-text{
  font-size: 13px;
  color: var(--ink);
  line-height: 1.55;
}

#view-detail .gallery{
  max-width: 1280px;
  margin: 8px auto 0;
  padding: 0 56px;
}
#view-detail .gallery-grid{
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  height: 440px;
}
#view-detail .gallery-item{
  border-radius: 14px;
  overflow: hidden;
  background: var(--line);
  position: relative;
}
#view-detail .gallery-item:first-child{
  grid-row: 1 / 3;
}
#view-detail .gallery-item svg{
  width: 100%;
  height: 100%;
  display: block;
}
#view-detail .gallery-badge{
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}
#view-detail .gallery-badge svg{ width: 12px; height: 12px; }

#view-detail .main{
  max-width: 1280px;
  margin: 56px auto 0;
  padding: 0 56px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: start;
}

#view-detail .overview-row{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 24px 0;
  margin-bottom: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
#view-detail .overview-item .l{
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
#view-detail .overview-item .v{
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.015em;
}

#view-detail h2{
  font-size: 28px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  margin-top: 48px;
}
#view-detail h2:first-of-type{ margin-top: 0; }
#view-detail h2 .pink{ color: var(--pink); }

#view-detail .lead-p{
  font-size: 16px;
  line-height: 1.65;
  color: #3a3f47;
  margin-bottom: 16px;
}
#view-detail .lead-p:last-child{ margin-bottom: 0; }

#view-detail .section-lead{
  font-size: 13px;
  color: var(--muted);
  margin: -6px 0 20px;
  line-height: 1.55;
  max-width: 640px;
}
#view-detail .section-lead.italic{ font-style: italic; }

#view-detail .days{
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
#view-detail .day{
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
#view-detail .day:last-child{ border-bottom: 1px solid var(--line); }
#view-detail .day-image{
  width: 200px;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: var(--line);
}
#view-detail .day-image svg{
  width: 100%;
  height: 100%;
  display: block;
}
#view-detail .day-image-badge{
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255,255,255,0.9);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}
#view-detail .day-body .day-num{
  font-size: 12px;
  color: var(--pink);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
#view-detail .day-body h3{
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
#view-detail .day-body p{
  font-size: 15px;
  color: #3a3f47;
  line-height: 1.6;
  margin-bottom: 14px;
}
#view-detail .day-stops{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
#view-detail .day-stop{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  color: #4b5563;
  font-weight: 500;
}
#view-detail .day-stop svg{
  width: 12px;
  height: 12px;
  color: var(--muted);
}

#view-detail .included-list{
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}
#view-detail .included-item{
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
#view-detail .included-icon{
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--pink-softer);
  color: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
}
#view-detail .included-icon svg{ width: 18px; height: 18px; }
#view-detail .included-body .t1{
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 2px;
}
#view-detail .included-body .t2{
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

#view-detail .not-included{
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--bg-soft);
  border-radius: 12px;
}
#view-detail .not-included h4{
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
}
#view-detail .not-included ul{
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  margin: 0;
}
#view-detail .not-included li{
  font-size: 13px;
  color: #4b5563;
  display: flex;
  gap: 10px;
  align-items: center;
}
#view-detail .not-included li::before{
  content: "×";
  color: var(--muted-2);
  font-weight: 700;
}

#view-detail .content-guidance{ margin-top: 10px; }
#view-detail .guidance-row{
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
}
#view-detail .guidance-row.guidance-row--last{
  border-bottom: 1px solid var(--line-soft);
}
#view-detail .guidance-row .tier{
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
#view-detail .guidance-row .tier--pink{ color: var(--pink); }
#view-detail .guidance-row .tier--amber{ color: var(--amber); }
#view-detail .guidance-row .tier--muted{ color: var(--muted); }
#view-detail .guidance-row .sub{
  font-size: 11px;
  color: var(--muted);
}
#view-detail .guidance-row .body{
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.65;
}
#view-detail .guidance-row .body strong{
  font-weight: 700;
  color: var(--black);
}
#view-detail .guidance-footer{
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--bg-soft);
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}
#view-detail .guidance-footer strong{
  color: var(--black);
  font-weight: 600;
}

#view-detail .ft-todo{
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
#view-detail .ft-todo h2{
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 20px;
}
#view-detail .ft-todo p{
  margin: 0;
  color: var(--muted);
}

#view-detail .operator-strip{
  margin-top: 14px;
  padding: 20px 24px;
  background: var(--bg-soft);
  border-radius: 12px;
  display: flex;
  gap: 16px;
  align-items: center;
}
#view-detail .op-avatar{
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #86a8b8 0%, #3d5278 100%);
  flex-shrink: 0;
}
#view-detail .op-body{ flex: 1; }
#view-detail .op-body .t1{
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
#view-detail .op-body .t2{
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
}
#view-detail .op-body .t3{
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

#view-detail .sidebar{
  position: sticky;
  top: 90px;
}
#view-detail .claim-card{
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px -8px rgba(0,0,0,0.08);
}
#view-detail .claim-eyebrow{
  font-size: 11px;
  color: var(--pink);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
#view-detail .claim-price{
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
#view-detail .claim-price .amount{
  font-size: 44px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.03em;
  line-height: 1;
}
#view-detail .claim-price .unit{
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
}
#view-detail .claim-strikethrough{
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}
#view-detail .claim-meta{
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
#view-detail .claim-meta-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
#view-detail .claim-meta-row .l{
  color: var(--muted);
  font-weight: 500;
}
#view-detail .claim-meta-row .v{
  color: var(--black);
  font-weight: 700;
}
#view-detail .btn-claim{
  display: block;
  width: 100%;
  background: var(--pink);
  color: white;
  border: 1px solid var(--pink);
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
  margin-bottom: 10px;
}
#view-detail .btn-claim:hover{
  background: #d8305f;
  border-color: #d8305f;
}
#view-detail .btn-secondary{
  display: block;
  width: 100%;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
#view-detail .btn-secondary:hover{ border-color: var(--ink); }
#view-detail .claim-footnote{
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}

@media (max-width: 960px){
  #view-detail .main {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  #view-detail .sidebar { position: static; }
  #view-detail .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 240px 120px 120px;
    height: auto;
  }
  #view-detail .gallery-item:first-child { grid-row: auto; }
  #view-detail .gallery-item:nth-child(n+4) { display: none; }
  #view-detail .day { grid-template-columns: 1fr; }
  #view-detail .day-image { width: 100%; height: 180px; }
  #view-detail .overview-row { grid-template-columns: 1fr 1fr; }
  #view-detail .included-list { grid-template-columns: 1fr; }
  #view-detail .guidance-row { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 640px) {
  #view-detail .hero,
  #view-detail .gallery,
  #view-detail .inspiration-banner,
  #view-detail .main{
    padding-left: 20px;
    padding-right: 20px;
  }
}
