/**
 * HivePress Customize Frontend Styles
 */

#guest-selector-custom {
  position: relative;
}

#guest-dropdown-custom {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 9999;
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 12px;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  min-width: 220px;
}

#guest-dropdown-custom label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

#guest-dropdown-custom label:last-child {
  margin-bottom: 0;
}

#guest-dropdown-custom button {
  min-width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #f7f7f7;
  cursor: pointer;
}

#guest-dropdown-custom button:hover {
  background: #eee;
}

#guest-dropdown-custom span {
  min-width: 20px;
  text-align: center;
  display: inline-block;
}

#guest-dropdown-custom-btn {
  width: 100%;
  min-height: 44px;
  padding: 18px 14px;
  text-align: left;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 1.125rem !important;
  background: transparent !important;
}

.hp-form--listing-search #guest-dropdown-custom-btn {
  border-color: var(--hp-color-border, #e5e5e5);
  background: var(--hp-color-background, #fff);
  color: var(--hp-color-text, inherit);
}


/* === 8. Dropdown de huéspedes === */
#guest-dropdown-custom {
  position: absolute !important;
  top: 110%;
  right: 0;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #ccc;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 20px;
  min-width: 260px;
  z-index: 99999 !important;
}

/* Evitar cortes */
.search-widget__field--guests,
#rentapp-search-form,
.rentapp-search-bar,
.wp-block-cover {
  overflow: visible !important;
  position: relative;
}

/* Controles del dropdown */
#guest-dropdown-custom label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
}

/* Botones + y – */
#guest-dropdown-custom label button {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}

#guest-dropdown-custom label button:hover {
  background-color: #f1f1f1;
}

/* Número entre botones */
#guest-dropdown label span {
  text-align: center;
  display: inline-block;
  font-size: 16px;
  min-width: 14px;
  margin: 0 4px;
}

#listing_filter_modal .hp-form__field.hp-form__field--content {
    display: none;
}