/* =============================================
   SELEAH SEARCH COMPONENT
   Variables inherited from site: --moss, --dark, --muted, --border, --carbon, --white
   ============================================= */

/* Search button in nav */
.seleah-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--dark, #1A1A15);
  opacity: 0.75;
  border-radius: 50%;
  transition: opacity 0.2s, background 0.2s;
  flex-shrink: 0;
  padding: 0;
  margin-right: 8px;
}
.seleah-search-btn:hover {
  opacity: 1;
  background: rgba(98, 102, 73, 0.08);
}
.seleah-search-btn svg {
  display: block;
  width: 18px;
  height: 18px;
}

/* Fullscreen overlay */
.seleah-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(15, 15, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.seleah-search-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Modal container */
.seleah-search-modal {
  width: 100%;
  max-width: 640px;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(10, 10, 5, 0.35);
  overflow: hidden;
  transform: translateY(-12px);
  transition: transform 0.2s ease;
}
.seleah-search-overlay.active .seleah-search-modal {
  transform: translateY(0);
}

/* Input row */
.seleah-search-input-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border, #E8E8E0);
  padding: 0 20px;
  gap: 12px;
}
.seleah-search-input-icon {
  flex-shrink: 0;
  color: var(--muted, #6B6B5E);
  display: flex;
  align-items: center;
}
.seleah-search-input-icon svg {
  width: 20px;
  height: 20px;
}

.seleah-search-input {
  flex: 1;
  font-size: 18px;
  padding: 20px 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--dark, #1A1A15);
  font-family: inherit;
  line-height: 1.3;
}
.seleah-search-input::placeholder {
  color: var(--muted, #6B6B5E);
  font-weight: 300;
}

.seleah-search-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted, #6B6B5E);
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
  font-size: 18px;
  font-weight: 300;
  padding: 0;
}
.seleah-search-close:hover {
  background: var(--border, #E8E8E0);
  color: var(--dark, #1A1A15);
}

/* Results area */
.seleah-search-results {
  max-height: 420px;
  overflow-y: auto;
  padding: 8px 0 12px;
  scroll-behavior: smooth;
}
.seleah-search-results::-webkit-scrollbar {
  width: 4px;
}
.seleah-search-results::-webkit-scrollbar-track {
  background: transparent;
}
.seleah-search-results::-webkit-scrollbar-thumb {
  background: var(--border, #E8E8E0);
  border-radius: 4px;
}

/* Section label (Tratamientos / Artículos) */
.seleah-search-section-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--moss, #62664a);
  padding: 12px 20px 6px;
}

/* Individual result item */
.seleah-result-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 20px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: background 0.15s;
}
.seleah-result-item:hover {
  background: rgba(98, 102, 73, 0.06);
}
.seleah-result-item:last-child {
  border-bottom: none;
}

.seleah-result-type {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--moss, #62664a);
  margin-bottom: 1px;
}

.seleah-result-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark, #1A1A15);
  line-height: 1.3;
}

.seleah-result-desc {
  font-size: 12px;
  color: var(--muted, #6B6B5E);
  line-height: 1.5;
  margin-top: 1px;
}

/* Empty / initial state */
.seleah-result-empty {
  padding: 28px 20px;
  text-align: center;
  color: var(--muted, #6B6B5E);
  font-size: 14px;
  font-weight: 400;
}
.seleah-result-empty-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--moss, #62664a);
  margin-bottom: 6px;
}

/* Section divider between groups */
.seleah-search-section-divider {
  height: 1px;
  background: var(--border, #E8E8E0);
  margin: 4px 20px;
}

/* Keyboard shortcut hint */
.seleah-search-hint {
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid var(--border, #E8E8E0);
}
.seleah-search-hint-key {
  font-size: 10px;
  color: var(--muted, #6B6B5E);
  background: var(--border, #E8E8E0);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}
.seleah-search-hint-text {
  font-size: 10px;
  color: var(--muted, #6B6B5E);
}
