/* Design Your Trip - Campfire Concierge */
:root {
  --dyt-green: #1a4924;
  --dyt-green-deep: #12351b;
  --dyt-amber: #f89621;
  --dyt-text: #1a1a1a;
  --dyt-muted: #5c5c5c;
  --dyt-line: #e6ebe7;
  --dyt-cream: #f6f4ef;
  --dyt-bubble: #ffffff;
  --dyt-font: "DM Sans", system-ui, sans-serif;
  --dyt-display: "Outfit", "DM Sans", system-ui, sans-serif;
}

.dyt-page {
  font-family: var(--dyt-font);
  color: var(--dyt-text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(26, 73, 36, 0.12), transparent 55%),
    #fff;
}

.dyt-hero {
  background:
    linear-gradient(145deg, rgba(26, 73, 36, 0.96), rgba(18, 53, 27, 0.92)),
    #1a4924;
  color: #fff;
  padding: clamp(2.75rem, 7vw, 4.5rem) 1.25rem 2.5rem;
  text-align: center;
}

.dyt-hero__brand {
  display: inline-block;
  margin: 0 0 0.7rem;
  font-family: var(--dyt-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dyt-amber);
}

.dyt-hero h1 {
  margin: 0 0 0.65rem;
  font-family: var(--dyt-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}

.dyt-hero p {
  margin: 0 auto;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.dyt-shell {
  width: min(760px, calc(100% - 2rem));
  margin: -1.75rem auto 2.5rem;
}

.dyt-campfire {
  display: flex;
  flex-direction: column;
  /* Grow with content so the page scrolls — nested thread scroll was hard to use */
  background: var(--dyt-cream);
  border: 1px solid var(--dyt-line);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(18, 53, 27, 0.12);
  /* Keep visible so sticky head still works; glow is clipped on the avatar */
  overflow: visible;
}

.dyt-campfire__head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem 1.25rem 0.35rem;
  background: transparent;
  border-bottom: 0;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 2;
}

.dyt-page button.dyt-reset {
  appearance: none;
  margin-left: auto;
  border: 1px solid rgba(26, 73, 36, 0.22) !important;
  background-color: #fff !important;
  color: var(--dyt-green) !important;
  border-radius: 999px !important;
  padding: 0.45rem 0.85rem !important;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700 !important;
  cursor: pointer;
  flex-shrink: 0;
}

.dyt-page button.dyt-reset:hover {
  background-color: rgba(26, 73, 36, 0.06) !important;
}

.dyt-campfire__avatar {
  position: relative;
  width: 10rem;
  height: 10rem;
  margin-bottom: -1.35rem;
  border-radius: 50%;
  /* Visible so reaction stickers can hang off the circle; face/glow stay clipped */
  overflow: visible;
  flex-shrink: 0;
  box-shadow: none;
  background: transparent;
}

.dyt-campfire__avatar > picture {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
}

.dyt-campfire__avatar-img,
.dyt-campfire__glow {
  border-radius: 50%;
}

.dyt-campfire__glow {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 70%, rgba(248, 150, 33, 0.28), transparent 58%),
    radial-gradient(circle at 60% 40%, rgba(255, 210, 120, 0.18), transparent 52%);
  opacity: 0.35;
  animation: dyt-flicker 2.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  /* Soft fire stays inside the face disk even when avatar overflow is visible */
  clip-path: circle(50% at 50% 50%);
}

.dyt-campfire__avatar-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
  background: transparent;
}

.dyt-campfire__avatar.is-talking .dyt-campfire__avatar-img {
  animation: dyt-talk 0.7s ease;
}

.dyt-campfire__avatar.is-pop {
  animation: dyt-avatar-pop 0.45s ease;
}

.dyt-kito-sticker {
  position: absolute;
  right: -0.55rem;
  bottom: -0.4rem;
  z-index: 3;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(18, 53, 27, 0.18);
  border: 1px solid rgba(26, 73, 36, 0.16);
  opacity: 0;
  transform: scale(0.6) translateY(4px);
  pointer-events: none;
}

.dyt-kito-sticker.is-on {
  opacity: 1;
  transform: scale(1) translateY(0);
  animation: dyt-sticker-in 0.35s ease;
}

.dyt-kito-sticker::before {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: var(--dyt-amber);
}

.dyt-kito-sticker[data-kind="point"]::before {
  inset: 28% 22% 28% 38%;
  border-radius: 2px;
  background: var(--dyt-green);
  box-shadow: 0.35rem 0 0 -0.1rem var(--dyt-green);
  transform: rotate(-35deg);
}

.dyt-kito-sticker[data-kind="thumb"]::before {
  inset: auto;
  left: 32%;
  right: 32%;
  top: 28%;
  bottom: 22%;
  border-radius: 3px 3px 4px 4px;
  background: var(--dyt-green);
  box-shadow: -0.28rem 0.15rem 0 -0.05rem var(--dyt-amber);
}

.dyt-kito-sticker[data-kind="spark"]::before {
  inset: 30%;
  background: var(--dyt-amber);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  border-radius: 0;
}

.dyt-kito-sticker[data-kind="clap"]::before {
  inset: 26%;
  border-radius: 40% 40% 35% 35%;
  background: linear-gradient(135deg, var(--dyt-amber), var(--dyt-green));
}

.dyt-campfire__who {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: left;
  min-width: 0;
}

.dyt-campfire__who strong {
  font-family: var(--dyt-display);
  font-size: 1.15rem;
  color: var(--dyt-green);
}

.dyt-campfire__who span {
  font-size: 0.82rem;
  color: var(--dyt-muted);
}

.dyt-thread {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  /* Extra top pad so the floating avatar can hang into the chat without covering bubbles */
  padding: 1.85rem 1.15rem 1.35rem;
  min-height: 220px;
  flex: 1 1 auto;
  overflow: visible;
}

.dyt-prompt {
  margin: 0;
  font: inherit;
  line-height: inherit;
  color: inherit;
}

.dyt-msg {
  max-width: 92%;
  opacity: 0;
  /* Opacity-only: transform on messages breaks position:sticky for .dyt-prompt */
  animation: dyt-in 0.35s ease forwards;
}

.dyt-msg--bot {
  align-self: flex-start;
}

.dyt-msg--user {
  align-self: flex-end;
}

.dyt-bubble {
  display: inline-block;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--dyt-bubble);
  border: 1px solid var(--dyt-line);
  box-shadow: 0 4px 14px rgba(18, 53, 27, 0.05);
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--dyt-text);
}

.dyt-msg--user .dyt-bubble {
  background: var(--dyt-green);
  border-color: var(--dyt-green);
  color: #fff;
}

.dyt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.dyt-page button.dyt-chip {
  appearance: none;
  border: 1px solid rgba(26, 73, 36, 0.22) !important;
  background-color: #fff !important;
  color: var(--dyt-green) !important;
  border-radius: 999px !important;
  padding: 0.55rem 0.95rem !important;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600 !important;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.dyt-page button.dyt-chip:hover {
  background-color: rgba(26, 73, 36, 0.06) !important;
  border-color: rgba(26, 73, 36, 0.22) !important;
  color: var(--dyt-green) !important;
}

.dyt-page button.dyt-chip:active {
  transform: scale(0.98);
}

.dyt-page button.dyt-chip.is-selected {
  background-color: var(--dyt-green) !important;
  border-color: var(--dyt-green) !important;
  color: #fff !important;
  animation: dyt-pulse 0.45s ease;
}

.dyt-page button.dyt-chip--primary {
  background-color: var(--dyt-green) !important;
  border-color: var(--dyt-green) !important;
  color: #fff !important;
}

.dyt-page button.dyt-chip--primary:hover {
  background-color: var(--dyt-green-deep) !important;
  border-color: var(--dyt-green-deep) !important;
  color: #fff !important;
}

.dyt-chip__count {
  font-weight: 500;
  opacity: 0.72;
}

.dyt-live-count {
  margin: 0.65rem 0 0;
  font-size: 0.86rem;
  color: var(--dyt-muted);
}

.dyt-chips--dates,
.dyt-chips--budget {
  margin-top: 0;
  margin-bottom: 0.15rem;
}

.dyt-season-tip {
  margin: 0.15rem 0 0;
  width: 100%;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--dyt-muted);
}

.dyt-witty {
  margin: 0 0 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--dyt-cream);
  border: 1px dashed rgba(26, 73, 36, 0.28);
  color: var(--dyt-green);
  font-size: 0.95rem;
  line-height: 1.45;
}

.dyt-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  min-height: 2.75rem;
  margin: 0 0 0.55rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(26, 73, 36, 0.28) !important;
  background-color: #fff !important;
  color: var(--dyt-green) !important;
  font: inherit;
  font-weight: 700 !important;
  cursor: pointer;
}

.dyt-nudge {
  margin: 0;
  width: 100%;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--dyt-green);
  font-weight: 500;
}

.dyt-page input.dyt-date {
  width: 100%;
  max-width: 16rem;
  box-sizing: border-box;
  border: 1px solid var(--dyt-line) !important;
  border-radius: 10px !important;
  padding: 0.7rem 0.85rem !important;
  font: inherit;
  background: #fff !important;
  color: var(--dyt-text) !important;
}

.dyt-details {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.dyt-details__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.dyt-details label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dyt-muted);
  width: 100%;
}

.dyt-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fff;
  border: 1px solid var(--dyt-line);
  border-radius: 999px;
  padding: 0.2rem;
}

.dyt-page .dyt-stepper button {
  width: 2rem;
  height: 2rem;
  border: 0 !important;
  border-radius: 50% !important;
  background-color: var(--dyt-cream) !important;
  color: var(--dyt-green) !important;
  font-size: 1.1rem;
  font-weight: 700 !important;
  cursor: pointer;
  padding: 0 !important;
}

.dyt-stepper strong {
  min-width: 1.5rem;
  text-align: center;
}

.dyt-details input,
.dyt-details textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--dyt-line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: #fff;
}

.dyt-details textarea {
  min-height: 4.5rem;
  resize: vertical;
}

.dyt-passport {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: #fff;
  border: 1px dashed rgba(26, 73, 36, 0.28);
  box-shadow: 0 8px 22px rgba(18, 53, 27, 0.06);
}

.dyt-passport__label {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dyt-muted);
}

.dyt-stamps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.dyt-page button.dyt-stamp {
  appearance: none;
  border: 1px solid rgba(26, 73, 36, 0.2) !important;
  background-color: var(--dyt-cream) !important;
  color: var(--dyt-green) !important;
  border-radius: 999px !important;
  padding: 0.4rem 0.75rem !important;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600 !important;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.dyt-page button.dyt-stamp:hover {
  background-color: #fff !important;
  color: var(--dyt-green) !important;
  transform: translateY(-1px);
}

.dyt-stamp span {
  opacity: 0.65;
  margin-right: 0.25rem;
}

.dyt-reveal {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.4fr);
  gap: 1.1rem;
  align-items: start;
  opacity: 0;
  transform: translateY(10px);
}

.dyt-reveal.is-visible {
  animation: dyt-in 0.4s ease forwards;
}

.dyt-plan,
.dyt-results-panel {
  background: #fff;
  border: 1px solid var(--dyt-line);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(18, 53, 27, 0.07);
}

.dyt-plan {
  position: sticky;
  top: 1rem;
  padding: 1.2rem;
}

.dyt-plan h2,
.dyt-results-panel h2 {
  margin: 0 0 0.85rem;
  font-family: var(--dyt-display);
  font-size: 1.2rem;
  color: var(--dyt-green);
}

.dyt-plan__list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.dyt-plan__list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--dyt-line);
  font-size: 0.9rem;
}

.dyt-plan__list span {
  color: var(--dyt-muted);
}

.dyt-plan__hint {
  margin: 0 0 0.9rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--dyt-muted);
}

.dyt-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  min-height: 3rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: #25d366;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
}

.dyt-wa:hover {
  background: #1ebe57;
  color: #fff !important;
}

.dyt-results-panel {
  padding: 1.2rem;
}

.dyt-results__meta {
  margin: -0.25rem 0 0.9rem;
  color: var(--dyt-muted);
  font-size: 0.9rem;
}

.dyt-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

/* Match site trip cards via shared .pumo-card styles */
.dyt-card.pumo-card {
  height: 100%;
  align-self: stretch;
}

.dyt-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none !important;
  color: inherit;
  min-height: 0;
}

.dyt-card .pumo-card-body {
  padding-bottom: 0.35rem !important;
}

.dyt-card .pumo-title {
  font-size: 1.05rem !important;
}

.dyt-empty {
  padding: 1.15rem;
  border-radius: 12px;
  border: 1px dashed var(--dyt-line);
  background: var(--dyt-cream);
  color: var(--dyt-muted);
  line-height: 1.45;
}

.dyt-hidden {
  display: none !important;
}

@keyframes dyt-in {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes dyt-pulse {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes dyt-flicker {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
  35% {
    opacity: 0.7;
    transform: scale(1.04);
  }
  60% {
    opacity: 0.5;
    transform: scale(0.98);
  }
}

@keyframes dyt-typing-dot {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes dyt-talk {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  35% {
    transform: translateY(-2px) scale(1.03);
  }
  70% {
    transform: translateY(1px) scale(0.99);
  }
}

@keyframes dyt-avatar-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes dyt-sticker-in {
  from {
    opacity: 0;
    transform: scale(0.55) translateY(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.dyt-bubble--typing {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 3.25rem;
  padding: 0.85rem 1rem;
}

.dyt-bubble--typing span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--dyt-green);
  animation: dyt-typing-dot 1s ease infinite;
}

.dyt-bubble--typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.dyt-bubble--typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@media (max-width: 640px) {
  .dyt-hero {
    padding: 1.75rem 1rem 1.35rem;
    text-align: left;
  }

  .dyt-hero h1 {
    font-size: clamp(1.65rem, 8vw, 2.15rem);
  }

  .dyt-hero p {
    font-size: 0.95rem;
    margin: 0;
    max-width: none;
  }

  .dyt-shell {
    width: min(760px, calc(100% - 1rem));
    margin: -0.75rem auto 1.5rem;
  }

  .dyt-campfire {
    border-radius: 14px;
  }

  .dyt-campfire__head {
    padding: 0.85rem 0.95rem 0.25rem;
    gap: 0.85rem;
  }

  .dyt-campfire__avatar {
    width: 7.5rem;
    height: 7.5rem;
    margin-bottom: -1.1rem;
  }

  .dyt-campfire__who strong {
    font-size: 1.05rem;
  }

  .dyt-thread {
    gap: 0.7rem;
    padding: 1.45rem 0.85rem 1rem;
    min-height: 0;
  }

  .dyt-bubble {
    padding: 0.75rem 0.85rem;
    font-size: 0.94rem;
    border-radius: 12px;
    /* Let long chip lists scroll inside the thread, not clip the prompt */
    max-width: 100%;
  }

  .dyt-msg {
    max-width: 100%;
  }

  .dyt-chips {
    gap: 0.4rem;
    margin-top: 0.65rem;
  }

  .dyt-page button.dyt-chip {
    padding: 0.48rem 0.78rem !important;
    font-size: 0.84rem !important;
  }

  .dyt-page button.dyt-reset {
    padding: 0.38rem 0.7rem !important;
    font-size: 0.78rem !important;
  }

  .dyt-prompt {
    margin: 0 0 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dyt-campfire__glow,
  .dyt-bubble--typing span,
  .dyt-campfire__avatar.is-talking .dyt-campfire__avatar-img,
  .dyt-campfire__avatar.is-pop,
  .dyt-kito-sticker.is-on {
    animation: none !important;
  }

  .dyt-msg,
  .dyt-reveal.is-visible,
  .dyt-page button.dyt-chip.is-selected {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .dyt-reveal {
    grid-template-columns: 1fr;
  }

  .dyt-plan {
    position: static;
  }
}

@media (max-width: 640px) {
  .dyt-cards {
    grid-template-columns: 1fr;
  }

  .dyt-reveal {
    margin-top: 1.25rem;
    padding: 0 0.15rem;
  }
}
