/* Rediscover Earth - homepage autocomplete and autosuggestions v1.5.25 */

.discovery-console.has-hero-autocomplete {
  position: relative;
  z-index: 72;
  overflow: visible;
}

.hero-autocomplete[hidden] {
  display: none !important;
}

.hero-autocomplete {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  z-index: 2147483000;
  max-height: min(64vh, 560px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 12px;
  border: 1px solid rgba(35, 55, 50, .15);
  border-radius: 24px;
  background: rgba(255, 255, 255, .985);
  color: var(--text, #1d2a29);
  box-shadow: 0 26px 70px rgba(37, 55, 48, .20);
  backdrop-filter: blur(24px) saturate(125%);
  isolation: isolate;
  pointer-events: auto;
  transform: translateZ(0);
  contain: paint;
  scrollbar-width: thin;
  scrollbar-color: rgba(71, 105, 75, .35) transparent;
}

.hero-autocomplete::-webkit-scrollbar {
  width: 9px;
}

.hero-autocomplete::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(71, 105, 75, .35);
  background-clip: padding-box;
}

.hero-autocomplete-group + .hero-autocomplete-group {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(35, 55, 50, .09);
}

.hero-autocomplete-group-title {
  padding: 5px 11px 7px;
  color: #78857f;
  font-family: var(--font-sans, "Avenir Next", Avenir, Inter, "Segoe UI", system-ui, sans-serif);
  font-size: .68rem;
  font-weight: 550;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-autocomplete-list {
  display: grid;
  gap: 4px;
}

.hero-autocomplete-option {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 66px;
  padding: 7px 10px;
  border: 0;
  border-radius: 17px;
  background: transparent;
  color: #22312e;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.hero-autocomplete-option:hover,
.hero-autocomplete-option.is-active,
.hero-autocomplete-option[aria-selected="true"] {
  background: #edf4e8;
  box-shadow: inset 0 0 0 1px rgba(102, 143, 34, .12);
}

.hero-autocomplete-option:focus-visible {
  outline: 2px solid #668f22;
  outline-offset: 1px;
}

.hero-autocomplete-media,
.hero-autocomplete-query-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(circle at 70% 25%, rgba(156, 206, 70, .38), transparent 25%),
    linear-gradient(145deg, #e9f0e4, #dbe8df);
  color: #4f752b;
}

.hero-autocomplete-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-autocomplete-media.is-fallback img {
  opacity: 0;
}

.hero-autocomplete-media.is-fallback::after {
  content: "↗";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #567925;
  font-size: 1.05rem;
}

.hero-autocomplete-query-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.hero-autocomplete-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.hero-autocomplete-copy strong {
  overflow: hidden;
  color: #21302c;
  font-family: var(--font-sans, "Avenir Next", Avenir, Inter, "Segoe UI", system-ui, sans-serif);
  font-size: .98rem;
  font-weight: 610;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-autocomplete-copy span {
  overflow: hidden;
  color: #78837e;
  font-family: var(--font-sans, "Avenir Next", Avenir, Inter, "Segoe UI", system-ui, sans-serif);
  font-size: .79rem;
  font-weight: 400;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-autocomplete-badge {
  align-self: center;
  padding: 6px 9px;
  border: 1px solid rgba(35, 55, 50, .11);
  border-radius: 999px;
  background: rgba(248, 250, 246, .9);
  color: #718078;
  font-size: .63rem;
  font-weight: 570;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-autocomplete-arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: #648d29;
  font-size: 1rem;
}

.hero-autocomplete-query.is-search-all {
  background: rgba(241, 246, 235, .65);
}

.hero-autocomplete-query.is-search-all:hover,
.hero-autocomplete-query.is-search-all.is-active {
  background: #e8f1df;
}

.discovery-console.autocomplete-open {
  box-shadow: 0 22px 60px rgba(42, 62, 55, .16);
}


body > .hero-autocomplete[data-portal="body"] {
  margin: 0;
}

html:has(.hero-autocomplete:not([hidden])) .site-marquee,
html:has(.hero-autocomplete:not([hidden])) .ticker,
html:has(.hero-autocomplete:not([hidden])) [class*="marquee"] {
  z-index: auto;
}

@media (max-width: 760px) {
  .hero-autocomplete {
    max-height: min(58vh, 480px);
    padding: 8px;
    border-radius: 20px;
    box-shadow: 0 20px 52px rgba(37, 55, 48, .20);
  }

  .hero-autocomplete-group-title {
    padding-inline: 9px;
  }

  .hero-autocomplete-option {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    min-height: 62px;
    gap: 11px;
    padding: 7px 8px;
    border-radius: 15px;
  }

  .hero-autocomplete-media,
  .hero-autocomplete-query-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }

  .hero-autocomplete-copy strong {
    font-size: .92rem;
  }

  .hero-autocomplete-copy span {
    font-size: .74rem;
  }

  .hero-autocomplete-badge {
    display: none;
  }
}

@media (max-width: 420px) {
  .hero-autocomplete-option {
    grid-template-columns: 45px minmax(0, 1fr) 28px;
    gap: 9px;
  }

  .hero-autocomplete-media,
  .hero-autocomplete-query-icon {
    width: 45px;
    height: 45px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-autocomplete-option {
    transition: none;
  }
}
