/* Split hero search box (left half), copied as-is from Snaphomz-frontend-prod/src/components/home-v2/hero.css
   so the demo's new hero landing looks like the real product. Loaded after hero-chat.css (home-v2.css order). */
/* ============================================================
           SPLIT HERO (existing)
           ============================================================ */
/* #deck only: .hv2 is reused as a plain styling class on the journey screen's chat panel too
   (public/app.js shell(): <div class="hv2 dm-chat">, inside #app, not #deck) — that usage must stay
   in normal flex flow (.dm-chat's own flex:1 is what sizes it there), so this fills-the-screen-and-
   scrolls behavior is scoped to #deck's own .hv2 (the title slide) and must not reach it. */
#deck > .hv2 {
  /* Fills #deck exactly (deck is position:relative, overflow:hidden) and scrolls internally, same as
     .slide, so the footer below the hero (real site: HomePage.tsx renders SiteFooter right after the
     hero section) is reachable by scrolling instead of being clipped by deck's own overflow:hidden. */
  position: absolute;
  inset: 0;
  overflow-y: auto;
}
.hv2 .hero-new {
  /* min-height (not a fixed height) so it still fills the screen on first view, but can grow past 100%
     without clipping if content ever needs more room than the viewport gives it. */
  min-height: 100%;
  display: grid;
  /* 60 / 40: search on the left, Snappy chat thread on the right. minmax(0, ...) stops wide cards from stretching a column. */
  grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
  background: #ffffff;
  color: var(--text-main);
  overflow: hidden;
}

.hv2 .hero-left {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0d0d0d;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 4rem 5rem;
  color: #ffffff;
}

.hv2 .hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hv2 .hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.42) 0%,
    rgba(0, 0, 0, 0.28) 45%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.hv2 .hero-left-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  max-width: 640px;
  min-width: 0;
}

.hv2 .hero-title-new {
  font-size: clamp(42px, 5.2vw, 72px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -2.4px;
  color: #ffffff;
  overflow-wrap: anywhere;
  text-shadow:
    0 2px 28px rgba(0, 0, 0, 0.65),
    0 1px 3px rgba(0, 0, 0, 0.45);
}

.hv2 .prompt-box {
  position: relative;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 20px;
  width: 100%;
  max-width: 100%;
  box-shadow: none;
  transition: border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #ffffff;
}
.hv2 .prompt-box:focus-within {
  border-color: rgba(255, 255, 255, 0.35);
}

.hv2 .prompt-box textarea {
  width: 100%;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 400;
  color: #ffffff;
  caret-color: var(--primary-green);
  outline: none;
  resize: vertical;
  min-height: 76px;
  max-height: 200px;
  line-height: 1.5;
  padding: 4px 0;
}
.hv2 .prompt-box textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.hv2 .vibe-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hv2 .vibe-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 11px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  box-shadow: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
  user-select: none;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1;
}
.hv2 .vibe-filter svg {
  width: 18px;
  height: 18px;
  color: currentColor;
  flex-shrink: 0;
  opacity: 0.85;
}

.hv2 .vibe-filter:hover {
  background: #262626;
  border-color: rgba(255, 255, 255, 0.26);
  color: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}
.hv2 .vibe-filter:active {
  transform: scale(0.96);
}

.hv2 .vibe-filter.active {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: #111111;
  font-weight: 600;
  box-shadow: none;
}
.hv2 .vibe-filter.active svg {
  opacity: 1;
}
.hv2 .vibe-filter.active:hover {
  background: var(--primary-green-hover);
  border-color: var(--primary-green-hover);
  color: #111111;
  transform: translateY(-2px);
}

/* "Pick up to 2" note under the pills: takes no space while empty */
.hv2 .vibe-cap-note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.68);
}
.hv2 .vibe-cap-note:empty {
  margin: 0;
}

/* Two pills already picked: the rest are dimmed and cannot be picked (MAX_PICKED_PILLS) */
.hv2 .vibe-filter:disabled,
.hv2 .vibe-filter:disabled:hover {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.68);
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.hv2 .vibe-filter .pill-check {
  display: none;
  width: 16px;
  height: 16px;
}
.hv2 .vibe-filter.active .pill-check {
  display: inline-block;
}

.hv2 .vibe-filter--extra {
  display: none;
}
.hv2 .vibe-filters.show-all .vibe-filter--extra {
  display: inline-flex;
}

.hv2 .pill-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1a1a1a;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  padding: 10px 15px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  box-shadow: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
  line-height: 1;
}
.hv2 .pill-toggle:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  background: #262626;
}
.hv2 .pill-toggle:active {
  transform: scale(0.96);
}
.hv2 .pill-toggle i {
  font-size: 13px;
  transition: transform 0.25s ease;
}
.hv2 .pill-toggle.is-open i {
  transform: rotate(180deg);
}

.hv2 .prompt-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hv2 .prompt-submit {
  background: var(--primary-green);
  border: none;
  height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.1px;
  cursor: pointer;
  box-shadow: none;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
  color: #111111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}
.hv2 .prompt-submit i {
  font-size: 16px;
  color: #111111;
  transition: transform 0.25s ease;
}
.hv2 .prompt-submit:disabled {
  opacity: 0.7;
  cursor: progress;
}
.hv2 .prompt-submit:hover {
  background: var(--primary-green-hover);
  transform: scale(1.04);
  color: #111111;
}
.hv2 .prompt-submit:hover i {
  transform: translateX(2px);
}
.hv2 .prompt-submit:active {
  transform: scale(0.97);
}


/* Search box while the original landing chat (LandingAIChat) runs a typed search inside it. The box keeps its
   dark theme: the chat is written with light Tailwind colours, so they are remapped to the dark palette here. */
.hv2 .prompt-box--live {
  padding: 0;
  gap: 0;
  max-height: min(72vh, 640px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.hv2 .prompt-box--live .bg-white { background-color: transparent !important; }
.hv2 .prompt-box--live .bg-gray-50,
.hv2 .prompt-box--live .bg-gray-100,
.hv2 .prompt-box--live .bg-\[\#F7F8FF\] { background-color: rgba(255, 255, 255, 0.07) !important; }
.hv2 .prompt-box--live .bg-gray-200 { background-color: rgba(255, 255, 255, 0.14) !important; }
.hv2 .prompt-box--live .bg-\[\#F7FBE0\] { background-color: rgba(220, 247, 99, 0.12) !important; }
/* MarkdownMessage tip/insight callouts (blockquote). Their text is remapped to white below, so the light tint
   must go dark too or the callout reads as an empty pale box. */
.hv2 .prompt-box--live .bg-\[\#FFF8F2\] { background-color: rgba(232, 128, 76, 0.12) !important; }
.hv2 .prompt-box--live .bg-\[\#EEF1FB\] { background-color: rgba(220, 247, 99, 0.1) !important; }
.hv2 .prompt-box--live .bg-black { background-color: rgba(255, 255, 255, 0.16) !important; }
.hv2 .prompt-box--live .text-black,
.hv2 .prompt-box--live .text-gray-900,
.hv2 .prompt-box--live .text-gray-800,
.hv2 .prompt-box--live .text-gray-700 { color: #ffffff !important; }
.hv2 .prompt-box--live .text-gray-600,
.hv2 .prompt-box--live .text-gray-500,
.hv2 .prompt-box--live .text-\[\#435055\],
.hv2 .prompt-box--live .text-\[\#6B7280\] { color: rgba(255, 255, 255, 0.72) !important; }
.hv2 .prompt-box--live .text-gray-400,
.hv2 .prompt-box--live .text-gray-300 { color: rgba(255, 255, 255, 0.5) !important; }
.hv2 .prompt-box--live .text-\[\#4861C3\] { color: #dcf763 !important; }
.hv2 .prompt-box--live .border-gray-50,
.hv2 .prompt-box--live .border-gray-100,
.hv2 .prompt-box--live .border-gray-200,
.hv2 .prompt-box--live .border-gray-300 { border-color: rgba(255, 255, 255, 0.14) !important; }
/* Hover states too: the light hover tints (History / New search, list rows) showed as pale blocks behind white text. */
.hv2 .prompt-box--live .hover\:bg-gray-50:hover,
.hv2 .prompt-box--live .hover\:bg-gray-100:hover,
.hv2 .prompt-box--live .hover\:bg-\[\#F7F8FF\]:hover,
.hv2 .prompt-box--live .hover\:bg-\[\#f2ebe2\]:hover { background-color: rgba(255, 255, 255, 0.1) !important; }
.hv2 .prompt-box--live .hover\:bg-gray-200:hover { background-color: rgba(255, 255, 255, 0.16) !important; }
.hv2 .prompt-box--live .hover\:bg-\[\#F7FBE0\]:hover,
.hv2 .prompt-box--live .hover\:bg-\[\#EFF7C2\]:hover { background-color: rgba(220, 247, 99, 0.16) !important; }
.hv2 .prompt-box--live .hover\:text-black:hover,
.hv2 .prompt-box--live .hover\:text-gray-900:hover,
.hv2 .prompt-box--live .hover\:text-gray-800:hover { color: #ffffff !important; }
.hv2 .prompt-box--live .hover\:text-black\/70:hover,
.hv2 .prompt-box--live .hover\:text-gray-600:hover,
.hv2 .prompt-box--live .hover\:text-\[\#435055\]:hover { color: rgba(255, 255, 255, 0.85) !important; }
.hv2 .prompt-box--live .hover\:text-\[\#3C51A4\]:hover { color: #dcf763 !important; }
.hv2 .prompt-box--live .hover\:border-gray-300:hover { border-color: rgba(255, 255, 255, 0.24) !important; }
/* Shown in the live box while the landing chat's code is still downloading, so the box never collapses empty. */
.hv2 .hero-chat-loading {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 160px;
  padding: 20px;
}
.hv2 .hero-chat-loading-query {
  align-self: flex-end;
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px 16px 4px 16px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 14.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.hv2 .hero-chat-loading-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.hv2 .hero-chat-dots {
  display: inline-flex;
  gap: 4px;
}
.hv2 .hero-chat-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-green);
  animation: hero-chat-dot 1.2s ease-in-out infinite;
}
.hv2 .hero-chat-dots i:nth-child(2) { animation-delay: 0.15s; }
.hv2 .hero-chat-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes hero-chat-dot {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .hv2 .hero-chat-dots i { animation: none; opacity: 0.8; }
}
/* The box's own textarea sizing (min-height) must not stretch the chat's input. */
.hv2 .prompt-box--live textarea { min-height: 0; padding: 0; }

/* City suggestions under the search box text (same list the old landing chat showed while typing a place). */
.hv2 .prompt-input-wrap {
  position: relative;
}
.hv2 .loc-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 30;
  margin: 6px 0 0;
  padding: 4px;
  list-style: none;
  background: #0b0b0b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.hv2 .loc-suggest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.hv2 .loc-suggest-item i {
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}
.hv2 .loc-suggest-item:hover,
.hv2 .loc-suggest-item.active {
  background: rgba(220, 247, 99, 0.14);
}

/* A pill whose feature the typed text already mentions (e.g. "pool"): outlined hint, not selected. */
.hv2 .vibe-filter.detected {
  border-color: var(--primary-green);
  color: var(--primary-green);
  box-shadow: 0 0 0 1px var(--primary-green);
}

/* Typed example searches in the empty box (the real textarea placeholder is left empty). */
.hv2 .typed-placeholder {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding: 4px 0;
  font-size: 15.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  overflow: hidden;
}
.hv2 .typed-cursor {
  display: inline-block;
  width: 1.5px;
  height: 0.95em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: rgba(255, 255, 255, 0.6);
  animation: typed-cursor-blink 1s steps(2, start) infinite;
}
@keyframes typed-cursor-blink {
  to {
    visibility: hidden;
  }
}

/* Left slot of the actions row (currently empty; keeps Find now on the right). */
.hv2 .prompt-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

/* First AI search wallet reward: a lime ribbon hanging on the box's top edge, a glowing border,
   and a pulse on Ask Snappy. Motion stops for reduced-motion visitors. */
/* Double class so responsive.css (loaded later, resets .prompt-box padding) cannot drop the ribbon room. */
.hv2 .prompt-box.prompt-box--reward {
  border-color: rgba(220, 247, 99, 0.45);
  padding-top: 30px;
  animation: reward-glow 2.8s ease-in-out infinite;
}
.hv2 .prompt-box--reward:focus-within {
  border-color: var(--primary-green);
}
@keyframes reward-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 247, 99, 0); }
  50% { box-shadow: 0 0 28px 2px rgba(220, 247, 99, 0.28); }
}

.hv2 .reward-ribbon {
  position: absolute;
  top: -16px;
  left: 20px;
  right: 20px;
  width: fit-content;
  max-width: calc(100% - 40px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--primary-green);
  color: #111111;
  font-size: 13px;
  line-height: 1.2;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(220, 247, 99, 0.35);
  z-index: 3;
}
/* Light sweep across the ribbon. */
.hv2 .reward-ribbon::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-20deg);
  animation: reward-shine 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes reward-shine {
  0%, 55% { left: -60%; }
  100% { left: 130%; }
}
.hv2 .reward-ribbon i {
  font-size: 18px;
  flex-shrink: 0;
  animation: reward-wiggle 3.2s ease-in-out infinite;
}
@keyframes reward-wiggle {
  0%, 70%, 100% { transform: rotate(0); }
  75% { transform: rotate(-14deg) scale(1.15); }
  80% { transform: rotate(12deg) scale(1.15); }
  85% { transform: rotate(-8deg); }
  90% { transform: rotate(0); }
}
.hv2 .reward-ribbon-amount {
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.hv2 .reward-ribbon-text {
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hv2 .prompt-submit--reward {
  position: relative;
  box-shadow: 0 0 0 0 rgba(220, 247, 99, 0.5);
  animation: reward-pulse 2.4s ease-out infinite;
}
@keyframes reward-pulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 247, 99, 0.55); }
  70%, 100% { box-shadow: 0 0 0 12px rgba(220, 247, 99, 0); }
}

@media (max-width: 560px) {
  .hv2 .reward-ribbon {
    font-size: 12px;
    gap: 6px;
    padding: 6px 12px 6px 9px;
  }
  .hv2 .reward-ribbon i {
    font-size: 16px;
  }
  .hv2 .reward-ribbon-extra {
    display: none;
  }
}
/* Very small phones: shorter ribbon offset so it stays inside the box. */
@media (max-width: 360px) {
  .hv2 .reward-ribbon {
    left: 12px;
    max-width: calc(100% - 24px);
    font-size: 11.5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hv2 .prompt-box--reward,
  .hv2 .reward-ribbon::after,
  .hv2 .reward-ribbon i,
  .hv2 .prompt-submit--reward {
    animation: none;
  }
}

/* Address rows: the address takes the width, the MLS status tag (For sale / Sold / Off Market) sits at the right. */
.hv2 .loc-suggest-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The MLS status tags are drawn with light colours: darken them to fit the dropdown. */
.hv2 .loc-suggest .bg-green-50 { background-color: rgba(34, 197, 94, 0.16) !important; border-color: rgba(34, 197, 94, 0.35) !important; }
.hv2 .loc-suggest .text-green-700 { color: #4ade80 !important; }
.hv2 .loc-suggest .bg-amber-50 { background-color: rgba(245, 158, 11, 0.16) !important; border-color: rgba(245, 158, 11, 0.35) !important; }
.hv2 .loc-suggest .text-amber-700 { color: #fbbf24 !important; }
.hv2 .loc-suggest .bg-gray-100,
.hv2 .loc-suggest .bg-gray-50 { background-color: rgba(255, 255, 255, 0.08) !important; border-color: rgba(255, 255, 255, 0.18) !important; }
.hv2 .loc-suggest .text-gray-500,
.hv2 .loc-suggest .text-gray-400 { color: rgba(255, 255, 255, 0.6) !important; }

/* Demo-only: hero-chat.css's hero-right padding (7rem top) clears the real site's own fixed navbar, which
   overlays its hero. Our navbar isn't an overlay — it already takes its own row above the hero — so that
   same 7rem just pushed the floating chat card down unevenly (114px of gap above it, 50px below). */
.hv2 .hero-right {
  padding-top: 3rem;
}

