
/* ------------------------------------------------------------------------------ */
.elementor-shortcode .search-form {
  position: relative;
  max-width: 760px;
  width: 100%;
  margin: 0;
}

.elementor-shortcode .search-form label {
  display: block;
  margin: 0;
}

.elementor-shortcode .search-form .search-field {
  width: 100% !important;
  height: 78px;
  padding: 0 28px 0 64px !important;
  border: none !important;
  border-radius: 999px !important;
  background: #3f3f3f !important;
  color: #d4d7dd !important;
  font-size: 18px;
  line-height: 1;
  font-family: inherit;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.elementor-shortcode .search-form .search-field::placeholder {
  color: #aeb4bd !important;
  opacity: 1;
}

.elementor-shortcode .search-form .ast-search-submit {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  padding: 0;
  margin: 0;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}

.elementor-shortcode .search-form .ast-search-submit svg {
  width: 22px;
  height: 22px;
  fill: #aeb4bd !important;
  display: block;
}

.elementor-shortcode .search-form > .search-submit:not(.ast-search-submit) {
  display: none !important;
}

.elementor-shortcode .search-form .screen-reader-text {
  display: none !important;
}

/* Make the shortcode area the positioning context */
.elementor-element-3f0b4bb .elementor-shortcode,
.elementor-element-3f0b4bb .search-form,
.elementor-element-3f0b4bb #rlvlive_1 {
  position: relative !important;
  width: 100%;
}

/* Keep the form open for the dropdown */
.elementor-element-3f0b4bb .search-form,
.elementor-element-3f0b4bb #rlvlive_1 {
  overflow: visible !important;
}

/* Force the live results directly below the search bar */
.elementor-element-3f0b4bb .relevanssi-live-search-results {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  left: 0 !important;
  right: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  z-index: 9999 !important;
  margin: 0 !important;
}

/* Optional styling so it matches the search field better */
.elementor-element-3f0b4bb .relevanssi-live-search-results-showing {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
  padding: 8px 0;
}

/* Result rows */
.elementor-element-3f0b4bb .relevanssi-live-search-result-status p,
.elementor-element-3f0b4bb .relevanssi-live-search-result a {
  font-size: 15px;
}

.elementor-element-3f0b4bb .relevanssi-live-search-result a {
  display: block;
  padding: 12px 18px;
  color: #3E5F55;
  text-decoration: none;
}

.elementor-element-3f0b4bb .relevanssi-live-search-result a:hover {
  background: #f5f7f6;
}

/* -------------------------------------------------------------- */

/* ===== SEARCH RESULTS ONLY ===== */

/* Keep content area narrower */
body.search .site-content .ast-container {
  max-width: 980px;
}

/* Title area */
body.search .site-main > header.page-header,
body.search .site-main > .ast-archive-description {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 0 28px 0 !important;
  text-align: left !important;
}

/* Search page title */
body.search .site-main > header.page-header .page-title,
body.search .site-main > .ast-archive-description .page-title {
  font-size: 28px !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
  color: #111 !important;
  margin: 0 0 10px 0 !important;
}

/* Hide duplicate breadcrumb/subtitle inside title box */
body.search .site-main > header.page-header p,
body.search .site-main > .ast-archive-description p,
body.search .site-main > .ast-archive-description .archive-description {
  display: none !important;
}

/* One result per row */
body.search .site-main article {
  width: 100% !important;
  float: none !important;
  margin: 0 0 24px 0 !important;
  padding: 0 0 24px 0 !important;
  border-bottom: 1px solid rgba(0,0,0,0.08) !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Remove inner card styling */
body.search .site-main article .ast-article-inner,
body.search .site-main article .post-content,
body.search .site-main article .entry-content-wrapper {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
}

/* Result title */
body.search .site-main .entry-title,
body.search .site-main .entry-title a {
  font-size: 18px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  color: #111 !important;
  text-decoration: none !important;
  margin: 0 0 6px 0 !important;
}

body.search .site-main .entry-title a:hover {
  color: #3E5F55 !important;
  text-decoration: underline !important;
}

/* Hide author/meta */
body.search .site-main .entry-meta,
body.search .site-main .posted-by,
body.search .site-main .byline,
body.search .site-main .posted-on,
body.search .site-main .comments-link,
body.search .site-main .cat-links,
body.search .site-main .tags-links {
  display: none !important;
}

/* Excerpt */
body.search .site-main .entry-summary,
body.search .site-main .entry-summary p,
body.search .site-main .entry-content,
body.search .site-main .entry-content p {
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: #2f2f2f !important;
  margin: 0 !important;
}

/* Highlight */
body.search .site-main mark,
body.search .site-main .highlight,
body.search .site-main .search-term {
  background: #8fa79e !important;
  color: #1f3029 !important;
  padding: 0 2px !important;
  border-radius: 2px !important;
}
