/* ── PLANNING EDIT PAGE ── */
.planning-main {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 64px;
  background-color: var(--bg);
  min-height: calc(100vh - 50px);
}

.planning-list {
  width: 800px;
}

.journey-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

/* ── STEPS LIST ── */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.step-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 18px 22px;
  box-shadow: 0 2px 8px var(--shadow);
  position: relative;
}
.step-card::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px dashed var(--border);
  border-radius: 2px;
  pointer-events: none;
  opacity: 0.5;
}
.step-inner { position: relative; z-index: 1; }

.step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.step-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.85;
}
.step-name {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.step-body { display: flex; flex-direction: column; gap: 10px; }

.step-input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 10px 12px;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}
.step-input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(45,158,144,0.12); }
.step-input::placeholder { color: #c0a880; }

.step-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
}

.btn-edit {
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 8px 28px;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-edit:hover { background: var(--teal-dark); }

.btn-delete {
  background: transparent;
  border: 1px solid var(--red);
  color: var(--red);
  border-radius: 3px;
  padding: 7px 14px;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-delete:hover { background: var(--red); color: #fff; }
.btn-delete svg { width: 12px; height: 12px; }

/* ── ADD STEP SECTION ── */
.add-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px 26px;
  box-shadow: 0 2px 8px var(--shadow);
  position: relative;
  margin-bottom: 32px;
}
.add-section::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px dashed var(--border);
  border-radius: 2px;
  pointer-events: none;
  opacity: 0.5;
}
.add-inner { position: relative; z-index: 1; }

.add-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.add-title svg { width: 18px; height: 18px; color: var(--teal); }

.add-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.add-form-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.add-form-bottom .btn-add { align-self: flex-end; }

.add-section .form-group { display: flex; flex-direction: column; gap: 6px; }

.add-section label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.add-section select,
.add-section input[type="number"] {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 9px 12px;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  cursor: pointer;
}

.add-section select:focus,
.add-section input[type="number"]:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(45,158,144,0.12); }

.add-section textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 10px 12px;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  color: var(--text);
  outline: none;
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.add-section textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(45,158,144,0.12); }

.btn-add {
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 9px 20px;
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-add:hover { background: var(--teal-dark); }

/* ── FOOTER LINKS ── */
.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
}
.footer-links a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--teal); }
.footer-links a svg { width: 13px; height: 13px; }
.footer-sep { color: var(--border); font-size: 12px; }
