/**
 * Styling for the multicontent filter form and block.
 */

/* Block container — ensure clicks and scroll reach nav when ancestors use pointer-events: none */
.multicontent-block {
  width: 100%;
  pointer-events: auto;
}

/* Filter section */
.multicontent-block__filters {
  margin-bottom: 2rem;
}

/* Form container */
.multicontent-search-form__container {
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.multicontent-search-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Header */
.multicontent-search-form__header {
  margin-bottom: 1rem;
}

.multicontent-search-form__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.multicontent-search-form__subtitle {
  font-size: 1rem;
  color: #666;
  margin: 0;
}

/* Filter header: flex row containing neighborhood dropdown + divider + pills.
   overflow must NOT be hidden here — the ContextMenu dropdown needs to escape
   the row bounds without being clipped. */
.multicontent-filter-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

/* Neighborhood dropdown wrapper — does not grow or shrink */
.multicontent-filter-header__neighborhood {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  height: 40px;
}

/* Visually hide the fieldset legend for the filter pills (title_display => invisible) */
.multicontent-filter-pills .FieldGroup__legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Pills section fills the remaining width */
.multicontent-filter-header .multicontent-search-form__filters {
  flex: 1;
  min-width: 0;
}

/* Ensure ContextMenu dropdown floats above surrounding content */
.multicontent-neighborhood-menu {
  position: relative;
  z-index: 100;
}

/* Neighborhood toggle button — fully custom, no Hanna CDN dependency */
.multicontent-neighborhood-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0;
  padding: 0.375rem 0.875rem 0.375rem 24px;
  border: 1.5px solid #E3E5E7;
  border-radius: 4px;
  background: transparent;
  color: #000000;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  list-style: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.multicontent-neighborhood-summary::-webkit-details-marker {
  display: none;
}

.multicontent-neighborhood-summary:hover {
  background-color: #0061BD;
  color: #fff;
}

/* Down-chevron after the label text */
.multicontent-neighborhood-summary::after {
  content: '\25BE'; /* ▾ */
  line-height: 1;
  font-weight: 700;
  margin-left: 47px;
}

/* Filters */
.multicontent-search-form__filters {
  width: 100%;
}

/* Results section */
.multicontent-block__results {
  margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .multicontent-filter-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .multicontent-filter-header__neighborhood,
  .multicontent-neighborhood-details,
  .multicontent-neighborhood-summary {
    width: 100%;
  }

  .multicontent-neighborhood-summary::after {
    margin-left: auto;
  }
}

@media (min-width: 768px) {
  .multicontent-search-form {
    gap: 2rem;
  }
}
