/* DocPilot sitewide search — nav icon, modal, hero search bar */

.nav-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  color: var(--navy);
  margin-left: 4px;
  transition: all .18s;
}
.nav-search-btn:hover { background: var(--off-white); border-color: var(--border); }

/* ---------- Modal ---------- */
.dps-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 26, 38, 0.55);
  z-index: 9999;
  align-items: flex-start;
  justify-content: center;
  padding: 70px 16px 16px;
}
.dps-modal-overlay.dps-open { display: flex; }

.dps-modal {
  background: #fff;
  width: 100%;
  max-width: 640px;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font-body);
}

.dps-modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.dps-modal-icon { font-size: 18px; opacity: 0.5; }
.dps-modal-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--navy);
}
.dps-modal-close {
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
  padding: 0 4px;
}
.dps-modal-count {
  padding: 8px 18px 0;
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
}
.dps-modal-results {
  overflow-y: auto;
  padding: 8px 10px;
}
.dps-modal-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  text-align: center;
  color: var(--text-light);
  background: var(--off-white);
}
.dps-modal-foot a { color: var(--blue); font-weight: 600; }

/* ---------- Result row (shared by modal + hero dropdown) ---------- */
.dps-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}
.dps-result:hover { background: var(--off-white); }
.dps-result-price {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--navy);
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.dps-result-info { flex: 1; min-width: 0; }
.dps-result-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--blue);
  margin-bottom: 2px;
}
.dps-result-name { font-size: 14px; font-weight: 700; color: var(--navy); }
.dps-result-desc {
  font-size: 12px;
  color: var(--text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dps-result-arrow { color: var(--blue); flex-shrink: 0; }
.dps-no-results { padding: 20px 10px; font-size: 14px; color: var(--text-light); text-align: center; }
.dps-no-results a { color: var(--blue); font-weight: 600; }

/* ---------- Hero inline search (homepage) ---------- */
.dps-hero-search-wrap {
  position: relative;
  max-width: 560px;
  margin: 0 auto 20px;
}
.dps-hero-search {
  width: 100%;
  padding: 16px 20px 16px 48px;
  border-radius: 12px;
  border: none;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--navy);
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  outline: none;
  box-sizing: border-box;
}
.dps-hero-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  opacity: 0.45;
  pointer-events: none;
}
.dps-hero-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.22);
  padding: 8px;
  text-align: left;
  max-height: 420px;
  overflow-y: auto;
  z-index: 50;
}
.dps-hero-dropdown.dps-open { display: block; }
.dps-hero-foot {
  padding: 10px;
  text-align: center;
  font-size: 13px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.dps-hero-foot a { color: var(--blue); font-weight: 600; }

@media (max-width: 600px) {
  .dps-modal-overlay { padding: 16px; }
  .dps-hero-search { font-size: 15px; padding: 14px 16px 14px 44px; }
}
