/* 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;
}

/* Premium photographic homepage refresh. Homepage-only overrides preserve the
   planner markup, fields and behaviour used by the existing application. */
.dream-mode-home {
  --home-cream: #f7f1e7;
  --home-gold: #d9a75f;
  --home-navy: #071a2d;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  color: #fff;
  background-color: var(--home-navy);
  background-image:
    linear-gradient(90deg, rgba(5, 20, 37, .9) 0%, rgba(5, 20, 37, .72) 46%, rgba(5, 20, 37, .56) 100%),
    linear-gradient(0deg, rgba(5, 20, 37, .54), rgba(5, 20, 37, .08) 45%, rgba(5, 20, 37, .26)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=2400&q=88");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

.dream-mode-home::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 14, 27, .1) 55%, rgba(3, 14, 27, .72));
}

.dream-mode-home .site-header {
  min-height: 112px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.dream-mode-home .brand {
  padding: 8px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .12);
  backdrop-filter: blur(12px);
}

.dream-mode-home .account-nav a,
.dream-mode-home .account-nav button {
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
  background: rgba(7, 26, 45, .28);
  backdrop-filter: blur(12px);
}

.dream-mode-home .account-nav a:hover,
.dream-mode-home .account-nav button:hover {
  border-color: rgba(255, 255, 255, .7);
  color: var(--home-navy);
  background: #fff;
}

.dream-mode-home .home-grid {
  min-height: calc(100vh - 172px);
  padding-top: clamp(52px, 8vw, 112px);
  padding-bottom: clamp(70px, 10vw, 130px);
  gap: clamp(48px, 7vw, 90px);
}

.dream-mode-home .hero-copy {
  text-shadow: 0 2px 24px rgba(0, 0, 0, .2);
}

.dream-mode-home .hero-copy .eyebrow {
  margin-bottom: 18px;
  color: #f2c77f;
  letter-spacing: .19em;
}

.dream-mode-home .hero-copy h1 {
  max-width: 760px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(4.1rem, 7.2vw, 7.4rem);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: .96;
  text-wrap: balance;
}

.dream-mode-home .hero-text {
  max-width: 600px;
  margin-top: 30px;
  color: rgba(255, 255, 255, .83);
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  line-height: 1.78;
}

.dream-mode-home .dream-example {
  margin-top: 30px;
  border-color: rgba(255, 255, 255, .2);
  color: #fff;
  background: rgba(7, 26, 45, .32);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .12);
  backdrop-filter: blur(14px);
}

.dream-mode-home .dream-example span { color: #f2c77f; }
.dream-mode-home .dream-example p { color: rgba(255, 255, 255, .9); }

.dream-mode-home .benefit-grid { margin-top: 48px; }
.dream-mode-home .benefit-grid article { border-color: rgba(255, 255, 255, .25); }
.dream-mode-home .benefit-grid strong { color: #fff; }
.dream-mode-home .benefit-grid span { color: rgba(255, 255, 255, .68); }

.dream-mode-home .planner-card {
  padding: clamp(28px, 3vw, 42px);
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 28px;
  color: #172b40;
  background: rgba(250, 248, 243, .88);
  box-shadow: 0 30px 90px rgba(0, 12, 25, .34), inset 0 1px 0 rgba(255, 255, 255, .7);
  backdrop-filter: blur(24px) saturate(125%);
}

.dream-mode-home .card-heading { margin-bottom: 28px; }
.dream-mode-home .card-heading h2 {
  max-width: 390px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 3vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.08;
}
.dream-mode-home .card-heading .eyebrow { color: #a46e27; }
.dream-mode-home .card-heading > span { color: #445565; background: rgba(7, 26, 45, .07); }

.dream-mode-home .destination-optional input,
.dream-mode-home .trip-brief-field textarea,
.dream-mode-home input,
.dream-mode-home select,
.dream-mode-home .input-shell {
  border-color: rgba(18, 43, 65, .14);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7);
}

.dream-mode-home input:focus,
.dream-mode-home select:focus,
.dream-mode-home textarea:focus,
.dream-mode-home .input-shell:focus-within {
  border-color: #bd8337;
  box-shadow: 0 0 0 4px rgba(189, 131, 55, .13);
}

.dream-mode-home .dream-suggestions { gap: 10px; margin-top: 14px; }
.dream-mode-home .dream-suggestions button {
  min-height: 39px;
  padding: 0 15px;
  border-color: rgba(18, 43, 65, .16);
  color: #28445c;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 4px 14px rgba(12, 34, 54, .06);
  transition: transform .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.dream-mode-home .dream-suggestions button:hover,
.dream-mode-home .dream-suggestions button:focus-visible {
  transform: translateY(-2px);
  border-color: #bd8337;
  color: #805116;
  box-shadow: 0 8px 20px rgba(12, 34, 54, .12);
}

.dream-mode-home .primary-button {
  min-height: 58px;
  border-radius: 13px;
  background: var(--home-navy);
  box-shadow: 0 12px 24px rgba(7, 26, 45, .2);
}
.dream-mode-home .primary-button:hover { background: #a96e27; }
.dream-mode-home .microcopy { color: #667481; }

.dream-mode-home .site-footer {
  color: rgba(255, 255, 255, .72);
  border-top: 1px solid rgba(255, 255, 255, .14);
}

@media (max-width: 900px) {
  .dream-mode-home { background-attachment: scroll; }
  .dream-mode-home .hero-copy { text-align: center; }
  .dream-mode-home .dream-example { margin-inline: auto; }
  .dream-mode-home .benefit-grid { text-align: left; }
}

@media (max-width: 620px) {
  .dream-mode-home .site-header { min-height: 88px; }
  .dream-mode-home .brand { padding: 6px 10px; }
  .dream-mode-home .home-grid { padding-top: 44px; gap: 44px; }
  .dream-mode-home .hero-copy h1 { font-size: clamp(3.35rem, 16vw, 4.8rem); }
  .dream-mode-home .hero-text { margin-top: 24px; line-height: 1.65; }
  .dream-mode-home .benefit-grid { margin-top: 36px; }
  .dream-mode-home .planner-card { padding: 25px 19px; border-radius: 22px; }
  .dream-mode-home .dream-suggestions button { min-height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .dream-mode-home .dream-suggestions button { transition: none; }
}
