/* Better Properties site search — floating button + overlay (Pagefind) */
#bp-search-btn {
  display: flex; position: fixed; left: 18px; bottom: 18px; z-index: 9998;
  width: 56px; height: 56px; border-radius: 50%;
  background: #0f4433; border: 2px solid rgba(206,178,119,.55);
  align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  -webkit-tap-highlight-color: transparent; padding: 0;
}
#bp-search-btn:active { transform: scale(.94); }
#bp-search-btn svg { width: 24px; height: 24px; stroke: #CEB277; fill: none; stroke-width: 2.4; stroke-linecap: round; }
#bp-search-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(12,28,21,.97);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 9vh 18px 18px; overflow-y: auto;
}
#bp-search-overlay[hidden] { display: none; }
.bp-search-panel { width: min(680px, 100%); }
.bp-search-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.bp-search-head span { color: #CEB277; font-family: Montserrat, system-ui, sans-serif; font-weight: 700; font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; }
#bp-search-close {
  background: none; border: 1px solid rgba(206,178,119,.5); color: #CEB277;
  width: 42px; height: 42px; border-radius: 50%; font-size: 1.25rem; line-height: 1;
  cursor: pointer; padding: 0;
}
/* Pagefind UI brand overrides */
#bp-search-box {
  --pagefind-ui-scale: 1;
  --pagefind-ui-primary: #CEB277;
  --pagefind-ui-text: #efe8d6;
  --pagefind-ui-background: #162e22;
  --pagefind-ui-border: rgba(206,178,119,.35);
  --pagefind-ui-tag: #0e241a;
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 12px;
  --pagefind-ui-image-border-radius: 8px;
  --pagefind-ui-image-box-ratio: 3 / 2;
  --pagefind-ui-font: Montserrat, system-ui, -apple-system, sans-serif;
}
#bp-search-box .pagefind-ui__search-input {
  background: #f4efe2; color: #1c1c1c; font-weight: 600;
}
#bp-search-box .pagefind-ui__search-input::placeholder { color: #8a8474; font-weight: 500; }
#bp-search-box .pagefind-ui__result-title { font-weight: 700; }
#bp-search-box .pagefind-ui__result-excerpt { color: rgba(239,232,214,.72); }
#bp-search-box .pagefind-ui__button { background: #0f4433; color: #CEB277; border: 1px solid rgba(206,178,119,.5); font-weight: 700; }
#bp-search-box .pagefind-ui__message { color: rgba(239,232,214,.65); }
