/* Indosphere Search Addon — purely additive, overwrites nothing existing */

/* Search icon button — injected next to existing ☰ button */
.indo-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted, #6b5e4a);
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: color .15s;
  vertical-align: middle;
}
.indo-search-btn:hover,
.indo-search-btn[aria-expanded="true"] {
  color: var(--accent, #8b1a1a);
}

/* Full-screen search overlay */
.indo-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg, #faf8f3);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 24px 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.indo-search-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}
.indo-search-inner {
  width: 100%;
  max-width: 680px;
  transform: translateY(-10px);
  transition: transform .22s ease;
}
.indo-search-overlay.is-open .indo-search-inner {
  transform: translateY(0);
}

/* Close button */
.indo-search-close {
  position: fixed;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted, #6b5e4a);
  font-size: 22px;
  line-height: 1;
  padding: 8px;
  transition: color .15s;
}
.indo-search-close:hover { color: var(--accent, #8b1a1a); }

/* Label */
.indo-search-label {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted, #6b5e4a);
  margin-bottom: 20px;
  display: block;
}

/* Input row */
.indo-search-row {
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--text, #1a1209);
  gap: 10px;
  padding-bottom: 4px;
}
.indo-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: clamp(22px, 4vw, 36px);
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  color: var(--text, #1a1209);
  caret-color: var(--accent, #8b1a1a);
  padding: 8px 0;
  -webkit-appearance: none;
  appearance: none;
}
.indo-search-input::placeholder { color: var(--border, #e2ddd4); }
.indo-search-input::-webkit-search-cancel-button { display: none; }
.indo-search-submit {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted, #6b5e4a);
  padding: 6px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: color .15s;
}
.indo-search-submit:hover { color: var(--accent, #8b1a1a); }
.indo-search-hint {
  font-size: 12px;
  color: var(--text-muted, #6b5e4a);
  margin-top: 10px;
  letter-spacing: .03em;
}

/* Live suggestions */
.indo-suggestions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
}
.indo-suggestions:empty { display: none; }
.indo-suggestion {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--border, #e2ddd4);
  text-decoration: none;
  color: inherit;
}
.indo-suggestion:hover .indo-sug-title,
.indo-suggestion:focus .indo-sug-title {
  color: var(--accent, #8b1a1a);
}
.indo-sug-img {
  width: 56px;
  height: 38px;
  object-fit: cover;
  border-radius: 2px;
  background: var(--border, #e2ddd4);
  display: block;
}
.indo-sug-placeholder {
  width: 56px;
  height: 38px;
  background: var(--border, #e2ddd4);
  border-radius: 2px;
  flex-shrink: 0;
}
.indo-sug-cat {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent, #8b1a1a);
  display: block;
  margin-bottom: 3px;
}
.indo-sug-title {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text, #1a1209);
  transition: color .15s;
}
.indo-sug-status {
  font-size: 13px;
  color: var(--text-muted, #6b5e4a);
  padding: 14px 0;
}

/* Prevent body scroll when overlay open */
body.indo-search-open { overflow: hidden; }

/* Mobile search bar — appended inside existing mobile nav */
.indo-mobile-search {
  padding: 12px 0 14px;
  border-bottom: 1px solid var(--border, #e2ddd4);
  margin-bottom: 2px;
}
.indo-mobile-search-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border, #e2ddd4);
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg, #faf8f3);
}
.indo-mobile-search-wrap:focus-within {
  border-color: var(--accent, #8b1a1a);
}
.indo-mobile-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 10px 13px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text, #1a1209);
  -webkit-appearance: none;
  appearance: none;
}
.indo-mobile-input::placeholder { color: var(--text-muted, #6b5e4a); }
.indo-mobile-input::-webkit-search-cancel-button { display: none; }
.indo-mobile-submit {
  background: none;
  border: none;
  border-left: 1px solid var(--border, #e2ddd4);
  cursor: pointer;
  color: var(--text-muted, #6b5e4a);
  padding: 0 13px;
  height: 42px;
  display: flex;
  align-items: center;
  transition: color .15s;
}
.indo-mobile-submit:hover { color: var(--accent, #8b1a1a); }
