@charset "UTF-8";
/* Search results page (search/search.twig) and the search form partial
   (search/search-form.twig, also rendered on the homepage / country landing).
   Loaded render-blocking via the controllers' $stylesheets so it applies before
   first paint (no FOUC), and is cached instead of re-sent inline on every load. */
/* --- Results page chrome --- */
.map-container {
  height: 400px;
  margin-bottom: 20px;
}

.results-header {
  border-radius: 8px;
  margin-bottom: 12px;
}

.results-loading {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 56px;
  padding: 12px 0;
}
.results-loading[hidden] {
  display: none;
}

/* "More filters" toggle: smaller text and tighter padding than a default btn
   (equivalent to the old p-0.5 → 0.25rem) so it fits its narrow column. */
.btn-more-filters {
  font-size: 13px;
  padding: 0.25rem;
}

/* --- Search form: location chips --- */
.location-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  height: auto;
  min-height: calc(1.5em + 0.75rem + 2px);
  padding: 0.25rem 0.5rem;
  cursor: text;
}
.location-chips.location-invalid {
  border-color: var(--bs-danger, #dc3545);
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.2);
}

.location-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  max-width: 100%;
  padding: 0.1rem 0.2rem 0.1rem 0.5rem;
  border-radius: 0.25rem;
  background-color: var(--bs-primary, #0d6efd);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.3;
}
.location-chip .chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.location-chip .chip-remove {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
  padding: 0 0.15rem;
  cursor: pointer;
  opacity: 0.85;
}
.location-chip .chip-remove:hover {
  opacity: 1;
}

.location-chip-input {
  flex: 1 1 7rem;
  min-width: 7rem;
  border: 0;
  outline: 0;
  padding: 0.15rem 0;
  background: transparent;
  color: inherit;
}

/* Match the price / area number-input placeholders to the muted gray the
   location field uses, instead of the near-black input text color. */
.search-controls input.form-control::placeholder {
  color: var(--bs-secondary-color, #6c757d);
  opacity: 1;
}

.location-autocomplete-menu {
  position: absolute;
  z-index: 1080;
  left: var(--bs-gutter-x, 0.75rem);
  right: var(--bs-gutter-x, 0.75rem);
  max-height: 320px;
  overflow-y: auto;
}
.location-autocomplete-menu .location-no-match {
  color: var(--bs-secondary-color, #6c757d);
  font-style: italic;
  cursor: default;
}
.location-autocomplete-menu .list-group-item {
  cursor: pointer;
  padding: 0.4rem 0.75rem;
}
.location-autocomplete-menu .list-group-item.active .ac-secondary {
  color: rgba(255, 255, 255, 0.75) !important;
}
.location-autocomplete-menu .ac-secondary {
  display: block;
}

/* --- Search form: popular-price suggestion dropdown --- */
/* A panel wider than the (narrow) price input, laying the popular values out
   in a grid so all of them are visible at once without scrolling. */
.price-suggest-menu {
  /* `.list-group` sets display:flex and our panel sets display:grid — both
     would override the `hidden` attribute's UA display:none. Force hidden to
     win. Kept before the base rule so the [hidden] variant is emitted first. */
  position: absolute;
  z-index: 1080;
  top: 100%;
  left: 0;
  right: auto;
  width: max-content;
  max-width: 90vw;
  padding: 0.35rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(4.5rem, 1fr));
  gap: 0.35rem;
}
.price-suggest-menu[hidden] {
  display: none;
}
.price-suggest-menu .list-group-item {
  cursor: pointer;
  width: auto;
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: 0.375rem;
  padding: 0.4rem 0.6rem;
  text-align: right;
  white-space: nowrap;
}

/* The "to" field is the right-hand column — anchor its panel to the right edge
   so the wider panel doesn't overflow off-screen. */
.price-suggest-menu-end {
  left: auto;
  right: 0;
}