/* --- Base: keep Houzez native list hidden; plugin renders its own --- */
.location-search.hz-multi-enabled .location-suggestions { display: none !important; }

/* --- Panel trigger (dropdown-like) --- */
.hz-multi {
  position: relative;
  width: 100%;
}
.hz-multi-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  min-height: 46px;
  border: 1px solid rgba(7,51,69,.15);
  border-radius: 6px;
  background: #fff;
  color: #6A858F;
  font-weight:500;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.hz-multi-toggle-label.hz-has-selection {
	color:#073345;
}

.hz-multi-toggle:focus { outline: 2px solid #222; outline-offset: 2px; }
.hz-multi-toggle[aria-expanded="true"] { border-color: rgba(57,176,255,.7); box-shadow: 0 0 0 3px rgba(57,176,255,.25); }
.hz-multi-toggle .hz-multi-toggle-caret {
  background: url(/wp-content/uploads/2025/08/caretdown-grey.svg) no-repeat center / 8px;
    width: 18px;
    height: 18px;
}

/* --- Panel --- */
.hz-multi-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  z-index: 1000;
  background: #fff;
  border: 1px solid rgba(7,51,69,.12);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
  padding: 12px;
}

/* Chips row (top of panel) */
.hz-multi-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px 0; /* space *below* chips only when chips exist */
}
/* ✅ When there are no chips, remove the margin entirely to avoid the extra gap */
.hz-multi-chips:empty {
  display: none;
  margin: 0;
  padding: 0;
}

/* Chip */
.hz-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(7,51,69,0.15);
  border-radius: 16px;
  background: #F9FBFC;
  cursor: default;
  font-size: 13px;
  line-height: 1.2;
  color: #6A858F;
  max-width: calc(8ch + 44px);
}
.hz-chip:focus { outline:2px solid #222; outline-offset: 2px; }
.hz-chip-close { display:inline-block; padding:0 6px; font-size:0!important; cursor:pointer;
  background:url('/wp-content/uploads/2025/08/close-bold.svg') no-repeat center / 8px!important;
  width:8px; height:8px;
}
/* Clamp label to 8 characters visually with ellipsis */
.hz-chip-label {
  display:inline-block; max-width: 8ch; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; direction: ltr;
}

/* Input row (middle of panel) */
.hz-multi-input-row {
  display: flex;
}
.hz-multi-input-row input[name="search_location"],
.hz-multi-input-row .search_location_js {
  border: 1px solid rgba(7,51,69,.15)!important;
  border-radius: 8px!important;
  outline: 0!important;
  box-shadow: none!important;
  padding: 10px 10px!important;
  min-height: 40px;
  font-size: 14px;
}
.hz-multi-input-row .location-trigger,
.hz-multi-input-row .btn.location-trigger {
  height: 40px;
}

/* Suggestions (bottom of panel) */
.hz-location-suggestions {
  position: relative; /* container inside the panel */
  margin-top: 8px;
  border: 1px solid rgba(7, 51, 69, .15);
  border-radius: 8px;
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
  display: none;
}
.hz-location-suggestions .suggestion-item {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}
.hz-location-suggestions .suggestion-item:hover,
.hz-location-suggestions .suggestion-item:focus {
  background: #f3f6f9;
}

/* Hide placeholder while any chip exists */
.hz-multi-panel:has(.hz-multi-chips > *) input::placeholder { color: transparent !important; }

/* Small screens: keep panel readable */
@media (max-width: 480px) {
	.hz-multi-toggle {
		min-height:54px;
	}
}