.home-topbar {
  min-height: 76px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  justify-content: flex-end;
}

.home-wrap {
  padding-top: 22px;
}

.official-banner {
  overflow: hidden;
  border: 1px solid #dbe5f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(9, 33, 62, .08);
}

.official-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.search-panel {
  position: relative;
  z-index: 2;
  width: min(940px, calc(100% - 48px));
  margin: -32px auto 0;
  padding: 26px;
  border: 1px solid #dbe5f0;
  border-radius: 20px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 45px rgba(9, 33, 62, .14);
}

.search-heading {
  margin-bottom: 17px;
}

.search-heading .eyebrow {
  color: var(--blue);
}

.search-heading h1 {
  margin: 6px 0;
  color: var(--navy);
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.15;
}

.search-heading p {
  margin: 0;
  color: #60748c;
}

.main-search {
  max-width: none;
  padding: 5px;
  gap: 7px;
  border: 2px solid #cbd9e8;
  border-radius: 14px;
  background: #fff;
}

.main-search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(8, 102, 232, .1);
}

.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
  padding-left: 10px;
  color: #60748c;
}

.search-input-wrap input {
  width: 100%;
  min-height: 46px;
  padding: 0;
  outline: 0;
}

.photo-button,
.search-button {
  min-height: 46px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 800;
  cursor: pointer;
}

.photo-button {
  padding: 0 16px;
  border: 1px solid #cbd9e8;
  color: var(--navy);
  background: #f5f8fc;
}

.photo-button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.search-button {
  min-width: 132px;
}

.photo-status {
  display: block;
  min-height: 18px;
  margin: 8px 4px 0;
  color: #51647c;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .home-topbar {
    min-height: 64px;
    padding: 7px 16px;
    flex-direction: row;
    align-items: center;
  }

  .location small {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-wrap {
    padding: 14px 12px;
  }

  .official-banner {
    border-radius: 14px;
  }

  .search-panel {
    width: calc(100% - 16px);
    margin-top: -12px;
    padding: 20px 16px;
    border-radius: 16px;
  }

  .search-heading h1 {
    font-size: 24px;
  }

  .main-search {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .search-input-wrap {
    grid-column: 1 / -1;
  }

  .photo-button,
  .search-button {
    width: 100%;
    padding: 0 10px;
  }
}

@media (max-width: 390px) {
  .location small {
    max-width: 125px;
  }

  .search-panel {
    width: 100%;
  }
}
