/* ==========================================================================
   14_direction-guide.css — Direction Guide Modal & Timeline
   ========================================================================== */

/* ---------- Modal ---------- */

.direction-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.direction-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.direction-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.direction-modal-content {
  position: relative;
  z-index: 1;
  background: #fff;
  width: 95vw;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 0.5rem;
  padding: 2rem 1.5rem;
}

.direction-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  color: var(--color-text-muted, #888);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}

.direction-modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text-main, #333);
}

/* ---------- Modal Header ---------- */

.direction-modal-header {
  margin-bottom: 2rem;
  padding-right: 2rem;
}

.direction-modal-title {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.direction-modal-desc {
  margin: 0;
}

/* ---------- Timeline ---------- */

.direction-guide {
  position: relative;
}

.direction-step {
  position: relative;
  padding-left: 3.5rem;
  padding-bottom: 2rem;
}

.direction-step:last-child {
  padding-bottom: 0;
}

/* Vertical connecting line */
.direction-step::before {
  content: '';
  position: absolute;
  left: 1.125rem;
  top: 2.25rem;
  bottom: 0;
  width: 1px;
  background: #d1d5db;
}

.direction-step:last-child::before {
  display: none;
}

/* Number badge */
.direction-step__number {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--color-primary, #0d9488);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Step card */
.direction-step__card {
  background: #f9fafb;
  border-radius: 0.375rem;
  overflow: hidden;
}

/* Photo placeholder */
.direction-step__photo {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.direction-step__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.direction-step__photo-text {
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

/* Step body text */
.direction-step__body {
  padding: 1rem 1.25rem;
}

.direction-step__title {
  font-size: 1rem;
  margin: 0 0 0.25rem;
}

.direction-step__label {
  margin: 0;
}

.direction-step__text {
  margin: 0;
}

/* ---------- Responsive ---------- */

@media (min-width: 640px) {
  .direction-modal-content {
    padding: 2.5rem 2rem;
  }

  .direction-step {
    padding-left: 4rem;
  }

  .direction-step__number {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.8rem;
  }

  .direction-step::before {
    left: 1.25rem;
    top: 2.5rem;
  }
}

/* ---------- Accessibility: Reduced Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .direction-modal {
    transition: none;
  }
}
