/* Ruh Explore Search v1.1.2 — all rules scoped to .rx-root so the theme isn't affected. */

.rx-root {
  --rx-brand: #0c0b09;
  --rx-accent: #8a6a4f;
  --rx-cream: #f4ede4;
  --rx-ink: #1f1a16;
  --rx-muted: #675d55;
  --rx-faint: #978b81;
  --rx-line: #ece4da;
  --rx-soft: #f8f3ed;
  --rx-panel: #ffffff;
  --rx-wa: #1fa855;
  --rx-radius: 16px;
  --rx-ease: cubic-bezier(.2, .8, .2, 1);
  font-family: inherit;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
.rx-root *, .rx-root *::before, .rx-root *::after { box-sizing: border-box; }
.rx-root svg { width: 20px; height: 20px; flex: none; display: block; }
.rx-root button { font: inherit; letter-spacing: normal; text-transform: none; margin: 0; }
.rx-root a { text-decoration: none; }
html.rx-locked, html.rx-locked body { overflow: hidden !important; }

/* ---------- Floating button ---------- */
.rx-root .rx-fab {
  position: fixed;
  right: 20px;
  bottom: 96px;
  z-index: 99990;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--rx-brand);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(16, 24, 32, .22), 0 1px 3px rgba(16, 24, 32, .18);
  transition: transform .2s var(--rx-ease), box-shadow .2s var(--rx-ease);
}
.rx-root .rx-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(16, 24, 32, .26), 0 2px 4px rgba(16, 24, 32, .16); }
.rx-root .rx-fab:active { transform: translateY(0); }
.rx-root .rx-fab:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px var(--rx-brand); }
.rx-root .rx-fab svg { width: 20px; height: 20px; }
.rx-root .rx-fab[aria-expanded="true"] { opacity: 0; pointer-events: none; }

/* ---------- Overlay + panel ---------- */
.rx-root .rx-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 9vh 16px 16px;
  background: rgba(14, 20, 27, .48);
  opacity: 0;
  transition: opacity .18s ease;
}
.rx-root .rx-overlay[hidden] { display: none; }
.rx-root .rx-overlay.rx-in { opacity: 1; }

.rx-root .rx-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 680px;
  max-height: min(78vh, 720px);
  background: var(--rx-panel);
  color: var(--rx-ink);
  border-radius: var(--rx-radius);
  box-shadow: 0 24px 60px rgba(10, 16, 22, .3), 0 2px 8px rgba(10, 16, 22, .12);
  overflow: hidden;
  transform: translateY(10px) scale(.985);
  transition: transform .22s var(--rx-ease);
}
.rx-root .rx-overlay.rx-in .rx-panel { transform: none; }

.rx-root .rx-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 12px 16px;
  border-bottom: 1px solid var(--rx-line);
}
.rx-root .rx-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--rx-faint);
}
.rx-root .rx-field > svg { width: 22px; height: 22px; color: var(--rx-accent); }
.rx-root .rx-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--rx-ink);
  font: inherit;
  font-size: 18px;
  line-height: 44px;
  -webkit-appearance: none;
  appearance: none;
}
.rx-root .rx-input::placeholder { color: var(--rx-faint); opacity: 1; }
.rx-root .rx-input::-webkit-search-cancel-button,
.rx-root .rx-input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.rx-root .rx-clear {
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: var(--rx-soft);
  color: var(--rx-muted);
  font-size: 13px;
  cursor: pointer;
}
.rx-root .rx-clear[hidden] { display: none; }
.rx-root .rx-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--rx-muted);
  cursor: pointer;
}
.rx-root .rx-close:hover, .rx-root .rx-clear:hover { background: var(--rx-line); color: var(--rx-ink); }
.rx-root .rx-close:focus-visible, .rx-root .rx-clear:focus-visible { outline: 2px solid var(--rx-brand); outline-offset: 1px; }

.rx-root .rx-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 8px 12px;
  -webkit-overflow-scrolling: touch;
}

.rx-root .rx-section { padding: 8px 0 4px; }
.rx-root .rx-section + .rx-section { border-top: 1px solid var(--rx-line); margin-top: 4px; }
.rx-root .rx-section-title {
  margin: 4px 12px 6px;
  padding: 0;
  color: var(--rx-accent);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.4;
  text-transform: uppercase;
}
.rx-root .rx-list { list-style: none; margin: 0; padding: 0; }
.rx-root .rx-list li { margin: 0; padding: 0; list-style: none; }
.rx-root .rx-list li::before, .rx-root .rx-list li::marker { content: none; }

.rx-root .rx-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--rx-ink);
  transition: background .12s ease;
}
.rx-root .rx-result:hover,
.rx-root .rx-result[aria-selected="true"] { background: var(--rx-soft); }
.rx-root .rx-result[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--rx-brand); }
.rx-root .rx-result:focus-visible { outline: 2px solid var(--rx-brand); outline-offset: -2px; }
.rx-root .rx-result > svg { width: 18px; height: 18px; color: var(--rx-faint); transition: transform .15s ease, color .15s ease; }
.rx-root .rx-result:hover > svg, .rx-root .rx-result[aria-selected="true"] > svg { color: var(--rx-brand); transform: translateX(2px); }
.rx-root .rx-result-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rx-root .rx-result-title { font-size: 16px; font-weight: 600; color: var(--rx-ink); line-height: 1.35; }
.rx-root .rx-result-desc {
  font-size: 14px;
  color: var(--rx-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rx-root .rx-result-path { font-size: 12px; color: var(--rx-faint); margin-top: 2px; }
.rx-root .rx-top { padding: 14px 12px; }
.rx-root .rx-top .rx-result-title { font-size: 18px; }
.rx-root mark {
  background: transparent;
  color: inherit;
  padding: 0;
  box-shadow: inset 0 -0.42em 0 rgba(175, 145, 121, .32);
  border-radius: 2px;
}

/* ---------- Chips ---------- */
.rx-root .rx-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 12px 8px; }
.rx-root .rx-chip {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--rx-line);
  border-radius: 999px;
  background: #fff;
  color: var(--rx-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
.rx-root .rx-chip:hover { border-color: var(--rx-brand); background: var(--rx-soft); }
.rx-root .rx-chip:focus-visible { outline: 2px solid var(--rx-brand); outline-offset: 1px; }

/* ---------- Messages ---------- */
.rx-root .rx-msg { margin: 0; padding: 20px 12px; color: var(--rx-muted); font-size: 15px; }
.rx-root .rx-empty { padding: 16px 12px 4px; }
.rx-root .rx-empty-title { margin: 0 0 4px; font-size: 16px; font-weight: 600; color: var(--rx-ink); }
.rx-root .rx-empty-sub { margin: 0; font-size: 14px; color: var(--rx-muted); }
.rx-root .rx-loading { display: flex; gap: 6px; padding: 24px 12px; }
.rx-root .rx-loading span { width: 8px; height: 8px; border-radius: 50%; background: var(--rx-line); animation: rx-pulse 1s infinite ease-in-out; }
.rx-root .rx-loading span:nth-child(2) { animation-delay: .15s; }
.rx-root .rx-loading span:nth-child(3) { animation-delay: .3s; }
@keyframes rx-pulse { 0%, 100% { background: var(--rx-line); } 50% { background: var(--rx-faint); } }

/* ---------- Footer CTAs ---------- */
.rx-root .rx-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--rx-line);
  background: #fcfaf7;
}
.rx-root .rx-foot[hidden] { display: none; }
.rx-root .rx-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--rx-ink);
}
.rx-root .rx-cta strong { font-weight: 600; }
.rx-root .rx-cta-wa { flex: 1; background: #eaf6ee; border-radius: 999px; padding: 8px 18px; }
.rx-root .rx-cta-wa svg { color: var(--rx-wa); }
.rx-root .rx-cta-wa:hover { background: #dcf2e4; }
.rx-root .rx-cta-book { background: var(--rx-brand); color: var(--rx-cream); border-radius: 999px; padding: 8px 18px; }
.rx-root .rx-cta-book svg { color: var(--rx-cream); }
.rx-root .rx-cta-book:hover { opacity: .88; }
.rx-root .rx-cta:focus-visible { outline: 2px solid var(--rx-brand); outline-offset: 1px; }

.rx-root .rx-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Inline button beside "WhatsApp us" (inherits the theme's button classes) ---------- */
a.rx-inline svg, a.rx-inline-bar svg { width: 18px; height: 18px; flex: none; margin-right: 8px; }
a.rx-inline-bar { display: none !important; }
@media (max-width: 690px) {
  a.rx-inline { display: none !important; }
  a.rx-inline-bar {
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
    width: 100%;
    max-width: 334px;
    min-height: 48px !important;
    margin: 12px auto 0 !important;
    padding: 0 20px !important;
    font-weight: 400 !important;
    opacity: .92;
  }
  a.rx-inline-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---------- Inline shortcode button ---------- */
.rx-inline-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  border: 1px solid currentColor; border-radius: 999px; background: transparent; cursor: pointer; font: inherit;
}

/* ---------- Phones: full-screen sheet ---------- */
@media (max-width: 640px) {
  .rx-root .rx-fab { height: 46px; padding: 0 18px 0 14px; font-size: 14px; }
  .rx-root .rx-overlay { padding: 0; align-items: stretch; }
  .rx-root .rx-panel {
    max-width: none;
    max-height: none;
    height: 100%;
    height: 100dvh;
    border-radius: 0;
    transform: translateY(16px);
  }
  .rx-root .rx-head { padding: 10px 8px 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); }
  .rx-root .rx-input { font-size: 17px; } /* ≥16px stops iOS zooming in */
  .rx-root .rx-foot { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .rx-root .rx-cta-wa { flex-basis: 100%; }
  .rx-root .rx-cta-book { flex: 1; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .rx-root .rx-fab, .rx-root .rx-overlay, .rx-root .rx-panel, .rx-root .rx-result > svg { transition: none !important; }
  .rx-root .rx-loading span { animation: none; }
}

@media print { .rx-root { display: none !important; } }
