/* =========================================================
   SEARCH PAGE
========================================================= */
.rm-search{ padding: 40px 0 80px; }
.search-wrapper{ max-width: 900px; margin: 0 auto; padding: 0 16px; }

/* Location pages: tame TT1 vertical spacing */
.tax-location #primary.site-main{
  padding-top: 10px !important;
  padding-bottom: var(--global--spacing-vertical) !important;
}

.rm-search-header{ text-align: center; margin: 14px 0 22px; }
.search-title{ font-size: 34px; line-height: 1.15; margin: 0 0 8px; font-weight: 700; }
.rm-search-title-row{ display:flex; align-items:baseline; justify-content:center; gap:12px; flex-wrap:wrap; }
.search-count{ font-size:16px; opacity:.7; }

.search-results-list{ display: grid; gap: 16px; margin-top: 18px; }

.search-card{
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px;
}

.search-info{ flex:1; min-width:0; text-align:left; }

.search-status{
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
  flex: 0 0 auto;
  min-width: 150px;
}

.rm-status-pill{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e6e9ef;
  background: #fff;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.rm-status-pill > img{
  display: block;
  flex: 0 0 auto;
  max-width: 14px;
  max-height: 14px;
}

.rm-status-sub{ font-size: 12px; opacity: .7; white-space: nowrap; }


.search-name{ font-size: 18px; font-weight: 700; line-height: 1.2; margin: 0 0 6px; }
.search-meta{ font-size: 13px; opacity: 0.75; margin-bottom: 6px; }
/* Search filters */
.rm-search-filters,
.rm-search-filters .rm-filter-row,
.rm-search-filters .rm-filter,
.rm-search-filters select,
.rm-search-filters .rm-filter--check,
.rm-search-filters .rm-filter-reset{ max-width: none !important; }

.rm-search-filters .rm-filter-row{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.rm-search-filters label{ margin: 0 !important; }

.rm-search-filters select,
.rm-search-filters .rm-filter--check,
.rm-search-filters .rm-filter-reset{
  height: 44px;
  box-sizing: border-box;
  border-radius: 12px;
  font-size: 12px !important;
}

.rm-search-filters select{
  width: 360px;
  max-width: 85vw;
  padding: 0 38px 0 16px;
  line-height: normal !important;
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
  background-image: none !important;
  -webkit-appearance: menulist !important;
  appearance: menulist !important;
}

.rm-search-filters .rm-filter--check{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid #e6e9ef;
  background: #fff;
  white-space: nowrap;
  line-height: 1;
}

.rm-search-filters input[type="checkbox"]{
  -webkit-appearance: checkbox !important;
  appearance: checkbox !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  position: static !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  accent-color: #111 !important;
}
.rm-search-filters input[type="checkbox"]::after{ content: none !important; display: none !important; }

.rm-search-filters .rm-filter-reset{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid #e6e9ef;
  background: #fff;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
}


/* =========================================================
	ACTIVE FILTERS ON SEARCH PAGES
========================================================= */

.rm-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0 16px;
}

.rm-active-filters__label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.rm-active-filters__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rm-active-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #1f2937;
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.rm-active-filter-pill:hover {
  background: #e0e7ff;
  border-color: #a5b4fc;
}

.rm-active-filter-pill__x {
  font-size: 15px;
  line-height: 1;
  opacity: 0.8;
}



/* =========================================================
   SEARCH ON LOCATION PAGES
========================================================= */

/* Popular cuisine chips row (centered + spaced) */
.rm-chip-row{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;              /* space between chips */
  margin: 14px auto 6px;  /* space above/below the row */
  max-width: 900px;       /* keeps it from stretching too wide on desktop */
  padding: 0 12px;        /* safe padding on mobile */
}

.rm-chip.is-active{
  border-color: currentColor;
  font-weight: 600;
}
.rm-chip.is-active::before{
  content: "✓";
  margin-right: 6px;
}


/* =========================================================
   INTRO PARAGRAPH (+ Read more toggle) — ORIGINAL (working)
========================================================= */

.rm-location-paragraph{
  padding: 18px;
  font-style: italic;
  color: var(--rm-text);
  max-width: 920px;
  margin: 14px auto 0;
  text-align: center;
}

.rm-location-paragraph p{
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.55;
}

.rm-location-paragraph p:last-child{
  margin-bottom: 0;
}

/* Checkbox toggle (no JS) */
.rm-loc-more__check{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rm-loc-more__extra{
  display: none;
}

/* IMPORTANT: supports BOTH structures ( + or ~ ) */
.rm-loc-more__check:checked + .rm-loc-more__extra,
.rm-loc-more__check:checked ~ .rm-loc-more__extra{
  display: block;
}

.rm-loc-more__toggle{
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.85;
  text-decoration: underline;
  cursor: pointer;
  display: inline-block;
}

/* Swap "Read more" / "Read less" */
.rm-loc-more__less{ display: none; }

.rm-loc-more__check:checked ~ .rm-loc-more__toggle .rm-loc-more__more{
  display: none;
}
.rm-loc-more__check:checked ~ .rm-loc-more__toggle .rm-loc-more__less{
  display: inline;
}

@media (max-width: 700px){
  .rm-location-paragraph{
    padding: 16px;
    margin: 12px auto 0;
  }
  .rm-location-paragraph p{
    font-size: 14px;
    line-height: 1.6;
  }
}




/* =========================================================
   PAGINATION
========================================================= */
.rm-pagination{ margin: 10px 0 16px; display: flex; justify-content: center; }
.rm-pagination--top{ margin: 14px 0 18px; }

.rm-pagination ul{
  list-style: none;
  margin: 0;
  padding: 6px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;

  background: rgba(255,255,255,0.75);

  border: 1px solid #e6e9ef;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(16,24,40,0.06);

  backdrop-filter: saturate(175%) blur(14px);
  -webkit-backdrop-filter: saturate(175%) blur(14px);
}

.rm-pagination .page-numbers{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-width: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: transparent;
  text-decoration: none;
  color: #111;
  font-weight: 700;
  font-size: 14px;
  box-shadow: none;
  border: 0;
}
.rm-pagination .page-numbers:hover{ background: #f3f5f9; }
.rm-pagination .page-numbers.current{ background: #111; color: #fff; }
.rm-pagination .page-numbers.prev,
.rm-pagination .page-numbers.next{ background: #fff; border: 1px solid #e6e9ef; }
.rm-pagination .page-numbers.dots{ background: transparent; border: 0; padding: 0 6px; min-width: auto; }
.rm-pagination .page-numbers:focus-visible{ outline: none; box-shadow: var(--rm-focus-ring); }

@media (max-width: 600px){
  .search-card{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .search-status{
    order: 99;
    flex: 0 0 100%;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    white-space: nowrap;
    margin-top: 0 !important;
    padding-top: 0;
    padding-left: clamp(78px, 22vw, 96px);
    padding-right: 6px;
    transform: none;
    line-height: 1;
  }

  .search-status .rm-status,
  .search-status .rm-status-pill{
    font-size: 11.5px;
    padding: 5px 9px;
  }

  .rm-status-sub{ white-space: normal; }

  /* Search filters on mobile */
  form.rm-search-filters .rm-filter-row{
    gap: 10px;
    align-items: center;
  }

  form.rm-search-filters .rm-filter select{
    height: 42px;
    padding: 10px 12px;
    font-size: 14px;
  }

  form.rm-search-filters .rm-filter--check{ font-size: 14px; }
  form.rm-search-filters .rm-filter--check input[type="checkbox"]{ transform: scale(0.95); }

  form.rm-search-filters .rm-filter-reset{
    padding: 10px 14px;
    font-size: 14px;
  }
}

/* Pagination on mobile */
@media (max-width: 520px){
  .rm-pagination{ justify-content: center; }

  .rm-pagination ul{
    flex-wrap: wrap;
    justify-content: center;
    padding: 4px;
    gap: 6px;
  }

  .rm-pagination .page-numbers{
    height: 32px;
    min-width: 32px;
    padding: 0 10px;
    font-size: 13px;
  }

  .rm-pagination .page-numbers.prev,
  .rm-pagination .page-numbers.next{
    min-width: 36px;
    padding: 0 12px;
  }
}

/* Extra-small phones */
@media (max-width: 380px){
  .rm-pagination .page-numbers{
    height: 30px;
    min-width: 30px;
    padding: 0 9px;
    font-size: 12.5px;
  }

  .rm-pagination .page-numbers.prev,
  .rm-pagination .page-numbers.next{
    min-width: 34px;
    padding: 0 10px;
  }
}
