/* Insider Avenue — search affordance (nav button + full-screen overlay).
   Loaded on every page alongside site.css. Classes here are additive. */

.nav-search {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: transparent; border: 1px solid transparent;
  color: var(--gold); cursor: pointer; flex-shrink: 0; padding: 0;
  transition: background 0.15s, border-color 0.15s;
}
.nav-search:hover { background: rgba(201,169,110,0.12); border-color: rgba(201,169,110,0.4); }
.nav-search svg { width: 20px; height: 20px; }

/* Full-screen overlay */
.search-overlay {
  position: fixed; inset: 0; z-index: 2147483000;
  background: rgba(15, 23, 32, 0.92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; flex-direction: column;
  padding: clamp(20px, 8vh, 90px) var(--gutter) 40px;
  opacity: 0; pointer-events: none; transition: opacity 0.22s ease;
}
.search-overlay.open { opacity: 1; pointer-events: auto; }
.search-panel { width: 100%; max-width: 760px; margin: 0 auto; }
.search-close {
  position: absolute; top: clamp(16px, 3vw, 28px); right: clamp(16px, 4vw, 40px);
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(244,241,236,0.25);
  background: transparent; color: var(--cream); cursor: pointer; font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: border-color 0.15s, color 0.15s;
}
.search-close:hover { border-color: var(--gold); color: var(--gold); }

.search-eyebrow { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 16px; }
.search-form { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--gold); padding-bottom: 14px; }
.search-form svg { width: clamp(22px, 3vw, 28px); height: clamp(22px, 3vw, 28px); color: var(--gold); flex-shrink: 0; }
.search-input {
  flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  color: var(--cream); font-family: inherit; font-size: clamp(22px, 4vw, 36px);
  font-weight: 500; letter-spacing: -0.5px;
}
.search-input::placeholder { color: var(--steel); }
.search-submit {
  background: var(--gold); color: var(--navy); border: none; border-radius: 4px;
  padding: 11px 22px; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: background 0.15s;
}
.search-submit:hover { background: var(--gold-deep); }

.search-popular { margin-top: 26px; }
.search-popular-label { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel); font-weight: 600; margin-bottom: 14px; }
.search-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.search-tag {
  font-size: 14px; padding: 9px 16px; border-radius: 999px;
  background: rgba(244,241,236,0.06); border: 1px solid rgba(141,164,184,0.3);
  color: var(--cream); cursor: pointer; font-family: inherit; transition: background 0.15s, border-color 0.15s;
}
.search-tag:hover { background: rgba(201,169,110,0.14); border-color: var(--gold); color: var(--gold); }

/* ---- Search results page extras ---- */
.results-bar { display: flex; align-items: center; gap: 12px; max-width: 640px; background: #fff; border: 1px solid var(--line-light); border-radius: 999px; padding: 6px 6px 6px 18px; margin-top: clamp(18px, 2.4vw, 24px); }
.results-bar svg { width: 18px; height: 18px; color: var(--slate); flex-shrink: 0; }
.results-bar input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-family: inherit; font-size: 16px; color: var(--navy); }
.results-bar button { background: var(--navy); color: var(--cream); border: none; border-radius: 999px; padding: 10px 20px; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; cursor: pointer; font-family: inherit; }
.results-bar button:hover { background: #243548; }

.results-empty { padding: clamp(40px, 6vw, 72px) 0; text-align: center; }
.results-empty h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.results-empty p { font-size: 16px; color: var(--slate); }

/* Type badge on result cards */
.type-badge { position: absolute; top: 10px; left: 10px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; padding: 4px 9px; border-radius: 4px; background: rgba(15,23,32,0.78); color: var(--gold); }
