/* Homepage only: the supplied Montréal photograph and the existing rental search. */
#home-view .hero.hero-search-only {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  height: clamp(380px, 44vw, 600px);
  min-height: 0;
  padding: 0;
  background: #28313a;
  text-align: left;
  isolation: isolate;
}

#home-view .hero-search-only .hero-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: linear-gradient(180deg, rgb(18 27 37 / 36%), rgb(18 27 37 / 46%)), url("assets/montreal-winter-hero.jpg");
  background-position: center, center 48%;
  background-repeat: no-repeat;
  background-size: cover;
}

#home-view .hero-search-only .hero-visual::before,
#home-view .hero-search-only .hero-visual::after,
#home-view .hero-search-only::before,
#home-view .hero-search-only::after {
  content: none;
}

#home-view .hero-search-only .hero-content {
  width: 100%;
  max-width: 860px;
  margin: 0;
  padding: 32px;
}

#home-view .hero-search-only .hero-home-title {
  max-width: 22ch;
  margin: 0 auto 28px;
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.04em;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgb(9 18 28 / 50%);
}

/* Keep the headline and search clear of dynamically added helper copy. */
#home-view .hero-search-only .hero-content > :not(.hero-search):not(.hero-home-title),
#home-view .hero-search-only .smart-search-help,
#home-view .hero-search-only #hero-layout {
  display: none !important;
}

#home-view .hero-search-only .hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 8px;
  border: 1px solid rgb(255 255 255 / 90%);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgb(9 18 28 / 24%);
  background: #fff;
}

#home-view .hero-search-only .hero-search:focus-within {
  outline: 3px solid rgb(255 255 255 / 68%);
  outline-offset: 4px;
}

#home-view .hero-search-only .hero-search-location {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 13px;
  padding: 0 12px;
  border: 0;
}

#home-view .hero-search-only .hero-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#home-view .hero-search-only .hero-search input {
  min-height: 52px;
  width: 100%;
  margin: 0;
  padding: 10px 0;
  font-size: 16px;
  line-height: 1.5;
  color: #272a2e;
}

#home-view .hero-search-only .hero-search input::placeholder {
  font-size: 16px;
  color: #737981;
  opacity: 1;
}

#home-view .hero-search-only .hero-search button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 9px;
  min-height: 52px;
  margin: 0;
  padding: 14px 25px;
  border-radius: 7px;
  font-size: 16px;
  line-height: 1.5;
}

#home-view .hero-search-only .hero-search button[type="submit"] svg {
  display: block;
  width: 19px;
  height: 19px;
}

@media (max-width: 680px) {
  #home-view .hero.hero-search-only {
    height: 390px;
    height: clamp(330px, 48svh, 430px);
  }

  #home-view .hero-search-only .hero-content { padding: 28px 18px; }
  #home-view .hero-search-only .hero-home-title { margin-bottom: 22px; }
  #home-view .hero-search-only .hero-search { gap: 4px; padding: 6px; border-radius: 10px; }
  #home-view .hero-search-only .hero-search-location { gap: 9px; padding: 0 7px; }
  #home-view .hero-search-only .search-pin { display: none; }
  #home-view .hero-search-only .hero-search input { min-height: 48px; }
  #home-view .hero-search-only .hero-search button[type="submit"] { min-height: 48px; padding: 12px 15px; }
  #home-view .hero-search-only .hero-search button[type="submit"] svg { display: none; }
}

@media (max-width: 380px) {
  #home-view .hero-search-only .hero-content { padding-inline: 14px; }
  #home-view .hero-search-only .hero-search button[type="submit"] { padding-inline: 12px; }
}
