/* Homepage only (index). Visual polish; no behavior. Loaded after style.css. */

body.home-page{
  font-family: var(--font-ui, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

body.home-page::before{
  background:
    radial-gradient(1200px 720px at 50% -12%, rgba(var(--accent), .26), transparent 58%),
    radial-gradient(720px 520px at 0% 42%, rgba(var(--accent-cool), .16), transparent 52%),
    radial-gradient(640px 480px at 100% 58%, rgba(var(--accent-warm), .09), transparent 50%),
    radial-gradient(1180px 760px at 12% 0%, rgba(var(--accent), .18), transparent 58%),
    radial-gradient(920px 620px at 90% 5%, rgba(var(--accent-cool), .12), transparent 52%),
    radial-gradient(880px 520px at 55% 110%, rgba(var(--accent-warm), .10), transparent 54%) !important;
}

body.home-page .topbar{
  background: rgba(6, 10, 22, 0.80) !important;
  border-bottom-color: rgba(148, 163, 255, 0.14) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  box-shadow: 0 1px 0 rgba(148, 163, 255, 0.08), 0 8px 32px rgba(0, 0, 0, 0.2) !important;
}

@media (max-width: 760px){
  body.home-page .topbar::before{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: env(safe-area-inset-top, 0px);
    background: #030b1f;
    pointer-events: none;
  }
}

body.home-page .brand{
  padding: 11px 16px !important;
  gap: 10px !important;
  align-items: center !important;
}

body.home-page .brand-link{
  gap: 10px !important;
}

body.home-page .brand-skai{ color: #0f172a; }
body.home-page .brand-rova{ color: #4f46e5; }

body.home-page .brand-sub{
  color: rgba(186, 204, 226, .5) !important;
  font-size: .72rem !important;
  font-weight: 540 !important;
  letter-spacing: .02em !important;
  margin-top: 1px !important;
}

html[data-theme="light"] body.home-page .theme-switch-thumb{
  transform: translateX(18px) !important;
}

body.home-page .topbar-utility{
  gap: 8px !important;
  align-items: center !important;
}

body.home-page .topbar-utility .topbar-links{
  gap: 8px !important;
  align-items: center !important;
}

body.home-page .topbar-link{
  height: 32px !important;
  padding: 0 12px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(166, 188, 218, .18) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01)) !important;
  color: rgba(212, 226, 242, .88) !important;
  font-size: .82rem !important;
  font-weight: 640 !important;
  letter-spacing: .005em !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 1px 2px rgba(2, 8, 16, .22) !important;
  transition:
    transform .2s ease,
    border-color .2s ease,
    color .2s ease,
    background .2s ease,
    box-shadow .2s ease !important;
}

body.home-page .topbar-link:hover{
  transform: translateY(-1px);
  border-color: rgba(178, 206, 244, .3) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    0 0 0 1px rgba(126, 164, 240, .12),
    0 6px 16px rgba(18, 40, 78, .2) !important;
}

body.home-page .topbar-link:active{
  transform: translateY(0) scale(.985);
}

body.home-page .topbar-link--active{
  border-color: rgba(170, 206, 255, .38) !important;
  background:
    linear-gradient(180deg, rgba(140, 174, 255, .22), rgba(102, 130, 208, .12)),
    rgba(27, 41, 72, .7) !important;
  color: rgba(246, 250, 255, .98) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .2),
    inset 0 -1px 0 rgba(6, 18, 34, .4),
    0 8px 20px rgba(18, 38, 76, .35) !important;
}

body.home-page .topbar-link--portal{
  gap: 9px !important;
  padding: 0 11px !important;
  border-color: rgba(148, 170, 198, .15) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)) !important;
  color: rgba(188, 206, 226, .78) !important;
}

body.home-page .topbar-portal-avatar{
  width: 17px !important;
  height: 17px !important;
  font-size: .6rem !important;
  font-weight: 620 !important;
  line-height: 1 !important;
  border-color: rgba(168, 194, 232, .22) !important;
  background: rgba(var(--accent), .13) !important;
  color: rgba(224, 235, 248, .86) !important;
  margin-top: -1px !important;
}

body.home-page .topbar-portal-label{
  font-weight: 630 !important;
  letter-spacing: .006em !important;
}

body.home-page .theme-toggle-slot{
  gap: 6px !important;
  margin-left: 0 !important;
}

body.home-page .theme-toggle-label{
  display: none !important;
}

body.home-page .theme-switch{
  width: 46px !important;
  height: 28px !important;
}

body.home-page .theme-switch-track{
  border-radius: 12px !important;
  border-color: rgba(164, 186, 220, .2) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 1px 3px rgba(2, 8, 16, .2) !important;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease !important;
}

body.home-page .theme-switch-thumb{
  top: 3px !important;
  left: 3px !important;
  width: 20px !important;
  height: 20px !important;
  border-color: rgba(195, 216, 244, .34) !important;
  background: linear-gradient(180deg, rgba(234, 242, 252, .82), rgba(182, 202, 232, .44)) !important;
  box-shadow: 0 3px 10px rgba(4, 12, 24, .32) !important;
  transition: transform .22s cubic-bezier(.2, .85, .2, 1), box-shadow .2s ease !important;
}

body.home-page .theme-switch-icons{
  padding: 0 7px !important;
}

body.home-page .theme-switch-icon{
  color: rgba(208, 222, 240, .44) !important;
}

body.home-page .theme-switch-icon--dark{
  opacity: .85 !important;
  color: rgba(230, 240, 252, .62) !important;
}

body.home-page .theme-switch-icon--light{
  opacity: .34 !important;
}

body.home-page .theme-switch-icon svg{
  width: 12px !important;
  height: 12px !important;
  stroke-width: 1.8 !important;
}

body.home-page .theme-switch:hover .theme-switch-track{
  border-color: rgba(184, 210, 248, .28) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    0 0 0 1px rgba(126, 164, 240, .1),
    0 6px 14px rgba(18, 40, 78, .22) !important;
}

body.home-page .theme-switch:hover .theme-switch-thumb{
  box-shadow: 0 4px 12px rgba(4, 12, 24, .36) !important;
}

body.home-page .wrap{
  padding-top: 32px;
  padding-bottom: 56px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.home-page main.wrap::before,
body.home-page main.wrap::after,
body.home-page .wrap::before,
body.home-page .wrap::after{
  content: none !important;
  display: none !important;
}

body.home-page .hero{
  padding: 16px 2px 20px;
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

body.home-page .hero-with-art{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 34vw);
  align-items: center;
  gap: clamp(22px, 4vw, 64px);
}

body.home-page .hero-copy-block{
  max-width: 46rem;
  min-width: 0;
}

body.home-page .hero-art{
  --hero-art-shadow: 0 24px 46px rgba(5, 12, 28, .34);
  --hero-art-filter: brightness(1.14) saturate(1.08) contrast(.96);
  display: grid;
  place-items: center;
  justify-self: end;
  width: min(34vw, 390px);
  min-width: 240px;
  aspect-ratio: 1.35;
  pointer-events: none;
  opacity: .96;
  filter: drop-shadow(var(--hero-art-shadow));
  transition: opacity .22s ease, filter .22s ease;
}

body.home-page .hero-art-img{
  display: block;
  width: 100%;
  height: auto;
  max-height: 290px;
  object-fit: contain;
  filter: var(--hero-art-filter);
  transition: filter .22s ease;
}

@media (max-width: 900px){
  body.home-page .hero-with-art{
    grid-template-columns: minmax(0, 1fr) minmax(190px, 28vw);
    gap: 22px;
  }

  body.home-page .hero-art{
    width: min(28vw, 260px);
    min-width: 190px;
  }
}

@media (max-width: 760px){
  body.home-page .hero-with-art{
    display: block;
    max-width: 46rem;
  }

  body.home-page .hero-art{
    display: none;
  }
}

body.home-page .hero .hero-title{
  margin: 0 0 14px;
  font-family: var(--font-display, "Space Grotesk", "Inter", sans-serif) !important;
  font-size: clamp(2.15rem, 4vw + 1rem, 3.45rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.045em !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  text-shadow: 0 14px 40px rgba(2, 10, 18, .25) !important;
}

body.home-page .hero .hero-title{
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: none !important;
}

body.home-page .hero-accent{
  font-weight: 600 !important;
  background: linear-gradient(95deg, #5B8BFF 0%, #7C5FFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  display: inline;
}

body.home-page .hero-copy{
  font-family: var(--font-ui, "Inter", sans-serif);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.58;
  max-width: 38em;
  color: rgba(214, 228, 240, .9) !important;
}

/* AI + manual: centered pill below AI opens full manual */
body.home-page .home-search-stack{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 1100px;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
  gap: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.home-page .home-search-stack::before,
body.home-page .home-search-stack::after,
body.home-page .home-search-stack .ai-wrap::before,
body.home-page .home-search-stack .ai-wrap::after,
body.home-page .home-search-stack .manual-search-v2.is-collapsed::before,
body.home-page .home-search-stack .manual-search-v2.is-collapsed::after{
  content: none !important;
  display: none !important;
}

body.home-page .home-search-stack .ai-wrap{
  margin-bottom: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.home-page .home-search-stack:has(.manual-search-v2:not(.is-collapsed)){
  gap: clamp(18px, 2.4vw, 30px);
  margin-bottom: clamp(48px, 6vw, 76px);
}

body.home-page .home-search-stack .manual-search-v2{
  margin-top: 0 !important;
}

body.home-page .home-search-stack .manual-search-v2.is-collapsed{
  align-self: stretch;
  width: 100% !important;
  max-width: none !important;
  margin-top: 0;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  isolation: isolate;
}

body.home-page .home-search-stack .manual-search-v2.is-collapsed .ms2-peek-home-pill{
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  max-height: none !important;
  gap: 0 !important;
  grid-template-columns: unset !important;
  overflow: visible !important;
  padding: 0 0 10px !important;
  margin: 0 !important;
}

body.home-page .search-mode-label{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  width: min(calc(100% - 24px), 980px);
  margin: 0 auto 10px;
  padding: 0 12px;
  color: rgba(214, 228, 240, .88);
}

body.home-page .search-mode-kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(245, 249, 255, .96);
}

body.home-page .search-mode-kicker::before{
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgb(91, 139, 255);
  box-shadow: 0 0 0 4px rgba(91, 139, 255, .14);
}

body.home-page .search-mode-label--manual .search-mode-kicker::before{
  background: rgb(56, 189, 248);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, .13);
}

body.home-page .search-mode-copy{
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(174, 194, 216, .76);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.home-page .home-mode-divider{
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(100%, 900px);
  margin: clamp(22px, 3vw, 34px) auto clamp(20px, 2.6vw, 30px);
  color: rgba(190, 208, 232, .7);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.home-page .home-mode-divider::before,
body.home-page .home-mode-divider::after{
  content: "";
  flex: 1;
  height: 1px;
  background:
    linear-gradient(90deg, transparent, rgba(142, 169, 210, .34) 18%, rgba(142, 169, 210, .46) 50%, rgba(142, 169, 210, .34) 82%, transparent);
}

body.home-page .home-mode-divider span{
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(168, 194, 232, .18);
  background: rgba(10, 18, 32, .88);
  box-shadow:
    0 8px 24px rgba(2, 8, 18, .28),
    inset 0 1px 0 rgba(255, 255, 255, .06);
}

body.home-page .manual-open-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 12px 24px;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(200, 222, 238, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    rgba(14, 24, 38, 0.78);
  color: rgb(251, 252, 253);
  font-family: var(--font-ui, "Inter", sans-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow:
    0 10px 30px rgba(1, 10, 18, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
}

body.home-page .manual-open-pill:hover{
  border-color: rgba(var(--accent), 0.38) !important;
  background:
    linear-gradient(180deg, rgba(var(--accent), 0.14), rgba(255, 255, 255, 0.06)),
    rgba(16, 28, 42, 0.88) !important;
  box-shadow:
    0 12px 36px rgba(1, 10, 18, 0.42),
    0 0 0 1px rgba(var(--accent), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  /* style.css .ms2-peek-open:hover uses translateY(-1px); clips top under .ms2-peek overflow */
  transform: none !important;
}

body.home-page .manual-open-pill.ms2-peek-open{
  width: auto !important;
  height: auto !important;
}

body.home-page .manual-open-pill:focus-visible{
  outline: 2px solid rgba(var(--accent), 0.65);
  outline-offset: -2px;
}

body.home-page .manual-open-pill-chevron{
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-top: 2px;
  border-right: 2px solid rgba(236, 244, 252, 0.88);
  border-bottom: 2px solid rgba(236, 244, 252, 0.88);
  transform: rotate(45deg);
}

body.home-page .home-search-stack .manual-search-v2:not(.is-collapsed){
  align-self: stretch;
  width: min(100%, 980px) !important;
  max-width: 980px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.home-page .home-search-stack .manual-search-v2:not(.is-collapsed)::before,
body.home-page .home-search-stack .manual-search-v2:not(.is-collapsed)::after{
  content: none !important;
  display: none !important;
}

body.home-page .ai-card{
  position: relative;
  isolation: isolate;
  overflow: visible !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body.home-page .ai-card::before,
body.home-page .ai-card::after{
  content: none !important;
  display: none !important;
}

body.home-page .ai-card > .ai-card-accent{
  position: absolute;
  inset: -1px;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(125deg, transparent 42%, rgba(var(--accent), .05) 52%, transparent 62%),
    radial-gradient(ellipse 90% 55% at 100% 0%, rgba(var(--accent-cool), .10), transparent 55%);
  opacity: 0.78;
}

body.home-page .ai-card > *:not(.ai-card-accent){
  position: relative;
  z-index: 1;
}

body.home-page .ai-eyebrow{
  border-color: rgba(255, 255, 255, .14) !important;
  background: linear-gradient(135deg, rgba(var(--accent), .28), rgba(var(--accent-cool), .18)) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .06) inset,
    0 8px 28px rgba(var(--accent), .15);
  color: #f2fbff !important;
}

body.home-page .ai-lede{
  margin-top: 12px !important;
  font-size: 1.02rem !important;
  line-height: 1.62 !important;
  color: rgba(222, 234, 244, .92) !important;
  max-width: 40em;
}

@media (max-width: 760px){
  body.home-page .brand{
    padding: 10px 14px !important;
  }

  body.home-page .brand-link{
    gap: 8px !important;
  }

  body.home-page .logo{
    width: 34px !important;
    height: 34px !important;
  }

  body.home-page .topbar-utility{
    gap: 6px !important;
  }

  body.home-page .topbar-utility .topbar-links{
    gap: 6px !important;
  }

  body.home-page .topbar-link{
    height: 30px !important;
    padding: 0 10px !important;
    border-radius: 11px !important;
    font-size: .78rem !important;
  }

  body.home-page .topbar-link--portal{
    padding: 0 9px !important;
  }

  body.home-page .theme-switch{
    width: 42px !important;
    height: 26px !important;
  }

  body.home-page .theme-switch-thumb{
    width: 18px !important;
    height: 18px !important;
  }

}

/*
 * Gradient "flow" ring: paint on the wrapper (padding = ring thickness) and
 * animate background-position. Avoids rotating a full-size ::before + mask,
 * which often breaks and looks like diagonal bands across the whole card.
 */
body.home-page .ai-input-ring{
  position: relative;
  display: block;
  box-sizing: border-box;
  padding: 1.5px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(79, 131, 255, 0.45) 0%, rgba(123, 97, 255, 0.45) 100%);
}

body.home-page .ai-prompt-shell:focus-within .ai-input-ring{
  background: linear-gradient(135deg, rgba(79, 131, 255, 0.7) 0%, rgba(123, 97, 255, 0.7) 100%);
}

body.home-page .ai-input-wrap{
  position: relative;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto;
  align-items: center !important;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px !important;
  border-radius: 32.5px;
  background: rgba(11, 17, 32, 0.97);
  min-height: 64px !important;
  height: auto !important;
  gap: 6px 8px;
}

body.home-page .ai-input-wrap .ai-input{
  grid-column: 2;
  grid-row: 1;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 0 4px !important;
  align-self: center !important;
}

body.home-page .ai-input-wrap.is-multiline{
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: end !important;
  padding: 14px 14px 10px !important;
  border-radius: 30px;
}

body.home-page .ai-input-wrap.is-multiline .ai-input{
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: stretch !important;
  min-height: 48px !important;
  padding: 0 4px 2px !important;
}

body.home-page .ai-input-wrap.is-multiline .ai-input-magic-btn{
  grid-column: 1;
  grid-row: 2;
}

body.home-page .ai-input-wrap.is-multiline .ai-input-toolbar{
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
}

body.home-page .ai-input-toolbar{
  position: static !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  flex-shrink: 0;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  z-index: auto;
}

body.home-page .ai-input-icon-btn{
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(236, 244, 252, 0.88);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

body.home-page .ai-input-icon-btn:disabled{
  opacity: 0.6;
  cursor: default;
}

body.home-page .ai-input-icon-svg{
  display: block;
  width: 18px;
  height: 18px;
}

body.home-page .ai-input-ring textarea.ai-input{
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  /* Override style.css: textarea.ai-input { min-height:74px !important; height:74px; padding:16px 18px !important } */
  height: auto !important;
  min-height: 24px !important;
  max-height: 120px !important;
  padding: 0 4px !important;
  white-space: pre-wrap !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border-radius: 0 !important;
  border: none !important;
  background: transparent !important;
  font-family: var(--font-ui, "Inter", sans-serif) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  box-shadow: none !important;
  resize: none !important;
}

body.home-page .ai-input-ring textarea.ai-input:hover{
  border-color: transparent !important;
}

body.home-page .ai-input-ring textarea.ai-input:focus{
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

body.home-page .ai-placeholder-overlay{
  position: absolute;
  top: 50%;
  left: 68px;
  right: 110px;
  transform: translateY(-50%);
  bottom: auto;
  display: flex;
  align-items: center;
  pointer-events: none;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(180, 196, 214, 0.48);
  transition: opacity 0.4s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0;
  z-index: 1;
}

body.home-page .ai-input-wrap:not(.is-multiline) .ai-placeholder-overlay{
  top: 50% !important;
  transform: translateY(-50%) !important;
}

/* Voice active (recording) state */
body.home-page .ai-input-icon-btn.voice-active{
  background: rgba(239, 68, 68, 0.25) !important;
  color: #ef4444 !important;
  animation: voicePulse 1.2s ease-in-out infinite;
  opacity: 1 !important;
}
@keyframes voicePulse{
  0%, 100%{ box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.35); }
  50%{ box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

/* Enabled button hover states */
body.home-page .ai-input-icon-btn:not(:disabled):hover{
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
body.home-page .ai-input-icon-btn:not(:disabled){
  opacity: 1;
  cursor: pointer;
}

/* Quick-start chips */
body.home-page .ai-suggest-chips{
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 2px 0 6px;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

body.home-page .ai-suggest-chips::-webkit-scrollbar{
  display: none;
}

@keyframes chip-rise{
  from{ opacity: 0; transform: translateY(7px); }
  to{ opacity: 1; transform: translateY(0); }
}

body.home-page .ai-suggest-chip{
  --chip-rgb: 120, 130, 200;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 34px;
  margin: 0;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(var(--chip-rgb), 0.28) !important;
  background: rgba(var(--chip-rgb), 0.09) !important;
  color: rgba(210, 224, 242, 0.88) !important;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(var(--chip-rgb), 0.10);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  animation: chip-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Per-chip accent colors + staggered entrance */
body.home-page .ai-suggest-chips .ai-suggest-chip:nth-child(1){ --chip-rgb: 99, 102, 241; animation-delay: 0.05s; }
body.home-page .ai-suggest-chips .ai-suggest-chip:nth-child(2){ --chip-rgb: 251, 146, 60;  animation-delay: 0.12s; }
body.home-page .ai-suggest-chips .ai-suggest-chip:nth-child(3){ --chip-rgb: 167, 139, 250; animation-delay: 0.19s; }
body.home-page .ai-suggest-chips .ai-suggest-chip:nth-child(4){ --chip-rgb: 52, 211, 153;  animation-delay: 0.26s; }
body.home-page .ai-suggest-chips .ai-suggest-chip:nth-child(5){ --chip-rgb: 56, 189, 248;  animation-delay: 0.33s; }

@media (max-width: 760px){
  body.home-page .ai-suggest-chips{
    justify-content: flex-start;
    padding: 2px 0 6px;
    gap: 8px;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 4px;
    mask-image: linear-gradient(to right, black calc(100% - 28px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 28px), transparent 100%);
  }

  body.home-page .ai-suggest-chips::after{
    content: "";
    flex: 0 0 20px;
    height: 1px;
  }

  body.home-page .ai-suggest-chip{
    scroll-snap-align: start;
    padding: 5px 14px;
    min-height: 32px;
    border-color: rgba(var(--chip-rgb), 0.24) !important;
    background: rgba(var(--chip-rgb), 0.08) !important;
    color: rgba(200, 218, 236, 0.82) !important;
  }

  body.home-page .ai-suggest-chip:hover,
  body.home-page .ai-suggest-chip:active{
    background: rgba(var(--chip-rgb), 0.15) !important;
    border-color: rgba(var(--chip-rgb), 0.40) !important;
    color: rgba(230, 242, 255, 0.95) !important;
  }
}

body.home-page .ai-suggest-chip::before{
  display: none !important;
}

body.home-page .ai-suggest-chip-title{
  font-size: 13px !important;
  font-family: var(--font-ui, "Inter", sans-serif);
  font-weight: 600;
  letter-spacing: .005em;
  white-space: nowrap;
  line-height: 1.3;
}

@media (max-width: 760px){
  body.home-page .ai-suggest-chip-title{
    font-size: 12px !important;
  }
}

body.home-page .ai-suggest-chip-hint{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.home-page .ai-suggest-chip:hover{
  background: rgba(var(--chip-rgb), 0.16) !important;
  border-color: rgba(var(--chip-rgb), 0.44) !important;
  color: rgba(232, 242, 255, 0.96) !important;
  box-shadow: 0 4px 20px rgba(var(--chip-rgb), 0.24), 0 1px 4px rgba(0,0,0,0.14);
  transform: translateY(-2px);
}

body.home-page .ai-suggest-chip:active{
  background: rgba(var(--chip-rgb), 0.20) !important;
  border-color: rgba(var(--chip-rgb), 0.52) !important;
  color: rgba(240, 248, 255, 1) !important;
  box-shadow: 0 2px 8px rgba(var(--chip-rgb), 0.16);
  transform: translateY(0) scale(0.97);
}

body.home-page .ai-suggest-chip:focus-visible{
  outline: 2px solid rgba(var(--chip-rgb), 0.5);
  outline-offset: 2px;
}

body.home-page .ai-submit-note{
  color: rgba(200, 218, 232, .82) !important;
}

body.home-page .ai-submit-btn.btn.primary{
  min-height: 52px !important;
  padding: 0 24px !important;
  font-size: 15px !important;
  font-weight: 740 !important;
  letter-spacing: .015em !important;
  border-radius: 16px !important;
  box-shadow:
    0 10px 32px rgba(var(--accent), .32),
    inset 0 1px 0 rgba(255, 255, 255, .22) !important;
}

body.home-page .ai-submit-btn.btn.primary:hover{
  box-shadow:
    0 14px 40px rgba(var(--accent), .4),
    inset 0 1px 0 rgba(255, 255, 255, .26) !important;
}

/* Manual expanded header: smaller than global ms2 so it does not compete with the AI hero */
body.home-page .manual-search-v2 .ms2-copy h2{
  font-size: clamp(1.5rem, 2.75vw, 2.15rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.03em !important;
  font-weight: 710 !important;
  color: rgb(251, 252, 253) !important;
}

/* Chip icon */
body.home-page .ai-suggest-chip{
  gap: 7px !important;
}

body.home-page .ai-suggest-chip-icon{
  display: block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: rgba(var(--chip-rgb), 1) !important;
  opacity: 1;
}

body.home-page .svg-mask-icon{
  display: inline-block;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

body.home-page .svg-mask-icon--takeoff{
  -webkit-mask-image: url("/static/icons/takeoff-svgrepo-com.svg");
  mask-image: url("/static/icons/takeoff-svgrepo-com.svg");
}

body.home-page .svg-mask-icon--landing{
  -webkit-mask-image: url("/static/icons/landing-svgrepo-com.svg");
  mask-image: url("/static/icons/landing-svgrepo-com.svg");
}

body.home-page .svg-mask-icon--direct{
  -webkit-mask-image: url("/static/icons/direct.svg");
  mask-image: url("/static/icons/direct.svg");
}

body.home-page .svg-mask-icon--roundtrip{
  -webkit-mask-image: url("/static/icons/roundtrip.svg");
  mask-image: url("/static/icons/roundtrip.svg");
}

body.home-page .gf-seg-icon.svg-mask-icon{
  width: 19px !important;
  height: 19px !important;
  flex-basis: 19px !important;
}

body.home-page .ms2-label-icon.svg-mask-icon,
body.home-page .gf-check-icon.svg-mask-icon{
  width: 18px !important;
  height: 18px !important;
}

body.home-page .ai-suggest-chip-icon.svg-mask-icon--roundtrip,
body.home-page .ai-suggest-chip-icon.svg-mask-icon--direct{
  width: 15px !important;
  height: 15px !important;
}

/* Manual search pill: replace chevron with arrow SVG */
body.home-page .manual-open-pill-chevron{
  display: none !important;
}

body.home-page .manual-open-pill-arrow{
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}

/* OR divider */
body.home-page .home-or-divider{
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 280px;
  margin: 0 auto 14px;
  color: rgba(180, 196, 214, 0.35);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.home-page .home-or-divider::before,
body.home-page .home-or-divider::after{
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(180, 196, 214, 0.12);
}

/* Trust stats */
body.home-page .home-trust-stats{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 32px;
  padding: 36px 0 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 36px;
}

body.home-page .home-trust-item{
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
}

body.home-page .home-trust-icon{
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(79, 126, 255, 0.1);
  border: 1px solid rgba(79, 126, 255, 0.18);
  color: rgba(99, 148, 255, 0.9);
}

body.home-page .home-trust-icon svg{
  width: 20px;
  height: 20px;
}

body.home-page .home-trust-body{
  min-width: 0;
}

body.home-page .home-trust-title{
  margin: 0 0 4px;
  font-size: 0.88rem;
  font-family: var(--font-ui, "Inter", sans-serif);
  font-weight: 600;
  color: rgba(230, 240, 252, 0.92);
  letter-spacing: -0.01em;
}

body.home-page .home-trust-desc{
  margin: 0;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(170, 188, 210, 0.6);
}

@media (max-width: 900px){
  body.home-page .home-trust-stats{
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 24px;
  }
}

@media (max-width: 560px){
  body.home-page .home-trust-stats{
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 28px;
    margin-top: 24px;
  }
}

body.home-page .footer{
  margin-top: 8px;
  font-family: var(--font-ui, "Inter", sans-serif);
  font-weight: 400;
  letter-spacing: .02em;
}

body.home-page:has(.manual-search-v2:not(.is-collapsed)) .footer{
  margin-top: 24px;
}

@media (prefers-reduced-motion: no-preference){
  body.home-page .ai-card{
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
  }

  body.home-page .ai-card:focus-within{
    box-shadow: none !important;
  }
}

@media (max-width: 640px){
  body.home-page .hero .hero-title{
    font-size: clamp(1.85rem, 7vw + 0.5rem, 2.65rem) !important;
  }
}

@media (max-width: 760px){
  body.home-page .ai-card{
    overflow: visible !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  body.home-page .ai-card:focus-within{
    border-color: transparent !important;
    box-shadow: none !important;
  }

  body.home-page .ai-card::before,
  body.home-page .ai-card::after{
    content: none !important;
    display: none !important;
  }

  body.home-page .ai-card > .ai-card-accent{
    display: block !important;
    background:
      linear-gradient(125deg, transparent 42%, rgba(var(--accent), .05) 52%, transparent 62%),
      radial-gradient(ellipse 90% 55% at 100% 0%, rgba(var(--accent-cool), .10), transparent 55%) !important;
    box-shadow: none !important;
    opacity: 0.78 !important;
  }

  body.home-page .ai-hero-copy .ai-lede{
    display: block !important;
  }

  body.home-page .home-search-stack .manual-search-v2.is-collapsed{
    margin-top: 0;
  }

  body.home-page .manual-open-pill{
    padding: 11px 22px;
    min-height: 44px;
    font-size: 13px;
  }

  body.home-page .search-mode-label{
    display: grid;
    gap: 5px;
    margin-bottom: 9px;
    width: calc(100% - 24px);
    padding: 0 12px;
  }

  body.home-page .search-mode-copy{
    white-space: normal;
    font-size: 12px;
  }

  body.home-page .home-mode-divider{
    gap: 10px;
    margin: 18px auto 18px;
  }
}

/* Home parity with global header UX cleanup */
body.home-page .topbar-links{
  gap: 6px !important;
  padding: 3px !important;
  border-radius: 13px !important;
  border: 1px solid rgba(156, 180, 212, .16) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06) !important;
}

body.home-page .topbar-link{
  height: 29px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.home-page .topbar-link--utility:not(.topbar-link--portal)::before{
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: rgba(168, 198, 242, .72);
  box-shadow: 0 0 0 1px rgba(114, 150, 210, .24);
}

body.home-page .topbar-link--portal{
  min-width: 30px !important;
  justify-content: center !important;
  padding: 0 8px !important;
}

body.home-page .topbar-portal-label{
  display: none !important;
}

body.home-page .theme-toggle-slot{
  gap: 4px !important;
}

body.home-page .theme-switch{
  width: 30px !important;
  height: 30px !important;
  border-radius: 10px !important;
}

body.home-page .theme-switch-track{
  inset: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.home-page .theme-switch-thumb{
  display: none !important;
}

body.home-page .theme-switch-icons{
  justify-content: center !important;
  padding: 0 !important;
}

body.home-page .theme-switch-icon{
  position: absolute;
  width: 13px;
  height: 13px;
}

body.home-page .theme-switch-icon svg{
  width: 13px !important;
  height: 13px !important;
}

body.home-page .theme-switch-icon--dark{
  opacity: .92 !important;
  transform: scale(1) !important;
}

body.home-page .theme-switch-icon--light{
  opacity: .25 !important;
  transform: scale(.84) !important;
}

html[data-theme="light"] body.home-page .theme-switch-icon--dark{
  opacity: .26 !important;
  transform: scale(.84) !important;
}

html[data-theme="light"] body.home-page .theme-switch-icon--light{
  opacity: .96 !important;
  transform: scale(1) !important;
}

/* Home parity: circular portal trigger */
body.home-page .topbar-link--portal,
body.home-page .portal-menu-trigger{
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.home-page .topbar-portal-avatar{
  width: 30px !important;
  height: 30px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  text-align: center !important;
  line-height: 1 !important;
  border: 0 !important;
  box-shadow: none !important;
  font-size: .78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  margin-top: 0 !important;
}

body.home-page .topbar-portal-icon,
body.home-page .topbar-portal-icon svg{
  width: 17px !important;
  height: 17px !important;
}

body.home-page .topbar-links:has(.portal-menu){
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  gap: 8px !important;
}

body.home-page .topbar-link--portal,
body.home-page .portal-menu-trigger{
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  flex: 0 0 36px !important;
  border: 1px solid rgba(7, 16, 30, .72) !important;
  background: rgba(11, 20, 34, .18) !important;
  overflow: hidden !important;
}

body.home-page .topbar-portal-avatar{
  width: 36px !important;
  height: 36px !important;
  border: 0 !important;
}

body.home-page .portal-menu-trigger > *,
body.home-page .topbar-link--portal > *,
body.home-page .topbar-portal-avatar,
body.home-page .topbar-portal-icon,
body.home-page .topbar-portal-icon svg{
  pointer-events: none !important;
}

body.home-page .portal-menu > summary{
  display: block !important;
  line-height: 0 !important;
  -webkit-appearance: none;
  appearance: none;
}

/* =============================================================================
   MOBILE REFINEMENTS  ·  Sub-640px / 480px / 380px
   ============================================================================= */

/* ── 480px: standard phones ── */
@media (max-width: 480px) {
  body.home-page .topbar.platform-header .platform-header-inner {
    width: calc(100% - 40px) !important;
  }

  body.home-page .wrap {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  body.home-page .hero {
    padding-top: 28px;
    padding-bottom: 20px;
  }

  body.home-page .hero-title {
    font-size: clamp(1.65rem, 9vw, 2rem) !important;
    line-height: 1.18 !important;
    letter-spacing: -0.025em !important;
  }

  body.home-page .hero-copy {
    font-size: 0.88rem !important;
    margin-top: 8px !important;
    line-height: 1.5 !important;
  }

  body.home-page .ai-submit-btn.btn.primary {
    width: 100% !important;
    min-height: 50px !important;
    font-size: 14.5px !important;
    border-radius: 14px !important;
  }

  body.home-page .ai-form-footer {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: stretch !important;
  }

  body.home-page .ai-submit-note {
    text-align: center !important;
    font-size: 0.72rem !important;
  }

  body.home-page .ai-suggest-chips {
    gap: 6px !important;
    padding-bottom: 4px !important;
  }

  body.home-page .ai-suggest-chip {
    padding: 5px 11px !important;
    font-size: 11.5px !important;
  }

  /* Manual search collapsed pill */
  body.home-page .manual-open-pill {
    height: 46px !important;
    font-size: 13px !important;
    border-radius: 14px !important;
  }

  /* Manual search form fields */
  body.home-page .ms2-field {
    min-height: 52px !important;
    font-size: 14px !important;
  }

  body.home-page .ms2-field-label {
    font-size: 10px !important;
  }

  body.home-page .ms2-submit.btn {
    min-height: 52px !important;
    font-size: 14.5px !important;
    border-radius: 14px !important;
  }

  /* Dock / search dock on mobile */
  body.home-page .dock-inner {
    padding: 14px 14px 16px !important;
    gap: 10px !important;
  }

  body.home-page .dock-row {
    flex-direction: column !important;
    gap: 8px !important;
  }

  body.home-page .dock-field {
    min-height: 50px !important;
  }
}

/* ── 380px: small phones (iPhone SE, Galaxy A01) ── */
@media (max-width: 380px) {
  body.home-page .topbar.platform-header .platform-header-inner {
    width: calc(100% - 32px) !important;
  }

  body.home-page .wrap {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  body.home-page .hero-title {
    font-size: clamp(1.5rem, 8.5vw, 1.85rem) !important;
  }

  body.home-page .hero-copy {
    font-size: 0.84rem !important;
  }

  body.home-page .ai-card {
    width: calc(100% - 10px) !important;
    margin-top: 4px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 14px 12px !important;
  }

  body.home-page .ai-submit-btn.btn.primary {
    min-height: 48px !important;
    font-size: 14px !important;
    border-radius: 13px !important;
  }

  body.home-page .ai-suggest-chip {
    font-size: 11px !important;
    padding: 4px 9px !important;
  }

  body.home-page .ms2-field {
    min-height: 50px !important;
  }
}

/* ── Touch: enlarge all interactive targets to minimum 44px ── */
@media (max-width: 640px) {
  body.home-page .topbar.platform-header .platform-header-inner {
    width: calc(100% - 36px) !important;
  }

  body.home-page .wrap {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  body.home-page .ai-suggest-chip {
    min-height: 32px !important;
  }

  /* Keep search stack from overflowing viewport */
  body.home-page .home-search-stack {
    overflow-x: hidden !important;
  }

  body.home-page .ai-wrap {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* MS2 fields: full-width stacking */
  body.home-page .ms2-row {
    flex-direction: column !important;
    gap: 6px !important;
  }

  body.home-page .ms2-field-wrap {
    width: 100% !important;
  }

  body.home-page .ms2-passenger-row,
  body.home-page .ms2-cabin-row {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
}

body.home-page .ai-input-ring textarea.ai-input:focus,
body.home-page .ai-input-ring textarea.ai-input:focus-visible{
  outline: none !important;
  box-shadow: none !important;
}

/* AI request actions: compact desktop controls, mobile bottom bar */

body.home-page .ai-input-toolbar{
  right: auto !important;
  gap: 8px !important;
}

body.home-page .ai-input-count{
  display: none;
}

body.home-page .ai-input-actions{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

body.home-page .ai-input-action-label{
  display: none;
}

body.home-page .ai-input-icon-btn.ai-input-magic-btn{
  flex-shrink: 0;
  width: 44px !important;
  height: 44px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.home-page .ai-input-icon-btn.ai-input-filter-btn{
  display: grid;
  place-items: center;
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  background: transparent !important;
  border: none !important;
  color: rgba(180, 200, 220, 0.45) !important;
}

body.home-page .ai-input-icon-btn.ai-input-filter-btn:hover{
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(200, 218, 236, 0.7) !important;
}

body.home-page .ai-input-submit-btn{
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #4F7EFF;
  color: #fff;
  box-shadow: 0 8px 24px rgba(79, 126, 255, .38);
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

body.home-page .ai-input-submit-btn:hover{
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(79, 126, 255, .5);
}

body.home-page .ai-input-submit-btn:active{
  transform: translateY(0) scale(.98);
}

body.home-page .ai-input-submit-btn:focus-visible{
  outline: 2px solid rgba(110, 176, 255, .72);
  outline-offset: 3px;
}

body.home-page .ai-input-send-svg{
  display: block;
  width: 22px;
  height: 22px;
}

/* ── Mobile pill bar: keep horizontal layout, just scale down ── */
@media (max-width: 760px){
  body.home-page .ai-input-ring{
    border-radius: 30px !important;
  }

  body.home-page .ai-input-wrap{
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center !important;
    min-height: 58px !important;
    height: auto !important;
    padding: 7px 8px !important;
    border-radius: 28.5px !important;
    background: rgba(11, 17, 32, 0.97) !important;
    border: none !important;
    box-shadow: none !important;
    gap: 4px !important;
  }

  body.home-page .ai-input-wrap.is-multiline{
    grid-template-rows: auto auto;
    align-items: end !important;
    padding: 12px 10px 8px !important;
    border-radius: 26px !important;
    gap: 8px !important;
  }

  body.home-page .ai-input-wrap.is-multiline .ai-input{
    grid-column: 1 / -1;
    grid-row: 1;
  }

  body.home-page .ai-input-wrap.is-multiline .ai-input-magic-btn{
    grid-column: 1;
    grid-row: 2;
  }

  body.home-page .ai-input-wrap.is-multiline .ai-input-toolbar{
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
  }

  body.home-page .ai-input-ring textarea.ai-input,
  body.home-page .ai-input-wrap .ai-input{
    height: auto !important;
    min-height: 22px !important;
    padding: 0 4px !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
  }

  body.home-page .ai-input-ring textarea.ai-input:focus,
  body.home-page .ai-input-ring textarea.ai-input:focus-visible{
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
  }

  body.home-page .ai-input-toolbar{
    position: static !important;
    inset: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0;
    gap: 6px !important;
  }

  body.home-page .ai-input-count{
    display: none !important;
  }

  body.home-page .ai-input-actions{
    gap: 6px !important;
    margin-left: 0 !important;
  }

  body.home-page .ai-input-icon-btn.ai-input-magic-btn{
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(236, 244, 252, 0.88) !important;
    box-shadow: none !important;
  }

  body.home-page .ai-input-action-label{
    display: none !important;
  }

  body.home-page .ai-input-submit-btn{
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
  }

  body.home-page .ai-placeholder-overlay{
    left: 56px !important;
    right: 58px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 15px !important;
    padding: 0 !important;
  }
}

@media (max-width: 480px){
  body.home-page .ai-input-ring{
    border-radius: 28px !important;
  }

  body.home-page .ai-input-wrap{
    min-height: 54px !important;
    height: auto !important;
    border-radius: 26.5px !important;
  }

  body.home-page .ai-input-ring textarea.ai-input,
  body.home-page .ai-input-wrap .ai-input{
    font-size: 15px !important;
  }

  body.home-page .ai-input-icon-btn.ai-input-magic-btn{
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
  }

  body.home-page .ai-input-submit-btn{
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
  }

  body.home-page .ai-placeholder-overlay{
    left: 52px !important;
    right: 54px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 380px){
  body.home-page .ai-input-ring{
    border-radius: 26px !important;
  }

  body.home-page .ai-input-wrap{
    min-height: 50px !important;
    height: auto !important;
    padding: 6px !important;
    border-radius: 24.5px !important;
  }

  body.home-page .ai-input-icon-btn.ai-input-magic-btn{
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
  }

  body.home-page .ai-input-submit-btn{
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
  }

  body.home-page .ai-placeholder-overlay{
    left: 48px !important;
    right: 50px !important;
  }
}

/* ─── Google Flights–style manual search ─────────────────────────────────── */

/* Row 1: trip type + bags chips */
body.home-page .gf-toprow{
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}

body.home-page .manual-search-v2:not(.is-collapsed) .ms2-full{
  max-height: none;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.home-page .manual-search-v2:not(.is-collapsed) .search-mode-label--manual{
  margin-bottom: 12px;
}

body.home-page .manual-search-v2:not(.is-collapsed) .ms2-form{
  display: grid;
  gap: 16px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.home-page .manual-search-v2.is-collapsed .search-mode-label--manual{
  display: none;
}

body.home-page.manual-open .manual-search-v2:not(.is-collapsed){
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.home-page .manual-search-v2:not(.is-collapsed) .gf-toprow{
  padding: 0 10px;
  margin-bottom: 0;
}

body.home-page .manual-search-v2:not(.is-collapsed) .gf-underbar{
  padding: 0 10px;
}

body.home-page .gf-chip-wrap{
  position: relative;
  display: inline-flex;
  align-items: center;
}

body.home-page .gf-chip-sel{
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-ui, "Inter", sans-serif);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  padding: 5px 22px 5px 8px;
  border-radius: 6px;
  transition: background .15s;
}

body.home-page .gf-chip-sel:hover{
  background: rgba(255,255,255,.07);
}

body.home-page .gf-chip-sel:focus,
body.home-page .gf-chip-sel:focus-visible{
  outline: none;
  box-shadow: none;
}

body.home-page .gf-chip-caret{
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  pointer-events: none;
  color: var(--muted);
}

/* Row 2: unified bar */
body.home-page .gf-bar{
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
  border-radius: 40px;
  min-height: 56px;
  overflow: visible;
  position: relative;
  transition: border-color .18s, box-shadow .18s;
}

body.home-page .gf-bar:focus-within{
  border-color: rgba(var(--accent),.55);
  box-shadow: 0 0 0 3px rgba(var(--accent),.12);
}

body.home-page .gf-seg{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  min-height: 56px;
  position: relative;
  flex: 1;
  min-width: 0;
  cursor: text;
  border-radius: 40px;
  transition: background .15s;
}

body.home-page .gf-seg:hover{
  background: rgba(255,255,255,.06);
}

body.home-page .gf-seg--from{ flex: 1.4; }
body.home-page .gf-seg--to{ flex: 1.4; }

body.home-page .gf-seg--dates{
  flex: 1.6;
  cursor: pointer;
  justify-content: center;
  text-align: center;
}

body.home-page .gf-seg--pax{
  flex: 1.5;
  cursor: pointer;
  border: none;
  font-family: inherit;
  background: transparent;
  justify-content: center;
  text-align: center;
  color: var(--text);
}

body.home-page .gf-seg-icon{
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: rgba(125, 211, 252, .76);
  stroke-width: 2.1;
}

body.home-page .gf-seg-icon--flex{
  display: none;
}

body.home-page .manual-search-v2.flex-mode .gf-seg-icon--standard{
  display: none;
}

body.home-page .manual-search-v2.flex-mode .gf-seg-icon--flex{
  display: inline-block;
}

body.home-page .manual-search-v2.flex-mode .gf-seg--from,
body.home-page .manual-search-v2.flex-mode .gf-seg--to{
  flex: 1.05 1 150px;
  min-width: 128px;
}

body.home-page .manual-search-v2.flex-mode .gf-seg--dates{
  flex: 1.45 1 250px;
  min-width: 220px;
  padding-left: 10px;
  padding-right: 12px;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
  text-align: left;
}

body.home-page .manual-search-v2.flex-mode .gf-seg--dates .gf-seg-icon--flex{
  align-self: center;
  display: block;
  margin: 0;
  transform: translateY(0);
}

body.home-page .manual-search-v2.flex-mode .gf-seg--dates #gfDatesText{
  display: none;
}

body.home-page .manual-search-v2.flex-mode #panel-flex{
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 56px;
}

body.home-page .manual-search-v2.flex-mode #panel-flex #flexMonthPicker,
body.home-page .manual-search-v2.flex-mode #panel-flex .month-roller-display{
  width: 100% !important;
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 28px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--text) !important;
  font-family: var(--font-ui, "Inter", sans-serif) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  vertical-align: middle !important;
}

body.home-page .manual-search-v2.flex-mode #panel-flex #flexMonthPicker::placeholder,
body.home-page .manual-search-v2.flex-mode #panel-flex .month-roller-display.is-placeholder{
  color: var(--muted) !important;
}

body.home-page .manual-search-v2.flex-mode .gf-seg--pax{
  flex: 1.35 0 220px;
  min-width: 220px;
  padding-left: 16px;
  padding-right: 16px;
}

body.home-page .manual-search-v2.flex-mode .gf-seg--pax .gf-seg-label{
  max-width: none;
}

body.home-page .manual-search-v2.flex-mode .gf-search-cta{
  min-width: 210px;
  padding: 0 26px;
}

body.home-page.flex-week-active .flatpickr-calendar.rangeMode.open{
  display: none !important;
  visibility: hidden !important;
}

body.home-page .gf-seg-input{
  width: 100%;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-ui, "Inter", sans-serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  caret-color: rgba(var(--accent),1);
}

body.home-page .gf-seg-input::placeholder{
  color: var(--muted);
  font-weight: 500;
}

body.home-page .gf-seg-label{
  font-size: 15px;
  font-family: var(--font-ui, "Inter", sans-serif);
  font-weight: 500;
  color: var(--text);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

body.home-page .gf-seg-label.is-placeholder{
  color: var(--muted);
  font-weight: 500;
}

/* Invisible flatpickr anchors inside dates segment */
body.home-page .gf-cal-anchors{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

body.home-page .gf-cal-anchors input{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  pointer-events: auto;
}

/* Swap button */
body.home-page .gf-swap-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  cursor: pointer;
  transition: background .15s, color .15s;
  padding: 0;
}

body.home-page .gf-swap-btn svg{
  width: 16px;
  height: 16px;
}

body.home-page .gf-swap-btn:hover{
  background: rgba(255,255,255,.12);
  color: var(--text);
}

/* Strip all focus rings inside the GF search section */
body.home-page .gf-toprow *:focus,
body.home-page .gf-toprow *:focus-visible,
body.home-page .gf-bar *:focus,
body.home-page .gf-bar *:focus-visible,
body.home-page .gf-bar:focus-within,
body.home-page .gf-seg:focus,
body.home-page .gf-seg-input:focus,
body.home-page .gf-seg-input:focus-visible,
body.home-page .gf-swap-btn:focus,
body.home-page .gf-swap-btn:focus-visible,
body.home-page .gf-seg--pax:focus,
body.home-page .gf-seg--pax:focus-visible{
  outline: none !important;
  box-shadow: none !important;
  border-color: var(--line) !important;
}

/* Separator */
body.home-page .gf-bar-sep{
  width: 1px;
  height: 28px;
  background: var(--line);
  flex-shrink: 0;
}

/* Hidden selects (passengers + cabin) */
body.home-page .gf-hidden-sel{
  display: none !important;
}

/* Search CTA */
body.home-page .gf-search-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex-shrink: 0;
  height: 44px;
  margin: 6px 6px 6px 0;
  padding: 0 22px;
  border-radius: 22px;
  border: 1px solid rgba(126, 164, 255, .42);
  background:
    linear-gradient(135deg, #5B8BFF 0%, #7C5FFF 100%);
  color: #fff;
  font-family: var(--font-ui, "Inter", sans-serif);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow:
    0 12px 28px rgba(91, 139, 255, .26),
    0 0 0 1px rgba(255, 255, 255, .10) inset;
  transition:
    border-color .16s ease,
    box-shadow .16s ease,
    transform .12s ease,
    filter .16s ease;
}

body.home-page .gf-cta-icon{
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  stroke-width: 2.4;
}

body.home-page .gf-search-cta:hover{
  border-color: rgba(160, 184, 255, .56);
  filter: brightness(1.05);
  box-shadow:
    0 16px 34px rgba(91, 139, 255, .34),
    0 0 0 1px rgba(255, 255, 255, .14) inset;
}

body.home-page .gf-search-cta:active{
  transform: scale(.98);
  box-shadow:
    0 8px 18px rgba(91, 139, 255, .24),
    0 0 0 1px rgba(255, 255, 255, .10) inset;
}

body.home-page .gf-search-cta:focus-visible{
  outline: 2px solid rgba(126, 164, 255, .72);
  outline-offset: 3px;
}

/* Travelers popup panel */
body.home-page .gf-pax-panel{
  position: fixed;
  z-index: 500;
  background: var(--card-strong);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  padding: 20px 20px 16px;
  min-width: 310px;
  max-width: 360px;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

body.home-page .gf-pax-heading{
  font-size: 13px;
  font-weight: 680;
  color: var(--text);
  margin: 0 0 10px;
  letter-spacing: .02em;
  text-transform: uppercase;
  opacity: .7;
}

body.home-page .gf-cabin-block .gf-pax-heading{
  margin-top: 16px;
}

body.home-page .gf-pax-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

body.home-page .gf-pax-row:last-child{
  border-bottom: none;
}

body.home-page .gf-pax-info{
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.home-page .gf-pax-info span{
  font-size: 14px;
  color: var(--text);
}

body.home-page .gf-pax-info small{
  font-size: 12px;
  color: var(--muted);
}

body.home-page .gf-counter{
  display: flex;
  align-items: center;
  gap: 10px;
}

body.home-page .gf-counter-btn{
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .12s;
}

body.home-page .gf-counter-btn:hover:not(:disabled){
  background: rgba(255,255,255,.1);
}

body.home-page .gf-counter-btn:disabled{
  opacity: .28;
  cursor: not-allowed;
}

body.home-page .gf-counter-num{
  min-width: 18px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

/* Cabin chips inside panel */
body.home-page .gf-cabin-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.home-page .gf-cabin-chip{
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

body.home-page .gf-cabin-chip:hover{
  border-color: var(--line-strong);
  background: rgba(255,255,255,.07);
}

body.home-page .gf-cabin-chip--active{
  border-color: rgba(var(--accent),.7) !important;
  background: rgba(var(--accent),.12) !important;
  color: rgba(var(--accent),1);
  font-weight: 580;
}

/* Always show nonstop checkbox; always hide flex-trip-length in simplified layout */
body.home-page #nonstopInline{
  display: flex !important;
}
body.home-page #flexTripLengthField{
  display: none !important;
}

/* Under bar */
body.home-page .gf-underbar{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 10px;
}

body.home-page .gf-underbar-check{
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  transition: color .15s;
}

body.home-page .gf-check-icon{
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: rgba(125, 211, 252, .68);
  stroke-width: 2.1;
}

body.home-page .gf-underbar-check:hover{
  color: var(--text);
}

body.home-page .gf-underbar-check input[type="checkbox"]{
  width: 15px;
  height: 15px;
  accent-color: rgba(var(--accent),1);
  cursor: pointer;
}

/* Tablet / mid-width: compress but stay horizontal */
@media (max-width: 1100px) and (min-width: 761px){
  body.home-page .gf-seg{
    padding: 0 12px;
  }

  body.home-page .gf-seg-input,
  body.home-page .gf-seg-label{
    font-size: 14px;
  }

  body.home-page .gf-search-cta{
    padding: 0 16px;
    font-size: 14px;
  }

  body.home-page .manual-search-v2.flex-mode .gf-seg--dates{
    flex-basis: 210px;
    min-width: 190px;
  }

  body.home-page .manual-search-v2.flex-mode .gf-seg--pax{
    flex-basis: 190px;
    min-width: 180px;
  }

  body.home-page .manual-search-v2.flex-mode .gf-search-cta{
    min-width: 180px;
    padding: 0 18px;
  }
}

@media (max-width: 920px) and (min-width: 761px){
  body.home-page .gf-seg{
    padding: 0 8px;
  }

  body.home-page .gf-seg-input,
  body.home-page .gf-seg-label{
    font-size: 13px;
  }

  body.home-page .gf-seg--dates{
    flex: 1.4;
  }

  body.home-page .gf-seg--pax{
    flex: 1.2;
  }

  body.home-page .gf-search-cta{
    padding: 0 12px;
    font-size: 13px;
    height: 40px;
    margin: 8px 6px 8px 0;
    border-radius: 20px;
  }

  body.home-page .manual-search-v2.flex-mode .gf-seg--dates{
    flex-basis: 170px;
    min-width: 150px;
  }

  body.home-page .manual-search-v2.flex-mode .gf-seg--pax{
    flex-basis: 150px;
    min-width: 145px;
  }

  body.home-page .manual-search-v2.flex-mode .gf-search-cta{
    min-width: 150px;
  }

  body.home-page .gf-bar{
    min-height: 52px;
  }

  body.home-page .gf-seg{
    min-height: 52px;
  }

  body.home-page .gf-toprow{
    gap: 6px;
  }

  body.home-page .gf-chip-sel{
    font-size: 12.5px;
  }
}

/* Mobile: stack bar vertically */
@media (max-width: 760px){
  body.home-page .gf-bar{
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
    border-radius: 20px;
    min-height: 0;
    background: rgba(255,255,255,.045);
  }

  body.home-page .gf-seg{
    width: 100%;
    min-height: 46px !important;
    border-radius: 13px !important;
    border: 1px solid rgba(188, 206, 225, .16);
    background: rgba(255,255,255,.035);
    padding: 0 12px;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  body.home-page .gf-seg-icon{
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }

  body.home-page .gf-seg:hover{
    background: rgba(255,255,255,.06);
  }

  body.home-page .gf-seg--from{
    grid-column: 1;
  }

  body.home-page .gf-seg--to{
    grid-column: 2;
  }

  body.home-page .gf-seg--dates{
    grid-column: 1 / -1;
    min-height: 48px !important;
    flex-direction: row !important;
    gap: 10px !important;
    flex: none !important;
    align-items: center !important;
  }

  body.home-page .gf-seg--pax{
    grid-column: 1 / -1;
    font-size: 14px !important;
  }

  body.home-page .gf-swap-btn{
    display: none;
  }

  body.home-page .gf-bar-sep{
    display: none;
  }

  body.home-page .gf-seg--dates,
  body.home-page .gf-seg--pax{
    justify-content: flex-start;
    text-align: left;
    gap: 10px !important;
  }

  body.home-page .gf-search-cta{
    display: inline-flex !important;
    align-items: center;
    grid-column: 1 / -1;
    width: 100%;
    height: 48px;
    min-height: 48px;
    margin: 0;
    border-radius: 14px;
    text-align: center;
    justify-content: center;
    gap: 8px;
  }

  body.home-page .gf-seg-input,
  body.home-page .gf-seg-label{
    font-size: 14px !important;
  }

  body.home-page .gf-pax-panel{
    min-width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    left: 12px !important;
    border-radius: 16px;
    max-height: calc(100vh - 32px - env(safe-area-inset-bottom, 0px));
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }

  body.home-page .gf-underbar{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: start;
    gap: 10px;
    padding: 0 4px !important;
  }

  body.home-page .gf-underbar-check{
    display: grid;
    grid-template-columns: 18px 16px minmax(0, 1fr);
    min-width: 0;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    line-height: 1.35;
  }

  body.home-page #nonstopInline,
  body.home-page #combinationInline{
    display: grid !important;
  }

  body.home-page .gf-underbar-check input[type="checkbox"]{
    width: 18px;
    height: 18px;
    margin: 0;
    justify-self: center;
  }

  body.home-page .gf-check-icon{
    width: 16px;
    height: 16px;
  }

  body.home-page .gf-toprow{
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 6px !important;
  }

  body.home-page .gf-chip-sel{
    font-size: 13px;
    padding: 5px 22px 5px 6px;
  }
}

@media (max-width: 760px){
  body.home-page .manual-search-v2.flex-mode #panel-flex{
    display: flex !important;
    align-items: center !important;
    width: 100%;
    min-height: 48px;
  }

  body.home-page .manual-search-v2.flex-mode #panel-flex #flexMonthPicker,
  body.home-page .manual-search-v2.flex-mode #panel-flex .month-roller-display{
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 0 !important;
    line-height: 1.35 !important;
  }

  body.home-page .manual-search-v2.flex-mode .gf-seg--dates{
    min-width: 0 !important;
    padding: 0 12px;
    align-items: center !important;
    gap: 10px !important;
  }

  body.home-page .manual-search-v2.flex-mode .gf-seg--pax{
    min-width: 0 !important;
    padding: 0 12px;
  }

  body.home-page .manual-search-v2.flex-mode .gf-search-cta{
    min-width: 0;
    padding: 0 16px;
  }
}

@media (max-width: 380px){
  body.home-page .gf-bar{
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 9px;
  }

  body.home-page .gf-seg--from,
  body.home-page .gf-seg--to,
  body.home-page .gf-seg--dates,
  body.home-page .gf-seg--pax,
  body.home-page .gf-search-cta{
    grid-column: 1;
  }

  body.home-page .gf-seg{
    min-height: 44px;
  }

  body.home-page .gf-search-cta{
    height: 46px;
    min-height: 46px;
  }
}

/* iOS Safari zoom guard for the hero and manual search inputs. */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 820px) {
    body.home-page input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]),
    body.home-page textarea,
    body.home-page select,
    body.home-page .ai-input-ring textarea.ai-input,
    body.home-page .ai-input-wrap .ai-input,
    body.home-page .gf-seg-input {
      font-size: 16px !important;
    }
  }
}
