/* addresssearch.css - Common styles for the area dropdown component */

/* Container wrapper used on index.ejs and property-grid.ejs */
.tag-input-wrapper {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  border: 1px solid #ced4da;
  border-radius: .25rem;
  background-color: #fff;
  padding: 4px 8px;
  height: 40px;
  position: relative;
  gap: 5px;
  overflow: hidden;
  width: 100%;
}
.tag-input-wrapper.home{
  height: 56px;
}
.tag-input-wrapper.height50px{
  height: 50px;
}
.tag-input-wrapper.nobg{
  background-color: transparent;
  border: none;
}
.tag-input-wrapper input#search {
  border: none;
  outline: none;
  flex-grow: 1;
  min-width: 150px;
  padding: 5px;
  margin: 0;
  box-shadow: none !important;
  background: transparent;
  height: auto;
}
.tag-input-wrapper.nobg input#search {
  background: transparent;
  color: #fff;
}
.tag-input-wrapper.nobg input#search::placeholder {
  color: rgba(255, 255, 255, 1);
}

/* Area badge items */
.selectedAreas {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
}
.area-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--main-color) 0%, #000000 100%);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.area-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--main-color, #AD0067) 32%, transparent);
}
.area-badge .remove-area {
  margin-left: 8px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-style: normal;
  font-weight: bold;
  transition: color 0.2s ease, transform 0.2s ease;
}
.area-badge .remove-area:hover {
  color: #ffffff;
  transform: scale(1.1);
}

/* Autocomplete Container */
.autocomplete__input {
  position: relative;
  width: 100%;
}
#result {
  background-color: #fff;
  width: 100%;
  max-height: 250px;
  overflow-y: auto;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-radius: 0 0 5px 5px;
  box-sizing: border-box;
}

/* Dropdown items (.filterdata) */
.filterdata {
  text-align: start;
  font-size: 14px;
  cursor: pointer;
  padding: 12px 15px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.filterdata:last-child {
  border-bottom: none;
}
.filterdata:hover {
  background: #f8f9fa !important;
  color: var(--main-color) !important;
}
.filterdata i#area {
  font-size: 11px;
  color: #777 !important;
  display: block;
  margin-top: 2px;
}

/* Selected state for .filterdata */
.filterdata.selected {
  background-color: var(--main-color, #AD0067);
  color: white;
}
.filterdata.selected:hover {
  background-color: var(--main-color, #AD0067);
  opacity: 0.95;
}
.filterdata.selected i#area {
  color: rgba(255, 255, 255, 0.8);
}
.filterdata.selected i.fa-check {
  font-size: 16px;
  color: #fff !important;
}
