/* =========================================================
   LIVE SEARCH DROPDOWN (Header + Home)
========================================================= */
.rm-search-container{ width: 300px; max-width: 100%; }
.rm-home-search{ max-width: 660px; }

#rm-live-search,
#rm-home-search{ width: 100%; }

.rm-search-container,
.rm-home-search{
  position: relative;
  z-index: 100000;
}

#rm-live-results,
#rm-home-results{
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;

  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(16,24,40,0.12);

  display: none;
  z-index: 100001;

  max-height: 360px;
  overflow-y: auto;
  overflow-x: hidden;

  pointer-events: auto;

  touch-action: pan-y;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

:is(#rm-live-results, #rm-home-results) .rm-results-list{
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Layout only (rectangle-button handles the "card" look) */
:is(#rm-live-results, #rm-home-results) .rm-result-item a{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;

  -webkit-tap-highlight-color: transparent;
}

/* Optional: keep dropdown items cleaner (avoid double shadow inside a shadowed dropdown) */
:is(#rm-live-results, #rm-home-results) .rm-result-item a.rectangle-button{
  box-shadow: none;
}

:is(#rm-live-results, #rm-home-results) .rm-result-item img{
  width: 45px;
  height: 45px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

:is(#rm-live-results, #rm-home-results) .rm-result-title{
  font-size: 15px;
  line-height: 1.15;
  margin: 0 0 4px;
  font-weight: 500;
}

:is(#rm-live-results, #rm-home-results) .rm-result-city{
  font-size: 12px;
  line-height: 1.2;
  opacity: 0.65;
  margin: 0;
}
