/* Native dialog keeps both entry choices accessible on desktop and mobile. */
.trip-creation-dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: min(85dvh, 820px);
  padding: 0;
  border: 1px solid #e4effa;
  border-radius: var(--radius-dialog);
  color: #243d58;
  background: #fbfdff;
  box-shadow: 0 16px 48px rgb(48 100 151 / 14%);
  overflow: auto;
}
.trip-creation-dialog::backdrop { background: rgb(37 66 95 / 28%); backdrop-filter: blur(5px); }
.trip-creation-form { position: relative; padding: 34px; margin: 0; }
.trip-creation-close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px;
  padding: 0; border: 0; border-radius: 50%; background: transparent; color: #6e859d;
  font-size: 26px; font-weight: 400; box-shadow: none;
}
.trip-creation-eyebrow { display: block; color: #218edc; font-size: 12px; margin-bottom: 10px; }
.trip-creation-form h2 { margin: 0 30px 10px 0; font-size: 26px; font-weight: 600; line-height: 1.4; }
.trip-creation-form > p { margin: 0; color: #647b92; font-size: 14px; line-height: 1.7; }
.trip-creation-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.trip-creation-option {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  width: 100%; min-width: 0; padding: 22px; border: 1px solid #dceaf7; border-radius: 20px;
  background: white; color: #243d58; text-align: left; font-weight: 400; box-shadow: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.trip-creation-option strong { font-size: 19px; font-weight: 500; }
.trip-creation-option > span:not(.trip-creation-symbol) { color: #647b92; font-size: 14px; line-height: 1.7; }
.trip-creation-option small { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; margin-top: auto; padding-top: 8px; font-size: 12px; color: #2679b9; }
.trip-creation-option small > span { font-size: 22px; line-height: 1; }
.trip-creation-symbol { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: #edf7ff; color: #2799ec; }
.trip-creation-symbol svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.trip-creation-dialog button:focus-visible { outline: 3px solid #389ff5; outline-offset: 3px; }
.trip-creation-summary { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: #edf7ff; color: #486d8e; font-size: 13px; line-height: 1.6; }
.trip-generate-sparkle { display: none; }
#plannerWorkspace #buildTrip.is-ai-generate {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 44px; padding: 0 16px;
  border: 0; border-radius: 22px; background: var(--blue);
  color: #fff; box-shadow: none;
  transition: background 450ms ease-in-out, box-shadow 450ms ease-in-out, transform 450ms ease-in-out;
}
#buildTrip.is-ai-generate .trip-generate-sparkle {
  display: block; flex: none; width: 18px; height: 18px; fill: currentColor;
  transition: fill 800ms ease, transform 800ms ease;
}
#buildTrip.is-ai-generate .trip-generate-text { min-width: 0; font-size: 1em; font-weight: 600; line-height: 1.3; }
#plannerWorkspace #buildTrip.is-ai-generate:focus-visible { outline: 3px solid var(--blue-strong); outline-offset: 3px; }
#plannerWorkspace #buildTrip.is-ai-generate:disabled {
  background: #e2e7ee; color: #637083; box-shadow: none; transform: none; opacity: 1; cursor: not-allowed;
}
@media (hover: hover) {
  #plannerWorkspace #buildTrip.is-ai-generate:hover:not(:disabled) {
    background: linear-gradient(0deg, #a47cf3, #683fea);
    color: #fff;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 40%), inset 0 -4px 0 rgb(0 0 0 / 20%), 0 0 14px 2px rgb(153 23 255 / 35%);
    transform: translateY(-2px);
  }
  #buildTrip.is-ai-generate:hover:not(:disabled) .trip-generate-sparkle { transform: scale(1.2); }
}
#plannerWorkspace #buildTrip.is-ai-generate:active:not(:disabled) { transform: translateY(0); }
@media (hover: hover) {
  .trip-creation-option:hover { transform: translateY(-2px); border-color: #79bff7; background: #f5faff; }
  .trip-creation-close:hover { background: #edf5fc; }
}
@media (max-width: 560px) {
  .trip-creation-dialog { width: calc(100% - 24px); margin: auto 12px max(12px, env(safe-area-inset-bottom)); }
  .trip-creation-form { padding: 28px 22px 22px; }
  .trip-creation-form h2 { font-size: 22px; margin-right: 24px; }
  .trip-creation-options { grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
  .trip-creation-option { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 6px 14px; padding: 18px; }
  .trip-creation-symbol { grid-row: 1 / 3; width: 40px; height: 40px; }
  .trip-creation-option strong { font-size: 17px; }
  .trip-creation-option > span:not(.trip-creation-symbol) { grid-column: 2; font-size: 13px; }
  .trip-creation-option small { grid-column: 2; padding-top: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .trip-creation-option, #plannerWorkspace #buildTrip.is-ai-generate,
  #buildTrip.is-ai-generate .trip-generate-sparkle { transition: none; }
}
