/* Homepage search stays visible, compact, and separate from article/header search. */
.home-search {
  width: min(1200px, 89%);
  margin: 0 auto;
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.home-search .search-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.home-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr) 190px;
  align-items: end;
  gap: 12px;
  margin: 0;
}

.home-search-form label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.home-search-form label > span,
.home-search-budget legend {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.home-search-budget {
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
}

.home-search-budget legend { padding: 0; margin-bottom: 5px; }
.home-search-budget-range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 7px; }
.home-search-budget-separator { font-size: 14px; }

.home-search-form select {
  width: 100%;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid #c7b7a2;
  border-radius: 3px;
  background: #fffdf9;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
}

.home-search-form select:focus-visible,
.home-search-submit:focus-visible {
  outline: 3px solid #466e82;
  outline-offset: 3px;
}

.home-search-submit {
  display: flex;
  height: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 0;
  border-radius: 3px;
  background: var(--red);
  color: #fffdf8;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.home-search-submit:hover { background: #932017; }

@media (min-width: 601px) and (max-width: 1100px) {
  .home-search-form { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .home-search-budget { grid-column: span 3; }
  .home-search-form select { font-size: 16px; }
}

@media (max-width: 600px) {
  .home-search { width: 90%; padding: 15px 0 17px; }
  .home-search-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 11px; }
  .home-search-budget, .home-search-submit { grid-column: 1 / -1; }
  .home-search-form label { gap: 3px; }
  .home-search-form label > span, .home-search-budget legend { font-size: 11px; }
  .home-search-budget legend { margin-bottom: 3px; }
  .home-search-form select { padding: 8px; font-size: 16px; }
}

.home-page .site-header:has(.site-search){height:auto;min-height:82px;padding-block:14px}
@media(min-width:1101px){.home-page .site-header:has(.site-search) nav{display:none}}
@media(max-width:800px){.home-page .site-header:has(.site-search){min-height:68px;gap:10px 14px}}
