/* ============================================================
   SwiftLine Pro Tracker v7 — Frontend CSS
   ============================================================ */
:root {
  --blue1:  #0EA5E9;
  --blue2:  #38BDF8;
  --teal1:  #0D9488;
  --green1: #22C55E;
  --amber1: #F59E0B;
  --red1:   #EF4444;
  --slate1: #475569;
  --purple1:#8B5CF6;
  --text1:  #0F172A;
  --text2:  #334155;
  --text3:  #94A3B8;
  --bg1:    #FFFFFF;
  --bg2:    #F8FAFC;
  --bg3:    #F1F5F9;
  --border: #E2E8F0;
  --radius: 16px;
  --shadow: 0 1px 8px rgba(0,0,0,0.07), 0 4px 24px rgba(0,0,0,0.04);
}

.slt-wrap { max-width: 980px; margin: 0 auto; padding: 0 16px 40px; }

/* ── HERO ── */
.slt-hero { border-radius: 20px; overflow: hidden; margin-bottom: 20px; }
.slt-hero-inner { padding: 52px 40px; text-align: center; }
.slt-hero-logo { max-height: 48px; width: auto; display: block; margin: 0 auto 18px; }
.slt-hero-title { font-size: clamp(24px, 4vw, 38px); font-weight: 800; color: #FFFFFF; margin: 0 0 8px; letter-spacing: -0.02em; line-height: 1.2; }
.slt-hero-sub { font-size: 14px; color: rgba(255,255,255,0.65); margin: 0 0 28px; line-height: 1.6; }

/* ── SEARCH BOX ── */
.slt-search-box { display: flex; align-items: center; max-width: 560px; margin: 0 auto; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.18); }
.slt-search-icon { padding: 0 14px 0 18px; color: #94A3B8; flex-shrink: 0; display: flex; align-items: center; }
.slt-search-input { flex: 1; border: none; outline: none; font-size: 15px; padding: 15px 0; font-family: monospace; letter-spacing: 0.04em; color: #0F172A; background: transparent; min-width: 0; }
.slt-search-input::placeholder { color: #CBD5E1; font-family: inherit; letter-spacing: 0; }
.slt-search-clear { background: none; border: none; color: #CBD5E1; font-size: 14px; cursor: pointer; padding: 0 8px; line-height: 1; transition: color 0.15s; }
.slt-search-clear:hover { color: #EF4444; }
.slt-search-btn { flex-shrink: 0; border: none; cursor: pointer; padding: 15px 22px; font-size: 13px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 7px; transition: opacity 0.2s, transform 0.15s; letter-spacing: 0.04em; }
.slt-search-btn:hover { opacity: 0.9; transform: scale(0.98); }

/* ── ERROR ── */
.slt-error { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px; background: #FEF2F2; border: 1px solid #FECACA; border-radius: 12px; color: #991B1B; font-size: 14px; margin-bottom: 16px; line-height: 1.55; }

/* ── STATUS CARD ── */
.slt-status-card { background: var(--bg1); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; box-shadow: var(--shadow); }
.slt-status-bar { height: 4px; }
.slt-status-body { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; flex-wrap: wrap; }
.slt-status-left { display: flex; align-items: center; gap: 16px; }
.slt-status-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.slt-status-text-eyebrow { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text3); margin-bottom: 4px; }
.slt-status-text-label { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; line-height: 1; }
.slt-status-text-loc { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text3); margin-top: 6px; }
.slt-status-right { text-align: right; }
.slt-tn-eye { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text3); margin-bottom: 4px; }
.slt-tn-val { font-family: monospace; font-size: 16px; font-weight: 700; color: var(--text1); letter-spacing: 0.05em; }
.slt-eta { margin-top: 8px; }
.slt-eta-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; background: var(--bg3); border-radius: 100px; font-size: 12px; font-weight: 600; color: var(--text2); }

/* ── STEPPER ── */
.slt-stepper { background: var(--bg1); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; margin-bottom: 16px; box-shadow: var(--shadow); overflow-x: auto; }
.slt-steps { display: flex; align-items: center; min-width: 480px; }
.slt-step { display: flex; flex-direction: column; align-items: center; flex: 1; gap: 8px; }
.slt-step-dot { width: 36px; height: 36px; border-radius: 50%; background: var(--bg3); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; transition: all 0.3s; flex-shrink: 0; }
.slt-step.active .slt-step-dot { background: #0F172A; border-color: #0F172A; box-shadow: 0 0 0 4px rgba(15,23,42,0.1); }
.slt-step.done .slt-step-dot { background: #0F172A; border-color: #0F172A; }
.slt-step-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text3); text-align: center; line-height: 1.3; }
.slt-step.active .slt-step-label, .slt-step.done .slt-step-label { color: var(--text1); }
.slt-step-track { flex: 1; height: 2px; background: var(--border); margin: 0 4px; margin-bottom: 22px; transition: background 0.3s; min-width: 12px; }
.slt-step-track.filled { background: #0F172A; }

/* ── SHARE BAR ── */
.slt-share-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding: 14px 20px; background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; flex-wrap: wrap; }
.slt-share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 1.5px solid; border-radius: 8px; background: transparent; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.slt-qr-wrap { text-align: center; flex-shrink: 0; }
.slt-qr-img { width: 80px; height: 80px; border-radius: 8px; border: 1px solid var(--border); display: block; }
.slt-qr-label { font-size: 10px; color: var(--text3); margin-top: 4px; font-weight: 500; }

/* ── GRID ── */
.slt-grid-main { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }

/* ── CARDS ── */
.slt-card { background: var(--bg1); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 16px; }
.slt-map-card, .slt-timeline-card, .slt-comments-card { grid-column: 1 / -1; }
.slt-card-hd { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.slt-card-hd-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ic-blue   { background: #EFF6FF; color: #3B82F6; }
.ic-blue   svg { stroke: #3B82F6; }
.ic-teal   { background: #F0FDFA; color: #0D9488; }
.ic-teal   svg { stroke: #0D9488; }
.ic-purple { background: #F5F3FF; color: #8B5CF6; }
.ic-purple svg { stroke: #8B5CF6; }
.ic-slate  { background: #F8FAFC; color: #64748B; }
.ic-slate  svg { stroke: #64748B; }
.ic-amber  { background: #FFFBEB; color: #D97706; }
.ic-amber  svg { stroke: #D97706; }
.slt-card-hd-text .label { font-size: 14px; font-weight: 700; color: var(--text1); }
.slt-card-hd-text .sub   { font-size: 12px; color: var(--text3); margin-top: 1px; }
.slt-card-bd { padding: 20px; }

/* ── INFO ROWS ── */
.slt-info-rows { display: flex; flex-direction: column; gap: 0; }
.slt-info-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--bg3); }
.slt-info-row:last-child { border-bottom: none; }
.slt-info-key { font-size: 12px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: 0.06em; flex-shrink: 0; padding-top: 1px; min-width: 64px; }
.slt-info-val { font-size: 14px; color: var(--text1); text-align: right; }
.slt-info-val a { color: var(--blue1); text-decoration: none; }
.slt-info-val a:hover { text-decoration: underline; }

/* ── DETAIL TABLE ── */
.slt-detail-table { display: flex; flex-direction: column; gap: 0; }
.slt-detail-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-bottom: 1px solid var(--bg3); }
.slt-detail-row:last-child { border-bottom: none; }
.slt-detail-cell { padding: 10px 12px 10px 0; }
.slt-detail-cell:last-child { padding-left: 12px; border-left: 1px solid var(--bg3); }
.slt-detail-key { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text3); margin-bottom: 3px; }
.slt-detail-val { font-size: 13px; color: var(--text1); font-weight: 500; }
.slt-detail-val.colored { font-weight: 700; }
.slt-desc-block { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.slt-desc-block p { font-size: 13px; color: var(--text2); line-height: 1.7; margin-top: 6px; }

/* ── PACKAGE IMAGE ── */
.slt-pkg-img-wrap { padding: 0; }
.slt-pkg-img { width: 100%; max-height: 260px; object-fit: cover; display: block; }

/* ── MAP ── */
.slt-map-el { height: 340px; width: 100%; }

/* ── TIMELINE ── */
.slt-tl { display: flex; flex-direction: column; gap: 0; }
.slt-tl-item { display: flex; gap: 14px; }
.slt-tl-spine { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; width: 20px; }
.slt-tl-node { width: 12px; height: 12px; border-radius: 50%; background: var(--border); border: 2px solid var(--border); flex-shrink: 0; margin-top: 4px; transition: all 0.3s; }
.slt-tl-node.live { background: var(--blue1); border-color: var(--blue1); box-shadow: 0 0 0 4px rgba(14,165,233,0.2); }
.slt-tl-bar { flex: 1; width: 2px; background: var(--border); margin: 4px 0; min-height: 20px; }
.slt-tl-item.live .slt-tl-body { padding-bottom: 20px; }
.slt-tl-body { flex: 1; padding-bottom: 16px; }
.slt-tl-title { font-size: 14px; font-weight: 700; color: var(--text1); margin-bottom: 3px; }
.slt-tl-loc { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--blue1); font-weight: 500; margin-bottom: 3px; }
.slt-tl-note { font-size: 12px; color: var(--text3); line-height: 1.5; margin-bottom: 3px; }
.slt-tl-time { font-size: 11px; color: var(--text3); }

/* ── COMMENTS ── */
.slt-comments-list { display: flex; flex-direction: column; gap: 12px; }
.slt-comment-item { background: #FFFBEB; border-left: 3px solid #F59E0B; border-radius: 0 10px 10px 0; padding: 14px 16px; }
.slt-comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.slt-comment-badge { display: inline-flex; align-items: center; gap: 5px; background: #FEF3C7; color: #B45309; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.06em; }
.slt-comment-date { font-size: 11px; color: #92400E; }
.slt-comment-body { font-size: 13px; color: #78350F; line-height: 1.65; }

/* ── PRINT BAR ── */
.slt-print-bar { display: flex; align-items: center; gap: 14px; padding: 14px 20px; background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 16px; }
.slt-print-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 8px; color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; transition: opacity 0.2s; white-space: nowrap; }
.slt-print-btn:hover { opacity: 0.88; }
.slt-print-bar-hint { font-size: 12px; color: var(--text3); }

/* ── SUPPORT BANNER ── */
.slt-support-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-radius: var(--radius); margin-top: 8px; flex-wrap: wrap; }
.slt-support-left { display: flex; align-items: center; gap: 14px; }
.slt-support-icon { width: 42px; height: 42px; background: rgba(255,255,255,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.slt-support-title { font-size: 15px; font-weight: 700; color: #fff; }
.slt-support-sub { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 2px; }
.slt-support-btn { padding: 11px 22px; border-radius: 10px; color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; transition: opacity 0.2s; white-space: nowrap; }
.slt-support-btn:hover { opacity: 0.88; }

/* ── COL LAYOUT ── */
.slt-col { display: flex; flex-direction: column; }
.slt-col .slt-card { margin-bottom: 0; }
.slt-col .slt-card + .slt-card { margin-top: 16px; }

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .slt-wrap { padding: 0 12px 28px; }
  .slt-hero-inner { padding: 36px 20px; }
  .slt-grid-main { grid-template-columns: 1fr; }
  .slt-status-body { flex-direction: column; align-items: flex-start; }
  .slt-status-right { text-align: left; }
  .slt-steps { min-width: 400px; }
  .slt-share-bar { flex-direction: column; align-items: flex-start; }
  .slt-support-banner { flex-direction: column; align-items: flex-start; }
}
