/* ── Info Boxes ─────────────────────────────────────── */

.box {
  border-radius: var(--r-md);
  padding: var(--sp-md) var(--sp-md);
  margin: var(--sp-md) 0;
  font-size: var(--fs-body);
  line-height: 1.6;
  border-left: 4px solid;
}

.box-alert {
  background: var(--red-light);
  border-color: var(--red);
  color: #991b1b;
  font-weight: 600;
}

.box-info {
  background: var(--blue-light);
  border-color: var(--blue);
  color: #1e40af;
}

.box-hotel {
  background: var(--green-light);
  border-color: var(--green);
  color: #065f46;
}

.box-flight {
  background: var(--purple-light);
  border-color: var(--purple);
  color: #5b21b6;
  font-weight: 600;
}

.box a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Timeline ──────────────────────────────────────── */

.timeline {
  position: relative;
  padding-left: 1rem;
  margin: var(--sp-md) 0 var(--sp-lg);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--border);
  border-radius: 1px;
}

.tl-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  padding: var(--sp-sm) 0;
  position: relative;
  min-height: 2.75rem;
}

.tl-item::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 50%;
  transform: translateX(-3px);
  z-index: 1;
}

.tl-item.is-checked::before {
  background: var(--green);
  border-color: var(--green);
}

.tl-item .time {
  font-family: var(--font-mono);
  font-size: var(--fs-time);
  font-weight: 500;
  color: var(--blue);
  white-space: nowrap;
  min-width: 5.5rem;
  padding-top: 1px;
}

.tl-item .desc {
  flex: 1;
  font-size: var(--fs-body);
  line-height: 1.5;
}

.tl-item .desc strong,
.tl-item .desc a.venue {
  font-weight: 600;
}

.tl-item .desc a.venue {
  color: var(--navy);
  text-decoration-color: var(--orange);
  text-underline-offset: 2px;
  text-decoration-thickness: 2px;
}

.tl-item .desc a.venue:hover {
  color: var(--blue);
}

.tl-item.is-checked .desc {
  color: var(--text-light);
}

.tl-item .tl-check {
  margin-top: 1px;
}

.tl-sub {
  padding-left: 0;
  margin-left: 5.5rem;
}

.tl-sub .tl-item::before {
  display: none;
}

.tl-sub .tl-item {
  padding: 3px 0;
  min-height: auto;
}

/* ── Photo Cards ───────────────────────────────────── */

.photo-card {
  margin: var(--sp-lg) 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--dur-normal) var(--ease-out);
}

.photo-card img.loaded {
  opacity: 1;
}

.photo-card figcaption {
  padding: var(--sp-md);
  background: var(--bg);
}

.photo-card figcaption strong {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  color: var(--navy);
  display: block;
  margin-bottom: var(--sp-xs);
}

.photo-card figcaption span {
  font-size: var(--fs-small);
  color: var(--text-mid);
  line-height: 1.5;
}

/* ── Map Embed ─────────────────────────────────────── */

.map-embed {
  margin: var(--sp-lg) 0;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.map-embed iframe {
  width: 100%;
  height: 280px;
  border: none;
  display: block;
}

.map-embed .map-label {
  display: block;
  font-size: var(--fs-small);
  color: var(--text-light);
  text-align: center;
  padding: var(--sp-xs) var(--sp-sm);
  background: var(--bg-subtle);
  text-decoration: none;
}

a.map-label:hover {
  color: var(--blue);
}

.map-placeholder {
  width: 100%;
  height: 280px;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: var(--fs-small);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ── Flight Table ──────────────────────────────────── */

.flight-table {
  font-size: var(--fs-small);
  margin: var(--sp-md) 0;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.flight-table th {
  background: var(--navy);
  color: white;
  padding: var(--sp-sm) var(--sp-md);
  text-align: center;
  font-weight: 600;
  font-size: var(--fs-small);
}

.flight-table td {
  padding: var(--sp-sm) var(--sp-md);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.flight-table tr:nth-child(even) {
  background: var(--bg-subtle);
}


/* ── Section Header (collapsible) ──────────────────── */

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: var(--sp-md) 0 var(--sp-sm);
  margin-top: var(--sp-lg);
  user-select: none;
  -webkit-user-select: none;
}

.time-block:first-child .section-head {
  margin-top: 0;
}

.section-head h3 {
  font-size: var(--fs-h3);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.collapse-btn {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--dur-fast) ease;
}

.collapse-btn:hover {
  background: var(--bg-subtle);
}

.collapse-btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur-normal) var(--ease-out);
}

.time-block.is-collapsed .collapse-btn svg {
  transform: rotate(-90deg);
}

.time-block.is-collapsed .timeline {
  display: none;
}

/* ── Progress Badge ────────────────────────────────── */

.progress {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--bg-subtle);
  color: var(--text-light);
  white-space: nowrap;
}

.progress.complete {
  background: var(--green-light);
  color: var(--green);
}

/* ── Option Boxes ──────────────────────────────────── */

.box-option {
  border-radius: var(--r-md);
  padding: var(--sp-sm) var(--sp-md);
  margin: var(--sp-xs) 0;
  font-size: var(--fs-small);
  border-left: 4px solid;
}

.box-option-a { background: var(--orange-light); border-color: var(--orange); }
.box-option-b { background: var(--green-light); border-color: var(--green); }
.box-option-c { background: var(--blue-light); border-color: var(--blue); }

