/* PlanMyEscape — Aurora Sprint 4: Dream Mode */

.dream-mode-home {
  background:
    radial-gradient(circle at 12% 6%, rgba(96, 82, 255, .12), transparent 28rem),
    radial-gradient(circle at 92% 34%, rgba(21, 184, 209, .11), transparent 30rem),
    #f7f9fd;
}

.dream-example {
  max-width: 640px;
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid rgba(91, 81, 226, .14);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 14px 38px rgba(38,51,84,.07);
}

.dream-example span {
  display: block;
  margin-bottom: 7px;
  color: #6558df;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.dream-example p {
  margin: 0;
  color: #283653;
  font-weight: 600;
  line-height: 1.6;
}

.planning-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid rgba(31,55,92,.1);
  border-radius: 19px;
  background: #f1f4f9;
}

.planning-mode-switch button {
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: auto auto;
  column-gap: 11px;
  align-items: center;
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 15px;
  color: #536079;
  text-align: left;
  cursor: pointer;
  background: transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.planning-mode-switch button > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(255,255,255,.75);
}

.planning-mode-switch strong,
.planning-mode-switch small {
  display: block;
}

.planning-mode-switch strong {
  color: #1a2944;
  font-size: .92rem;
}

.planning-mode-switch small {
  margin-top: 2px;
  color: #7a8599;
}

.planning-mode-switch button.is-active {
  border-color: rgba(91,81,226,.16);
  background: #fff;
  box-shadow: 0 10px 28px rgba(34,49,85,.09);
  transform: translateY(-1px);
}

.planning-mode-switch button.is-active > span {
  background: linear-gradient(145deg, #eeeaff, #e8f8ff);
}

.dream-mode-panel {
  display: none;
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid rgba(91,81,226,.14);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(21,184,209,.12), transparent 17rem),
    linear-gradient(145deg, #fbfaff, #f6fbff);
}

.dream-mode-panel.is-visible {
  display: block;
  animation: dream-panel-in .28s ease both;
}

@keyframes dream-panel-in {
  from { opacity: 0; transform: translateY(-8px); }
}

.dream-prompt-label {
  display: block;
}

.dream-prompt-label > span {
  display: block;
  margin-bottom: 8px;
  color: #24324d;
  font-weight: 800;
}

.dream-prompt-label textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  border: 1px solid rgba(51,67,103,.16);
  border-radius: 15px;
  padding: 15px 16px;
  font: inherit;
  line-height: 1.55;
  background: rgba(255,255,255,.9);
}

.dream-prompt-label textarea:focus {
  outline: 3px solid rgba(91,81,226,.16);
  border-color: #6558df;
}

.dream-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.dream-suggestions button {
  min-height: 35px;
  padding: 0 12px;
  border: 1px solid rgba(91,81,226,.13);
  border-radius: 999px;
  color: #5549c7;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
}

.dream-assurance {
  margin: 14px 0 0;
  color: #66728a;
  font-size: .8rem;
  line-height: 1.55;
}

#destinationField.is-hidden {
  display: none;
}

@media (max-width: 560px) {
  .planning-mode-switch {
    grid-template-columns: 1fr;
  }

  .dream-mode-panel {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dream-mode-panel.is-visible {
    animation: none;
  }
}

/* Unified planner — destination is optional */
.destination-optional,
.trip-brief-field {
  display: block;
  margin-bottom: 18px;
}

.destination-optional > span,
.trip-brief-field > span {
  display: block;
  margin-bottom: 8px;
  color: #24324d;
  font-weight: 800;
}

.destination-optional small {
  margin-left: 6px;
  color: #6558df;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.destination-optional input,
.trip-brief-field textarea {
  width: 100%;
  border: 1px solid rgba(51,67,103,.16);
  border-radius: 15px;
  padding: 15px 16px;
  font: inherit;
  background: rgba(255,255,255,.94);
}

.trip-brief-field textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.55;
}

.destination-optional input:focus,
.trip-brief-field textarea:focus {
  outline: 3px solid rgba(91,81,226,.16);
  border-color: #6558df;
}

.destination-optional em {
  display: block;
  margin-top: 7px;
  color: #758097;
  font-size: .78rem;
  font-style: normal;
}

.planner-details {
  margin-top: 22px;
}
