/* ==========================================================
   WEATHERDUCK — Location Autocomplete Dropdown
   Uses design tokens from sitemenu-desktop.css
   ========================================================== */

/* Wrapper: positioned context for the dropdown */
.wdh__search-wrap{
  position: relative;
  flex: 0 1 400px;
  width: 400px;
  max-width: 100%;
}

/* Input inherits full width from the wrapper now */
.wdh__search-wrap .wdh__input{
  flex: none;
  width: 100%;
}

/* Dropdown list */
.wdh__autocomplete{
  position: absolute;
  top: calc(var(--wd-control-h) + 6px);
  left: 0;
  right: 0;
  z-index: 10000;

  margin: 0;
  padding: 6px;
  list-style: none;

  background: var(--wd-bg-card);
  border: 1px solid var(--wd-border);
  border-radius: 16px;
  box-shadow: var(--wd-shadow);

  max-height: 280px;
  overflow-y: auto;
}

.wdh__autocomplete[hidden]{
  display: none;
}

/* Result item */
.wdh__autocomplete-item{
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;

  font-size: 13px;
  font-weight: 600;
  color: var(--wd-text);
  letter-spacing: .01em;
  text-transform: none;
  line-height: 1.4;
}

.wdh__autocomplete-item:hover,
.wdh__autocomplete-item[aria-selected="true"]{
  background: rgba(0,0,0,.06);
}

/* Type badge (Peak, etc.) */
.wdh__autocomplete-type{
  display: inline-block;
  font-size: 0.7em;
  font-weight: 600;
  color: rgba(0,0,0,.40);
  margin-left: 6px;
  vertical-align: middle;
}

/* State / region sub-text */
.wdh__autocomplete-state{
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: rgba(0,0,0,.50);
  letter-spacing: .02em;
  margin-top: 1px;
}

/* Empty + loading messages */
.wdh__autocomplete-empty,
.wdh__autocomplete-loading{
  padding: 10px 12px;
  font-size: 12px;
  color: rgba(0,0,0,.45);
  text-align: center;
  text-transform: none;
}

/* ── Shortcode form autocomplete wrapper ──────────────────── */
.wd-form-input-wrap{
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.wd-form-input-wrap .wdh__autocomplete{
  top: calc(100% + 4px);
}
